Permalink
Browse files

DOS: Choose data rate default based on PCI or ISA type system

  • Loading branch information...
joncampbell123 committed Feb 13, 2018
1 parent 68a7018 commit 56b08ff9f1c7960ea2ddb79605b85be94f0a5efa
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/dos/dos.cpp
@@ -1865,7 +1865,14 @@ class DOS:public Module_base{
Section_prop * section=static_cast<Section_prop *>(configuration);
::disk_data_rate = section->Get_int("hard drive data rate limit");
if (::disk_data_rate < 0) ::disk_data_rate = 2100000; /* default 2.1MByte/sec, like a mid 1990s IDE drive in PIO mode */
if (::disk_data_rate < 0) {
extern bool pcibus_enable;
if (pcibus_enable)
::disk_data_rate = 2100000; /* default 2.1MByte/sec, like a mid 1990s IDE drive in PIO mode */
else
::disk_data_rate = 1100000; /* default 1.1MByte/sec, like an early 1990s IDE drive in PIO mode */
}
dos_in_hma = section->Get_bool("dos in hma");
log_dev_con = control->opt_log_con || section->Get_bool("log console");

0 comments on commit 56b08ff

Please sign in to comment.