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