q800: add NMI handler
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 20 Oct 2021 13:41:31 +0000 (14:41 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 20 Oct 2021 14:18:40 +0000 (16:18 +0200)
commit3ea74abe2ddfd0741d4aa75484c88b346b85fb26
tree9ab8d73aa631593727f2ddba370cd1e0b24f9534
parentc7710c1ebf0b316ac0ab517fa8ceaa2824904474
q800: add NMI handler

This allows the programmer's switch to be triggered via the monitor for debugging
purposes. Since the CPU level 7 interrupt is level-triggered, use a timer to hold
the NMI active for 100ms before releasing it again.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewied-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20211020134131.4392-9-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/m68k/q800.c