Replaced the incsp functions by faster (but slightly larger) versions

git-svn-id: svn://svn.cc65.org/cc65/trunk@2146 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-05-04 22:34:16 +00:00
parent cfe7a8c246
commit 1cdb90926a
6 changed files with 70 additions and 45 deletions

View File

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