SavEagle
Newbie level 2
hex representation
Hi there. I haven't the foggiest on the best way to do this in ASM. What I need is to convert a hex number to the hex representation of the decimal number. For example:
Start with:
2Eh (It iss equal to 46d)
End with:
46h
I need to end up with the byte in hex because of how I send the byte to the screen by converting each nibble into its ascii.
If theres a simpler way to send a hex value's decimal equivalent to the display I'd be glad to hear that as well!
Thanks in advance!
Hi there. I haven't the foggiest on the best way to do this in ASM. What I need is to convert a hex number to the hex representation of the decimal number. For example:
Start with:
2Eh (It iss equal to 46d)
End with:
46h
I need to end up with the byte in hex because of how I send the byte to the screen by converting each nibble into its ascii.
If theres a simpler way to send a hex value's decimal equivalent to the display I'd be glad to hear that as well!
Thanks in advance!