In SX Microcontrollers, SX/B Compiler and SX-Key Tool, mrchadwickusa wrote: After the 10000s are subtracted, you need to subtract 1000s, 100s then 10s. I think using the READ command to get the next wrdDivisor might be the fastest way to do it. Use the digit index as the offset for the READ command. In the process of trying this idea, I discovered that SXB isn't generating the correct code for the READ command with WDATA values. It needs to add twice the index value to the base of the WDATA table in order to index to the correct value in. It is only adding it once. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=138199#m138306 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)