Re: [cc65] Hello and ca65 questions

From: 42Bastian Schick <bastian421monlynx.de>
Date: 2005-05-11 07:34:35
Ullrich

>> IIRC, your expression parser checks whether both sides of are constant,
>> that is
>> maybe to strong ?
>> If it finds either side is constant it may replace the expression with
>> this value ?
>
> I'm sorry, but I don't understand the problem, maybe because I haven't 
> looked
> at the code.

Given variables may only have constants, you suggested that following 
should work:

	.import start
pos .set 1
	.word start+pos
pos .set pos +10
	.word start+pos

In the resulting object file, I'd expect fragments like
	.word start+1
	.word start+11
because the expression-parser should see that ,,pos" is constant at both 
positions
and thus simplify the expression.

But so far it doesn't seem it does not work (the way I implemented it).

But as I already said, I'll wait and see ...

-- 
42Bastian Schick
----------------------------------------------------------------------
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 May 11 07:34:55 2005

This archive was generated by hypermail 2.1.8 : 2005-05-11 07:34:57 CEST