1
0
mirror of https://github.com/cc65/cc65.git synced 2026-01-27 04:16:12 +00:00
Files
cc65/libsrc/runtime/enter.s
2025-06-22 21:34:41 +00:00

19 lines
354 B
ArmAsm

;
; Ullrich von Bassewitz, 06.08.1998
;
; CC65 runtime: function prologue
;
.export enter
.importzp c_sp
enter: tya ; get arg size
ldy c_sp
bne L1
dec c_sp+1
L1: dec c_sp
ldy #0
sta (c_sp),y ; Store the arg count
rts