> Scott can probably come up with something that takes 1 instruction or less, > but how about this: > > bsf status, c ;set value of bit to shift in > rlf x ;shift left 1 (*2), shift in 1 (+1) It occurred to me later that the following is different but just as valid: rlf x ;shift left 1, low bit unknown bsf x, 0 ;explicitly set the low bit to 1 ***************************************************************** 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.