Coding style

This commit is contained in:
Colin Leroy-Mira
2025-07-20 16:14:35 +02:00
parent 8ba1cef550
commit 8a793796d7

View File

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