In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: If the bitposition is known, mov w,#1<<bitpos xor targetvar,w This is assumed the bank is already set, or targetvar is global, as ports are. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=364760#m364771 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)