Applied the NMI mask patch from Greatpsycho;

All PS/1 and PS/2 models are now fixed to their built-in graphics cards and use the legacy VGA monitor pin emulation - fixes the 2401 errors;
The S3 ViRGE no longer dumps the video RAM on close.
This commit is contained in:
OBattler
2017-07-19 14:18:33 +02:00
parent 1168c6c63c
commit 10ea6dd911
4 changed files with 14 additions and 9 deletions

View File

@@ -27,6 +27,7 @@
#include "io.h"
#include "mem.h"
#include "model.h"
#include "nmi.h"
#include "nvr.h"
#include "pic.h"
#include "rom.h"
@@ -184,7 +185,11 @@ void writenvr(uint16_t addr, uint8_t val, void *priv)
}
}
}
else nvraddr=val&nvrmask;
else
{
nvraddr=val&nvrmask;
nmi_mask = ~val & 0x80;
}
}
uint8_t readnvr(uint16_t addr, void *priv)