FDC: Initialize DRVRATE to 1 on the OKI IF386AX so that 1.25 MB floppies can be read on a 3.5" 3-mode drive.
This commit is contained in:
@@ -2268,10 +2268,21 @@ fdc_reset(void *priv)
|
|||||||
fdc_update_rwc(fdc, 1, default_rwc);
|
fdc_update_rwc(fdc, 1, default_rwc);
|
||||||
fdc_update_rwc(fdc, 2, default_rwc);
|
fdc_update_rwc(fdc, 2, default_rwc);
|
||||||
fdc_update_rwc(fdc, 3, default_rwc);
|
fdc_update_rwc(fdc, 3, default_rwc);
|
||||||
fdc_update_drvrate(fdc, 0, 0);
|
/*
|
||||||
fdc_update_drvrate(fdc, 1, 0);
|
The OKI IF386SX natively supports the Japanese 1.25 MB floppy format,
|
||||||
fdc_update_drvrate(fdc, 2, 0);
|
since it can read such images just fine, it also attempts to use data
|
||||||
fdc_update_drvrate(fdc, 3, 0);
|
rate 01 on a 3.5" MB drive (which is the only kind it can physically
|
||||||
|
take, anyway), and rate 01 on a 3.5" MB drive is usually used by 3-mode
|
||||||
|
drives to switch to 360 RPM. Hence why I'm switching DRVDEN to 1, so
|
||||||
|
rate 01 becomes 500 kbps, so on a 3-mode 3.5" drive, 1.25 MB floppies
|
||||||
|
can be read. The side effect is that to read 5.25" 360k drives, you
|
||||||
|
need to use a dual-RPM 5.25" drive - but hey, that finally gets those
|
||||||
|
drives some usage as well.
|
||||||
|
*/
|
||||||
|
fdc_update_drvrate(fdc, 0, !strcmp(machine_get_internal_name(), "if386sx"));
|
||||||
|
fdc_update_drvrate(fdc, 1, !strcmp(machine_get_internal_name(), "if386sx"));
|
||||||
|
fdc_update_drvrate(fdc, 2, !strcmp(machine_get_internal_name(), "if386sx"));
|
||||||
|
fdc_update_drvrate(fdc, 3, !strcmp(machine_get_internal_name(), "if386sx"));
|
||||||
fdc_update_drv2en(fdc, 1);
|
fdc_update_drv2en(fdc, 1);
|
||||||
fdc_update_rates(fdc);
|
fdc_update_rates(fdc);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user