summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isa/aha1542c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/isa/aha1542c.cpp')
-rw-r--r--src/devices/bus/isa/aha1542c.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/devices/bus/isa/aha1542c.cpp b/src/devices/bus/isa/aha1542c.cpp
index 34e716647ac..9e11e32ced7 100644
--- a/src/devices/bus/isa/aha1542c.cpp
+++ b/src/devices/bus/isa/aha1542c.cpp
@@ -232,7 +232,7 @@ void aha1542c_device::z84c0010_mem(address_map &map)
{
map(0x0000, 0x7fff).rom().region(Z84C0010_TAG, 0);
map(0x8000, 0x9fff).ram(); // 2kb RAM chip
- map(0xa000, 0xa000).portr("SWITCHES");
+ map(0xa000, 0xa000).portr(m_switches);
map(0xb000, 0xb000).w(FUNC(aha1542c_device::local_latch_w));
map(0xe000, 0xe0ff).ram(); // probably PC<->Z80 communication area
map(0xe003, 0xe003).lr8(NAME([] () { return 0x20; }));
@@ -255,7 +255,7 @@ void aha1542cp_device::local_mem(address_map &map)
{
map(0x0000, 0x7fff).rom().region(Z84C0010_TAG, 0);
map(0x8000, 0x9fff).ram();
- map(0xc000, 0xc000).portr("SWITCHES");
+ map(0xc000, 0xc000).portr(m_switches);
map(0xc001, 0xc001).rw(FUNC(aha1542cp_device::eeprom_r), FUNC(aha1542cp_device::eeprom_w));
map(0xe003, 0xe003).nopr();
}
@@ -281,7 +281,7 @@ static INPUT_PORTS_START( aha1542c )
PORT_DIPSETTING(0x50, "D4000h")
PORT_DIPSETTING(0x60, "D8000h")
PORT_DIPSETTING(0x70, "DC000h")
- PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_CUSTOM) PORT_READ_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, do_read)
+ PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_CUSTOM) PORT_READ_LINE_DEVICE_MEMBER("eeprom", FUNC(eeprom_serial_93cxx_device::do_read))
PORT_START("FDC_CONFIG")
PORT_DIPNAME(0x1, 0x1, "Floppy Disk Controller") PORT_DIPLOCATION("S1:5")
@@ -362,6 +362,7 @@ aha1542c_device::aha1542c_device(const machine_config &mconfig, device_type type
: device_t(mconfig, type, tag, owner, clock)
, device_isa16_card_interface(mconfig, *this)
, m_eeprom(*this, "eeprom")
+ , m_switches(*this, "SWITCHES")
{
}