Re: [cc65] String Literal Segment in C code

From: Greg King <greg.king41verizon.net>
Date: 2010-12-02 17:18:33
From: Joseph; on Sunday, November 28, 2010; at 05:25 PM -0500
>
> I need the strings to go into an overlay.  When I look into
> the main  file, I find it there, not in the overlay.
> When I try to print the string, I get garbage.
> I need the text in the overlay.

You need to put your code into separate source files for each overlay.
Change the rodata and data segments, then _leave_ them that way (in the
overlay files)!

The reason for that need is that strings aren't put into the output
until the entire source file has been compiled.  Then, all of the
strings are merged and dumped, as a block.  In your example, you had
_two_ #pragma rodataseg() lines; cc65 used the last one!

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Dec 2 23:53:21 2010

This archive was generated by hypermail 2.1.8 : 2010-12-02 23:53:25 CET