Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->LINK

LINK   Link and Allocate


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

    
Assembler Syntax:LINK An,#<displacement>
LINK.W An,#<displacement>

where the displacement is a sign extended 16 bit value


Size:  Word

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.