MIPS Assembly
Write a program for RISC MIPS 32bits that challenges a person to guess a number of up to 3 digits before and 3 digits after the comma, that is, a value between 000,000 and 999,999. The program user will try to guess the number with multiple attempts, where the program will indicate at each attempt if the informed number is bigger, smaller, or if the user guessed correctly. When this happens, the program ends, showing a SUCCESS message and a total count of the number of attempts taken to get it right. The program must have a SUBROUTINE as described below.
SUBROUTINE:
- Input Parameters: user guess, expected value
- Output: message on screen (bigger, smaller, SUCCESS)
- Returns: value 1 if correct, 0 if incorrect