Re: [cc65] String Literal Segment in C code

From: <maspethrose71aol.com>
Date: 2010-12-03 17:17:00
Thank you.  I didn't know that.  It would take a little reworking, but I can manage.





-----Original Message-----
From: Greg King <greg.king4@verizon.net>
To: cc65 <cc65@musoftware.de>
Sent: Thu, Dec 2, 2010 5:53 pm
Subject: Re: [cc65] String Literal Segment in C code


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.
hange the rodata and data segments, then _leave_ them that way (in the
verlay files)!
The reason for that need is that strings aren't put into the output
ntil the entire source file has been compiled.  Then, all of the
trings are merged and dumped, as a block.  In your example, you had
two_ #pragma rodataseg() lines; cc65 used the last one!
----------------------------------------------------------------------
o unsubscribe from the list send mail to majordomo@musoftware.de with
he string "unsubscribe cc65" in the body(!) of the mail.


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Dec 3 17:17:15 2010

This archive was generated by hypermail 2.1.8 : 2010-12-03 17:17:18 CET