Question: 4. If we execute the following MIPS code fragments, show only the changes that occur in the register file and memory at the table of
4. If we execute the following MIPS code fragments, show only the changes that occur in the register file and memory at the table of 'After Execution'. Decimal numbers are used for data and addresses. add $1, $2, S3 lw $4,4(S1) sub S3, S5, $4 sw $3,4($2) lw $2, 8(S3) lw $5,4(S3) j 100 Before Execution: Register File Memory addr. 100 104 108 112 data 100 120 140 160 116180 data 100 100 $1 S2 S3 $4 $5 200 260
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
