Re: [cc65] Target "BBC"

From: Ullrich von Bassewitz <>
Date: 2005-03-30 22:58:48
On Wed, Mar 30, 2005 at 09:52:30PM +0100, Stephen Thomas wrote:
> I was probably thinking ahead too much. You'd have to choose your mode
> ahead of time, and ensure you were in that mode before loading the
> program - which must not then change mode!

I don't think so. If I understood you right, the mode determines the upper
memory limit, not the lower. As Shawn wrote, this is similar on the Atari. The
startup program can check the upper memory limit and setup the stack to match
it. There are a few other platforms that do it this way. For example the C16
and Plus/4 can have 16, 32 or 64 KByte of memory. The startup code checks
which memory configuration is present and adjusts the stack accordingly. There
must of course be enough memory to load the program, but in this case you
should get an error from the operating system.

You can also use a memory configuration that uses the lowest possible upper
limit. In this case, all programs will run, regardless of the mode. The only
problem is that not all of the memory is used, so there may not be enough
memory for larger programs.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Mar 30 22:58:52 2005

This archive was generated by hypermail 2.1.8 : 2005-03-30 22:58:58 CEST