Re: [cc65] String Literal Segment in C code

From: <Maspethrose71aol.com>
Date: 2010-11-28 21:57:26
 
In a message dated 11/28/2010 3:20:14 P.M. Eastern Standard Time,  
64subnet@gmail.com writes:

On Sun,  Nov 28, 2010 at 10:08 AM,  <Maspethrose7@aol.com> wrote:
>  Into which segment do string literals in a C program go?  I need  this
> information for a text adventure and a library.  Thank you  in advance.

That would be the "rodata" segment, I believe.  Based  on search
results in the mail list archive, it looks like #pragma  rodata-name
can be used effectively to keep literals together with the  overlay
that uses them.  I assume that you're going for a disk-based  string
table...  I'm not sure how much help cc65 will be for that  model,
but I'm very interested in that solution.

Can you give me an example?  I tried to redefine the rodata segment,  and 
when I looked in the overlay, the string literals weren't there, and the  
game I'm working on seems to display garbage when I try to print text from an  
overlay.


//  Agent  Friday
----------------------------------------------------------------------
To  unsubscribe from the list send mail to majordomo@musoftware.de with
the  string "unsubscribe cc65" in the body(!) of the mail.

-------------------
Joseph Rose, a.k.a. Harry Potter
Working  magic in the computer community...or at least striving to!  :(
----------------------------------------------------------------------
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 Nov 28 21:57:49 2010

This archive was generated by hypermail 2.1.8 : 2010-11-28 21:57:52 CET