Re: [cc65] Overlays and cbm_load()

From: Payton Byrd <plbyrd1gmail.com>
Date: 2012-01-22 23:08:25
On Sun, Jan 22, 2012 at 3:05 PM, Oliver Schmidt <ol.sc@web.de> wrote:

> Hi Payton,
>
> > Do you think you could add an option to force overlays to have their load
> > address written to the file so that you can use cbm_load() to load the
> > overlays, thus allowing uses with fast load carts to reap the benefits of
> > those carts?
>
> This has nothing to do with an option to be provided by Uz but has to
> do with the "right" setup of your custom linker config (and a little
> asm code). You need to do the same for the overlays that is done for
> the main file. See these lines in your config
>
>    LOADADDR: file = %O,               start = $07FF, size = $0002;
>
>    LOADADDR: load = LOADADDR, type = ro;
>
> and the content of this source file:
>
> libsrc/cbm/loadaddr.s
>
> As said You need to (understand and) reproduce this mechanism for
> every overlay...
>
>
That worked perfectly!  I'm going to start calling you the "Configuration
Ninja".

----------------------------------------------------------------------
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 22 23:08:56 2012

This archive was generated by hypermail 2.1.8 : 2012-01-22 23:09:00 CET