Showing changes from revision #2 to #3:
Added | Removed | Changed
Entry | |
---|---|
R0 | Value to be converted |
R1 | Pointer to buffer for resulting string |
R2 | Size of buffer |
Exit | |
---|---|
R0 | Pointer to buffer (R1 on entry) |
R1 | Pointer to terminator |
R2 | Free bytes in buffer |
The purpose of this call is to convert a value into a signed string of decimal characters.
The output can be a value from -32,768 to 32,767 (6 characters). Commas are not output.
If the most significant bit is set (of the number bytes used), the number is taken to be negative, and a leading ‘–’ is produced.
The string is not padded with zeros, so is of variable length.
Every three digits from the right, a space is inserted. e.g. 32 767