mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@841 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
adb0ac070a
commit
185bb4875f
@ -690,8 +690,9 @@ static unsigned OptAdd2 (CodeSeg* S)
|
|||||||
!CE_HasLabel (L[5]) &&
|
!CE_HasLabel (L[5]) &&
|
||||||
L[6]->OPC == OP65_JSR &&
|
L[6]->OPC == OP65_JSR &&
|
||||||
strcmp (L[6]->Arg, "addeqysp") == 0 &&
|
strcmp (L[6]->Arg, "addeqysp") == 0 &&
|
||||||
!CE_HasLabel (L[6])) {
|
!CE_HasLabel (L[6]) &&
|
||||||
|
(GetRegInfo (S, I+7) & REG_AX) == 0) {
|
||||||
|
|
||||||
char Buf [20];
|
char Buf [20];
|
||||||
CodeEntry* X;
|
CodeEntry* X;
|
||||||
int Offs;
|
int Offs;
|
||||||
@ -2015,9 +2016,8 @@ static unsigned OptPtrLoad2 (CodeSeg* S)
|
|||||||
!CE_HasLabel (L[6]) &&
|
!CE_HasLabel (L[6]) &&
|
||||||
L[7]->OPC == OP65_JSR &&
|
L[7]->OPC == OP65_JSR &&
|
||||||
strcmp (L[7]->Arg, "ldauidx") == 0 &&
|
strcmp (L[7]->Arg, "ldauidx") == 0 &&
|
||||||
!CE_HasLabel (L[7]) &&
|
!CE_HasLabel (L[7])) {
|
||||||
(GetRegInfo (S, I+8) & REG_AX) == 0) {
|
|
||||||
|
|
||||||
CodeEntry* X;
|
CodeEntry* X;
|
||||||
|
|
||||||
/* Store the low byte and remove the TAY instead */
|
/* Store the low byte and remove the TAY instead */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user