Re: [cc65] C64 and "STARTADDRESS" ?

From: Marc 'BlackJack' Rintsch <marc1rintsch.de>
Date: 2010-11-17 19:41:40
17.11.2010 12:33, Ullrich von Bassewitz <uz@musoftware.de>:

> On Wed, Nov 17, 2010 at 10:46:05AM +0100, Oliver Schmidt wrote:
> > I just checked out the c64-asm.cfg and noticed that it uses the
> > STARTADDRESS mechanism - as I presumed from following the
> > discussion on the list. Now I'm wondering if it wouldn't make
> > sense to have the STARTADDRESS adjustable for the default C64
> > config too - and maybe other CBM configs...
> 
> I don't think so. BASIC programs (and with the SYS header, the
> program is one) must be loaded to the BASIC start, otherwise using
> RUN won't work. See also the last sentence in the document that
> describes c64-asm.cfg:
> 
>         http://www.cc65.org/snapshot-doc/c64-4.html#ss4.2
> 
> So the case is the same for c64-asm.cfg if the BASIC SYS header is
> enabled.

Would it be possible somehow to detect if the start address (default) is 
at $0801 and if it's not skipping the BASIC stub?  I guess not because 
the crts0.o is already compiled and in put in the library file, so it is 
not possible to use conditionally assembly based on the value of the 
start address, right?

The possibility to compile C programs without a BASIC stub to any given 
start adress without the need to write a config file or a new crts0.s 
would be nice.

Ciao,
	Marc 'BlackJack' Rintsch
-- 
Global warming is caused by the sun.

----------------------------------------------------------------------
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 Nov 17 19:41:57 2010

This archive was generated by hypermail 2.1.8 : 2010-11-17 19:42:00 CET