Re: [cc65] NES Header modifications

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2006-01-08 12:30:28
Hi!

On Sat, Jan 07, 2006 at 04:37:46PM -0600, PH wrote:
>    I am running into some issues with the header information in the nes
> crt0.s.  If I am not mistaken, it is fixed and can't be changed without
> recompiling the library, is this right?  Are there any instructions for
> making modifications to the library files?  I would like to add some
> hooks into it to allow me to change the values for prg,chr,mir, and map
> bytes in my c code.  Any guidance is appreciated.

Using modififed library files with your code is no problem. Just create a
copy, make your modifications, and link it to your application *before* any
of the files supplied with cc65. If you have more than one modified file, or a
complete replacement library, you may have to use library groups. Please see
the linker docs for more information about library groups.

Changing the header files from your C code is difficult and I wouldn't suggest
trying it. I would use constants in the linker config file instead. This
allows to change the header when linking.

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 Jan 8 12:30:38 2006

This archive was generated by hypermail 2.1.8 : 2006-01-08 12:30:41 CET