diff options
Diffstat (limited to 'src/mame/drivers/x1.cpp')
-rw-r--r-- | src/mame/drivers/x1.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/x1.cpp b/src/mame/drivers/x1.cpp index a31ec973b58..ccb7418c222 100644 --- a/src/mame/drivers/x1.cpp +++ b/src/mame/drivers/x1.cpp @@ -2294,16 +2294,16 @@ MACHINE_CONFIG_START(x1_state::x1turbo) MCFG_DEVICE_MODIFY("iobank") MCFG_DEVICE_PROGRAM_MAP(x1turbo_io_banks) - MCFG_DEVICE_ADD("sio", Z80SIO0, MAIN_CLOCK/4) - MCFG_Z80DART_OUT_INT_CB(INPUTLINE("x1_cpu", INPUT_LINE_IRQ0)) - - MCFG_DEVICE_ADD("dma", Z80DMA, MAIN_CLOCK/4) - MCFG_Z80DMA_OUT_BUSREQ_CB(INPUTLINE("x1_cpu", INPUT_LINE_HALT)) - MCFG_Z80DMA_OUT_INT_CB(INPUTLINE("x1_cpu", INPUT_LINE_IRQ0)) - MCFG_Z80DMA_IN_MREQ_CB(READ8(*this, x1_state, memory_read_byte)) - MCFG_Z80DMA_OUT_MREQ_CB(WRITE8(*this, x1_state, memory_write_byte)) - MCFG_Z80DMA_IN_IORQ_CB(READ8(*this, x1_state, io_read_byte)) - MCFG_Z80DMA_OUT_IORQ_CB(WRITE8(*this, x1_state, io_write_byte)) + z80sio0_device& sio(Z80SIO0(config, "sio", MAIN_CLOCK/4)); + sio.out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0); + + Z80DMA(config, m_dma, MAIN_CLOCK/4); + m_dma->out_busreq_callback().set_inputline(m_maincpu, INPUT_LINE_HALT); + m_dma->out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0); + m_dma->in_mreq_callback().set(FUNC(x1_state::memory_read_byte)); + m_dma->out_mreq_callback().set(FUNC(x1_state::memory_write_byte)); + m_dma->in_iorq_callback().set(FUNC(x1_state::io_read_byte)); + m_dma->out_iorq_callback().set(FUNC(x1_state::io_write_byte)); MCFG_DEVICE_MODIFY("fdc") MCFG_WD_FDC_DRQ_CALLBACK(WRITELINE(*this, x1_state, fdc_drq_w)) |