In message <450FBF322C2@firga.sun.ac.za> PICLIST@MITVMA.MIT.EDU writes: > 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. Niki, I was aware of this, but have no idea how to achieve it with the CCS compiler. Anyone else know? Regards, Mike Watson