7Ah UT$UTOB convert number to string
Input X register - Address of destination buffer.
D register - Unsigned binary number for conversion.
Output B register - Length of converted ascii buffer.
Description

Converts the unsigned binary number in D to ASCII decimal in the buffer at X, returning the length of the buffer in B.

Register X is preserved.

Example Convert $FFFF to count-preceded ASCII decimal buffer.
Resulting bytes are: 5,'6','5','5','3','5' at BUFFER-1.
        LDX     #BUFFER
        LDD     #FFFFh          ; $FFFF = 65535 decimal
        OS      UT$UTOB         ; preserves X
        DEX                     ; point one before BUFFER
        STAB    0,X             ; length into count-byte
Errors - none -