: hi everybody
: how do I convert in assembly a number ( 0 - 4321078) to a string ?
: Merci
: Bodo
:
:
You can divide it by 10 repeatedly and store a remainder as a digit char starting from the end of the buffer:
1024/10 = 102 and 4 -> make '4' and store it
102/10 = 10 and 2 -> make '2' and store it
10/10 = 1 and 0 -> make '0' and store it
1/10 = 0 and 1 -> make '1' and store it -> done...