[ENGN3213 Home]
The address of the data operand is written in the instruction.
-
MOVE.L D0,$1234 - the contents of data register D0 is copied to memory
location $1234 (locations $1234, $1235, $1236 and $1237, are used).
-
MOVE.W $1234,D0 - the word beginning at memory location $1234 is copied
into the lower order word of data register D0 (the high order word of D0 is
not changed).
The 68000 supports two versions of absolute addressing:
absolute short, and absolute long.
To create position independent code, absolute addressing should
be avoided (unless referring to fixed addresses such as i/o).
[ENGN3213 Home]
ANU Engineering - ENGN3213