Showing changes from revision #1 to #2:
Added | Removed | Changed
Entry | |
---|---|
R0 | Pointer to input value (word aligned) |
R1 | Pointer to output buffer |
R2 | Buffer length, or negative to read required length |
R3 | Bytes to use from input value (or nibbles for hex output) |
R4 | Type to convert to |
Exit | |
---|---|
R0 | Pointer to buffer (R1 on entry) |
R1 | Pointer to null terminator |
R2 | Bytes free in buffer, or NOT space required if R2 negative on entry |
This is a general-purpose call for converting numbers to strings. It is a more flexible and feature-rich version of the existing OS_Convert* SWIs (OS_ConvertInteger4, OS_ConvertHex8, etc.)
This call first became available in RISC OS 5.17. It is also available in CallASWI 0.06 and newer.