Re: [cc65] Multi-purpose memory layout, ca65, ld65

From: Karri Kaksonen <karri1sipo.fi>
Date: 2011-01-12 15:45:49
The config file can be used for this purpose.

Put that large amount of data into a segment

.segment "MYDATA_RODATA"

In the cfg file place this segment to some address
MEMORY {
   GRAPHICS_DATA: start = $200, size = $200, define = yes, file =%O;
   BSS_DATA: start = $200, size = $400, define = yes, file =%O;
}
SEGMENTS {
   MYDATA_RODATA: load = GRAPHICS_DATA, type = ro, define = yes;
}

When you later want to use this for BSS you can write:

SEGMENTS {
   BSS: load = BSS_DATA, type = bss, define = yes;
}

Now GRAPHICS_DATA and BSS_DATA segments overlap. Does this help?

-- 
Karri

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Jan 12 15:46:19 2011

This archive was generated by hypermail 2.1.8 : 2011-01-12 15:46:23 CET