In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: messagePntr = address 'point to data address of first character of text string How do I find out the data address? Isn't this CharMaps: ? or Ascii_Set: ? -- it would be something like Msg1: DATA "T and E is so great!" If so then why do you reference CharMaps later? READ --> from (charMaps+char)*8 into tmpByte2 You can't have a complex line in SX/B like this. -- that's why I called it pseudo code. Actually, there's an error there -- should be charMaps+(char*8) -- but regardless... what you are doing is reading the first byte from Msg1 -- which is "T" -- that's really a number -- the ASCII number. Presuming your charMaps are ordered like the ASCII chart, you can use the number that *is* "T" to get a data address (offsetting for non-alphanumeric chars if you like, and multiplying by data block size). In SXB (though I would do this part in ASM -- way way faster to access "arrays" in ASM then SXB) would be something like: pntr = char * 8 'set pointer to ASCII # of "char" * 8 (for the byte size of each map) pntr = pntr - "0" 'offset to start of alphanum chars -- note quotes -- this make it the "number" that represents the char "0" pntr = pntr+charMaps 'add to address of start of charMaps '--> start reading 8 bytes from pointer I'll have a chance to look at your program a little later tonight in detail. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=225777#m226444 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)