summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/unior.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/unior.cpp')
-rw-r--r--src/mame/drivers/unior.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/unior.cpp b/src/mame/drivers/unior.cpp
index 5538abc6d0b..ac4c02df4ba 100644
--- a/src/mame/drivers/unior.cpp
+++ b/src/mame/drivers/unior.cpp
@@ -423,10 +423,10 @@ MACHINE_CONFIG_START(unior_state::unior)
ppi1.out_pa_callback().set(FUNC(unior_state::ppi1_a_w));
ppi1.out_pc_callback().set(FUNC(unior_state::ppi1_c_w));
- MCFG_DEVICE_ADD("dma", I8257, XTAL(20'000'000) / 9)
- MCFG_I8257_OUT_HRQ_CB(WRITELINE(*this, unior_state, hrq_w))
- MCFG_I8257_IN_MEMR_CB(READ8(*this, unior_state, dma_r))
- MCFG_I8257_OUT_IOW_2_CB(WRITE8("crtc", i8275_device, dack_w))
+ I8257(config, m_dma, XTAL(20'000'000) / 9);
+ m_dma->out_hrq_cb().set(FUNC(unior_state::hrq_w));
+ m_dma->in_memr_cb().set(FUNC(unior_state::dma_r));
+ m_dma->out_iow_cb<2>().set("crtc", FUNC(i8275_device::dack_w));
MCFG_DEVICE_ADD("crtc", I8275, XTAL(20'000'000) / 12)
MCFG_I8275_CHARACTER_WIDTH(6)