]> git.sur5r.net Git - cc65/blobdiff - src/cc65/coptind.h
Replace "lda (zp),y" by "lda (zp,x)" where possible and where it saves us
[cc65] / src / cc65 / coptind.h
index eb22301e10d12de8952a95720d732a93043c6fdc..98d205489a91113e7bb84c4fe98c3050b9240c78 100644 (file)
@@ -141,6 +141,30 @@ unsigned OptPrecalc (CodeSeg* S);
 unsigned OptBranchDist (CodeSeg* S);
 /* Change branches for the distance needed. */
 
+unsigned OptIndLoads1 (CodeSeg* S);
+/* Change
+ *
+ *     lda      (zp),y
+ *
+ * into
+ *
+ *     lda      (zp,x)
+ *
+ * provided that x and y are both zero.
+ */
+
+unsigned OptIndLoads2 (CodeSeg* S);
+/* Change
+ *
+ *     lda      (zp,x)
+ *
+ * into
+ *
+ *     lda      (zp),y
+ *
+ * provided that x and y are both zero.
+ */
+
 
 
 /* End of coptind.h */