Mask the three bits using AND. Test if resultant byte is 0 or greater than 0. If it is greater than 0, then the result should be set to 1. Kieran ---------- From: Najemy, Daniel[SMTP:DNajemy@IMPS0014.US.DG.COM] Sent: 26 January 1998 16:04 To: PICLIST@MITVMA.MIT.EDU Subject: Oring bits within a byte 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) There doesn't seem to be any bit wise 'or' functions. Any ideas on how to implement this? Thanks in advance Daniel Najemy - Data General Corporation, Numaliine Power Systems