Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DOS: Choose data rate default based on PCI or ISA type system
  • Loading branch information
joncampbell123 committed Feb 13, 2018
1 parent 68a7018 commit 56b08ff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/dos/dos.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit 56b08ff

Please sign in to comment.