Re: [cc65] Overlays and cbm_load()

From: Groepaz <groepaz1gmx.net>
Date: 2012-01-22 22:19:16
On Sunday 22 January 2012, you 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...

or simply "cat" the proper bytes to the start of the binary (in your makefile 
or sth)

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

The thing is, I HAVE learned Excel, C and MATLAB and nothing in there compares 
with the simplicity, easy of use and time saved of using good old Basic V2. 
<Eslapion>

----------------------------------------------------------------------
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:19:33 2012

This archive was generated by hypermail 2.1.8 : 2012-01-22 22:19:36 CET