--- np2/io/necio.c 2004/01/13 05:30:58 1.2 +++ np2/io/necio.c 2007/11/03 00:00:20 1.5 @@ -6,6 +6,12 @@ // ---- I/O +static void IOOUTCALL necio_o0439(UINT port, REG8 dat) { + + necio.port0439 = dat; + (void)port; +} + static void IOOUTCALL necio_o043d(UINT port, REG8 dat) { switch(dat) { @@ -23,11 +29,17 @@ static void IOOUTCALL necio_o043d(UINT p // ---- I/F -void necio_reset(void) { +void necio_reset(const NP2CFG *pConfig) { + + necio.port0439 = 0xff; + + (void)pConfig; } void necio_bind(void) { + iocore_attachout(0x0439, necio_o0439); + if (!(pccore.model & PCMODEL_EPSON)) { iocore_attachout(0x043d, necio_o043d); }