Use bcc instead of bne in OptNegAX2 to ease optimizations.
This commit is contained in:
@@ -480,7 +480,7 @@ unsigned OptNegAX2 (CodeSeg* S)
|
|||||||
** eor #$FF
|
** eor #$FF
|
||||||
** clc
|
** clc
|
||||||
** adc #$01
|
** adc #$01
|
||||||
** bne L1
|
** bcc L1
|
||||||
** inx
|
** inx
|
||||||
** L1:
|
** L1:
|
||||||
**
|
**
|
||||||
@@ -528,8 +528,8 @@ unsigned OptNegAX2 (CodeSeg* S)
|
|||||||
/* Get the label attached to the insn following the call */
|
/* Get the label attached to the insn following the call */
|
||||||
L = CS_GenLabel (S, P);
|
L = CS_GenLabel (S, P);
|
||||||
|
|
||||||
/* bne L */
|
/* bcc L */
|
||||||
X = NewCodeEntry (OP65_BNE, AM65_BRA, L->Name, L, E->LI);
|
X = NewCodeEntry (OP65_BCC, AM65_BRA, L->Name, L, E->LI);
|
||||||
CS_InsertEntry (S, X, I+5);
|
CS_InsertEntry (S, X, I+5);
|
||||||
|
|
||||||
/* inx */
|
/* inx */
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ unsigned OptNegAX2 (CodeSeg* S);
|
|||||||
** eor #$FF
|
** eor #$FF
|
||||||
** clc
|
** clc
|
||||||
** adc #$01
|
** adc #$01
|
||||||
** bne L1
|
** bcc L1
|
||||||
** inx
|
** inx
|
||||||
** L1:
|
** L1:
|
||||||
**
|
**
|
||||||
|
|||||||
Reference in New Issue
Block a user