1
0
mirror of https://github.com/cc65/cc65.git synced 2026-01-27 04:16:12 +00:00
Files
cc65/libsrc/runtime/decsp4.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 4
;
.export decsp4
.importzp c_sp
.proc decsp4
lda c_sp
sec
sbc #4
sta c_sp
bcc @L1
rts
@L1: dec c_sp+1
rts
.endproc