New turbo floppy poller, should be a bit faster than before.

This commit is contained in:
OBattler
2017-07-26 00:16:54 +02:00
parent 562a138ec8
commit 02f5d663d0
10 changed files with 382 additions and 8 deletions

View File

@@ -194,11 +194,6 @@ double disc_byteperiod(int drive)
if (drives[drive].byteperiod)
{
if (fdd_get_turbo(drive))
{
return 1.0;
}
return drives[drive].byteperiod(drive);
}
else
@@ -217,7 +212,12 @@ double disc_real_period(int drive)
dusec = (double) TIMER_USEC;
/* This is a giant hack but until the timings become even more correct, this is needed to make floppies work right on that BIOS. */
if ((romset == ROM_MRTHOR) && !fdd_get_turbo(drive))
if (fdd_get_turbo(drive))
{
return (32.0 * dusec);
}
if (romset == ROM_MRTHOR)
{
return (ddbp * dusec) / 4.0;
}