X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fcoptcmp.h;h=7efbeada89a787bd22298db452d8b3d89ded22c6;hb=35e1184901ca38bdb2e56d154ed3b71f6096eacc;hp=39a79121f3f529da8f90bf5cdf41c16cfc9ca602;hpb=3692fd40dab79f0464a9a3da33baa5932f29b90d;p=cc65 diff --git a/src/cc65/coptcmp.h b/src/cc65/coptcmp.h index 39a79121f..7efbeada8 100644 --- a/src/cc65/coptcmp.h +++ b/src/cc65/coptcmp.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 2001-2004 Ullrich von Bassewitz */ -/* Römerstrasse 52 */ -/* D-70794 Filderstadt */ -/* EMail: uz@cc65.org */ +/* (C) 2001-2009, Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -153,6 +153,19 @@ unsigned OptCmp8 (CodeSeg* S); * the result of the compare is known. */ +unsigned OptCmp9 (CodeSeg* S); +/* Search for the sequence + * + * sbc xx + * bvs/bvc L + * eor #$80 + * L: asl a + * bcc/bcs somewhere + * + * If A is not used later (which should be the case), we can branch on the N + * flag instead of the carry flag and remove the asl. + */ + /* End of coptcmp.h */