From 1e78c82d9b5de0b6c4c80db64f886a58e0ed7af9 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 11 Oct 2001 14:38:46 +0000 Subject: [PATCH] Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@1033 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/coptind.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cc65/coptind.c b/src/cc65/coptind.c index 4555cab68..67ab7b6c5 100644 --- a/src/cc65/coptind.c +++ b/src/cc65/coptind.c @@ -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)) && -- 2.39.5