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:
parent
faea6dd29c
commit
43f59de557
6 changed files with 45 additions and 70 deletions
|
@ -1,23 +1,20 @@
|
|||
;
|
||||
; Ullrich von Bassewitz, 2003-05-04
|
||||
; Ullrich von Bassewitz, 25.10.2000
|
||||
;
|
||||
; CC65 runtime: Increment the stackpointer by 3
|
||||
;
|
||||
|
||||
.export incsp3
|
||||
.importzp sp
|
||||
.import addysp
|
||||
|
||||
.proc incsp3
|
||||
|
||||
lda sp
|
||||
clc
|
||||
adc #3
|
||||
sta sp
|
||||
bcs @L1
|
||||
rts
|
||||
|
||||
@L1: inc sp+1
|
||||
rts
|
||||
ldy #3
|
||||
jmp addysp
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,23 +1,20 @@
|
|||
;
|
||||
; Ullrich von Bassewitz, 2003-05-04
|
||||
; Ullrich von Bassewitz, 25.10.2000
|
||||
;
|
||||
; CC65 runtime: Increment the stackpointer by 4
|
||||
;
|
||||
|
||||
.export incsp4
|
||||
.importzp sp
|
||||
.import addysp
|
||||
|
||||
.proc incsp4
|
||||
|
||||
lda sp
|
||||
clc
|
||||
adc #4
|
||||
sta sp
|
||||
bcs @L1
|
||||
rts
|
||||
|
||||
@L1: inc sp+1
|
||||
rts
|
||||
ldy #4
|
||||
jmp addysp
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,24 +1,20 @@
|
|||
;
|
||||
; Ullrich von Bassewitz, 2003-05-04
|
||||
; Ullrich von Bassewitz, 25.10.2000
|
||||
;
|
||||
; CC65 runtime: Increment the stackpointer by 6
|
||||
;
|
||||
|
||||
.export incsp6
|
||||
.importzp sp
|
||||
.import addysp
|
||||
|
||||
.proc incsp6
|
||||
|
||||
lda sp
|
||||
clc
|
||||
adc #6
|
||||
sta sp
|
||||
bcs @L1
|
||||
rts
|
||||
|
||||
@L1: inc sp+1
|
||||
rts
|
||||
ldy #6
|
||||
jmp addysp
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,24 +1,20 @@
|
|||
;
|
||||
; Ullrich von Bassewitz, 2003-05-04
|
||||
; Ullrich von Bassewitz, 25.10.2000
|
||||
;
|
||||
; CC65 runtime: Increment the stackpointer by 7
|
||||
;
|
||||
|
||||
.export incsp7
|
||||
.importzp sp
|
||||
.import addysp
|
||||
|
||||
.proc incsp7
|
||||
|
||||
lda sp
|
||||
clc
|
||||
adc #7
|
||||
sta sp
|
||||
bcs @L1
|
||||
rts
|
||||
|
||||
@L1: inc sp+1
|
||||
rts
|
||||
ldy #7
|
||||
jmp addysp
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,24 +1,17 @@
|
|||
;
|
||||
; Ullrich von Bassewitz, 2003-05-04
|
||||
; Ullrich von Bassewitz, 25.10.2000
|
||||
;
|
||||
; CC65 runtime: Increment the stackpointer by 8
|
||||
;
|
||||
|
||||
.export incsp8
|
||||
.importzp sp
|
||||
.import addysp
|
||||
|
||||
.proc incsp8
|
||||
|
||||
lda sp
|
||||
clc
|
||||
adc #8
|
||||
sta sp
|
||||
bcs @L1
|
||||
rts
|
||||
|
||||
@L1: inc sp+1
|
||||
rts
|
||||
ldy #8
|
||||
jmp addysp
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue