Question
Please help using MIPS assembly language Task 1: User Input Prompt the user to enter a value. Read the value into a register and store
Please help using MIPS assembly language
Task 1: User Input
Prompt the user to enter a value. Read the value into a register and store it in memory
ask 2: Compare the value Compare the user input and the secret number. Prompt the user to guess a larger or smaller number respectively.
Task 3: Loop
Repeat Tasks 1 and 2 in a loop 5 times. Stop the loop early if the user guesses the secret number.
Compare the user input and the secret number. Prompt the user to guess a larger or smaller number respectively.
Task 4: End game
If the user guesses correctly print a message that they won. If the user does not guess the secret. Print the secret and all of the users guesses.
This is what I have so far
# Registers used:
.data # Data used by the program
.text # Instructions/code of the actual program
.globl main main:
exit: #exit the program using syscall 10 - exit li $v0, 10 syscall
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started