In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Frank, When you access the WKPND_B register via "MOV !RB,W" it does a SWAP with the W register. So the contents of W get put INTO WKPND_B and the previous contents of WKPND_B get put back into W. MOV M,#$09 MOV W,#0 MOV !RB,W ; This swaps the values in WKPND_B and W Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=139679#m139683 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)