Re: [cc65] Running C program in a cart

From: Thomas Giesel <skoe1directbox.com>
Date: 2012-05-26 09:21:56
Note that the KERNAL nearly doesn't initialize much before it jumps to
a cartridge. Therefore many functions which rely on any initialization
may not work as expected. The cartridges are responsible to initialize
everything they need. This can also be seen in Gregs example.

Here is a minimal example for a (hopefully) correctly initialized 16k
cartridge. This one copies the DATA segment to RAM and executes the
code segment in place, i.e. in ROM.

https://bitbucket.org/skoe/easyflash/src/tip/EasySDK/examples/cc65-16k-crt

It may be a bit outdated (linker config syntax changed slightly
AFAIR) and possibly not complete, but should be a good starting
point.

Have fun!

Skoe

----------------------------------------------------------------------
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 11:48:56 2012

This archive was generated by hypermail 2.1.8 : 2012-05-26 11:49:00 CEST