تم الحل ✓
categoryهندسة حاسوب وشبكات
schoolبكالوريوس
event_available2026-07-14
السؤال
Transcribed Image Text:
1. (20 pts)
(a) Encode the last two instructions in binary
L1: add $3, $7, $6
sub $1, $2, $3
addi $2, $1,8
sw S4, 7(S2)
bne $3, $5, LI
(b) What MIPS instruction does each of the following 32-bit binary number represent?
00000 00001000 1100 0
0
1000000100
1 0
I
0 010100001 1 1001 100
0 00 00 0 0 0 0 1
0
1
0
1
2. (10 pts) The following table shows portion of the memory map of a computer. All numbers in the table are in
hexadecimal.
What is the result of the following instructions if the computer is a
little endian machine? Assume Sa0-0x52000040 at the beginning.
Address
0x52000040
Contents
12
(a)
0x52000041
23
0x52000042
34
0x52000043
FF
0x52000044
56
Ox52000045
67
0x52000046
78
0x52000047
89
0x52000048
DD
0x52000049
CC
0x5200004A
AA
(b)
0x5200004B
C9
0x5200004C
38
0x5200004D
40
0x5200004E
40
0x5200004F
AE
0x52000050
33
0x52000051
FF
0x52000052
01
0x52000053
FE
addi St4, $0, 4
sll St4, St4, 2
add Sa0, Sa0, $14
Iw St0, -4(Sa0)
i.e., St0=
Show on the left memory map the result of the following
instructions assuming big endian computer, where Ss2-0x 52000044
and $s1 = 0x FFESAB70. In order words, the contents of which memory
locations will be changed to what values after the following two
instructions are executed.
addi Ss2, $s2, 8
sw $s1, -4($s2)
check_circle الجواب — حل مفصل خطوة بخطوة
hourglass_top
🔒
الحل الكامل متاح للمشتركين
اشترك في أرشيف الأسئلة لعرض هذا الحل وآلاف الحلول المفصلة خطوة بخطوة من معلمين معتمدين.