In SX Microcontrollers, SX/B Compiler and SX-Key Tool, edgellmh wrote: I am using Jon Williams' functions for outputting characters via the serial port. I get bytes output correctly but not strings. TX_BYTE: 'Use: TX_BYTE outgoing byte 'LET temp1 = __PARAM1 'Outgoing port LET temp2 = __PARAM1 'Outgoing byte SEROUT TX_DB9, Baud, temp2 RETURN TX_STR: 'Use: TX_STR [string| label] ' "string" is an embedded literal string ' "label' is DATA statement for stored z-string temp3 = __PARAM2 'get string offset temp4 = __PARAM3 'Get string base DO READ temp4 + temp3, temp5 'Read a char from the string into temp5 IF temp5 = 0 THEN EXIT 'String complete TX_BYTE temp5 INC temp3 'Point to next char temp4 = temp4 + Z 'Update base on overflow LOOP RETURN When I execute TX_STR "Start" here is what I get at the terminal õ$B ¤ ¤ ¤ õ$ B ¤ ¤ ¤ õ$ Any ideas? marshall hall edgell ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=270245 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)