تم الحل ✓
categoryهندسة الحاسبات
schoolبكالوريوس
event_available2026-07-14
السؤال
Transcribed Image Text:
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
b) move $t1,A
move $12,B
add $t0,$t1,$t2
move C,$10
c)
mov C, eax
lw $s1,A
d) la $10,A
lw $s2,B
la $t1,B
add $s0,$s1,$s2
la $12,C
sw $s0,C
lw $s1,($10)
lw $s2,($t1)
add $s0,$s1,$s2
sw $s0,C
check_circle الجواب — حل مفصل خطوة بخطوة
hourglass_top
🔒
الحل الكامل متاح للمشتركين
اشترك في أرشيف الأسئلة لعرض هذا الحل وآلاف الحلول المفصلة خطوة بخطوة من معلمين معتمدين.