sms: add pause support

This commit is contained in:
notaz 2013-08-31 02:23:57 +03:00
parent c7074ddb02
commit 835122bc0c
4 changed files with 48 additions and 5 deletions

View file

@ -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,14 @@ void PicoFrameMS(void)
int skip = PicoSkipFrame;
int lines_vis = 192;
int hint; // Hint counter
int nmi;
int y;
nmi = (PicoPad[0] >> 7) & 1;
if (!Pico.ms.nmi_state && nmi)
z80_nmi();
Pico.ms.nmi_state = nmi;
PicoFrameStartMode4();
hint = pv->reg[0x0a];