In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: SB actually means "Skip if Bit set," not Set Bit, and that line of code will cause the CLR __PARAM1 line to be skipped if bit 7 of ticks is 1 (i.e., ticks is negative). Also, a 16-bit word will give a signed range of -32768 to 32767 -- bit 15 is used for the sign. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=288040#m288673 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)