bpushbsp.o \
call.o \
compl.o \
- dec.o \
+ decax1.o \
+ decax2.o \
+ decaxy.o \
decsp1.o \
decsp2.o \
decsp3.o \
ge.o \
gt.o \
icmp.o \
- inc.o \
+ incax1.o \
+ incax2.o \
+ incax3.o \
+ incax5.o \
+ incax6.o \
+ incax7.o \
+ incax8.o \
+ incaxy.o \
incsp1.o \
incsp2.o \
incsp3.o \
+++ /dev/null
-;
-; Ullrich von Bassewitz, 29.12.1999
-;
-; CC65 runtime: Decrement ax by constant or value in Y
-;
-
- .export decaxy
- .export decax2, decax1
- .importzp tmp1
-
-
-decaxy: sty tmp1
- sec
- sbc tmp1
- bcs *+3
- dex
- rts
-
-decax2: sec
- sbc #2
- bcs *+3
- dex
- rts
-
-decax1: sec
- sbc #1
- bcs *+3
- dex
- rts
-
-
--- /dev/null
+;
+; Ullrich von Bassewitz, 29.12.1999
+;
+; CC65 runtime: Decrement ax by 1
+;
+
+ .export decax1
+
+ .macpack generic
+
+.proc decax1
+
+ sub #1
+ bcs @L9
+ dex
+@L9: rts
+
+.endproc
--- /dev/null
+;
+; Ullrich von Bassewitz, 29.12.1999
+;
+; CC65 runtime: Decrement ax by 2
+;
+
+ .export decax2
+
+ .macpack generic
+
+.proc decax2
+
+ sub #2
+ bcs @L9
+ dex
+@L9: rts
+
+.endproc
--- /dev/null
+;
+; Ullrich von Bassewitz, 29.12.1999
+;
+; CC65 runtime: Decrement ax by value in Y
+;
+
+ .export decaxy
+ .importzp tmp1
+
+ .macpack generic
+
+.proc decaxy
+
+ sty tmp1
+ sub tmp1
+ bcs @L9
+ dex
+@L9: rts
+
+.endproc
+
+++ /dev/null
-;
-; Ullrich von Bassewitz, 05.08.1998
-;
-; CC65 runtime: Increment ax by constant or value in Y
-;
-
- .export incaxy
- .export incax8, incax7, incax6, incax5
- .export incax4, incax3, incax2, incax1
- .importzp tmp1
-
-
-incax8: ldy #8
- bne incaxy
-
-incax7: ldy #7
- bne incaxy
-
-incax6: ldy #6
- bne incaxy
-
-incax5: ldy #5
- bne incaxy
-
-incax4: ldy #4
- bne incaxy
-
-incax3: ldy #3
-; bne incaxy
-incaxy: sty tmp1
- clc
- adc tmp1
- bcc *+3
- inx
- rts
-
-incax2: clc
- adc #2
- bcc *+3
- inx
- rts
-
-incax1: clc
- adc #1
- bcc *+3
- inx
- rts
-
--- /dev/null
+;
+; Ullrich von Bassewitz, 05.08.1998
+;
+; CC65 runtime: Increment ax by 1
+;
+
+ .export incax1
+
+ .macpack generic
+
+.proc incax1
+
+ add #1
+ bcc @L9
+ inx
+@L9: rts
+
+.endproc
--- /dev/null
+;
+; Ullrich von Bassewitz, 05.08.1998
+;
+; CC65 runtime: Increment ax by 2
+;
+
+ .export incax2
+
+ .macpack generic
+
+.proc incax2
+
+ add #2
+ bcc @L9
+ inx
+@L9: rts
+
+.endproc
--- /dev/null
+;
+; Ullrich von Bassewitz, 05.08.1998
+;
+; CC65 runtime: Increment ax by 3
+;
+
+ .export incax3
+ .import incaxy
+
+.proc incax3
+
+ lda #3
+ jmp incaxy
+
+.endproc
+
--- /dev/null
+;
+; Ullrich von Bassewitz, 05.08.1998
+;
+; CC65 runtime: Increment ax by 5
+;
+
+ .export incax5
+ .import incaxy
+
+.proc incax5
+
+ lda #5
+ jmp incaxy
+
+.endproc
+
--- /dev/null
+;
+; Ullrich von Bassewitz, 05.08.1998
+;
+; CC65 runtime: Increment ax by 6
+;
+
+ .export incax6
+ .import incaxy
+
+.proc incax6
+
+ lda #6
+ jmp incaxy
+
+.endproc
+
--- /dev/null
+;
+; Ullrich von Bassewitz, 05.08.1998
+;
+; CC65 runtime: Increment ax by 7
+;
+
+ .export incax7
+ .import incaxy
+
+.proc incax7
+
+ lda #7
+ jmp incaxy
+
+.endproc
+
--- /dev/null
+;
+; Ullrich von Bassewitz, 05.08.1998
+;
+; CC65 runtime: Increment ax by 8
+;
+
+ .export incax8
+ .import incaxy
+
+.proc incax8
+
+ lda #8
+ jmp incaxy
+
+.endproc
+
--- /dev/null
+;
+; Ullrich von Bassewitz, 05.08.1998
+;
+; CC65 runtime: Increment ax by valie in y
+;
+
+ .export incaxy, incax4
+ .importzp tmp1
+ .macpack generic
+
+incax4: ldy #4
+incaxy: sty tmp1
+ add tmp1
+ bcc @L9
+ inx
+@L9: rts
+