Question: 4. [20 points] Consider the following MIPS code: $t1, $t2, $t3 sub LOOP: lw $s1, 16 ($s0) add $s2, $t1, $sl addi $s0, $s0,

4. [20 points] Consider the following MIPS code: $t1, $t2, $t3 sub

4. [20 points] Consider the following MIPS code: $t1, $t2, $t3 sub LOOP: lw $s1, 16 ($s0) add $s2, $t1, $sl addi $s0, $s0, 4 addi $t1, St1, 1 slti $12, $t1, 100 bne $12, $s0, LOOP SW $s2, 32 ($s0) For each MIPS instruction, show the decimal value of the opcode, registers: rs, rt and rd, Shamt and the Function fields, if applicable. Use the table below to answer Quest #4. sub St1, St2, opcode rs rt rd Shamt Function $13

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!