Question: 93) Table 1 (below) shows the memory. Integer array A is located at address Ox10000000, base address is in register $50. Study the MIPS code

 93) Table 1 (below) shows the memory. Integer array A is

93) Table 1 (below) shows the memory. Integer array A is located at address Ox10000000, base address is in register $50. Study the MIPS code instruction by instruction and determine the final values stored in the memory and registers ($t1,$t2,$51). Table 1 Register $50 has base address ((Ox10000000) of array A. Data and address shown are all in base 16 (hex). Assume big-endian memory use. + Address Register OAOBOCOD Memory Ox1000000C 02 00 01 OF +1 OB 4+2 OC 3. OD Big-endan Ox10000008 BA DO BA DO 0x10000004 FF OF BOBB 0x10000000 00 01 00 04 a) Comment each line of this code to explain what it performs? 1. lw $t1, 0($50) 2. srl $t1, $t1, 14 3. Ibu $t2, 12($so) 4. add $s1, $t1, $t2 5. sll $s1, $s1,4 6. sw $51, 4($so) 7. sb $51, 9($so) WA b) Write the final state of the changed cells in Table 1 after above code is run. c) Write the final values registers $51,$t1,$t2

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