;
-; 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
+
+
+
+
;
-; 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
+
+
+
+
;
-; 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
-
+
+
+
+
;
-; 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
-
+
+
+
+
;
-; 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
-
+
+
+
+
;
-; 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
-
+