Changed the way floppy drive polling is done, fixes Write Master.

This commit is contained in:
OBattler
2019-10-03 00:42:42 +02:00
parent 2636ff2abf
commit 1dca23d16c

View File

@@ -594,7 +594,7 @@ fdd_set_motor_enable(int drive, int motor_enable)
static void static void
fdd_poll(void *priv) fdd_poll(void *priv)
{ {
int drive; int drive, i;
DRIVE *drv = (DRIVE *) priv; DRIVE *drv = (DRIVE *) priv;
drive = drv->id; drive = drv->id;
@@ -602,8 +602,9 @@ fdd_poll(void *priv)
if (drive >= FDD_NUM) if (drive >= FDD_NUM)
fatal("Attempting to poll floppy drive %i that is not supposed to be there\n", drive); fatal("Attempting to poll floppy drive %i that is not supposed to be there\n", drive);
timer_advance_u64(&fdd_poll_time[drive], fdd_byteperiod(drive)); timer_advance_u64(&fdd_poll_time[drive], fdd_byteperiod(drive) << 5ULL);
for (i = 0; i < 32; i++) {
if (drv->poll) if (drv->poll)
drv->poll(drive); drv->poll(drive);
@@ -612,6 +613,7 @@ fdd_poll(void *priv)
if (!fdd_notfound) if (!fdd_notfound)
fdc_noidam(fdd_fdc); fdc_noidam(fdd_fdc);
} }
}
} }