Re: [cc65] Need help getting started with cc65 NES

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-12-07 18:46:39
Hi!

On Wed, Dec 07, 2005 at 07:52:17AM -0500, Greg King wrote:
> It is in OptAdd3(), in "cc65/coptadd.c".  The L[] array is too small.  You
> forgot that the CS_GenLabel() call looks at the line _after_ the code that
> is being optimized.  So, Label gets a random, bad address (the visible
> effect depends on what data happens to be sitting next to L[]).

You're right. The array was already one too small (just three elements), so my
first thought was, that this is already fixed. But what you say is correct,
the label is attached to the instruction *after* the four that are examined,
so it must be increased to five. Thanks a lot for the help! The fix should be
in tomorrows snapshot.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Dec 7 18:46:52 2005

This archive was generated by hypermail 2.1.8 : 2005-12-07 18:46:56 CET