Question: Create a macro that waits for a keystroke and returns the key that was pressed. The macro should include parameters for the ASCII code and
Create a macro that waits for a keystroke and returns the key that was pressed. The macro should include parameters for the ASCII code and keyboard scan code. Hint: Call ReadChar from the book’s link library. Write a program that tests your macro. For example, the following code waits for a key; when it returns, the two arguments contain the ASCII code and scan code:
.data ascii BYTE ?
scan BYTE ?
.code mReadkey ascii, scan
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
