jazz: rtc and dma bug fixes

This commit is contained in:
Patrick Mackinlay 2023-01-16 14:01:56 +07:00
parent f13c9ebe3a
commit cd697037ee
2 changed files with 6 additions and 1 deletions

View File

@ -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);

View File

@ -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");