Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote