Системы адресации в Мини- и МикpоЭВМ
Реферат - Компьютеры, программирование
Другие рефераты по предмету Компьютеры, программирование
; , AX.
3.6 .
, , ( SI,DI ) . 32- , EAX, ECX, EDX, EBX, EBP, ESI, EDI.. MOV WORD PTR ES:[DI+2],AX, ES:[DI+2] AX.
MOV WORD PTR ES:[DI+2],AX
AX = 0099h
DI = 000Dh
ES:000Dh = 0000h (di)
ES:000Fh = 0000h (di+2)
...
AX = 0099h
DI = 000Dh
ES:000Dh = 0000h
ES:000Fh = 0099h < 99h
ES:000Fh DI 2 = F. 99h AX .
3.7 - .
( BX,BP ) ( SI,DI ) . MOV AX,[BP+SI] :
MOV AX,[BP+SI]
AX = 00AAh
BP = 0100h
SI = 0050h
DS:0100h = 0001h (bp)
DS:0150h = 0002h (bp+si)
...
AX = 0002h < 02h
BP = 0100h
SI = 0050h
DS:0100h = 0001h
DS:0150h = 0002h
DS:0150h BP SI, AX.
3.8 - .
, 8- 16- . 32- , (SIB) . [EAX+EBX], [EAX+EAX], [ECX+EDX], ESP. F .. 0,1,3 4. F . MOV EAX,[EAX+EAX].
MOV EAX,[EAX+EAX]
EAX = 0010h
DS:0010h = 000Ah (eax)
DS:0020h = 000Bh (eax+eax)
...
EAX = 000Bh < 0Bh
DS:0010h = 000Ah
DS:0020h = 000Bh
EAX, EAX DS:0020h EAX.
3.9