This will take a value in EAX or AX, convert to ASCII hex with optional padding and upper or lower case
This example would yield "---fc103a"
push word 0x222d ; 32 bit conversion, padd output with '-'
push word ASCPntr ; Pointer to end of conversion buffer
push 0xfc103a
call I2H
inc ax ; AX points to actual first character
AX pointing to 1 character before actual beginning allows for successive calls with that pointer so essentially one could convert a 1,024 bit value with this algo.