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,6 +160,14 @@ public:
trackdata->set_dam_byte(0xf56f);
}
// create timings to approximately match N88-BASIC
if (clockRate == 300) {
if (sectorSize <= 256)
{
trackdata->set_gap0(0x1b);
trackdata->set_gap2(0x14);
trackdata->set_gap3(0x1b);
}
} else {
if (sectorSize <= 128)
{
trackdata->set_gap0(0x1b);
@@ -172,6 +180,7 @@ public:
trackdata->set_gap3(0x36);
}
}
}
else if (trackSectorSize != sectorSize)
{
Error() << "D88: multiple sector sizes per track are "