Fixed FDC absolute SEEK, fixes Floppy disk(s) fail (40) on Award BIOS'es.

This commit is contained in:
OBattler
2016-12-24 07:16:01 +01:00
parent 4089c33bc7
commit e46a34a505

View File

@@ -1184,12 +1184,9 @@ bad_command:
timer_update_outstanding(); timer_update_outstanding();
break; break;
} }
else
{
fdc.pcn[fdc.params[0] & 3] = fdc.params[1];
}
fdc_seek(fdc.drive, fdc.params[1] - fdc.pcn[fdc.params[0] & 3]); fdc_seek(fdc.drive, fdc.params[1] - fdc.pcn[fdc.params[0] & 3]);
fdc.pcn[fdc.params[0] & 3] = fdc.params[1];
if (seek_time < 0) seek_time = -seek_time; if (seek_time < 0) seek_time = -seek_time;
disctime = seek_time; disctime = seek_time;
} }