In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: I was working on a STR routine that converts a word value to ASCII for inclusion in the SX/B compiler. Here is what I came up with. The routine had to be small and relatively fast, I think this one fits the bill nicely. You specify an array address that will hold the ascii characters, then a word variable, then a character to use for leading zeros (most often a space or a zero). There has been other routines posted to do this, but I think this one is more flexible (by allowing user specified leading zero character), small in code space, and faster. Let me know what you think. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=258457 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)