mirror of
https://github.com/cc65/cc65.git
synced 2025-08-15 21:27:43 +00:00
Fixed another bug with help of Greg King
git-svn-id: svn://svn.cc65.org/cc65/trunk@3681 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -309,14 +309,14 @@ unsigned OptAdd3 (CodeSeg* S)
|
|||||||
unsigned I = 0;
|
unsigned I = 0;
|
||||||
while (I < CS_GetEntryCount (S)) {
|
while (I < CS_GetEntryCount (S)) {
|
||||||
|
|
||||||
CodeEntry* L[4];
|
CodeEntry* L[5];
|
||||||
|
|
||||||
/* Get next entry */
|
/* Get next entry */
|
||||||
L[0] = CS_GetEntry (S, I);
|
L[0] = CS_GetEntry (S, I);
|
||||||
|
|
||||||
/* Check for the sequence */
|
/* Check for the sequence */
|
||||||
if (CE_IsCallTo (L[0], "pushax") &&
|
if (CE_IsCallTo (L[0], "pushax") &&
|
||||||
CS_GetEntries (S, L+1, I+1, 3) &&
|
CS_GetEntries (S, L+1, I+1, 5) &&
|
||||||
!CS_RangeHasLabel (S, I+1, 3) &&
|
!CS_RangeHasLabel (S, I+1, 3) &&
|
||||||
L[1]->OPC == OP65_LDX &&
|
L[1]->OPC == OP65_LDX &&
|
||||||
CE_IsKnownImm (L[1], 0) &&
|
CE_IsKnownImm (L[1], 0) &&
|
||||||
|
Reference in New Issue
Block a user