Question: 8 . Aiken is running the following MIPS program. What are the possible number of instructions executed in total assuming that the program does not

8. Aiken is running the following MIPS program. What are the possible number of instructions executed in total assuming that the program does not result in an error, if you can start with any starting value of \$s1 and \$s2 and with any possible memory content?
```
addi $t0, $s1,0
addi $t1, $zero, 1
addi $t2, $s2,0
loop: lb $t3,0($s2)
andi $t4, $t3,0x1
beq $t4, $zero, else
sll $t1, $t1,1
else: addi $t0, $t0,1
addi $s2, $s2,1
bne $t3, $zero, loop
```
A.9
B.14
C.15
D.43
E.63
8 . Aiken is running the following MIPS program.

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