- 86Box's own headers go to /86box - munt's public interface goes to /mt32emu - all slirp headers go to /slirp (might want to consider using only its public inteface) - single file headers from other projects go in include root
26 lines
433 B
C
26 lines
433 B
C
/* Copyright holders: Sarah Walker
|
|
see COPYING for more details
|
|
*/
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <wchar.h>
|
|
#include <86box/io.h>
|
|
#include <86box/nmi.h>
|
|
|
|
|
|
int nmi_mask;
|
|
|
|
|
|
void nmi_write(uint16_t port, uint8_t val, void *p)
|
|
{
|
|
nmi_mask = val & 0x80;
|
|
}
|
|
|
|
|
|
void nmi_init(void)
|
|
{
|
|
io_sethandler(0x00a0, 0x0001, NULL, NULL, NULL, nmi_write, NULL, NULL, NULL);
|
|
nmi_mask = 0;
|
|
}
|