> Hi guys. Here is tiny challendge to warm up. ;) > > We have X variable. What is shortest possible > code to obtain 2X + 1 result back into X cell ? 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) ***************************************************************** 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.