Problem 1
Problem 2
A B | C D Z
----|------
0 0 | 1 1 0
0 1 | 1 0 0
1 0 | 0 1 0
1 1 | 0 0 1
Problem 4
Fetch Instruction | Decode | Evaluate Address | Fetch Data | Execute | Store Result | |
PC | X | |||||
IR | X | |||||
MAR | X | |||||
MDR | X |
For the instruction whose opcode is 0010 (LD):
Fetch Instruction | Decode | Evaluate Address | Fetch Data | Execute | Store Result | |
PC | X | |||||
IR | X | |||||
MAR | X | X(a) | X(b) | |||
MDR | X | X |
For the instruction whose opcode is 0011 (ST):
Fetch Instruction | Decode | Evaluate Address | Fetch Data | Execute | Store Result | |
PC | X | |||||
IR | X | |||||
MAR | X | X(a) | X(b) | X(c) | X(d) | |
MDR | X | X(1) | X(2) | X(3) |
For the instruction whose opcode is 0000 (a control instruction):
Fetch Instruction | Decode | Evaluate Address | Fetch Data | Execute | Store Result | |
PC | X | X | ||||
IR | X | |||||
MAR | X | |||||
MDR | X |
Problem 4
Problem 5
(1): 1001 100 001 111111   ; R4 <- NOT(R1)
(2): 1001 101 010 111111   ; R5 <- NOT(R2)
(3): 0101 110 100 000 101   ; R6 <- R4 AND R5
(4): 1001 011 110 111111   ; R3 <- NOT(R6)
Problem 6
Sign | Exponent | Fraction |
1 | 1 1 0 0 | 1 0 1 |
Problem 7