Question: Considering the following MIPS code: begin: loop: finish: addi $t 0 , $zero, 2 2 move $t 1 , $zero li $a 0 , 0
Considering the following MIPS code:begin:
loop:
finish:
addi $t $zero, move $t $zero
li $a
beq $t $t finish add $t $t $a addi $t $t addi $a $a
j loop
a Explain the meaning of each instruction by inserting inline comments
b Give a possible highlevel pseudocode for the above MIPS code.
c What is the value of $t when the program reaches finish
d What is the value of $a when the program reaches finish
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
