mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
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:
@@ -160,16 +160,25 @@ public:
|
||||
trackdata->set_dam_byte(0xf56f);
|
||||
}
|
||||
// create timings to approximately match N88-BASIC
|
||||
if (sectorSize <= 128)
|
||||
{
|
||||
trackdata->set_gap0(0x1b);
|
||||
trackdata->set_gap2(0x09);
|
||||
trackdata->set_gap3(0x1b);
|
||||
}
|
||||
else if (sectorSize <= 256)
|
||||
{
|
||||
trackdata->set_gap0(0x36);
|
||||
trackdata->set_gap3(0x36);
|
||||
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);
|
||||
trackdata->set_gap2(0x09);
|
||||
trackdata->set_gap3(0x1b);
|
||||
}
|
||||
else if (sectorSize <= 256)
|
||||
{
|
||||
trackdata->set_gap0(0x36);
|
||||
trackdata->set_gap3(0x36);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (trackSectorSize != sectorSize)
|
||||
|
||||
Reference in New Issue
Block a user