Files
cc65/libsrc/runtime/decsp7.s
2025-06-04 02:06:40 +00:00

26 lines
318 B
ArmAsm

;
; Ullrich von Bassewitz, 25.10.2000
;
; CC65 runtime: Decrement the stackpointer by 7
;
.export decsp7
.importzp spc
.proc decsp7
lda spc
sec
sbc #7
sta spc
bcc @L1
rts
@L1: dec spc+1
rts
.endproc