--- np2/cbus/amd98.c 2004/06/19 14:39:22 1.13 +++ np2/cbus/amd98.c 2004/06/26 15:47:00 1.15 @@ -293,21 +293,23 @@ static REG8 IOINPCALL amd_ida(UINT port) static REG8 IOINPCALL amd_idb(UINT port) { - if (opn.opnreg < 0x0e) { + if (opn.extreg < 0x0e) { return(psggen_getreg(&psg2, opn.extreg)); } - else if (opn.opnreg == 0x0f) { + else if (opn.extreg == 0x0f) { return(psg2.reg.io2); } (void)port; return(0xff); } +#if defined(TRACE) static REG8 IOINPCALL amd_inp(UINT port) { TRACEOUT(("amd inp - %.4x", port)); return(0xff); } +#endif // ----