On Mon, 3 Jun 2002, Olin Lathrop wrote: > > 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 > > Why don't you challenge for the biggest code; I think I could succesfully win... ;-) :o) Vasile -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.