From: kub Date: Fri, 12 Nov 2021 18:43:02 +0000 (+0100) Subject: sms, no nmi generation for start button on gg X-Git-Tag: v2.00~415 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5908845f52d90fe9d221eb1a83ad2d1fa3bc302;p=picodrive.git sms, no nmi generation for start button on gg --- 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;