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

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 Programming Questions!