In SX Microcontrollers, SX/B Compiler and SX-Key Tool, yllawwally wrote: XOR is the instruction I wanted, because it would flip the bits at the same it cleared the unwanted bits, because the LED's light on zero out. It took me a moment to understand what your saying about the 2 instructions. I didn't realize that this statement is broken into two statements modifying the W register. So I need to load $12 back into W, and then load W into rc. Thanks. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=367991#m368028 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)