Question: Consider the following MIPS assembly code: lw $t 1 , &a lw $t 2 , &b mul $t 3 , $t 1 , $t 2
Consider the following MIPS assembly code:
lw $t &a
lw $t &b
mul $t $t $t
L:
bne $t $t L
j exit
L:
bgt $t $t L
sub $t $t $t
j L
L:
sub $t $t $t
j L
exit:
div $t $t $t
sw $t &c
Assuming initial values of a and b what will be the value of c when the code completes its execution?
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
