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

@@ -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