From 829d2860e8f946a088218fa5cde2e07067e0dfa6 Mon Sep 17 00:00:00 2001 From: Brooke Vibber Date: Thu, 26 Dec 2024 12:04:01 -0800 Subject: [PATCH] :P --- imul8xe.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/imul8xe.s b/imul8xe.s index d12f53f..15adf64 100644 --- a/imul8xe.s +++ b/imul8xe.s @@ -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