Daniel, Best I can do of the top of my head is:- RLF TEMP, W IORWF TEMP, F RLF TEMP, W IORWF TEMP, F OR'ed result in TEMP,5 Trashes TEMP and W 4 cycles I'm sure somebody can do it better Steve Lawther ______________________________ Reply Separator _________________________________ Subject: Oring bits within a byte Author: PC:DNajemy@IMPS0014.US.DG.COM at INTERNET-HUSKY Date: 26/01/98 16:27 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