]> git.sur5r.net Git - cc65/blobdiff - src/cc65/coptc02.c
Replace hard returns with an "else", add an error for non-IDENT tokens, and test...
[cc65] / src / cc65 / coptc02.c
index 969f9fd6ed536d95da837bfc9d5f1099aafdc925..71da5effa559057bb4d923a9e9705c2cbb8236aa 100644 (file)
@@ -75,9 +75,9 @@ unsigned Opt65C02Ind (CodeSeg* S)
         CodeEntry* E = CS_GetEntry (S, I);
 
         /* Check for addressing mode indirect indexed Y where Y is zero.
-         * Note: All opcodes that are available as (zp),y are also available
-         * as (zp), so we can ignore the actual opcode here.
-         */
+        ** Note: All opcodes that are available as (zp),y are also available
+        ** as (zp), so we can ignore the actual opcode here.
+        */
         if (E->AM == AM65_ZP_INDY && E->RI->In.RegY == 0) {
 
             /* Replace it by indirect addressing mode */
@@ -187,8 +187,8 @@ unsigned Opt65C02Stores (CodeSeg* S)
         CodeEntry* E = CS_GetEntry (S, I);
 
         /* Check for a store with a register value of zero and an addressing
-         * mode available with STZ.
-         */
+        ** mode available with STZ.
+        */
         if (((E->OPC == OP65_STA && E->RI->In.RegA == 0) ||
              (E->OPC == OP65_STX && E->RI->In.RegX == 0) ||
              (E->OPC == OP65_STY && E->RI->In.RegY == 0))       &&
@@ -214,6 +214,3 @@ unsigned Opt65C02Stores (CodeSeg* S)
     /* Return the number of changes made */
     return Changes;
 }
-
-
-