1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-28 21:29:04 +00:00
cc65/libsrc/runtime/incsp3.s

24 lines
303 B
ArmAsm
Raw Normal View History

;
; Ullrich von Bassewitz, 2003-05-04
;
; CC65 runtime: Increment the stackpointer by 3
;
.export incsp3
.importzp sp
.proc incsp3
lda sp
clc
adc #3
sta sp
bcs @L1
rts
@L1: inc sp+1
rts
.endproc