© Thomas Kunz 2000
SCE 574
82
Memory Reference Ambiguities
äConsider MOV [BX],5
äShould we move a byte or a word?
äNeed to instruct the assembler
äWORD PTR
äBYTE PTR
äSo we get:
äMOV WORD PTR [BX], 5
äOR
ä MOV BYTE PTR [BX], 5
äConsider the following example
Specify how to interpret
a memory operand, gives
type information
DS    40000
BX   2350
42350
42351
DS:BX
Low byte at low
address, high byte
at higher address
5
0
5
WORD PTR      BYTE PTR