Question: Review the official documentation for the Irvine library function ReadKey (http://programming.msjc.edu/asm/help/source/irvinelib/readkey.htm). After you have reviewed the documentation and developed an understanding for how this function

Review the official documentation for the Irvine library function ReadKey (http://programming.msjc.edu/asm/help/source/irvinelib/readkey.htm). After you have reviewed the documentation and developed an understanding for how this function operates, write an assembly program that passively scans keyboard inputs and displays the following information on the screen as each key is pressed:

8-bit ASCII Code

8-bit Virtual Scan Code

16-bit Virtual Key Code

32-bit Keyboard Flags

Display a formatted label for each of the previously mentioned items. Display the 8-bit ASCII code as a character symbol. Display the Virtual Scan Code and Virtual Key Code as integers. Show the Keyboard flags as a binary string representation of 0s and 1s. Attempt to determine which bits are controlled by the various control keys on the keyboard (i.e. the Shift, Alt, and Control keys would all trigger a flag to raise when depressed). As you begin mapping out control flags, create an aesthetic on your program's output that provides any sort of visual cue indicating the control key depressions along with their associated bits in the Keyboard Flags.

As your program runs, the display should update each time a new key is pressed with information about the current state of the keyboard. The program should cycle in an infinite loop.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!