next up previous contents index

[ENGN3213 Home]

Address Register Indirect with Predecrement

Similar to the previous mode, except that the address is decremented before the data transfer.

These auto modes are very usefuuul for lists, tables, arrays, and stacks.

Stack operation. For stacks growing into lower memory: PUSH - predecrementing, PULL - postdecrementing.

This pushes a longword and then a word onto the stack:

MOVE.L D0,-(A7)
MOVE.W D1,-(A7)

This pulls the word item from the stack:

MOVE.W (A7)+,D3


next up previous contents index

[ENGN3213 Home]

ANU Engineering - ENGN3213