Hi, > I have a need for an unsigned 32 bit binary to bcd routine. > > A number have been posted in the past, and there is the 16 bit > version in ECH which could be extended, > > but what would be really nice is a routine that produces the > decimal digits in turn starting from the left. This way they > can be sent to an LCD display or rs232 port without having to > be stored in memory. > If you are writing the number out on a an LCD character module, you can command the LCD to move its cursor from right to left. This gives you the added advantage of neat, right alligned numbers. If you are looking for a compact 32bit divide by 10 routine, mail me and I'll send it to you. Niki