Re: [cc65] Overlays and cbm_load()

From: Oliver Schmidt <ol.sc1web.de>
Date: 2012-01-22 22:05:27
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...

Good luck,
Oliver
----------------------------------------------------------------------
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 22:05:34 2012

This archive was generated by hypermail 2.1.8 : 2012-01-22 22:05:37 CET