--- xmil/io/fdc.c 2004/08/02 13:38:46 1.1 +++ xmil/io/fdc.c 2004/08/05 04:53:15 1.2 @@ -79,6 +79,9 @@ void IOOUTCALL fdc_o(UINT port, REG8 val REG8 cmd; + if ((port & (~7)) != 0x0ff8) { + return; + } port &= 0xf; if (port == 8) { // ¥³¥Þ¥ó¥É driveset = 0; @@ -303,8 +306,10 @@ static short last_off; BYTE ans; REG8 cmd; + if ((port & (~7)) != 0x0ff8) { + return(0xff); + } cmd = (REG8)(fdc.cmd >> 4); - if ((port &= 0xf) != 8) { last_r = -1; last_off = -1;