Beruflich Dokumente
Kultur Dokumente
80386
Protected Mode System control Instruction set Basic + Extended+ 80386 specific Instruction Set
Real Mode
Addressing Modes
Register Operand Addressing Mode can be accessed in byte, word, or double word sizes. MOV AX, BX Byte: AL, AH, BL, BH, CL, CH, DL, DH Word: AX, BX, CX, DX, SP, BP, SI, DI, CS, DS, SS, ES, FS, GS Double Word: EAX, EBX, ECX, EDX, ESP, EBP, ESI, EDI See Fig 3.8 in page 64 Immediate Operand Addressing an operand is part of the instruction MOV AL, 15H 8 bits, 16 bits, and 32 bits in length See Fig 3.10 in page 67
Register Addressing
Address 80386 MPU 0000 0100 IP CS DS SS ES FS GS 01000 01001 01002 Memory Content 8B C3 XX Instruction MOV AX, BX
AX BX CX DX SP BP SI DI
Immediate Addressing
Address 80386 MPU 0000 0100 IP CS DS SS ES FS GS 01000 01001 01002 Memory Content B0 15 XX Instruction MOV AL, 15H
15 XX
AX BX CX DX SP BP SI DI
Direct Addressing
16-bit Memory Operand Addressing Modes
16-bit addressing modes and 32-bit addressing modes Physical address = Segment Base: EA(effective address) Segment Base Address(SBA) : the starting location of the segment EA : the offset of the operand from the beginning of the segment of memory EA = Base + Index + Displacement Base = BX or BP, Index = SI or DI, displacement = 8-bit or 16-bit
XXXX
03234 03235
ED BE
BEED
XXXX
03234 03235
ED BE
1234
BEED
Displacement
ED 1000
04234 04235
1234
Index Register
XX 1000
05234 05235
BE
2000