mirror of
https://github.com/cc65/cc65.git
synced 2025-01-29 06:30:30 +00:00
Removed optimizations which break the compiler ones.
This commit is contained in:
parent
808d3ab471
commit
6175271651
@ -15,11 +15,11 @@
|
||||
rol ptr1+1
|
||||
clc
|
||||
adc ptr1
|
||||
tay
|
||||
pha
|
||||
txa
|
||||
adc ptr1+1
|
||||
tax
|
||||
tya
|
||||
pla
|
||||
rts
|
||||
|
||||
.endproc
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user