Michael Watterson wrote: >> It sounds like you are trying to convert a 16 bit unsigned integer to >> decimal. That is what the attached code does. > > Yes, but it's not my code and I don't understand it. I thought you were asking for general help, which would include code from others. I tried to describe how my algorithm works in detail. What specifically do you not understand? > It seems to do 3 > digits and thus to do more digits I need to understand it. You do have to at least look at the comments. The very first one is: ; This firmware demonstrates converting a 16 bit integer to 5 digit ; BCD representation. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .