RosettaCodeData/Task/Arrays/68000-Assembly/arrays-6.68000
2023-07-01 13:44:08 -04:00

7 lines
264 B
Text

myArray equ $240000
;load element 4
LEA myArray,A0 ;load the base address of the array into A0
MOVE.W #4,D0 ;load the desired offset into D0
LSL.W #2,D0 ;this array is intended for 32-bit values.
MOVE.L (A0,D0),D1 ;load the 4th element into D1.