* caveat-0.s: illustrate memory operands * A warning about operand size in the assembler instruction * * You really need to know what is going on with each instruction * AND sound knowledge of how things are represented inside the * computer to understand the following assembler program.... xdef Start, Stop, End Start: move.l #-8, d0 move.l d0, 5672 move.b 5672, d1 byte operand in d1 = -1, or 255 !!! move.w 5672, d2 word operand in d2 = -1, or 65535 !!! move.l 5672, d3 d3 = -8 --- only this is correct nop nop nop nop nop nop nop Stop: End: end Use: b start disp/wx 5000 disp/d $d0 disp/x $d0 disp/i $pc