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:
@@ -1,23 +1,20 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 2003-05-04
|
; Ullrich von Bassewitz, 25.10.2000
|
||||||
;
|
;
|
||||||
; CC65 runtime: Increment the stackpointer by 3
|
; CC65 runtime: Increment the stackpointer by 3
|
||||||
;
|
;
|
||||||
|
|
||||||
.export incsp3
|
.export incsp3
|
||||||
.importzp sp
|
.import addysp
|
||||||
|
|
||||||
.proc incsp3
|
.proc incsp3
|
||||||
|
|
||||||
lda sp
|
ldy #3
|
||||||
clc
|
jmp addysp
|
||||||
adc #3
|
|
||||||
sta sp
|
|
||||||
bcs @L1
|
|
||||||
rts
|
|
||||||
|
|
||||||
@L1: inc sp+1
|
|
||||||
rts
|
|
||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,23 +1,20 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 2003-05-04
|
; Ullrich von Bassewitz, 25.10.2000
|
||||||
;
|
;
|
||||||
; CC65 runtime: Increment the stackpointer by 4
|
; CC65 runtime: Increment the stackpointer by 4
|
||||||
;
|
;
|
||||||
|
|
||||||
.export incsp4
|
.export incsp4
|
||||||
.importzp sp
|
.import addysp
|
||||||
|
|
||||||
.proc incsp4
|
.proc incsp4
|
||||||
|
|
||||||
lda sp
|
ldy #4
|
||||||
clc
|
jmp addysp
|
||||||
adc #4
|
|
||||||
sta sp
|
|
||||||
bcs @L1
|
|
||||||
rts
|
|
||||||
|
|
||||||
@L1: inc sp+1
|
|
||||||
rts
|
|
||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,20 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 2003-05-04
|
; Ullrich von Bassewitz, 25.10.2000
|
||||||
;
|
;
|
||||||
; CC65 runtime: Increment the stackpointer by 5
|
; CC65 runtime: Increment the stackpointer by 5
|
||||||
;
|
;
|
||||||
|
|
||||||
.export incsp5
|
.export incsp5
|
||||||
.importzp sp
|
.import addysp
|
||||||
|
|
||||||
.proc incsp5
|
.proc incsp5
|
||||||
|
|
||||||
lda sp
|
ldy #5
|
||||||
clc
|
jmp addysp
|
||||||
adc #5
|
|
||||||
sta sp
|
|
||||||
bcs @L1
|
|
||||||
rts
|
|
||||||
|
|
||||||
@L1: inc sp+1
|
|
||||||
rts
|
|
||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,20 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 2003-05-04
|
; Ullrich von Bassewitz, 25.10.2000
|
||||||
;
|
;
|
||||||
; CC65 runtime: Increment the stackpointer by 6
|
; CC65 runtime: Increment the stackpointer by 6
|
||||||
;
|
;
|
||||||
|
|
||||||
.export incsp6
|
.export incsp6
|
||||||
.importzp sp
|
.import addysp
|
||||||
|
|
||||||
.proc incsp6
|
.proc incsp6
|
||||||
|
|
||||||
lda sp
|
ldy #6
|
||||||
clc
|
jmp addysp
|
||||||
adc #6
|
|
||||||
sta sp
|
|
||||||
bcs @L1
|
|
||||||
rts
|
|
||||||
|
|
||||||
@L1: inc sp+1
|
|
||||||
rts
|
|
||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,20 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 2003-05-04
|
; Ullrich von Bassewitz, 25.10.2000
|
||||||
;
|
;
|
||||||
; CC65 runtime: Increment the stackpointer by 7
|
; CC65 runtime: Increment the stackpointer by 7
|
||||||
;
|
;
|
||||||
|
|
||||||
.export incsp7
|
.export incsp7
|
||||||
.importzp sp
|
.import addysp
|
||||||
|
|
||||||
.proc incsp7
|
.proc incsp7
|
||||||
|
|
||||||
lda sp
|
ldy #7
|
||||||
clc
|
jmp addysp
|
||||||
adc #7
|
|
||||||
sta sp
|
|
||||||
bcs @L1
|
|
||||||
rts
|
|
||||||
|
|
||||||
@L1: inc sp+1
|
|
||||||
rts
|
|
||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,17 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 2003-05-04
|
; Ullrich von Bassewitz, 25.10.2000
|
||||||
;
|
;
|
||||||
; CC65 runtime: Increment the stackpointer by 8
|
; CC65 runtime: Increment the stackpointer by 8
|
||||||
;
|
;
|
||||||
|
|
||||||
.export incsp8
|
.export incsp8
|
||||||
.importzp sp
|
.import addysp
|
||||||
|
|
||||||
.proc incsp8
|
.proc incsp8
|
||||||
|
|
||||||
lda sp
|
ldy #8
|
||||||
clc
|
jmp addysp
|
||||||
adc #8
|
|
||||||
sta sp
|
|
||||||
bcs @L1
|
|
||||||
rts
|
|
||||||
|
|
||||||
@L1: inc sp+1
|
|
||||||
rts
|
|
||||||
|
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user