|
|
| version 1.1, 2003/10/16 17:57:58 | version 1.4, 2007/11/11 13:54:14 |
|---|---|
| Line 7 | Line 7 |
| // ---- I/O | // ---- I/O |
| static void IOOUTCALL sysp_o35(UINT port, BYTE dat) { | static void IOOUTCALL sysp_o35(UINT port, REG8 dat) { |
| if ((sysport.c ^ dat) & 0x04) { // ver0.29 | if ((sysport.c ^ dat) & 0x04) { // ver0.29 |
| rs232c.send = 1; | rs232c.send = 1; |
| Line 17 static void IOOUTCALL sysp_o35(UINT port | Line 17 static void IOOUTCALL sysp_o35(UINT port |
| (void)port; | (void)port; |
| } | } |
| static void IOOUTCALL sysp_o37(UINT port, BYTE dat) { | static void IOOUTCALL sysp_o37(UINT port, REG8 dat) { |
| BYTE bit; | REG8 bit; |
| if (!(dat & 0xf0)) { | if (!(dat & 0xf0)) { |
| bit = 1 << (dat >> 1); | bit = 1 << (dat >> 1); |
| Line 39 static void IOOUTCALL sysp_o37(UINT port | Line 39 static void IOOUTCALL sysp_o37(UINT port |
| (void)port; | (void)port; |
| } | } |
| static BYTE IOINPCALL sysp_i31(UINT port) { | static REG8 IOINPCALL sysp_i31(UINT port) { |
| (void)port; | (void)port; |
| return(np2cfg.dipsw[1]); | return(pccore.dipsw[1]); |
| } | } |
| static BYTE IOINPCALL sysp_i33(UINT port) { | static REG8 IOINPCALL sysp_i33(UINT port) { |
| BYTE ret; | REG8 ret; |
| ret = ((~np2cfg.dipsw[0]) & 1) << 3; | ret = ((~pccore.dipsw[0]) & 1) << 3; |
| ret |= rs232c_stat(); | ret |= rs232c_stat(); |
| ret |= uPD4990.cdat; | ret |= uPD4990.cdat; |
| (void)port; | (void)port; |
| return(ret); | return(ret); |
| } | } |
| static BYTE IOINPCALL sysp_i35(UINT port) { | static REG8 IOINPCALL sysp_i35(UINT port) { |
| (void)port; | (void)port; |
| return(sysport.c); | return(sysport.c); |
| Line 72 static const IOOUT syspo31[4] = { | Line 71 static const IOOUT syspo31[4] = { |
| static const IOINP syspi31[4] = { | static const IOINP syspi31[4] = { |
| sysp_i31, sysp_i33, sysp_i35, NULL}; | sysp_i31, sysp_i33, sysp_i35, NULL}; |
| void systemport_reset(void) { | void systemport_reset(const NP2CFG *pConfig) { |
| sysport.c = 0xf9; | sysport.c = 0xf9; |
| beep_oneventset(); | beep_oneventset(); |
| (void)pConfig; | |
| } | } |
| void systemport_bind(void) { | void systemport_bind(void) { |