In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: In SX/B the // (modulus) operator generates a fair bit of code -- I suggest this: [code]INC dig IF dig = 4 THEN dig = 0 ENDIF[/code] It does the same thing with less code. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=330084#m346341 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)