1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 07:29:33 +00:00

Don't set carry when already set.

This commit is contained in:
Piotr Fusik 2019-11-05 20:16:21 +01:00 committed by Oliver Schmidt
parent 2bec637637
commit 421c3f2b4f

View File

@ -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