Fixed the FDC's behavior of the DOR register and the RECALIBRATE and SEEK command to more accurately replicate that of a real FDC, fixes Windows 98 and (hopefully) NetBSD.

This commit is contained in:
OBattler
2016-12-24 05:37:14 +01:00
parent 645efe1f7d
commit ad7c92b2c5
5 changed files with 106 additions and 121 deletions

View File

@@ -340,20 +340,20 @@ void disc_comparesector(int drive, int sector, int track, int side, int density,
disc_notfound = 1000;
}
void disc_readaddress(int drive, int track, int side, int density)
void disc_readaddress(int drive, int side, int density)
{
drive = real_drive(drive);
if (drives[drive].readaddress)
drives[drive].readaddress(drive, track, side, density);
drives[drive].readaddress(drive, side, density);
}
void disc_format(int drive, int track, int side, int density, uint8_t fill)
void disc_format(int drive, int side, int density, uint8_t fill)
{
drive = real_drive(drive);
if (drives[drive].format)
drives[drive].format(drive, track, side, density, fill);
drives[drive].format(drive, side, density, fill);
else
disc_notfound = 1000;
}