Professional Documents
Culture Documents
CMSC 335 Operation Systems Homework 01, Due 09/07 Solution: 300 PC 3005 Ir
CMSC 335 Operation Systems Homework 01, Due 09/07 Solution: 300 PC 3005 Ir
CMSC 335 Operation Systems Homework 01, Due 09/07 Solution: 300 PC 3005 Ir
Solution
CPU Registers
300
PC
AC
3005 IR
940
I/O Device
005
0003
0002
300
301
302
Memory
3005
5940
7006
940
0002
CPU Registers
301
PC
0003 AC
3005 IR
I/O Device
005
0003
#3. Fetch: The instruction at memory location 301 (this is the content of
PC) is loaded into IR. This instruction is 5940 (add AC to the content of location
940)
Memory
300
3005
301
5940
302
7006
CPU Registers
301
PC
0003 AC
5940 IR
940
I/O Device
005
0003
0002
CPU Registers
302
PC
0005 AC
5940 IR
940
I/O Device
005
0003
0002
#5. Fetch: The instruction at memory location 302 (this is the content of
PC) is loaded into IR. This instruction is 7006 (store AC at I/O device 6)
Memory
300
3005
301
5940
302
7006
CPU Registers
302
PC
0005 AC
7006 IR
940
I/O Device
005
0003
0002
Memory
3005
5940
7006
940
0002
CPU Registers
303
PC
0005 AC
7006 IR
I/O Device
005
0003
006
0005