Suppose the memory cells at addresses 00 through 0D in the machine described in
ID: 3909197 • Letter: S
Question
Suppose the memory cells at addresses 00 through 0D in the machine described in Appendix C contain the following bit patterns.
Address Contents
00 20
01 04
02 21
03 01
04 40
05 12
06 51
07 12
08 B4
09 0C
0A B0
0B 06
0C C0
0D 00
Assume that the machine starts with its program counter containing 00.
a. What bit pattern will be in register 0 when the machine halts?
b. What bit pattern will be in register 1 when the machine halts?
c. What bit pattern is in the program counter when the machine halts?
Explanation / Answer
1) The bit pattern in the register 0 when the machine halts is ;
The PC = 00 and ML = 2004 , therefore intructions reg0 = 04
And the bit pattern is : (0000 0100)2
2)
The bit pattern in the register 1 when the machine halts is ;
The PC = 02 and ML = 2101 , therefore intructions reg1=01
And the bit pattern is : reg1 = 04 = (0000 0100)2
3. bit pattern is in the program counter when the machine halts is :
PC = 0E = (0000 1110)2
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.