X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fsms.c;h=7dc796ef4bec9ebd1021228124c47ac97c3e9ba7;hb=4f2cdbf551ad1a7f487b65b4754cbf7983e80b8a;hp=58905bdeb08a863e56ee7cf6ce6c39d602f2c78f;hpb=cff531af94bd9c9c89ae162e80f48ddc26a4e504;p=picodrive.git diff --git a/pico/sms.c b/pico/sms.c index 58905bd..7dc796e 100644 --- a/pico/sms.c +++ b/pico/sms.c @@ -11,7 +11,6 @@ * - remaining status flags (OVR/COL) * - RAM support in mapper * - region support - * - Pause button (NMI) * - SN76496 DAC-like usage * - H counter */ @@ -256,8 +255,16 @@ void PicoFrameMS(void) int skip = PicoSkipFrame; int lines_vis = 192; int hint; // Hint counter + int nmi; int y; + PsndStartFrame(); + + nmi = (PicoPad[0] >> 7) & 1; + if (!Pico.ms.nmi_state && nmi) + z80_nmi(); + Pico.ms.nmi_state = nmi; + PicoFrameStartMode4(); hint = pv->reg[0x0a];