I started this macro that does the following in MASM,
1. takes the user input for character entered
2. copies character from AL to _char variable
3. converts to ascii value and outputs to console
I was able to do the first 2 having issues with the conversion process.
Here is my variables
_char BYTE ?
Here is my macro
mConvert MACRO value:REQ mWrite "Enter a character: " call readchar call writechar mov _char, al ;I assume the conversion goes right in here based on how my macro works call crlf mWrite "The ascii value is: " mov al, _char call writechar ENDM ;invoke macro mConvert _char