Re: [cc65] Hello and ca65 questions

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2005-05-09 14:18:41
Hello,

* On Mon, May 09, 2005 at 01:52:13PM +0200 Ullrich von Bassewitz wrote:
 
> In general, there's a problem with forward references and variables. As an
> extreme example, how should the following get evaluated?
> 
>         foo = bar + 10
>                 .word   foo             ; ?
>         foo = foo + 10
>                 .word   foo             ; ?
>         bar = foo + 10
>                 .word   bar             ; ?
>         foo = bar + 10
>                 .word   foo             ; ?
>         bar = 3

Would it make sense to introduce two types of LABELs, one which has to
remain static, and one which can be changed?

The labels which can be changed could be as follow: It gets the value
that was defined when the assembler entered that statement. Something
like the C macros.


Regards,
   Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
----------------------------------------------------------------------
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 14:18:53 2005

This archive was generated by hypermail 2.1.8 : 2005-05-09 14:18:55 CEST