Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Addressing Mode
Addressing type:1- Register Operand Addressing Mode. 2- Immediate Operand Addressing Mode. 3- Memory Operand Addressing.
After Execution
Address Memory Instruction content 01000 8B MOV AX , BX 01001 C3 01002 XX next ins.
After Execution
Address Memory Instruction content 01000 B0 MOV AX , 15h 01001 15 01002 XX next ins.
After Execution
Address Memory Instruction 01000 8B MOV CX , [1234H] 01001 0E 01002 34 01003 12 01004 xx next ins. . . 02000 xx . . 03234 ED Source oper. 03235 BE
EX: MOV AH,[BX][SI]+1234H DS=0200 BX=1000 SI=2000 PH=2000 + 1000 + 2000 + 1234 =6234
REVIEW PROBLEMS
Identify the addressing modes used for source and the destination operand in the instruction that follow, and compute the physical address .
CS=0A00 DS=0B00 SI=0100 DI=0200 BX = 0300 A - MOV AL , BL B - MOV AX,0FFH C - MOV [DI] , AX D - MOV DI,[SI] E - MOV [BX] + 0400H , CX F - MOV [DI] + 0400H , AH G- MOV [BX][DI] + 0400H, AH
Answers
A - source: register Destination :register B - source: Immediate Destination :register C- source: register Destination : index PH=DS:DI = B200 D- source: index PH=DS:SI= B100 Destination : register E- source: register Destination : Base PH=DS:BX + Displacement. = B700 F- source: register index Destination : PH=DS:DI + Displacement. = B600