InterviewSolution
Saved Bookmarks
| 1. |
Consider the following arithmetic operations: int A=5:int B= 6;int C=A+BWhich of following codes is the correct and equivalent MIPS code of the above arithmeticoperations?a)mov eax. Amov ebx.Badd eax.ebxmov C.eaxb) move $t1.Amove $12.Badd $t0,$t1,$t2move C,$t0c)lw $sl.Alw $s2.Badd $80.$s1.$s2sw $0.Cd) la Sto. Ala St1.Bla $12.0lw $1.($t0)lw $s2.($t1)add $50,$s1.$s2sw $0.C |
| Answer» MOV EAX.a mov eax.badd eax.ebx mov C eax | |