On Sun, 6 Feb 2000, Dmitry Kiryashov wrote: > Here is 32bit increment counter. It's a little bit shorter so it can > be used if time|memory is critical. Hey, I like it, all I have to do is negate the initial counter value upon receipt: neg32: movwf FSR ; 32 bit 2's complement comf INDF,f ; i.e. invert and increment incf FSR,f comf INDF,f incf FSR,f comf INDF,f incf FSR,f comf INDF,f ; fall thru inc32: movwf FSR clrz incfsz INDF,F return incfsz FSR,F incfsz INDF,F return incfsz FSR,F incfsz INDF,F return incfsz FSR,F incf INDF,F return And as a bonus: negative zero sets Z, so I can dump the code to test for receipt of a zero count... VERY COOL! Thanks. - Rich