Worked solution from the Hardware and Virtual Machines Paper 3 Advanced Theory booklet, Part 1 of 2.
Write any two of these RISC features:
Uses hard-wired control units (no microcode) [1]
Uses few, simple instructions / few addressing modes / one cycle per instruction / fixed-length instructions / many general-purpose registers / pipelining is easy to use [1]
Describe what happens, in order:
The processor checks for an interrupt at the end (or start) of each fetch-execute cycle and detects one [1]
The current program is stopped and the register contents are saved on the stack [1]
The interrupt service routine (ISR) runs. After it, the registers are restored from the stack and the original program carries on [1]
Explain the effect of the pipeline:
With pipelining several instructions are in the pipeline at once, so handling an interrupt is more complex [1]
The instructions already in the pipeline are usually discarded, except the one in the last stage (write back) [1]
The ISR is run once that last instruction finishes. Afterwards the processor restarts with the next instruction in the sequence [1]
▶ Whole paper
Video solution of the whole paper · by CsWithMym. 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.