Systems Design & Programming 80x86 Assembly II CMPE 310 1 (Feb. 9, 2002)
UMBC
U M B C U N I V E R S I T Y O F M A R Y L A N D B A L T I M O R E C O U N T Y 1 9 6 6Data Addressing Modes Base-Plus-Index addressing: Effective address computed as: seg_base + base + index. Base registers: Holds starting location of an array.
- ebp (stack)
- ebx (data)
- Any 32-bit register except esp.
Index registers: Holds offset location.
- edi
- esi
- Any 32-bit register except esp.
mov dl, [eax+ebx] ;EAX as base, EBX as index. mov ecx,[ebx+edi] ;Data segment copy. mov ch, [ebp+esi] ;Stack segment copy.