diff --git a/wip-hugo/routines/arithmatic/mult.s b/wip-hugo/routines/arithmatic/mult.s index b0c7056..86473c2 100644 --- a/wip-hugo/routines/arithmatic/mult.s +++ b/wip-hugo/routines/arithmatic/mult.s @@ -12,15 +12,15 @@ .include "arithmatic.inc" LDA #$00 + JMP start loop: ASL VAL_B +start: ROR VAL_A; add to awnser if VAL_A is odd BCC loop - - LSR VAL_B + CLC ADC VAL_B; add val_b because val_a was odd. - ASL VAL_B - + LDX VAL_B BNE loop endloop: RTS