juha tuomi wrote: > > Hi ! > I have a little problem. I should convert a 16 bit value to > ASCII-characters. > > 2 bytes -> '9' '9' '9' '9' four separate ASCII-chars. > > The 16 bit value can not be greater than 9999, so 4 digits will be enough. > Do you have any solution? > > Greetigs, Juha Sucessive divisions by 10... See the remainder for each divisions, push on stack, make a "counter" of divisions until you have a zero on division... Pop "counter" times, add 0x30, and print it! Miguel