Fixed problem with earlier change
git-svn-id: svn://svn.cc65.org/cc65/trunk@1445 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -1054,10 +1054,10 @@ unsigned OptTransfers (CodeSeg* S)
|
|||||||
(N->Info & OF_XFR) != 0) {
|
(N->Info & OF_XFR) != 0) {
|
||||||
|
|
||||||
/* Check if it's a transfer and back */
|
/* Check if it's a transfer and back */
|
||||||
if ((E->OPC == OP65_TAX && N->OPC == OP65_TXA && !RegXUsed (S, I+1)) ||
|
if ((E->OPC == OP65_TAX && N->OPC == OP65_TXA && !RegXUsed (S, I+2)) ||
|
||||||
(E->OPC == OP65_TAY && N->OPC == OP65_TYA && !RegYUsed (S, I+1)) ||
|
(E->OPC == OP65_TAY && N->OPC == OP65_TYA && !RegYUsed (S, I+2)) ||
|
||||||
(E->OPC == OP65_TXA && N->OPC == OP65_TAX && !RegAUsed (S, I+1)) ||
|
(E->OPC == OP65_TXA && N->OPC == OP65_TAX && !RegAUsed (S, I+2)) ||
|
||||||
(E->OPC == OP65_TYA && N->OPC == OP65_TAY && !RegAUsed (S, I+1))) {
|
(E->OPC == OP65_TYA && N->OPC == OP65_TAY && !RegAUsed (S, I+2))) {
|
||||||
|
|
||||||
/* If the next insn is a conditional branch, check if the insn
|
/* If the next insn is a conditional branch, check if the insn
|
||||||
* preceeding the first xfr will set the flags right, otherwise we
|
* preceeding the first xfr will set the flags right, otherwise we
|
||||||
|
|||||||
Reference in New Issue
Block a user