Worked solution from the Processor Fundamentals Paper 1 Theory Fundamentals booklet, Part 1 of 3.
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.
▶ 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.