Computer Science, asked by simhalasaisreenivas, 5 months ago

Consider the following arithmetic operations:
int A=5:
int B= 6;
int C=A+B
Which of following codes is the correct and equivalent MIPS code of the above arithmetic
operations?
a)
mov eax. A
mov ebx.B
add eax.ebx
mov C.eax
b)
move $t1.A
move $12.B
add $t0,$t1,$t2
move C,$t0
c)
lw $sl.A
lw $s2.B
add $80.$s1.$s2
sw $0.C
d)
la Sto. A
la St1.B
la $12.0
lw $1.($t0)
lw $s2.($t1)
add $50,$s1.$s2
sw $0.C​

Answers

Answered by routjagannath1970
10

Answer:

mov eax.a

mov eax.b

add eax.ebx

mov C eax

Answered by rajasekhar5556666
2

Answer:

Explanation:

d

Similar questions