X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fcoptadd.h;h=75965064841ce37eab0cfef98cad13f30d8c8bf0;hb=9fc71c5e93f7e8270dd6f8fc3810b7b731bf1259;hp=accf3d831d23a224cd8c02ac08c80bb6be8c0c5a;hpb=ede471904c740b4f58112f7101beccfbc41571fe;p=cc65 diff --git a/src/cc65/coptadd.h b/src/cc65/coptadd.h index accf3d831..759650648 100644 --- a/src/cc65/coptadd.h +++ b/src/cc65/coptadd.h @@ -101,7 +101,7 @@ unsigned OptAdd3 (CodeSeg* S); * * jsr pushax * lda xxx - * ldy yyy + * ldx yyy * jsr tosaddax * * and replace it by @@ -113,9 +113,14 @@ unsigned OptAdd3 (CodeSeg* S); * adc yyy * tax * pla - */ + */ unsigned OptAdd4 (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 OptAdd5 (CodeSeg* S); /* Search for the sequence * * adc ...