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

Use bcc instead of bne in OptNegAX2 to ease optimizations.

This commit is contained in:
acqn 2020-09-18 20:22:58 +08:00 committed by Oliver Schmidt
parent 4f3a96a535
commit 9c776a24e5
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -155,7 +155,7 @@ unsigned OptNegAX2 (CodeSeg* S);
** eor #$FF
** clc
** adc #$01
** bne L1
** bcc L1
** inx
** L1:
**