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](https://dsd5zvtm8ll6.cloudfront.net/questions/2024/04/662f635686897_1714385141154.jpg)
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
Get step-by-step solutions from verified subject matter experts
