mirror of
https://github.com/cc65/cc65.git
synced 2025-01-03 16:33:19 +00:00
Use bcc instead of bne in OptNegAX2 to ease optimizations.
This commit is contained in:
parent
4f3a96a535
commit
9c776a24e5
@ -480,7 +480,7 @@ unsigned OptNegAX2 (CodeSeg* S)
|
||||
** eor #$FF
|
||||
** clc
|
||||
** adc #$01
|
||||
** bne L1
|
||||
** bcc L1
|
||||
** inx
|
||||
** L1:
|
||||
**
|
||||
@ -528,8 +528,8 @@ unsigned OptNegAX2 (CodeSeg* S)
|
||||
/* Get the label attached to the insn following the call */
|
||||
L = CS_GenLabel (S, P);
|
||||
|
||||
/* bne L */
|
||||
X = NewCodeEntry (OP65_BNE, AM65_BRA, L->Name, L, E->LI);
|
||||
/* bcc L */
|
||||
X = NewCodeEntry (OP65_BCC, AM65_BRA, L->Name, L, E->LI);
|
||||
CS_InsertEntry (S, X, I+5);
|
||||
|
||||
/* inx */
|
||||
|
@ -155,7 +155,7 @@ unsigned OptNegAX2 (CodeSeg* S);
|
||||
** eor #$FF
|
||||
** clc
|
||||
** adc #$01
|
||||
** bne L1
|
||||
** bcc L1
|
||||
** inx
|
||||
** L1:
|
||||
**
|
||||
|
Loading…
Reference in New Issue
Block a user