> Hi Scott > > Making some simulations, I got this testing the Z flag. > > incf TENS_ONES,F > movlw 0x66 > addwf TENS_ONES,F > skpndc > andlw 0xF0 > skpnc > andlw 0x0F > subwf TENS_ONES,F > skpnz > incf HUND,1 > > Is there some problem to do like this. Ahh, that's even better! The only assumption being made is that the BCD number is in a valid format prior to the increment. The carry is only set if the input is 0x99. Tricky... Scott -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist