<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bottomMargin=0 bgColor=#ffffff leftMargin=3 topMargin=0 rightMargin=3>
<DIV><FONT face=Arial size=2>
<DIV><FONT face="Courier New" size=2>I'm not in front of a compiler to check but
does the following not work?</FONT></DIV>
<DIV><FONT face="Courier New">This should make both the strings and the table
itself constant yes?</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">...James Brown</FONT></DIV>
<DIV><FONT face="Courier New">Data Acquisition</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" size=2>#define
MENU_MAX_MSGS
3<BR>const INTU8 * const menuTable[MENU_MAX_MSGS+1] =<BR>{<BR>
{"\r\nFirst Menu Line\r\n"},<BR> {"\r\nThe Second Menu
Line\r\n"},<BR> {"\r\nThe Third Menu
Line\r\n"},<BR> {""} // end of
table<BR>};</FONT></DIV>
<DIV> </DIV></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=warm38@juno.com href="mailto:warm38@juno.com">Wade A Smith</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=icc-mot@imagecraft.com
href="mailto:icc-mot@imagecraft.com">icc-mot@imagecraft.com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, December 20, 2007 5:45
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Icc-mot] tables in Flash not
RAM</DIV>
<DIV><BR></DIV>
<DIV></DIV>
<DIV> </DIV>
<DIV>How do I get the table into Flash?</DIV>
<DIV> </DIV>
<DIV><BR>--------------------- code</DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" size=2>#define
MENU_MAX_MSGS
3<BR>const INTU8 *menuTable[MENU_MAX_MSGS+1] =<BR>{<BR>
{"\r\nFirst Menu Line\r\n"},<BR> {"\r\nThe Second Menu
Line\r\n"},<BR> {"\r\nThe Third Menu
Line\r\n"},<BR> {""} // end of
table<BR>};</FONT></DIV>
<DIV> </DIV>
<DIV><BR>--------------------- generated code<BR><FONT face="Courier New"
size=2>
.area
data<BR> 3020
_menuTable::<BR> 0020
.blkw
1<BR>
.area idata<BR>--- 0020
03B8
.word
L22<BR>
.area
data<BR> 0022
.blkw
1<BR>
.area idata<BR>--- 0022
0375
.word
L23<BR>
.area
data<BR> 0024
.blkw
1<BR>
.area idata<BR>--- 0024
032D
.word
L24<BR>
.area
data<BR> 0026
.blkw
1<BR>
.area idata<BR>--- 0026
03E7
.word L21</FONT></DIV>
<DIV> </DIV>
<DIV>---------------------</DIV>
<DIV> </DIV>
<DIV>menuTable is at $3020 which is a RAM address. Any problems and
I lose the addresses of the strings.<BR>L22, L23, L24 and L21 are in Flash at
0x5###.</DIV>
<DIV> </DIV>
<DIV><BR>How do I get menuTable to be in Flash and NOT RAM?</DIV>
<DIV> </DIV>
<DIV>'const' does nothing. If I leave out 'const', it does the same --
the variable is in RAM and the strings are in Flash and I still cant see the
variables.</DIV>
<DIV> </DIV>
<DIV>wade</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Icc-mot mailing
list<BR>Icc-mot@imagecraft.com<BR>http://dragonsgate.net/mailman/listinfo/icc-mot<BR></BLOCKQUOTE></BODY></HTML>