:P
This commit is contained in:
parent
f996c3cbcd
commit
829d2860e8
1 changed files with 3 additions and 2 deletions
|
@ -12,6 +12,7 @@ bankswitch:
|
||||||
.endrepeat
|
.endrepeat
|
||||||
|
|
||||||
; 58-77 cycles
|
; 58-77 cycles
|
||||||
|
; clobbers x, y, dest to dest + 3
|
||||||
.macro imul8xe dest, arg1, arg2
|
.macro imul8xe dest, arg1, arg2
|
||||||
.local done
|
.local done
|
||||||
.local output
|
.local output
|
||||||
|
@ -54,10 +55,10 @@ bankswitch:
|
||||||
|
|
||||||
; check that 1 bit we skipped to fit into space
|
; check that 1 bit we skipped to fit into space
|
||||||
lda arg1 ; 3 cyc
|
lda arg1 ; 3 cyc
|
||||||
and $#1 ; 2 cyc
|
and #1 ; 2 cyc
|
||||||
beq done ; 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
|
clc ; 2 cyc
|
||||||
lda arg2 ; 3 cyc
|
lda arg2 ; 3 cyc
|
||||||
adc output ; 3 cyc
|
adc output ; 3 cyc
|
||||||
|
|
Loading…
Reference in a new issue