mirror of
https://github.com/holub/mame
synced 2025-05-11 16:48:52 +03:00
mc68307: Add override for RESET instruction (nw)
This commit is contained in:
parent
5a09b0feb2
commit
79d02cf7df
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user