From d5908845f52d90fe9d221eb1a83ad2d1fa3bc302 Mon Sep 17 00:00:00 2001 From: kub Date: Fri, 12 Nov 2021 19:43:02 +0100 Subject: [PATCH] sms, no nmi generation for start button on gg --- pico/sms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pico/sms.c b/pico/sms.c index ab8a6f03..b8cc36b0 100644 --- a/pico/sms.c +++ b/pico/sms.c @@ -678,8 +678,9 @@ void PicoFrameMS(void) z80_resetCycles(); PsndStartFrame(); + // for SMS the pause button generates an NMI, for GG ths is not the case nmi = (PicoIn.pad[0] >> 7) & 1; - if (!Pico.ms.nmi_state && nmi) + if (!(Pico.m.hardware & 0x1) && !Pico.ms.nmi_state && nmi) z80_nmi(); Pico.ms.nmi_state = nmi; -- 2.39.5