Gotchas: Difference between revisions

Content added Content deleted
Line 37: Line 37:
MOVE.W (4,A0),D1 ;get the 16-bit value stored at memory address $A04004, and store it into the low word of D1.</lang>
MOVE.W (4,A0),D1 ;get the 16-bit value stored at memory address $A04004, and store it into the low word of D1.</lang>


However, the <code>LEA</code> instruction (load effective address uses this parentheses syntax, but ''does not dereference!'' For extra weirdness, you don't put a # in front of a literal operand either.
However, the <code>LEA</code> instruction (load effective address) uses this parentheses syntax, but ''does not dereference!'' For extra weirdness, you don't put a # in front of a literal operand either.


<lang 68000devpac>LEA $A04000,A0 ;effectively MOVEA.L #$A04000,A0
<lang 68000devpac>LEA $A04000,A0 ;effectively MOVEA.L #$A04000,A0