On Mon, 26 Jan 1998 11:04:59 -0500 "Najemy, Daniel" writes: >Good morning - > >I'm trying to do the following: > >I have a byte (let's call it TEMP), and I'm trying to logically 'OR' >together 3 of the bits within the byte. > >ie. RESULT = (TEMP,3) or (TEMP,4) or (TEMP,5) > How about something like this... movlw b'0011100' ; Set up the mask andwf temp,0 ; Leave selected bits in w, others 0 bz AllZeroes ; go deal with them all being zeroes ... ; Code to be executed if one or more bits were set Harold _____________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com Or call Juno at (800) 654-JUNO [654-5866]