|
|
| version 1.2, 2003/10/17 03:52:24 | version 1.3, 2003/12/08 00:55:32 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "sysmng.h" | #include "sysmng.h" |
| #include "i286.h" | #include "cpucore.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "sound.h" | #include "sound.h" |
| #include "beep.h" | #include "beep.h" |
| void IOOUTCALL dipsw_w8(UINT port, BYTE value) { | void IOOUTCALL dipsw_w8(UINT port, REG8 value) { |
| BYTE set; | BYTE set; |
| UINT update; | UINT update; |
| Line 76 void IOOUTCALL dipsw_w8(UINT port, BYTE | Line 76 void IOOUTCALL dipsw_w8(UINT port, BYTE |
| sysmng_update(update); | sysmng_update(update); |
| } | } |
| BYTE IOINPCALL dipsw_r8(UINT port) { | REG8 IOINPCALL dipsw_r8(UINT port) { |
| BYTE ret = 0xff; | REG8 ret; |
| ret = 0xff; | |
| switch(port & 0x0f00) { | switch(port & 0x0f00) { |
| case 0x0400: | case 0x0400: |
| ret = (np2cfg.dipsw[0] ^ 0x04) & 0xbc; | ret = (np2cfg.dipsw[0] ^ 0x04) & 0xbc; |