Menu

(Solved) : Consider Following Mips Code Assume S0 Sl Used Inputs Initially Ontain Positive Integers 4 Q32006554 . . .

Consider the following MIPS code. Assume that $s0 and $sl are used for inputs and initially ontain positive integers 4 and 5, respectively add $t0, $zero, $zero zero, exit 12→ add $10, $10, $sOtto: y loop addi StO, St0,-20 add $s4, $t0, $zeroすSq exit A. What is the final value of the integer in Ss4? (5 points) B. How many time instruction loop got executed? (10 points) C. How many times the instruction accessed (fetched)? (5 points) D. How many times the data mm y got accessed ? (5 points)

please write the comment for every instruction

Consider the following MIPS code. Assume that $s0 and $sl are used for inputs and initially ontain positive integers 4 and 5, respectively add $t0, $zero, $zero zero, exit 12→ add $10, $10, $sOtto: y loop addi StO, St0,-20 add $s4, $t0, $zeroすSq exit A. What is the final value of the integer in Ss4? (5 points) B. How many time instruction loop got executed? (10 points) C. How many times the instruction accessed (fetched)? (5 points) D. How many times the data mm y got accessed ? (5 points) Show transcribed image text

Expert Answer


Answer to Consider Following Mips Code Assume S0 Sl Used Inputs Initially Ontain Positive Integers 4 Q32006554 . . .

OR