i need to write a program in assembly language for a class and i'm pretty stuck. anyone who could help would be a great blessing!
i need to write a program that's a simple guessing game. The program has stored the value 6. The program continually asks the user to enter a number 0 through 9. The user enters the guess from the keyboard.
If the guess is larger than 6, it should output "Too big" & if it is less than 6 it will say "Too small". When the user guesses correctly it will say "Correct! You took # guesses" with the # of guesses the user took. After 9 guesses and the user has not guessed correctly: "Game Over. Correct answer is 6." Don't check for invalid input. If input is not a #: "Invalid Input", which still counts as a guess.
I know i need to use TRAP x20 and .sTRINGZ, but i've never really programmed in assembly before and i really need some direction. thanks! any help?
i need to write a program that's a simple guessing game. The program has stored the value 6. The program continually asks the user to enter a number 0 through 9. The user enters the guess from the keyboard.
If the guess is larger than 6, it should output "Too big" & if it is less than 6 it will say "Too small". When the user guesses correctly it will say "Correct! You took # guesses" with the # of guesses the user took. After 9 guesses and the user has not guessed correctly: "Game Over. Correct answer is 6." Don't check for invalid input. If input is not a #: "Invalid Input", which still counts as a guess.
I know i need to use TRAP x20 and .sTRINGZ, but i've never really programmed in assembly before and i really need some direction. thanks! any help?