RosettaCodeData/Task/Memory-allocation/68000-Assembly/memory-allocation-1.68000

8 lines
198 B
Plaintext

MyFunction:
LINK A6,#-16 ;create a stack frame of 16 bytes. Now you can safely write to anywhere from (SP+0) to (SP+15) inclusive.
;;;; your code goes here.
UNLK A6 ;free the stack frame
RTS