Array: Difference between revisions
→Assembly
Puppydrum64 (talk | contribs) m (→Assembly) |
Puppydrum64 (talk | contribs) |
||
Line 51:
<lang 68000devpac>;68000 Assembly example
LEA myArray,A0 ;loading a labeled array name like this loads the address of the zeroth element
MOVE.W #4*5*1,D1 ;five elements per row, so to get the 4th row we multiply the row number by the elements per row,
;times the number of bytes per element
|