From 75cbb7673ef41b49ee34ab31ede208f5267cba85 Mon Sep 17 00:00:00 2001 From: Sergey Svishchev Date: Sat, 13 Aug 2016 00:11:30 +0300 Subject: [PATCH] isa_hdc: don't install ROM on ec1841 (its BIOS supports HDC natively) (nw) --- src/devices/bus/isa/hdc.cpp | 2 +- src/devices/bus/isa/hdc.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/devices/bus/isa/hdc.cpp b/src/devices/bus/isa/hdc.cpp index eb1f55eb682..05f298db6b2 100644 --- a/src/devices/bus/isa/hdc.cpp +++ b/src/devices/bus/isa/hdc.cpp @@ -957,7 +957,7 @@ void isa8_hdc_device::device_reset() { dip = ioport("HDD")->read(); - if (ioport("ROM")->read() == 1) + if (ioport("ROM")->read() == 1 && m_hdc->install_rom()) m_isa->install_rom(this, 0xc8000, 0xc9fff, "hdc", "hdc"); } diff --git a/src/devices/bus/isa/hdc.h b/src/devices/bus/isa/hdc.h index e2f3a081624..275028de4b9 100644 --- a/src/devices/bus/isa/hdc.h +++ b/src/devices/bus/isa/hdc.h @@ -50,6 +50,7 @@ public: UINT8 status_r(); void set_ready(); UINT8 get_command() { return buffer[0]; } + bool install_rom() { return (m_type != EC1841); } protected: // device-level overrides