Vladimir M. Klochko wrote: > First of all, "18 cycles" is not quite true. :) > Since You use RETLW for some special case of input You must add > a RETURN to this code for any other cases. Of course, my > examples don't contain these RETURN's at all, but I don't imply Oh. Okay CLRF qh ADDLW 1 MOVWF ql RLF qh,F RLF ql,W RLF qh,F ADDWF ql,F BTFSS qh,1 SKPNC INCF qh,F SWAPF qh,W ADDWF qh,F SWAPF ql,W ANDLW 0xF ADDWF ql,F SKPNDC INCF qh,F ADDWF qh,W