--- np2/io/iocore.c 2004/04/02 19:31:26 1.17 +++ np2/io/iocore.c 2004/07/01 11:42:54 1.19 @@ -67,10 +67,12 @@ static UINT8 ioterminate[0x100]; static void IOOUTCALL defout8(UINT port, REG8 dat) { +#if !defined(DISABLE_SOUND) if ((port & 0xfff0) == cs4231.port) { cs4231io_w8(port, dat); return; } +#endif if ((port & 0xf0ff) == 0x801e) { dipsw_w8(port, dat); return; @@ -80,9 +82,11 @@ static void IOOUTCALL defout8(UINT port, static REG8 IOINPCALL definp8(UINT port) { +#if !defined(DISABLE_SOUND) if ((port & 0xfff0) == cs4231.port) { return(cs4231io_r8(port)); } +#endif if ((port & 0xf0ff) == 0x801e) { return(dipsw_r8(port)); } @@ -484,7 +488,7 @@ void IOOUTCALL iocore_out8(UINT port, RE IOFUNC iof; - TRACEOUT(("iocore_out8(%.2x, %.2x)", port, dat)); +// TRACEOUT(("iocore_out8(%.2x, %.2x)", port, dat)); CPU_REMCLOCK -= iocore.busclock; iof = iocore.base[(port >> 8) & 0xff]; iof->ioout[port & 0xff](port, dat); @@ -498,7 +502,7 @@ REG8 IOINPCALL iocore_inp8(UINT port) { CPU_REMCLOCK -= iocore.busclock; iof = iocore.base[(port >> 8) & 0xff]; ret = iof->ioinp[port & 0xff](port); - TRACEOUT(("iocore_inp8(%.2x) -> %.2x", port, ret)); +// TRACEOUT(("iocore_inp8(%.2x) -> %.2x", port, ret)); return(ret); } @@ -506,6 +510,7 @@ void IOOUTCALL iocore_out16(UINT port, R IOFUNC iof; +// TRACEOUT(("iocore_out16(%.4x, %.4x)", port, dat)); CPU_REMCLOCK -= iocore.busclock; #if defined(SUPPORT_IDEIO) if (port == 0x0640) {