summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mario.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mario.cpp')
-rw-r--r--src/mame/drivers/mario.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/mario.cpp b/src/mame/drivers/mario.cpp
index 1ffb77dd821..2ddbbfbf312 100644
--- a/src/mame/drivers/mario.cpp
+++ b/src/mame/drivers/mario.cpp
@@ -343,10 +343,10 @@ MACHINE_CONFIG_START(mario_state::mario_base)
MCFG_DEVICE_IO_MAP(mario_io_map)
/* devices */
- MCFG_DEVICE_ADD("z80dma", Z80DMA, Z80_CLOCK)
- MCFG_Z80DMA_OUT_BUSREQ_CB(INPUTLINE("maincpu", INPUT_LINE_HALT))
- MCFG_Z80DMA_IN_MREQ_CB(READ8(*this, mario_state, memory_read_byte))
- MCFG_Z80DMA_OUT_MREQ_CB(WRITE8(*this, mario_state, memory_write_byte))
+ Z80DMA(config, m_z80dma, Z80_CLOCK);
+ m_z80dma->out_busreq_callback().set_inputline(m_maincpu, INPUT_LINE_HALT);
+ m_z80dma->in_mreq_callback().set(FUNC(mario_state::memory_read_byte));
+ m_z80dma->out_mreq_callback().set(FUNC(mario_state::memory_write_byte));
ls259_device &mainlatch(LS259(config, "mainlatch")); // 2L (7E80H)
mainlatch.q_out_cb<0>().set(FUNC(mario_state::gfx_bank_w)); // ~T ROM