Re: [cc65] Help w/ initlib asm procedure

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-10-18 22:11:46
On Sun, Oct 18, 2009 at 03:41:01PM -0400, Maspethrose7@aol.com wrote:
> How do I initialize the run-time environment for  initlib?  An example of
> my problem is my gencartvic program, in the  contrib section of cc65.

You have to setup the stack and copy initialization data from ROM to RAM
*before* calling initlib. Module constructors rely on a sane environment, so
you have to iniitalize it first.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Oct 18 22:14:41 2009

This archive was generated by hypermail 2.1.8 : 2009-10-18 22:14:44 CEST