How can I convert a number between 0 and 255 to it's hex value? For example 174 would result in "AE".
masm32.lib -> dwtoh
I knew about dw2hex, but I'm wondering if someone know how to do it only using registers. Since the number fits inside a byte, I thought there must be a better way of doing it than using dw2hex.
;AL contains byte
;AX contains ascii hex, ready to store in a string buffer
;Else xchg al,ah
Thank you very much, sir! :cool: