Don't set carry when already set.
This commit is contained in:
committed by
Oliver Schmidt
parent
2bec637637
commit
421c3f2b4f
@@ -1,6 +1,7 @@
|
|||||||
;
|
;
|
||||||
; 2010-11-02, Ullrich von Bassewitz
|
; 2010-11-02, Ullrich von Bassewitz
|
||||||
; 2014-09-10, Greg King
|
; 2014-09-10, Greg King
|
||||||
|
; 2019-11-05, Piotr Fusik
|
||||||
;
|
;
|
||||||
; CC65 runtime: 8x8 => 16 signed multiplication
|
; CC65 runtime: 8x8 => 16 signed multiplication
|
||||||
;
|
;
|
||||||
@@ -59,7 +60,8 @@ NegMult:
|
|||||||
bnz @L2 ; Branch always
|
bnz @L2 ; Branch always
|
||||||
|
|
||||||
@L0: tya ; Subtract current multiplicand
|
@L0: tya ; Subtract current multiplicand
|
||||||
sub ptr3
|
; sec
|
||||||
|
sbc ptr3
|
||||||
tay
|
tay
|
||||||
txa
|
txa
|
||||||
sbc ptr3+1
|
sbc ptr3+1
|
||||||
|
|||||||
Reference in New Issue
Block a user