Question: X86 coding. Plesae use the 'in' and 'out' instructions. Specifically by probing the CMOS clock. Your program should generate a random single digit number, 0
X86 coding.
Plesae use the 'in' and 'out' instructions. Specifically by probing the CMOS clock.


Your program should generate a random single digit number, 0 thru 9 , based on the current seconds range of the CMOS clock. The clock reports a seconds range from 0 thru 59 , so some modification will need to be done. Your program should print the string "Guess a number: ", and then read single character of input. Valid input is a single ASCII character, 0 thru 9. Valid examples: 0, 5, 3, 9. If wrong, your program should print the string "Wrong", and repeat the previous step. If correct, your program should print the string "Correct", and repeat the previous three steps. Your program should not invoke unsafe or undefined behavior. Additionally, it should contain sufficient comments and use appropriately concise subroutines to be understandable to graders
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
