ok, quick-n-dirty bugfix(says TENS:X UNITS:10 with factors of 10) new code: tensunits clrf TENS clrf UNITS movwf TEMP movwf NUM Loop0 movlw .10 movwf COUNT Loop1 decfsz TEMP goto cont call mult return cont decfsz COUNT goto Loop1 incf TENS goto Loop0 mult movlw .10 movwf COUNT movf UNITS,w MULTLOOP addwf TENS,w decfsz COUNT goto MULTLOOP subwf NUM,w movwf UNITS movlw .10 movwf TEMP comf UNITS,w addwf TEMP,f bcf STATUS,2 incf TEMP,w btfsc STATUS,2 goto fix return fix clrf UNITS incf TENS return -- View this message in context: http://www.nabble.com/seperate-num-into-tens%2Bunits-tf3356654.html#a9343884 Sent from the PIC - [PIC] mailing list archive at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist