mirror of
https://github.com/holub/mame
synced 2025-07-06 10:29:38 +03:00
jazz: rtc and dma bug fixes
This commit is contained in:
parent
f13c9ebe3a
commit
cd697037ee
@ -333,7 +333,8 @@ void jazz_state::jazz(machine_config &config)
|
||||
m_mct_adr->dma_r_cb<1>().set(m_fdc, FUNC(n82077aa_device::dma_r));
|
||||
m_mct_adr->dma_w_cb<1>().set(m_fdc, FUNC(n82077aa_device::dma_w));
|
||||
|
||||
MC146818(config, m_rtc, 32.768_kHz_XTAL);
|
||||
DS1287(config, m_rtc, 32.768_kHz_XTAL);
|
||||
m_rtc->set_binary(true);
|
||||
m_rtc->set_epoch(1980);
|
||||
|
||||
NVRAM(config, m_nvram, nvram_device::DEFAULT_ALL_0);
|
||||
|
@ -103,7 +103,11 @@ void mct_adr_device::map(address_map &map)
|
||||
m_dma_reg[reg] = data;
|
||||
|
||||
if ((reg == REG_ENABLE) && (data & DMA_ENABLE))
|
||||
{
|
||||
LOG("dma started address 0x%08x count %d\n", translate_address(m_dma_reg[(0 << 2) + REG_ADDRESS]), m_dma_reg[(0 << 2) + REG_COUNT]);
|
||||
if (!m_dma_check->enabled())
|
||||
m_dma_check->adjust(attotime::zero);
|
||||
}
|
||||
}, "dma_reg_w");
|
||||
map(0x200, 0x207).lr32(NAME([this] () { return m_dma_interrupt_source; }));
|
||||
map(0x208, 0x20f).lr32([] () { return 0; }, "error_type");
|
||||
|
Loading…
Reference in New Issue
Block a user