>> First doing a rotate can be a bad way to do it, because you first need >> to clear the carry bit. > > Note the use of RLNCF "rotate left no carry". That only means that the LSB comes from the MSB instead of the C flag. You still have to deal with the unknown bit value. Alan's method essentially does a left shift of 1 and guarantees that the LSB will be zero in one instruction. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.