1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-02 15:29:33 +00:00

Change order of replacement code in OptPtrLoad10 to allow detection in other

steps.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4009 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2009-08-15 10:14:04 +00:00
parent ec8280cc52
commit d27664036d

View File

@ -927,9 +927,9 @@ unsigned OptPtrLoad10 (CodeSeg* S)
*
* and replace it by:
*
* ldy ...
* stx ptr1+1
* sta ptr1
* ldy ...
* ldx #$00
* lda (ptr1),y
*
@ -957,11 +957,11 @@ unsigned OptPtrLoad10 (CodeSeg* S)
/* Store the high byte */
X = NewCodeEntry (OP65_STA, AM65_ZP, "ptr1", 0, L[0]->LI);
CS_InsertEntry (S, X, I+1);
CS_InsertEntry (S, X, I);
/* Store the low byte */
X = NewCodeEntry (OP65_STX, AM65_ZP, "ptr1+1", 0, L[0]->LI);
CS_InsertEntry (S, X, I+2);
CS_InsertEntry (S, X, I+1);
/* Delete the call to ldauidx */
CS_DelEntry (S, I+3);