Re: [cc65] Think I found a cc65 bug

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-12-04 12:26:12


On Wed, Dec 04, 2002 at 12:21:57PM +0100, MagerValp wrote:
> I just compiled the source with the latest snapshot, and now it looks
> like this:

I've fixed this bug 15 minutes ago, please download the new sources or apply
the following patch to src/cc65/coptstop.c:

----------------------------------------------------------------------------
Index: coptstop.c
===================================================================
RCS file: /usr/local/cvsroot/uz/c64/cc65/src/cc65/coptstop.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -r1.19 -r1.20
211,212c211,216
<         } else if (E->AM == AM65_ZP_INDY && RegValIsKnown (E->RI->In.RegY)) {
<             /* Load indirect with known offset is also ok */
---
>         } else if (E->AM == AM65_ZP_INDY && RegValIsKnown (E->RI->In.RegY) &&
>                    strcmp (E->Arg, D->ZPLo) != 0 && strcmp (E->Arg, D->ZPHi) != 0) {
>             /* Load indirect with known offset is also ok, provided that
>              * the zeropage location used is not the same as the one we're
>              * using for the temp storage.
>              */
----------------------------------------------------------------------------

I've noticed this bug yesterday, but it was already too late for an oldtimer
like me to fix it:-)

Anyway, thanks for the report!

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-12-04 12:26:16 CET