On Tue, 24 Oct 2000, w. v. ooijen / f. hanneman wrote: > I hope I don't make a complete fool of myself, but here is my try: > > >From the example I understood that it is OK to trash INDF. > I interpreted 'including return' as including the 2 cycles for the return. > > decf INDF, w > bsf INDF, 7 > andwf INDF, w > return > > the formula is ( x - 1 ) & ( x | 0x80 ) Excellent! Scott -- http://www.piclist.com hint: PICList Posts must start with ONE topic: "[PIC]:","[SX]:","[AVR]:" =uP ONLY! "[EE]:","[OT]:" =Other "[BUY]:","[AD]:" =Ads