Re: [cc65] Running C program in a cart

From: Groepaz <groepaz1gmx.net>
Date: 2012-05-26 17:08:25
On Saturday 26 May 2012, Ullrich von Bassewitz wrote:
> Hi!
> 
> On Fri, May 25, 2012 at 04:50:34PM -0500, Payton Byrd wrote:
> >    How do I get cc65 to use a custom crt0.s file?  Do I have to recompile
> >    the libraries?
> 
> No. Just create your custom crt0.s file and link it to your application by
> naming it on the command line. If there are libraries on the command line,
> the replacement crt0.o should be listed before them. And make sure, the
> file exports the __STARTUP__ symbol as the standard crt0 files do:
> 
>         .export         __STARTUP__ : absolute = 1      ; Mark as startup

i have to admit that i would always recommend to also use a custom library 
where the original crt0 was removed. it WILL save some hours of wondering some 
day =P

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat May 26 17:08:20 2012

This archive was generated by hypermail 2.1.8 : 2012-05-26 17:08:23 CEST