From b391929acb8d1c320b86c68c1a812ecc06f31ba7 Mon Sep 17 00:00:00 2001 From: uz Date: Sat, 15 Aug 2009 13:42:40 +0000 Subject: [PATCH] Minor improvement in last change git-svn-id: svn://svn.cc65.org/cc65/trunk@4014 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/coptind.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cc65/coptind.c b/src/cc65/coptind.c index bb739a688..ae77b6f87 100644 --- a/src/cc65/coptind.c +++ b/src/cc65/coptind.c @@ -1478,14 +1478,16 @@ 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_ZP) && + (LoadEntry->AM == AM65_ABS || + LoadEntry->AM == AM65_ZP || + LoadEntry->AM == AM65_IMM) && !MemAccess (S, Load+1, Xfer-1, E->Arg)) { /* Generate the replacement load insn */ CodeEntry* X = 0; switch (XferEntry->OPC) { - case OP65_TXA: + case OP65_TXA: case OP65_TYA: X = NewCodeEntry (OP65_LDA, LoadEntry->AM, -- 2.39.5