B[8] = A[i–j];
how do you use the arrays while trying to convert into MIPS the above C expression?
i thought something like :
lw $t0, 16 ($s7)
sub $t1, $s3, $s4
lw $t2, $t1 ($s6)
considering that
$s6 holds A
$s7 --- B
$s3 ---- i
and $s4 -- j
but am not sure about how to do the calculationg to actually get on A [i-j]
any suggestion?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…