]> git.sur5r.net Git - cc65/commitdiff
Fixed an error
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 15 Aug 2009 14:43:59 +0000 (14:43 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 15 Aug 2009 14:43:59 +0000 (14:43 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4017 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/coptind.c

index ae77b6f87bb4feedac440b2bb10ccddefe884524..c1bbf1ea66b9abf060ac3c0cbf5510650d2bbb88 100644 (file)
@@ -1316,7 +1316,7 @@ unsigned OptTransfers3 (CodeSeg* S)
                  */
                 if ((GetRegInfo (S, I, XferEntry->Chg) & XferEntry->Chg) == 0   &&
                     (StoreEntry->AM == AM65_ABS || StoreEntry->AM == AM65_ZP)   &&
-                    !MemAccess (S, Xfer+1, Store-1, E->Arg)) {
+                    !MemAccess (S, Xfer+1, Store-1, StoreEntry->Arg)) {
 
                     /* Generate the replacement store insn */
                     CodeEntry* X = 0;
@@ -1478,10 +1478,10 @@ unsigned OptTransfers4 (CodeSeg* S)
                  * replace the transfer by a load and remove the initial load.
                  */
                 if ((GetRegInfo (S, I, LoadEntry->Chg) & LoadEntry->Chg) == 0   &&
-                    (LoadEntry->AM == AM65_ABS          || 
+                    (LoadEntry->AM == AM65_ABS          ||
                      LoadEntry->AM == AM65_ZP           ||
                      LoadEntry->AM == AM65_IMM)                                 &&
-                    !MemAccess (S, Load+1, Xfer-1, E->Arg)) {
+                    !MemAccess (S, Load+1, Xfer-1, LoadEntry->Arg)) { 
 
                     /* Generate the replacement load insn */
                     CodeEntry* X = 0;