--- np2/bios/bios1b.c 2004/01/30 14:33:27 1.19 +++ np2/bios/bios1b.c 2004/02/18 21:58:41 1.20 @@ -17,10 +17,6 @@ enum { }; -static BYTE mtr_c = 0; -static UINT mtr_r = 0; - - // ---- FDD static BOOL setfdcmode(REG8 drv, REG8 type, REG8 rpm) { @@ -97,7 +93,6 @@ static BOOL biosfd_seek(REG8 track, BOOL } } fdc.ncn = track; - mtr_c = track; if (fdd_seek()) { return(FAILURE); } @@ -298,8 +293,10 @@ static REG8 fdd_operate(REG8 type, REG8 BYTE hd; int result = FDCBIOS_NORESULT; UINT32 addr; + UINT8 mtr_c; + UINT mtr_r; - mtr_c = 0xff; + mtr_c = fdc.ncn; mtr_r = 0; // とりあえずBIOSの時は無視する @@ -678,7 +675,9 @@ static REG8 fdd_operate(REG8 type, REG8 break; } fdd_int(result); - fddmtr_seek(fdc.us, mtr_c, mtr_r); + if (mtr_c != fdc.ncn) { + fddmtr_seek(fdc.us, mtr_c, mtr_r); + } return(ret_ah); }