On Mon, 7 Feb 2000, Scott Dattalo wrote: > actually, it's 13 cycles if you take the call and return into account and > 11 cycles w/o call. Really? What am I missing? > > dec32: 2 cycles to get here > > movwf FSR 3 cycles > > decfsz INDF,F 4 cycles (since no skip) > > goto dec32nz 6 cycles > > ... > > dec32nz: > > clrz ;set _Z=0 7 cycles > > incfsz INDF,W 8 cycles (since no skip) > > return 10 cycles > > > > If Dmitry's optimized then chances are nobody can do much better. However, > I thought it'd be interesting to see this same thing done with 18cxxx > instruction set. I know it doesn't help you in the least, but it is > instructional Ah, never done 18cxxx before, POSTINC looks useful... :) - Rich