]> git.sur5r.net Git - cc65/commitdiff
Handle more opcodes in OptPrecalc
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 8 Oct 2003 21:23:01 +0000 (21:23 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 8 Oct 2003 21:23:01 +0000 (21:23 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2481 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/coptind.c

index 3efa843afcf4ab737ed7bfd6815edbe48ea5be3f..eae7b705b055f7a9a2d29a77524973c144bb05ca 100644 (file)
@@ -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);