--- np2/io/printif.c 2003/12/24 16:11:40 1.4 +++ np2/io/printif.c 2007/11/11 13:54:14 1.9 @@ -21,6 +21,7 @@ static void IOOUTCALL prt_o40(UINT port, } prt->write(prt, (UINT8)dat); // TRACEOUT(("prt - %.2x", dat)); + (void)port; } static REG8 IOINPCALL prt_i42(UINT port) { @@ -28,22 +29,22 @@ static REG8 IOINPCALL prt_i42(UINT port) REG8 ret; ret = 0x84; - if (pc.cpumode & CPUMODE_8MHz) { + if (pccore.cpumode & CPUMODE_8MHZ) { ret |= 0x20; } - if (np2cfg.dipsw[0] & 4) { + if (pccore.dipsw[0] & 4) { ret |= 0x10; } - if (np2cfg.dipsw[0] & 0x80) { + if (pccore.dipsw[0] & 0x80) { ret |= 0x08; } - if (!(pc.model & PCMODEL_EPSON)) { + if (!(pccore.model & PCMODEL_EPSON)) { if (CPU_TYPE & CPUTYPE_V30) { ret |= 0x02; } } else { - if (np2cfg.dipsw[2] & 0x80) { + if (pccore.dipsw[2] & 0x80) { ret |= 0x02; } } @@ -60,10 +61,12 @@ static const IOOUT prto40[4] = { static const IOINP prti40[4] = { NULL, prt_i42, NULL, NULL}; -void printif_reset(void) { +void printif_reset(const NP2CFG *pConfig) { commng_destroy(cm_prt); cm_prt = NULL; + + (void)pConfig; } void printif_bind(void) {