Microprocessor Simulator 0 Help



Download 1.18 Mb.
Page38/82
Date18.03.2021
Size1.18 Mb.
#56105
1   ...   34   35   36   37   38   39   40   41   ...   82
sms32v50 (3)
sms32v50 (3), sms32v50 (6)

Addresing Modes


There are several ADDRESSING MODES available with move commands.

Immediate Addressing


A hexadecimal number is copied into a register. Examples...

MOV AL,15 ; Copy 15 HEX into the AL register


MOV BL,40 ; Copy 40 HEX into the BL register
MOV CL,50 ; Copy 50 HEX into the CL register
MOV DL,60 ; Copy 60 HEX into the DL register

Indirect Addressing


A value is moved to or from RAM. The ram address is given as a number like [22] in square brackets. Examples...

MOV [A0],AL ; Copy value in AL to RAM location [40]


MOV BL,[40] ; Copy value in RAM location [A0] into BL

Register Indirect Addressing


Copy a value from RAM to a register or copy a value from a register to RAM. The RAM address is contained in a second register enclosed in square brackets like this [CL]. Examples ...

MOV [CL],AL ; Copy the value in AL to the RAM location that CL points to.


MOV BL,[CL] ; Copy the RAM location that CL points to into the BL register.

Download 1.18 Mb.

Share with your friends:
1   ...   34   35   36   37   38   39   40   41   ...   82




The database is protected by copyright ©ininet.org 2024
send message

    Main page