Re: [cc65] Specific Memory Addresses at Compilation

From: Brad Smith <rainwarrior1gmail.com>
Date: 2012-10-14 22:01:49
On Sun, Oct 14, 2012 at 5:49 AM, Zen Tom <zentom@gmail.com> wrote:
> Hi,
>
> I wonder if someone can help - I'm writing a game using cc65 for the C64.
>
> I have a whole bunch of graphics data (charmaps and sprites) that I need to
> load into very specific data-locations in graphics bank 1 between $4000 and
> $8000.
> Previously, I've just loaded that data directly into my machine code monitor
> as a single operation, and then loaded my compiled program into memory.
> Now my program is getting larger, it's starting to eat into my reserved
> memory area.
> How do I avoid this?
> I can either move my graphics data into code and get cc65 to include it at
> compile time - perhaps by genarating a large flat array - but I need to put
> it at a specific memory location for that to work. How do I do that?
> Alternately, is there a way to get the linker to recognise a particular file
> - perhaps even of "raw" data and to load it into memory at a specific
> address?
> Presumably this is a common scenario - how have people dealt with it in the
> past?
>
> Any pointers much appreciated.
> Kind regards,
> Tom


Are you aware of the linker configuration file feature? It should be
able to do what you need.

http://www.cc65.org/doc/ld65-5.html

-- Brad Smith
----------------------------------------------------------------------
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 14 22:02:24 2012

This archive was generated by hypermail 2.1.8 : 2012-10-14 22:02:29 CEST