Add n88basic sector gaps to d88 reader for PC-88 DD disks.

The values used for 1.2MB HD disks are too narrow for the
PC-88's disk controller.
This commit is contained in:
Thomas Daede
2022-08-09 21:47:34 -07:00
parent c8e6795a90
commit 498558c2b1

View File

@@ -160,16 +160,25 @@ public:
trackdata->set_dam_byte(0xf56f); trackdata->set_dam_byte(0xf56f);
} }
// create timings to approximately match N88-BASIC // create timings to approximately match N88-BASIC
if (sectorSize <= 128) if (clockRate == 300) {
{ if (sectorSize <= 256)
trackdata->set_gap0(0x1b); {
trackdata->set_gap2(0x09); trackdata->set_gap0(0x1b);
trackdata->set_gap3(0x1b); trackdata->set_gap2(0x14);
} trackdata->set_gap3(0x1b);
else if (sectorSize <= 256) }
{ } else {
trackdata->set_gap0(0x36); if (sectorSize <= 128)
trackdata->set_gap3(0x36); {
trackdata->set_gap0(0x1b);
trackdata->set_gap2(0x09);
trackdata->set_gap3(0x1b);
}
else if (sectorSize <= 256)
{
trackdata->set_gap0(0x36);
trackdata->set_gap3(0x36);
}
} }
} }
else if (trackSectorSize != sectorSize) else if (trackSectorSize != sectorSize)