Removed optimizations which break the compiler ones.

This commit is contained in:
IrgendwerA8 2018-05-22 19:10:07 +02:00
parent 808d3ab471
commit 6175271651
4 changed files with 11 additions and 8 deletions

View File

@ -15,11 +15,11 @@
rol ptr1+1
clc
adc ptr1
tay
pha
txa
adc ptr1+1
tax
tya
pla
rts
.endproc

View File

@ -3,6 +3,7 @@
;
; CC65 runtime: Multiply the primary register by 5
;
; Don't touch the Y-register here, the optimizer relies on it!
.export mulax5
.importzp ptr1
@ -17,11 +18,11 @@
rol ptr1+1
clc
adc ptr1
tay
pha
txa
adc ptr1+1
tax
tya
pla
rts
.endproc

View File

@ -4,6 +4,7 @@
;
; CC65 runtime: Multiply the primary register by 7
;
; Don't touch the Y-register here, the optimizer relies on it!
.export mulax7
.importzp ptr1
@ -20,12 +21,12 @@
rol ptr1+1 ; * 8
sec
sbc ptr1
tay
pha
txa
eor #$ff
adc ptr1+1 ; * (8 - 1)
tax
tya
pla
rts
.endproc

View File

@ -4,6 +4,7 @@
;
; CC65 runtime: Multiply the primary register by 9
;
; Don't touch the Y-register here, the optimizer relies on it!
.export mulax9
.importzp ptr1
@ -20,11 +21,11 @@
rol ptr1+1 ; * 8
clc
adc ptr1 ; * (8+1)
tay
pha
txa
adc ptr1+1
tax
tya
pla
rts
.endproc