In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote: If you look under the hood, this line of SX/B: WKPND_B = rbStatus ... produces this code: MODE $09 MOV !RB, rbStatus MOV rbStatus, W So the effect is that WKPND_B and rbStatus are exchanged. I've updated the program (attached above) to clear rbStatus before the exchange -- this gets what's in WKPND_B and clears it at the same time. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=92178#m92580 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)