Some logical operators could help you.
For instance, to isolate the 6 least significant bits, you can do an AND operation with b00111111. Similarly, to retrieve the 2 most significant bits, you can do an AND with b11000000. Two 1 bit rotations to the left will give you the identifiers for the corresponding bytes.
Then, to combine the high order byte and the low order byte, you need only to multiply the MSB by 64 (2 to the power 6) and add the LSB.
Have a look at the attached vi, that acts on the 4 bytes array.
CC
edit: typos
Message Edited by chilly charly on 05-16-2005 11:06 PM
Chilly Charly (aka CC)