From: cuz Date: Wed, 8 Oct 2003 21:23:01 +0000 (+0000) Subject: Handle more opcodes in OptPrecalc X-Git-Tag: V2.12.0~1292 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4cbf8b352dadf822ccb55642d9699b878eda0e85;p=cc65 Handle more opcodes in OptPrecalc git-svn-id: svn://svn.cc65.org/cc65/trunk@2481 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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);