|
|
| version 1.2, 2003/10/21 11:22:05 | version 1.3, 2003/12/01 10:45:46 |
|---|---|
| Line 10 | Line 10 |
| static void IOOUTCALL cpuio_of0(UINT port, BYTE dat) { | static void IOOUTCALL cpuio_of0(UINT port, BYTE dat) { |
| cpuio.reset_req = 1; | i286core.s.adrsmask = 0x0fffff; |
| extmem.adrsmask = 0x0fffff; | i286core.s.resetreq = 1; |
| i286_interrupt(0x02); | i286_interrupt(0x02); |
| nevent_forceexit(); | nevent_forceexit(); |
| (void)port; | (void)port; |
| Line 20 static void IOOUTCALL cpuio_of0(UINT por | Line 20 static void IOOUTCALL cpuio_of0(UINT por |
| static void IOOUTCALL cpuio_of2(UINT port, BYTE dat) { | static void IOOUTCALL cpuio_of2(UINT port, BYTE dat) { |
| extmem.adrsmask = 0x1fffff; | i286core.s.adrsmask = 0x1fffff; |
| (void)port; | (void)port; |
| (void)dat; | (void)dat; |
| } | } |
| Line 44 static BYTE IOINPCALL cpuio_if2(UINT por | Line 44 static BYTE IOINPCALL cpuio_if2(UINT por |
| BYTE ret; | BYTE ret; |
| ret = 0xfe; | ret = 0xfe; |
| if (extmem.adrsmask != 0x1fffff) { | if (i286core.s.adrsmask != 0x1fffff) { |
| ret++; | ret++; |
| } | } |
| (void)port; | (void)port; |
| Line 57 static void IOOUTCALL cpuio_of6(UINT por | Line 57 static void IOOUTCALL cpuio_of6(UINT por |
| switch(dat) { | switch(dat) { |
| case 0x02: | case 0x02: |
| extmem.adrsmask = 0x1fffff; | i286core.s.adrsmask = 0x1fffff; |
| break; | break; |
| case 0x03: | case 0x03: |
| extmem.adrsmask = 0x0fffff; | i286core.s.adrsmask = 0x0fffff; |
| break; | break; |
| } | } |
| (void)port; | (void)port; |
| Line 72 static BYTE IOINPCALL cpuio_if6(UINT por | Line 72 static BYTE IOINPCALL cpuio_if6(UINT por |
| BYTE ret; | BYTE ret; |
| ret = 0x00; | ret = 0x00; |
| if (extmem.adrsmask != 0x1fffff) { | if (i286core.s.adrsmask != 0x1fffff) { |
| ret |= 0x01; | ret |= 0x01; |
| } | } |
| if (nmi.enable) { | if (nmi.enable) { |
| Line 104 static const IOINP cpuioif0[8] = { | Line 104 static const IOINP cpuioif0[8] = { |
| NULL, NULL, NULL, NULL}; | NULL, NULL, NULL, NULL}; |
| #endif | #endif |
| void cpuio_reset(void) { | |
| ZeroMemory(&cpuio, sizeof(cpuio)); | |
| } | |
| void cpuio_bind(void) { | void cpuio_bind(void) { |
| iocore_attachsysoutex(0x00f0, 0x0cf1, cpuioof0, 8); | iocore_attachsysoutex(0x00f0, 0x0cf1, cpuioof0, 8); |