Question: Registers: Base address of integer array A in register $s0 and index, i in register $s1. MIPS Code: Line1: sll $t0, $s1,2 Line2: add $t,$t,$s


Registers: Base address of integer array A in register $s0 and index, i in register $s1. MIPS Code: Line1: sll \$t0, \$s1,2 Line2: add $t,$t,$s Line3: Ih $t1,1($t0) Line4: slti \$t2, \$t1, 0 Line5: bne $t2,$0, Line9 Line6: beq st1,$0, Line10 Line7: addi $t1,$t1,1 Line8: j Line10 Line9: addi $t1,$t1,1 Line10: sb $+1,2($t0) Given Registers: $s0=08000 and $s1=01 Given Memory Values (in words): (Rewriting Memory in bytes using the Little Endian format which we followed in class for all examples) (Rewriting Memory in bytes using the Little Endian format which we followed in class for all examples)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
