summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/holeland.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/holeland.cpp')
-rw-r--r--src/mame/drivers/holeland.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/holeland.cpp b/src/mame/drivers/holeland.cpp
index 87bb3d32e64..66d190f5f5a 100644
--- a/src/mame/drivers/holeland.cpp
+++ b/src/mame/drivers/holeland.cpp
@@ -282,11 +282,11 @@ MACHINE_CONFIG_START(holeland_state::holeland)
MCFG_DEVICE_IO_MAP(io_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", holeland_state, irq0_line_hold)
- MCFG_DEVICE_ADD("latch", LS259, 0) // 3J
- MCFG_ADDRESSABLE_LATCH_PARALLEL_OUT_CB(WRITE8(*this, holeland_state, pal_offs_w)) MCFG_DEVCB_MASK(0x03)
- MCFG_ADDRESSABLE_LATCH_Q5_OUT_CB(WRITELINE(*this, holeland_state, coin_counter_w))
- MCFG_ADDRESSABLE_LATCH_Q6_OUT_CB(WRITELINE(*this, holeland_state, flipscreen_x_w))
- MCFG_ADDRESSABLE_LATCH_Q7_OUT_CB(WRITELINE(*this, holeland_state, flipscreen_y_w))
+ LS259(config, m_latch); // 3J
+ m_latch->parallel_out_cb().set(FUNC(holeland_state::pal_offs_w)).mask(0x03);
+ m_latch->q_out_cb<5>().set(FUNC(holeland_state::coin_counter_w));
+ m_latch->q_out_cb<6>().set(FUNC(holeland_state::flipscreen_x_w));
+ m_latch->q_out_cb<7>().set(FUNC(holeland_state::flipscreen_y_w));
MCFG_WATCHDOG_ADD("watchdog")
@@ -365,9 +365,9 @@ MACHINE_CONFIG_START(holeland_state::crzrally)
MCFG_NVRAM_ADD_1FILL("nvram")
- MCFG_DEVICE_ADD("latch", LS259, 0)
- MCFG_ADDRESSABLE_LATCH_PARALLEL_OUT_CB(WRITE8(*this, holeland_state, pal_offs_w)) MCFG_DEVCB_MASK(0x03)
- MCFG_ADDRESSABLE_LATCH_Q5_OUT_CB(WRITELINE(*this, holeland_state, coin_counter_w))
+ LS259(config, m_latch);
+ m_latch->parallel_out_cb().set(FUNC(holeland_state::pal_offs_w)).mask(0x03);
+ m_latch->q_out_cb<5>().set(FUNC(holeland_state::coin_counter_w));
MCFG_WATCHDOG_ADD("watchdog")