--- np2/io/np2sysp.c 2005/02/27 15:07:36 1.19 +++ np2/io/np2sysp.c 2007/11/11 12:46:07 1.24 @@ -110,7 +110,7 @@ static void np2sysp_multiple(const void static void np2sysp_hwreset(const void *arg1, long arg2) { - hardwarereset = TRUE; + pcstat.hardwarereset = TRUE; (void)arg1; (void)arg2; } @@ -195,7 +195,7 @@ static BRESULT np2syspcmp(const char *p) int len; int pos; - len = STRLEN(p); + len = (int)STRLEN(p); if (!len) { return(FAILURE); } @@ -266,21 +266,20 @@ static void IOOUTCALL np2sysp_o0e9(UINT (void)port; } -static void IOOUTCALL np2sysp_o0eb(UINT port, REG8 dat) { +static REG8 IOINPCALL np2sysp_i0e9(UINT port) { - TRACEOUT(("mask %x", CPU_ADRSMASK)); - TRACEOUT(("%s", debugsub_regs())); - (void)port; - (void)dat; + return((UINT8)port); } #endif // ---- I/F -void np2sysp_reset(void) { +void np2sysp_reset(const NP2CFG *pConfig) { ZeroMemory(&np2sysp, sizeof(np2sysp)); + + (void)pConfig; } void np2sysp_bind(void) { @@ -292,7 +291,7 @@ void np2sysp_bind(void) { #if defined(NP2APPDEV) iocore_attachout(0x00e9, np2sysp_o0e9); - iocore_attachout(0x00eb, np2sysp_o0eb); + iocore_attachinp(0x00e9, np2sysp_i0e9); #endif }