From 54a1c6addddd28cf71dd52f28be1a26b9e80ead4 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Sun, 8 Mar 2020 13:07:51 +0100 Subject: [PATCH] partial fix for multiplication breakage after rework --- c64/basic/math/mul_FAC2_FAC1.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/c64/basic/math/mul_FAC2_FAC1.s b/c64/basic/math/mul_FAC2_FAC1.s index 39fb256e..7f4c1ae0 100644 --- a/c64/basic/math/mul_FAC2_FAC1.s +++ b/c64/basic/math/mul_FAC2_FAC1.s @@ -60,7 +60,7 @@ mul_FAC2_FAC1: bcs !+ lda RESHO+1 sbc #$00 - bcs set_FAC1_zero + bcc set_FAC1_zero sta RESHO+1 !: lda RESHO+1 @@ -72,6 +72,7 @@ mul_FAC2_FAC1: // Multiply the mantissas jsr muldiv_RESHO_set_0 + clc // XXX maybe we should preserve .X on stack? this will not cost us too much