Hi Scott. Nice to see you in good health and mood ;) > decf indf,w > andwf indf,w > return Originally: equal to 0 : return Z=1 not equal 0 : return Z=1 if power of two else return Z=0 So it could be corrected like that: decf INDF,F ;0/1/others -> Z=0/Z=1/Z=0 incfsz INDF,W ;0? andwf INDF,W return Disadvantage: INDF is decremented in this case. WBR Dmitry. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: "[PIC]:","[SX]:","[AVR]:" =uP ONLY! "[EE]:","[OT]:" =Other "[BUY]:","[AD]:" =Ads