This is the task…
I have a number stored in a 16 bit word. The number is up to 5 digits like 01389.
I can also convert it to the format $30, $31, $33, $38, $39 in a 4 byte string. If needed. Each digit is 0 to 9 decimal… never any alpha chr’s. Max value for the expected data is 09999

I am looking to convert the 5-digit number into a 3 byte “ASCII Hex format” so the number above would look like… $00, $13, $89 in 3 hex bytes. (Looks like the decimal number when looking at the 3 byte HEX code.)

The first byte is not used in this application so it can be hard coded to $00
I need some help on how to do this.

Thanks,
Tcbcats