Memory allocation: Difference between revisions

Content added Content deleted
Line 100: Line 100:
<lang 68000devpac>MOVE.L An,-(SP)
<lang 68000devpac>MOVE.L An,-(SP)
MOVEA.L SP,An
MOVEA.L SP,An
SUBA.L #disp,SP</lang>
LEA (-disp,SP),SP</lang>


You can use negative offsets of <code>An</code> or positive offsets of <code>SP</code> to refer to the same memory region.
You can use negative offsets of <code>An</code> or positive offsets of <code>SP</code> to refer to the same memory region.


=={{header|Action!}}==
=={{header|Action!}}==