Blob Blame History Raw
From 421c3f2b4fef1896316b0d8b0227727c50071fdb Mon Sep 17 00:00:00 2001
From: Piotr Fusik <fox@scene.pl>
Date: Tue, 5 Nov 2019 20:16:21 +0100
Subject: [PATCH 088/170] Don't set carry when already set.

---
 libsrc/runtime/imul8x8r16.s | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libsrc/runtime/imul8x8r16.s b/libsrc/runtime/imul8x8r16.s
index e1aea30a..72e6d03a 100644
--- a/libsrc/runtime/imul8x8r16.s
+++ b/libsrc/runtime/imul8x8r16.s
@@ -1,6 +1,7 @@
 ;
 ; 2010-11-02, Ullrich von Bassewitz
 ; 2014-09-10, Greg King
+; 2019-11-05, Piotr Fusik
 ;
 ; CC65 runtime: 8x8 => 16 signed multiplication
 ;
@@ -59,7 +60,8 @@ NegMult:
         bnz     @L2             ; Branch always
 
 @L0:    tya                     ; Subtract current multiplicand
-        sub     ptr3
+;       sec
+        sbc     ptr3
         tay
         txa
         sbc     ptr3+1
-- 
2.26.0