]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 11 Oct 2001 14:38:46 +0000 (14:38 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 11 Oct 2001 14:38:46 +0000 (14:38 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1033 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/coptind.c

index 4555cab6865f7936f9c5652b1e3f498fdb3b0a11..67ab7b6c5bd57be9682d857a54c3289b0ad4c439 100644 (file)
@@ -913,6 +913,7 @@ unsigned OptStoreLoad (CodeSeg* S)
            (N = CS_GetNextEntry (S, I)) != 0               &&
            !CE_HasLabel (N)                                &&
                    (N->Info & OF_LOAD) != 0                        &&
+           E->AM == N->AM                                  &&
                    ((E->OPC == OP65_STA && N->OPC == OP65_LDA) ||
             (E->OPC == OP65_STX && N->OPC == OP65_LDX) ||
             (E->OPC == OP65_STY && N->OPC == OP65_LDY))    &&