1
0
mirror of https://github.com/cc65/cc65.git synced 2026-03-11 08:41:58 +00:00
Files
cc65/libsrc/runtime/subysp.s
2025-06-04 06:37:59 +00:00

25 lines
359 B
ArmAsm

;
; Piotr Fusik, 24.10.2003
; originally by Ullrich von Bassewitz
;
; CC65 runtime: Decrement the stackpointer by value in y
;
.export subysp
.importzp c_sp
.proc subysp
tya
eor #$ff
sec
adc c_sp
sta c_sp
bcs @L1
dec c_sp+1
@L1: rts
.endproc