Brilliant! That's exactly what the kick in the right direction I needed. Thanks! Josh -- A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams "John N. Power" wrote: > To reverse the bits in a byte, shift the byte to the right and shift a second byte > to the left. After 1 right shift, CY has the LSB of the first byte. Shift the second > byte left and CY ends up as the LSB of byte #2. After 8 shifts, byte 2 has > byte #1 in bit reverse order. If you only want the lower 4 bits of #1, shift 4 > times. Use swapf to exchange nybbles if needed. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics