Question: why the answer should be: lw $3 [$2 + 10] lw $4 [$1] add [$3 + $4] = $5 sw $5, [$1] but not: add

 why the answer should be: lw $3 [$2 + 10] lw

why the answer should be:

lw $3 [$2 + 10]

lw $4 [$1]

add [$3 + $4] = $5

sw $5, [$1]

but not:

add $t0, $2, 10

add $1, $1, $t0

why first answer is correct but the second is wrong?

3. (10 points) A complex instruction: Addm $1, $2, 10 memo memory 0 What are the equivalent memory[$2-10, CPI 7 complex instruction? MIPS instructions (assembly language) to perform the above D For MIPS instruction, loadstore CPI 2, ALUCPI 1, which CPU is better

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!