In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: With SX/B 1.5 you can use a Word variable and the READINC instruction to simplify sending strings. Like this: [code] ' Use: TX_STR [ string | label ] ' -- "string" is an embedded literal string ' -- "label" is DATA statement label for stored z-String TX_STR: tmpW1 = __PARAM1, __PARAM2 ' save address DO READINC tmpW1, tmpB1 IF tmpB1 = 0 THEN EXIT ' if 0, string complete TX_OUT tmpB1 LOOP RETURN [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=148657#m148723 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)