Re: [stella] Atari 2600 BASIC compiler

Subject: Re: [stella] Atari 2600 BASIC compiler
From: "Fred Quimby" <c9r@xxxxxxxxxxx>
Date: Fri, 8 Jul 2005 20:27:20 -0400
>Doing a boundary check (if x > 10 and x < 50) is so common that I think one 
>boolean would be important.

I'm sure I can figure out how to parse something like the above.

>I am thinking of assigning variables once they are used, like a real BASIC
>interpreter does, so you are free to use any names you want, and of course
>issue errors when you use up all the variables. This should be easy enough
>to do, and would allow seamless declaration of 16-bit variables as well as
>retain reverse-compatibility.
>
>But I think it would be important to be able to reuse variables as we do in 
>ASM with overlays.

Yes, I didn't think of that.  Does anyone have a good solution to this?

>I don't know if you support it now, but you should be able to do PEEK, 
>POKE, and ADR also.

Peek and poke could be done with inline asm, but it would be trivial to add 
them in as well.  What does ADR do?


Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://stella.biglist.com

Current Thread