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:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user