diff options
Diffstat (limited to 'src/devices/machine/pdc.cpp')
-rw-r--r-- | src/devices/machine/pdc.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/devices/machine/pdc.cpp b/src/devices/machine/pdc.cpp index 73aca052620..7bb3a4c763c 100644 --- a/src/devices/machine/pdc.cpp +++ b/src/devices/machine/pdc.cpp @@ -154,8 +154,8 @@ void pdc_device::pdc_io(address_map &map) map(0x21, 0x2F).rw(FUNC(pdc_device::fdd_68k_r), FUNC(pdc_device::fdd_68k_w)).mirror(0xFF00); map(0x38, 0x38).r(FUNC(pdc_device::p38_r)).mirror(0xFF00); // Possibly UPD765 interrupt map(0x39, 0x39).r(FUNC(pdc_device::p39_r)).mirror(0xFF00); // HDD related - map(0x3c, 0x3c).portr("SW2").mirror(0xFF00); /* FDC Dipswitch */ - map(0x3d, 0x3d).portr("SW1").mirror(0xFF00); /* HDC Dipswitch */ + map(0x3c, 0x3c).portr(m_sw2).mirror(0xFF00); /* FDC Dipswitch */ + map(0x3d, 0x3d).portr(m_sw1).mirror(0xFF00); /* HDC Dipswitch */ map(0x40, 0x41).rw(HDC_TAG, FUNC(hdc9224_device::read), FUNC(hdc9224_device::write)).mirror(0xFF00); map(0x42, 0x43).m(m_fdc, FUNC(upd765a_device::map)).mirror(0xFF00); map(0x50, 0x5f).w(FUNC(pdc_device::p50_5f_w)).mirror(0xFF00); @@ -305,7 +305,9 @@ pdc_device::pdc_device(const machine_config &mconfig, const char *tag, device_t m_hdc9224(*this, HDC_TAG), m_pdc_ram(*this, "pdc_ram"), m_m68k_r_cb(*this, 0), - m_m68k_w_cb(*this) + m_m68k_w_cb(*this), + m_sw1(*this, "SW1"), + m_sw2(*this, "SW2") { } |