]> git.sur5r.net Git - cc65/commitdiff
More opts
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 12 Oct 2003 11:29:56 +0000 (11:29 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 12 Oct 2003 11:29:56 +0000 (11:29 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2518 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/coptind.c

index 07f30df0a78ae2bc995e3b1cbe144a112d8f0cc6..aaddfeb856a21aee5caef329b4a137dd0d6f5eef 100644 (file)
@@ -1318,6 +1318,15 @@ unsigned OptPrecalc (CodeSeg* S)
         /* Handle the different instructions */
         switch (E->OPC) {
 
+            case OP65_LDA:
+            case OP65_LDX:
+            case OP65_LDY:
+                if (E->AM == AM65_IMM) {
+                    /* If we do already have an immediate load, bail out */
+                    break;
+                }
+                /* FALLTHROUGH */
+
             case OP65_ADC:
             case OP65_AND:
             case OP65_ASL: