Implemented NMI mask register for XT machines.
Fixed PC200 NMI stuff.
This commit is contained in:
parent
8ce24651f1
commit
7eacf1408a
9 changed files with 54 additions and 8 deletions
15
src/nmi.c
Normal file
15
src/nmi.c
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include "ibm.h"
|
||||
#include "nmi.h"
|
||||
|
||||
int nmi_mask;
|
||||
|
||||
void nmi_write(uint16_t port, uint8_t val, void *p)
|
||||
{
|
||||
nmi_mask = val & 0x80;
|
||||
}
|
||||
|
||||
void nmi_init()
|
||||
{
|
||||
io_sethandler(0x00a0, 0x0001, NULL, NULL, NULL, nmi_write, NULL, NULL, NULL);
|
||||
nmi_mask = 0;
|
||||
}
|
||||
Loading…
Reference in a new issue