--- np2/cbus/amd98.c 2004/06/19 14:39:22 1.13 +++ np2/cbus/amd98.c 2004/06/22 04:33:49 1.14 @@ -293,10 +293,10 @@ 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;