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
b) move $t1,A
mov ebx,B
move $t2.B
add eax,ebx
add $t0,$t1,$t2
mov C,eax
move C,$t0
c)
lw $s1,A
lw $s2.B
add $s0,$s1,$s2
sw $0.C
d) la $t0,A
la $t1,B
la $t2,0
lw $$1,($t0)
lw $s2,($t1)
add $s0,$s1,$s2
sw $0.C
Answers
Answered by
0
Answer:
sorry i don't no the answer if I will be knowing sure I will be telling
Similar questions