Skip to content

Commit

Permalink
z80dma.cpp: burst mode and refactoring (#12494)
Browse files Browse the repository at this point in the history
* zorba fix: restore deffered rdy write
* fix 'x1turbo40 suikoden'
  • Loading branch information
holub authored Aug 12, 2024
1 parent 9ef0f8f commit 339bb27
Show file tree
Hide file tree
Showing 31 changed files with 389 additions and 444 deletions.
3 changes: 2 additions & 1 deletion src/devices/bus/abcbus/lux21046.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,10 @@ void luxor_55_21046_device::device_add_mconfig(machine_config & config)
m_maincpu->set_daisy_config(z80_daisy_chain);
m_maincpu->set_addrmap(AS_PROGRAM, &luxor_55_21046_device::luxor_55_21046_mem);
m_maincpu->set_addrmap(AS_IO, &luxor_55_21046_device::luxor_55_21046_io);
m_maincpu->busack_cb().set(m_dma, FUNC(z80dma_device::bai_w));

Z80DMA(config, m_dma, 16_MHz_XTAL / 4);
m_dma->out_busreq_callback().set_inputline(m_maincpu, INPUT_LINE_HALT);
m_dma->out_busreq_callback().set_inputline(m_maincpu, Z80_INPUT_LINE_BUSRQ);
m_dma->out_int_callback().set(FUNC(luxor_55_21046_device::dma_int_w));
m_dma->in_mreq_callback().set(FUNC(luxor_55_21046_device::memory_read_byte));
m_dma->out_mreq_callback().set(FUNC(luxor_55_21046_device::memory_write_byte));
Expand Down
3 changes: 2 additions & 1 deletion src/devices/bus/abcbus/lux21056.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,10 @@ void luxor_55_21056_device::device_add_mconfig(machine_config &config)
m_maincpu->set_memory_map(&luxor_55_21056_device::luxor_55_21056_mem);
m_maincpu->set_io_map(&luxor_55_21056_device::luxor_55_21056_io);
m_maincpu->set_daisy_config(daisy_chain);
m_maincpu->busack_cb().set(m_dma, FUNC(z80dma_device::bai_w));

Z80DMA(config, m_dma, XTAL(8'000'000)/2);
m_dma->out_busreq_callback().set_inputline(m_maincpu, INPUT_LINE_HALT);
m_dma->out_busreq_callback().set_inputline(m_maincpu, Z80_INPUT_LINE_BUSRQ);
m_dma->out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
m_dma->in_mreq_callback().set(FUNC(luxor_55_21056_device::memory_read_byte));
m_dma->out_mreq_callback().set(FUNC(luxor_55_21056_device::memory_write_byte));
Expand Down
Loading

0 comments on commit 339bb27

Please sign in to comment.