9618/11/M/J/23 question 6: worked solution (May/June 2023, paper 11)

Show as 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. Q6 9618/11/M/J/23 original Q6 Structured · 5 marks 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 IDEA Interrupt: flag raised, checked after the cycle, registers saved, ISR runs, registers restored. TOTAL 5 marks Official mark scheme VIDEO ▶ Starts at Q6 (1:24:44) Starts at Q6 (1:24:44) · by Pseudocode Pro. Tap the picture to open it on YouTube.