summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/segas16a.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/segas16a.cpp')
-rw-r--r--src/mame/drivers/segas16a.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mame/drivers/segas16a.cpp b/src/mame/drivers/segas16a.cpp
index 7c23c8544a0..4e8f52d3d2f 100644
--- a/src/mame/drivers/segas16a.cpp
+++ b/src/mame/drivers/segas16a.cpp
@@ -1981,7 +1981,9 @@ MACHINE_CONFIG_START(segas16a_state::system16a)
MCFG_MCS48_PORT_P2_OUT_CB(WRITE8(*this, segas16a_state, n7751_p2_w))
MCFG_MCS48_PORT_PROG_OUT_CB(WRITELINE("n7751_8243", i8243_device, prog_w))
- MCFG_I8243_ADD("n7751_8243", CONSTANT(0), WRITE8(*this, segas16a_state,n7751_rom_offset_w))
+ I8243(config, m_n7751_i8243);
+ m_n7751_i8243->read_handler().set_constant(0);
+ m_n7751_i8243->write_handler().set(FUNC(segas16a_state::n7751_rom_offset_w));
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);