In SX Microcontrollers, SX/B Compiler and SX-Key Tool, dkemppai wrote: [quote="Bean (Hitt Consulting)"] 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), smaller and faster. Let me know what you think. Bean. [/quote]Do you happen to have an ASM version of this cleaned up??? -Dan ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=258457#m258495 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)