mirror of
https://github.com/cc65/cc65.git
synced 2024-10-07 07:59:27 +00:00
Make the last change more generic
git-svn-id: svn://svn.cc65.org/cc65/trunk@681 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
8e5d8b9e4f
commit
2d77e8b35f
@ -1765,19 +1765,19 @@ static void OptLoads (void)
|
|||||||
|
|
||||||
/* Search for
|
/* Search for
|
||||||
*
|
*
|
||||||
* adc #xx
|
* adc xx
|
||||||
* bcc *+3
|
* bcc *+3
|
||||||
* inx
|
* inx
|
||||||
*
|
*
|
||||||
* Remove the handling of the high byte if the X register
|
* Remove the handling of the high byte if the X register
|
||||||
* is not used any more
|
* is not used any more
|
||||||
*/
|
*/
|
||||||
} else if (LineMatch (L, "\tadc\t#") &&
|
} else if (LineMatch (L, "\tadc\t") &&
|
||||||
GetNextCodeLines (L, L2, 3) &&
|
GetNextCodeLines (L, L2, 3) &&
|
||||||
LineFullMatch (L2[0], "\tbcc\t*+3") &&
|
LineFullMatch (L2[0], "\tbcc\t*+3") &&
|
||||||
LineFullMatch (L2[1], "\tinx") &&
|
LineFullMatch (L2[1], "\tinx") &&
|
||||||
L2[1]->Next &&
|
L2[1]->Next &&
|
||||||
IsHint (L2[1]->Next, "x:!") &&
|
IsHint (L2[1]->Next, "x:!") &&
|
||||||
!RegXUsed (L2[1])) {
|
!RegXUsed (L2[1])) {
|
||||||
|
|
||||||
/* Delete the lines */
|
/* Delete the lines */
|
||||||
@ -1785,14 +1785,14 @@ static void OptLoads (void)
|
|||||||
|
|
||||||
/* Search for
|
/* Search for
|
||||||
*
|
*
|
||||||
* sbc #xx
|
* sbc xx
|
||||||
* bcs *+3
|
* bcs *+3
|
||||||
* dex
|
* dex
|
||||||
*
|
*
|
||||||
* Remove the handling of the high byte if the X register
|
* Remove the handling of the high byte if the X register
|
||||||
* is not used any more
|
* is not used any more
|
||||||
*/
|
*/
|
||||||
} else if (LineMatch (L, "\tsbc\t#") &&
|
} else if (LineMatch (L, "\tsbc\t") &&
|
||||||
GetNextCodeLines (L, L2, 3) &&
|
GetNextCodeLines (L, L2, 3) &&
|
||||||
LineFullMatch (L2[0], "\tbcs\t*+3") &&
|
LineFullMatch (L2[0], "\tbcs\t*+3") &&
|
||||||
LineFullMatch (L2[1], "\tdex") &&
|
LineFullMatch (L2[1], "\tdex") &&
|
||||||
|
Loading…
Reference in New Issue
Block a user