In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: value1 var byte value2 var byte value1 = 13 '0000_1101 value2 = value1 AND 3 '0000_0001 the AND 3 extracts only bits b0 and b1 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=211491#m211495 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)