[cc65] Specific Memory Addresses at Compilation

From: Zen Tom <zentom1gmail.com>
Date: 2012-10-14 11:49:16
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

----------------------------------------------------------------------
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 11:50:11 2012

This archive was generated by hypermail 2.1.8 : 2012-10-14 11:50:17 CEST