From: cuz Date: Thu, 11 Oct 2001 14:38:46 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~2562 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1e78c82d9b5de0b6c4c80db64f886a58e0ed7af9;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@1033 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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)) &&