Question: 2. MIPS Programming [I suggest you actually simulate these programs using SPIM/MARS to confirm that they work.] a. Write a MIPS procedure that calculates 3x+b
2. MIPS Programming [I suggest you actually simulate these programs using SPIM/MARS to confirm that they work.]
a. Write a MIPS procedure that calculates 3x+b without using a multiply instruction.
b. Write a MIPS program that calls the procedure from 3.a three times with three unique input pairs and prints the corresponding outputs [For example of print outputs, look at prob3.s from HW1. The one difference is you should not use any pseudoinstructions such as li.]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
