From 4cbf8b352dadf822ccb55642d9699b878eda0e85 Mon Sep 17 00:00:00 2001 From: cuz Date: Wed, 8 Oct 2003 21:23:01 +0000 Subject: [PATCH] Handle more opcodes in OptPrecalc git-svn-id: svn://svn.cc65.org/cc65/trunk@2481 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/coptind.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cc65/coptind.c b/src/cc65/coptind.c index 3efa843af..eae7b705b 100644 --- a/src/cc65/coptind.c +++ b/src/cc65/coptind.c @@ -1318,10 +1318,13 @@ unsigned OptPrecalc (CodeSeg* S) /* Handle the different instructions */ switch (E->OPC) { + case OP65_ADC: case OP65_AND: + case OP65_ASL: case OP65_EOR: case OP65_LSR: case OP65_ORA: + case OP65_SBC: if (RegValIsKnown (Out->RegA)) { /* Accu AND zp with known contents */ const char* Arg = MakeHexArg (Out->RegA); -- 2.39.5