Question: Write a MIPS loop that prints a table for the following function for inputs 0 to 2 0 : = 1 8 2 + 6

Write a MIPS loop that prints a table for the following function for inputs 0 to 20:
=182+6+4
The output of the table will look like this:
04
128
288
...etc
207324
Please minimize the total number of clock cycles. How many clock cycles total does your program use to
print all lines in the program? You may use this table for your calculation:
mult 5 clocks
mul 6 clocks
mflo 1 clock
sll 1 clock
add 1 clock
syscall 2 clocks
move 1 clock cycle
li 2 clock cycles

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