At 12:38 AM 6/3/02 +0400, you wrote: >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 ? SETC ; set carry (BSF 3,0) RLF X,F ; now (X*2) + 1 for 0 <= X <= 7F >Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com 9/11 United we Stand -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.