Redid the last change, because it was bug (A must be saved across the call)

git-svn-id: svn://svn.cc65.org/cc65/trunk@2157 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-05-13 10:00:39 +00:00
parent faea6dd29c
commit 43f59de557
6 changed files with 45 additions and 70 deletions

View File

@@ -1,24 +1,20 @@
;
; Ullrich von Bassewitz, 2003-05-04
; Ullrich von Bassewitz, 25.10.2000
;
; CC65 runtime: Increment the stackpointer by 5
;
.export incsp5
.importzp sp
.import addysp
.proc incsp5
lda sp
clc
adc #5
sta sp
bcs @L1
rts
@L1: inc sp+1
rts
ldy #5
jmp addysp
.endproc