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
fdd_poll(void *priv)
{
int drive;
int drive, i;
DRIVE *drv = (DRIVE *) priv;
drive = drv->id;
@@ -602,8 +602,9 @@ fdd_poll(void *priv)
if (drive >= FDD_NUM)
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)
drv->poll(drive);
@@ -613,6 +614,7 @@ fdd_poll(void *priv)
fdc_noidam(fdd_fdc);
}
}
}
int