Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->LINK

LINK   Link and Allocate

Compatibility: 68000, 68010, 68020 and CPU32 families.


An -> SP@- : SP -> An : SP + d -> SP


Assembler Syntax:   LINK An,#<displacement>


where the displacement is a sign extended 16 bit value


Size:  Word, Long 1

1   68020 only

Pushes the contents of the specified address register onto the stack.  Then loads the updated stack pointer into the address register.  Finally, adds the displacement value to the stack pointer.  The user should specify a negative displacement in order to allocate stack area.

Condition Codes: Not Affected


See also UNLK.