Question
Write a MIPS assembly program that asks the user for an integer value five times saving each value to a separate register. Then using those
Write a MIPS assembly program that asks the user for an integer value five times saving each value to a separate register. Then using those five registers, your program should be able to correctly calculate the average of those values using integer division. A run of the program should look like the following (user input is shown in bold):
Please enter an integer: 5
Please enter another integer: 3
Please enter another integer: 5
Please enter another integer: 9
Please enter another integer: 10
The average of your numbers is: 6
Use the SPIM emulator for MIPS processors
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