© Thomas Kunz 2000
SCE 574
78
Addressing Modes: Examples
äImmediate MOV AX, 0
äRegister MOV AX, CX
äDirect MOV AX,[1234]
äLoads contents of memory location DS:1234 into AX (16 bits because of the X)
äAssumes DS as the default segment register
äDirect MOV [1234],AX
äStore AX into memory location @DS:1234
äIndirect
ä(a) MOV AX, [BX]
äMoves contents of word @DS:[BX] into AX
ä(b) MOV [BX+1], AL
äMove a byte into @DS:[BX + 1]
ä(c) MOV CH,[DI +10]
ä(d) MOV AX,[BP+SI]
ä(d) MOV BX,[BX + DI +  4]