RosettaCodeData/Task/Memory-allocation/68000-Assembly/memory-allocation-1.68000
2025-02-27 18:35:13 -05:00

7 lines
198 B
Text

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