In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: If you're just looking for one combination for a true output, it's as easy as: [code]Main: IF RB = %00111111 THEN RA.0 = 1 ELSE RA.0 = 0 ENDIF[/code] This is not very elegant looking, it's just to demonstrate the point. It also assumes you've made RA.0 an output. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=170961#m171045 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)