Professional Documents
Culture Documents
Direct
Register
Register Indirect
Register Relative
Based Indexed
2.MOV 1010[BX][SI], CX
Which Mode is fastest? Why?
Register addressing mode
Shorter instructions
After the following instructions are executed, What will be the value
of registers AX,BX,CX,DX ? DS is a segment register for all instructions.
MOV AX,[BP]
MOV DX, [5100]
MOV BX,5[BP]
MOV CX,[BP][DI]
ALP Program
MOV AX,4343
MOV BX,1111
ADD AX,BX
MOV [2000H],AX
HLT
Note:
HLT – Halt the process.
Indicate end of the program
ALP for different addressing modes
Immediate mode
MOV AX, 200
ADD AX,300
MOV [2000],AX
HLT
Register mode
MOV BX,500
MOV AX,200
ADD AX,BX
MOV [5000],AX
HLT
Direct mode
MOV AX,[5000]
ADD AX,[5002]
MOV AX,[5004]
HLT