[ENGN3213 Home]
The most basic instruction for moving data
is the MOVE instruction. It has a number of variants,
such as MOVEA for moving data into an address register.
Other useful data movement instructions include
LEA and PEA.
-
LEA $0010FFFF,A5 - loads the address $0010FFFF
into A5.
-
LEA $12(A0,D4.L),A5 - loads the address
$12 + (A0) + (D4) into A5.
-
PEA SUM - pushes the effective address of SUM onto the stack,
where SUM is a label.
ANU Engineering - ENGN3213