mc68307: Add override for RESET instruction (nw)

This commit is contained in:
AJR 2019-03-22 12:40:24 -04:00
parent 5a09b0feb2
commit 79d02cf7df
2 changed files with 10 additions and 0 deletions

View File

@ -90,6 +90,14 @@ void m68307_cpu_device::device_reset()
set_ipl(0);
}
void m68307_cpu_device::m68k_reset_peripherals()
{
m_duart->reset();
if (m_m68307MBUS) m_m68307MBUS->reset();
if (m_m68307TIMER) m_m68307TIMER->reset();
}
/* todo: is it possible to calculate the address map based on CS when they change
and install handlers? Going through this logic for every memory access is

View File

@ -44,6 +44,8 @@ protected:
virtual uint32_t execute_min_cycles() const override { return 4; }
virtual uint32_t execute_max_cycles() const override { return 158; }
virtual void m68k_reset_peripherals() override;
private:
void set_ipl(int level);
DECLARE_WRITE_LINE_MEMBER(timer0_interrupt);