9618/11/O/N/21 question 6: worked solution (October/November 2021, paper 11)
Show as plain textHide plain text
Cambridge AS Level Computer Science 9618 · 4.1 Central Processing Unit (CPU) Architecture Worked solution from the Processor Fundamentals Paper 1 Theory Fundamentals booklet, Part 1 of 3. Q1 9618/11/O/N/21 original Q6 Structured · 8 marks Worked solution (a) Two lines are wrong. Fill the table like this: Line number Description of the error Correct statement 2 The Program Counter must be incremented , not decremented PC ← [PC] + 1 3 MDR must get the contents of the address held in MAR , not the address itself MDR ← [[MAR]] Line 2 identified and error described [1] Line 2 correct statement [1] Line 3 identified and error described [1] Line 3 correct statement [1] (b) Do each operation bit by bit. Address 101 holds 11110000 and address 104 holds 00000000. Current contents of the ACC Instruction New contents of the ACC 11111111 OR 101 11111111 00000000 XOR #15 00001111 10101010 LSR #2 00101010 01010101 AND 104 00000000 OR 101: 11111111 [1] XOR #15 (15 = 00001111): 00001111 [1] LSR #2 (shift right 2, zeros on the left): 00101010 [1] AND 104 (AND with all zeros): 00000000 [1] KEY IDEA The fetch step must increase the Program Counter, and MDR holds what is stored at the address in MAR. TOTAL 8 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.