Question: Create an MIPS program input 5 numbers and store them in 5 consecutive (32-bit) words in the memory compute the maximum value from these five
Create an MIPS program
input 5 numbers and store them in 5 consecutive (32-bit) words in the memory
compute the maximum value from these five numbers stored in the memory
store the result in a word labeled max.
Verify the operation of your code using a MIPS assembler and simulator
Write the max value calculation in either python or java and include the entire program as a comment in your MIPS program.The java or python code and your MIPS implementation must use the SAME algorithm. You will want to use an algorithm that will make the assembly version simpler
The code should be appropriately commented
The code should display an error message for answers that will not fit in 32 bits.
The output should look like this:
Input the first number:
12345
Input the second number: -4567
Input the third number: 98098
Input the fourth number: 46
Input the fifth number: 5678
The maximum value entered: 98098
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
