Question: The following MIPS program computes a function of $ 9 and $ 1 0 , and places the result in $ 1 1 . a
The following MIPS program computes a function of $ and $ and places the result in $
a Assume that $ is initially and $ is initially What value does $ have after this program is run?
b Write a mathematical equation that describes this function in terms of $ and $$
addi $$
loop: add $$$
addi $$
bne $$ loop
add $$$
Assume that an addaddi takes one cycle and a bne takes two cycles. How many cycles does it take to execute the program in problem Don't forget that the program loops several times.
Answer question please
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
