Question: Write the MIPS assemble instructions for the following statement. Please write your instructions right below each of five comments. There should be no more than
- Write the MIPS assemble instructions for the following statement.
- Please write your instructions right below each of five comments. There should be no more than two instructions right below each comment.
A[i] = A[A[i]] + A[i+4], assuming based address of A is stored in $Sa, i in $Si, feel free to use any registers including $t0, $t1.
- # Calculate the address of A[i]
- # load A[i] and A[i+4] into registers
- # calculate the address of A[A[i]]
- # load A[A[i]] into register
- # do the add and the store
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
