8086 Assembly (TASM): Displaying an ASCII character value as HEX
** Edited for clarification and "cleaner" code. I'm trying to accept a character from the keyboard (any character) and convert it's ASCII value to hex, then display it. I know how to convert from base 10 to hex, but just to make sure I'm not using incorrect terminology: If I enter "c" in as my ASCII value, it's decimal value is 63. 63 divided by 16 (hex is base 16) = 3.9375. Save the quotient of 3 for later. Remainder * base (.9375 * 16) = 15. 15 is Hex character "F". Quotient divided by base (3 / 16) = 0.1875. Quotient is zero, so this is the last step in conversion. Remainder * base (.1875 *