]> git.sur5r.net Git - cc65/blobdiff - src/cc65/coptadd.h
In case of parse errors for structs, don't just set the type of the result to
[cc65] / src / cc65 / coptadd.h
index accf3d831d23a224cd8c02ac08c80bb6be8c0c5a..cc2afe48b8e1abcfeef9af4a21bff0287db6810c 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2001-2002 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 2001-2005, Ullrich von Bassewitz                                      */
+/*                Römerstrasse 52                                            */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -100,8 +100,25 @@ unsigned OptAdd3 (CodeSeg* S);
 /* Search for the sequence
  *
  *     jsr     pushax
+ *             ldx     #$00
  *      lda     xxx
- *     ldy     yyy
+ *      jsr     tosaddax
+ *
+ * and replace it by
+ *
+ *      clc
+ *      adc     xxx
+ *      bcc     L1
+ *      inx
+ * L1:
+ */                           
+
+unsigned OptAdd4 (CodeSeg* S);
+/* Search for the sequence
+ *
+ *     jsr     pushax
+ *      lda     xxx
+ *             ldx     yyy
  *      jsr     tosaddax
  *
  * and replace it by
@@ -113,9 +130,14 @@ unsigned OptAdd3 (CodeSeg* S);
  *      adc     yyy
  *      tax
  *      pla
- */                           
+ */
 
-unsigned OptAdd4 (CodeSeg* S);
+unsigned OptAdd5 (CodeSeg* S);
+/* Search for a call to incaxn and replace it by an 8 bit add if the X register
+ * is not used later.
+ */
+
+unsigned OptAdd6 (CodeSeg* S);
 /* Search for the sequence
  *
  *     adc     ...