1
0
mirror of https://github.com/cc65/cc65.git synced 2026-01-26 13:16:42 +00:00
Files
cc65/libsrc/runtime/decsp2.s
2025-06-04 06:37:59 +00:00

28 lines
324 B
ArmAsm

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