Cambridge AS Level Computer Science 9618 · 4.1 Central Processing Unit (CPU) Architecture

Q1 · 9618/11/O/N/21 Q6

Worked solution from the Processor Fundamentals Paper 1 Theory Fundamentals booklet, Part 1 of 3.

Q19618/11/O/N/21original Q6Structured · 8 marks
Question 6 from 9618/11/O/N/21

Worked solution

(a)

Two lines are wrong. Fill the table like this:

Line numberDescription of the errorCorrect statement
2The Program Counter must be incremented, not decrementedPC ← [PC] + 1
3MDR must get the contents of the address held in MAR, not the address itselfMDR ← [[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 ACCInstructionNew contents of the ACC
11111111OR 10111111111
00000000XOR #1500001111
10101010LSR #200101010
01010101AND 10400000000

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 IDEAThe fetch step must increase the Program Counter, and MDR holds what is stored at the address in MAR.
TOTAL 8 marks

Official mark scheme

Mark scheme for 9618/11/O/N/21 question 6
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.