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

8 lines
176 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
MyFunction:
LINK A6,#-16 ;create a stack frame of 16 bytes. Now you can safely write to (SP+0) thru (SP+15).
;;;; your code goes here.
UNLK A6 ;free the stack frame
RTS