Question: 4. The code below loads two numbers from memory, takes sum of them and writes the sum to the memory. lw $ro, O($r1) addi $ro,
4. The code below loads two numbers from memory, takes sum of them and writes the sum to the memory. lw $ro, O($r1) addi $ro, $ro, o addi $r1, $r1,5 Ih $r2, 0($r1) srl $r2, $r2, 4 andi $r2, $r2, Oxff add $r3, $0, $0 add $r3, $ro, $r2 addi $t1, $r1, 2 sw $r3, 0($r1) Rewrite the code using minimum number of instructions without loosing any functionality. (10 Puan)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
