RosettaCodeData/Task/Gotchas/68000-Assembly/gotchas-3.68000
2023-07-01 13:44:08 -04:00

4 lines
343 B
Text

MOVEA.L #$A04000,A0 ;load the address $A04000 into A0
MOVE.L A0,D0 ;move the quantity $A04000 into D0
MOVE.B (A0),D0 ;get the 8-bit value stored at memory address $A04000, and store it into the lowest byte of D0.
MOVE.W (4,A0),D1 ;get the 16-bit value stored at memory address $A04004, and store it into the low word of D1.