xe #1

Merged
brooke merged 10 commits from xe into main 2024-12-28 02:40:02 +00:00
Showing only changes of commit 829d2860e8 - Show all commits

View file

@ -12,6 +12,7 @@ bankswitch:
.endrepeat
; 58-77 cycles
; clobbers x, y, dest to dest + 3
.macro imul8xe dest, arg1, arg2
.local done
.local output
@ -54,10 +55,10 @@ bankswitch:
; check that 1 bit we skipped to fit into space
lda arg1 ; 3 cyc
and $#1 ; 2 cyc
and #1 ; 2 cyc
beq done ; 2 cyc
; add the second param one last tie for the skipped bit
; add the second param one last time for the skipped bit
clc ; 2 cyc
lda arg2 ; 3 cyc
adc output ; 3 cyc