The function reads value, and writes a null-terminated string with
the hexadecimal representation of value to the buffer pointed to by
dest. Only the number of nibbles specified will be written to this
buffer, starting with the least significant digit. Signs are not handled.
LongToAscHex will zero-terminate the supplied buffer, even if digits
= 0.
The function may not intend to return anything, though digits is left
in r0 in OS 1.03.
Example C-implementation of 'algorithm';
Example use:
The function converts the string *value into a
4-byte integer. Signs are handled. Leading spaces are ignored.
The function reads value, and writes a
null-terminated string with the ASCII representation of value to the
buffer pointed to by dest. Only the number of digits specified will
be written to this buffer, starting with the least significant digit. Signs
are handled.
LongToAsc will zero-terminate the supplied buffer, even if digits =
0.
In case of an overflow, t. i. if digits is too small, a "<" will be
inserted before the number and the most significant digits will be omitted.
(22.05.2012 06:24:06)