- #1
Khaled Kord
- 8
- 0
Homework Statement
given that f,g,h,i and j are assigned to registers s0,s1,s2,s3 and s4
and the base addresses for the arrays A,B are in s6,s7
convert this C statement to assemply language: B[8] = A[i-j];
Homework Equations
none
The Attempt at a Solution
image attachedi attached both manual solutions and my answers, i can't understand the second line in his, he is adding the address of array A with variable f, while he should multiply f by 4 to get the offset