Question: Assembly language Create a JASPer assembly language program that allows the user to play a game of higher/lower. The program will choose a random number

Assembly language

Assembly language Create a JASPer assembly language program that allows the user

Create a JASPer assembly language program that allows the user to play a game of higher/lower. The program will choose a random number from 1 to 16. The user will try to guess what it is. If the user guesses a number that is too low, the program will say, "Higher." If the user guesses a number that is too high, the program will say "Lower." If the user guesses the correct number, the program will say, "Correct.", and also display the number of guesses the user made before getting the right answer. Example output: 8 Higher 12 Lower 10 Higher 11 Correct. You made 4 guesses. Hints: You can change the format of the output if you want, as long as it is still clear to the user. Sometimes the user will enter two digits, and sometimes only one. If you want, you can ask the user to always use two digits - so to input 7, they should type "07". There is no function in JASPer to get a random number. You can use the clock to get a random number, though. The current time is stored in memory location $00E8. If you do a bitwise AND calculation with the number 15, this will give you a number from 0 to 15. Add 1 to get a number from 1 to 16. For example, if you store the time into register A, you can do AND #$OF, A To get a number from 0 to 15 in A

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!