Re: [cc65] Hello and ca65 questions

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-05-09 19:06:55
Hi!

On Mon, May 09, 2005 at 03:57:11PM +0200, 42Bastian Schick wrote:
> Currently I check if the expression is constant, thus contains no forward
> reference.

Ok, that matches the proposal from my last mail.

> So I am investigating, why
>
> I == 1 ; constant, obviously
> 	lda #<(cd+I)
> Simplifying the expression should give cd+1 here, I am searching why not ?

If you use this in a nested scope, there may be a local symbol named I, so the
assembler delays the evaluation. Maybe the assembler should always use the
symbol that is currently visible and don't allow forward references of symbols
in local scope.

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 Mon May 9 19:07:06 2005

This archive was generated by hypermail 2.1.8 : 2005-05-09 19:07:09 CEST