In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: T&E -- Yeah, what JonnyMac said. Note his subtraction of 32 from the offset -- this skips you past the first 32 chars of the ASCII table, which are non-alphanumeric characters like line feed, etc. Then instead of multiplying the ASCII value by the block size (as I did in the Pbasic code) he shifts the offset left 3 bits, *which is the same as multiplying by 8*. Generally in any assembly based code (which is really what SX/B is) shifting right/left is very very very compact and fast way to divide/multiply by powers of 2. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=222202#m222306 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)