Coding style
This commit is contained in:
@@ -1698,9 +1698,8 @@ unsigned OptPtrLoad20 (CodeSeg* S)
|
|||||||
/* Get the next entry */
|
/* Get the next entry */
|
||||||
E[0] = CS_GetEntry (S, I);
|
E[0] = CS_GetEntry (S, I);
|
||||||
|
|
||||||
if (E[0]->OPC == OP65_JSR &&
|
if ((CE_IsCallTo(E[0], "ldax0sp") ||
|
||||||
(strcmp (E[0]->Arg, "ldax0sp") == 0 ||
|
CE_IsCallTo(E[0], "ldaxysp")) &&
|
||||||
strcmp (E[0]->Arg, "ldaxysp") == 0) &&
|
|
||||||
CS_GetEntries (S, E+1, I+1, 2) != 0 &&
|
CS_GetEntries (S, E+1, I+1, 2) != 0 &&
|
||||||
E[1]->OPC == OP65_STA &&
|
E[1]->OPC == OP65_STA &&
|
||||||
strcmp (E[1]->Arg, "ptr1") == 0 &&
|
strcmp (E[1]->Arg, "ptr1") == 0 &&
|
||||||
@@ -1709,11 +1708,9 @@ unsigned OptPtrLoad20 (CodeSeg* S)
|
|||||||
!CS_RangeHasLabel (S, I+1, 2)) {
|
!CS_RangeHasLabel (S, I+1, 2)) {
|
||||||
|
|
||||||
if (strcmp (E[0]->Arg, "ldaxysp") == 0) {
|
if (strcmp (E[0]->Arg, "ldaxysp") == 0) {
|
||||||
xfree(E[0]->Arg);
|
CE_SetArg (E[0], "ldptr1ysp");
|
||||||
E[0]->Arg = xstrdup("ldptr1ysp");
|
|
||||||
} else {
|
} else {
|
||||||
xfree(E[0]->Arg);
|
CE_SetArg (E[0], "ldptr10sp");
|
||||||
E[0]->Arg = xstrdup("ldptr10sp");
|
|
||||||
}
|
}
|
||||||
/* Delete the sta/stx */
|
/* Delete the sta/stx */
|
||||||
CS_DelEntries (S, I+1, 2);
|
CS_DelEntries (S, I+1, 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user