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

Q6 · 9618/11/M/J/23 Q6

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

Q69618/11/M/J/23original Q6Structured · 5 marks
Question 6 from 9618/11/M/J/23

Worked solution

(a)

Describe the steps in order. Any five of these points score:

An interrupt flag is raised in the interrupt register [1]

At the end of the current fetch-execute cycle the system checks the interrupt register for an interrupt with a higher priority than the current process [1]

If so, it stores the contents of the registers on the stack [1]

The interrupt service routine (ISR) for the key press is called and the keyboard input is processed [1]

The register contents are restored from the stack and control passes back to the previous process [1]

Other accepted wording: the flag is raised at the start of the next cycle.

KEY IDEAInterrupt: flag raised, checked after the cycle, registers saved, ISR runs, registers restored.
TOTAL 5 marks

Official mark scheme

Mark scheme for 9618/11/M/J/23 question 6
VIDEO
▶ Starts at Q6 (1:24:44)

Starts at Q6 (1:24:44) · by Pseudocode Pro. 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.