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

From: Marc 'BlackJack' Rintsch <marc1rintsch.de>
Date: 2011-01-12 15:25:14
Hi Gábor,

> Sorry for the stupid subject line, but I can't express it better. 
> The exact problem of mine: I have a program (using only ca65, so
> assembly project) for Commdore 64 (with basic stub, but it's my own
> code) which contains large amount of constant data (it's graphical
> data which is copied to the graphical screen, then I don't need that
> once more, it's .INCBIN'ed to my program), which is only needed at the
> beginning of my program. I also use initialized (to zero) bytes during
> the run of my program, using RES statements in the BSS segment.  My
> idea is to use my data at the beginning then filling the area to zero
> and I can use that part of memory as my BSS segment.  However I am
> really not sure how can I tell this to ca64/ld65.

There where some posts regarding overlays last year on this mailing 
list, i.e. parts of code/data occupying the same memory but at different 
times and how to do that with config files.  That sounds much like the 
problem you are describing.  Just that your data does not come from a 
file loaded at runtime.

Ciao,
	Marc 'BlackJack' Rintsch
-- 
GOD is REAL … unless declared INTEGER

----------------------------------------------------------------------
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:41:30 2011

This archive was generated by hypermail 2.1.8 : 2011-01-12 15:41:33 CET