Based on the contents of the registers and memory locations below, provide the r
ID: 3748406 • Letter: B
Question
Based on the contents of the registers and memory locations below, provide the results for the following Register Transfer Language (RTL) expressions. All the numbers provided are given in decimal including the address locations. Note the values DO NOT reset for each problem. When the value for memory or a register is changed it effects the rest of the problem.
Registers
Register
Contents
MAR
1004
MBR
unknown
PC
1004
IR
unknown
R0
2121
Memory
Memory
Contents
1004
67
1005
1010
1006
-3
1007
0
1008
1005
1009
-234
1010
75
[ PC ] <-- [ PC ] + 4 PC now contains : ___________?
[ IR ] <-- [[ MAR ]] IR now contains : ________?
[ R0 ] <-- [ [ 1005 ] + [ 1006 ] ] R0 now contains _______?
[ MAR ] <-- [ PC ] MAR now contains ________?
[ MBR ] <-- [ [ MAR ] ] MBR now contains ______?
Register
Contents
MAR
1004
MBR
unknown
PC
1004
IR
unknown
R0
2121
Explanation / Answer
[PC] <-- [PC] + 4 ; PC = 1008
[IR] <-- [[MAR]] ; IR = 67
[R0] <-- [[1005] = [1006]] ; R0 = [1010 - 3] ; R0 = [1007] = 0
[MAR] <-- [PC] ; MAR = 1008
[MBR] <-- [[MAR]] ; MBR = [1008] = 1005
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.