Interrupt handler

From MSX Game Library

Revision as of 13:35, 17 October 2025 by Aoineko (talk | contribs) (What is an interrupt?)

The MSX interrupt mechanism is essential for gameplay synchronization, but also for using certain peripheral features (such as the graphics processor).

What is an interrupt?

As its name suggests, an interrupt is a mechanism that temporarily interrupts the execution of the current main program to execute another piece of code, before returning control to the main code.

On an MSX, it is the Z80, the central processor, that manages this mechanism. It has a specific input connected to the internal BUS that allows it to communicate with all internal (such as the VDP) and external (via the cartridge port) peripherals.

When a peripheral wants to trigger an interrupt, it


Translated with DeepL.com (free version)