mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
h8(cpu devices): add variables to save_item
This commit is contained in:
parent
d518314398
commit
38516f4b25
@ -26,9 +26,9 @@ h83002_device::h83002_device(const machine_config &mconfig, const char *tag, dev
|
|||||||
m_timer16_3(*this, "timer16:3"),
|
m_timer16_3(*this, "timer16:3"),
|
||||||
m_timer16_4(*this, "timer16:4"),
|
m_timer16_4(*this, "timer16:4"),
|
||||||
m_watchdog(*this, "watchdog"),
|
m_watchdog(*this, "watchdog"),
|
||||||
m_tend_cb(*this)
|
m_tend_cb(*this),
|
||||||
|
m_syscr(0)
|
||||||
{
|
{
|
||||||
m_syscr = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void h83002_device::map(address_map &map)
|
void h83002_device::map(address_map &map)
|
||||||
@ -237,12 +237,16 @@ void h83002_device::device_start()
|
|||||||
{
|
{
|
||||||
h8h_device::device_start();
|
h8h_device::device_start();
|
||||||
m_dma_device = m_dma;
|
m_dma_device = m_dma;
|
||||||
|
|
||||||
|
save_item(NAME(m_syscr));
|
||||||
|
save_item(NAME(m_rtmcsr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h83002_device::device_reset()
|
void h83002_device::device_reset()
|
||||||
{
|
{
|
||||||
h8h_device::device_reset();
|
h8h_device::device_reset();
|
||||||
m_syscr = 0x09;
|
m_syscr = 0x09;
|
||||||
|
m_rtmcsr = 0x00;
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 h83002_device::syscr_r()
|
u8 h83002_device::syscr_r()
|
||||||
|
@ -76,11 +76,11 @@ protected:
|
|||||||
required_device<h8h_timer16_channel_device> m_timer16_4;
|
required_device<h8h_timer16_channel_device> m_timer16_4;
|
||||||
required_device<h8_watchdog_device> m_watchdog;
|
required_device<h8_watchdog_device> m_watchdog;
|
||||||
|
|
||||||
|
devcb_write_line::array<2> m_tend_cb;
|
||||||
|
|
||||||
u8 m_syscr;
|
u8 m_syscr;
|
||||||
u8 m_rtmcsr;
|
u8 m_rtmcsr;
|
||||||
|
|
||||||
devcb_write_line::array<2> m_tend_cb;
|
|
||||||
|
|
||||||
virtual void update_irq_filter() override;
|
virtual void update_irq_filter() override;
|
||||||
virtual void interrupt_taken() override;
|
virtual void interrupt_taken() override;
|
||||||
virtual int trapa_setup() override;
|
virtual int trapa_setup() override;
|
||||||
|
@ -30,9 +30,9 @@ h83003_device::h83003_device(const machine_config &mconfig, const char *tag, dev
|
|||||||
m_timer16_3(*this, "timer16:3"),
|
m_timer16_3(*this, "timer16:3"),
|
||||||
m_timer16_4(*this, "timer16:4"),
|
m_timer16_4(*this, "timer16:4"),
|
||||||
m_watchdog(*this, "watchdog"),
|
m_watchdog(*this, "watchdog"),
|
||||||
m_tend_cb(*this)
|
m_tend_cb(*this),
|
||||||
|
m_syscr(0)
|
||||||
{
|
{
|
||||||
m_syscr = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void h83003_device::map(address_map &map)
|
void h83003_device::map(address_map &map)
|
||||||
@ -264,12 +264,16 @@ void h83003_device::device_start()
|
|||||||
{
|
{
|
||||||
h8h_device::device_start();
|
h8h_device::device_start();
|
||||||
m_dma_device = m_dma;
|
m_dma_device = m_dma;
|
||||||
|
|
||||||
|
save_item(NAME(m_syscr));
|
||||||
|
save_item(NAME(m_rtmcsr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h83003_device::device_reset()
|
void h83003_device::device_reset()
|
||||||
{
|
{
|
||||||
h8h_device::device_reset();
|
h8h_device::device_reset();
|
||||||
m_syscr = 0x09;
|
m_syscr = 0x09;
|
||||||
|
m_rtmcsr = 0x00;
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 h83003_device::syscr_r()
|
u8 h83003_device::syscr_r()
|
||||||
|
@ -86,11 +86,11 @@ protected:
|
|||||||
required_device<h8h_timer16_channel_device> m_timer16_4;
|
required_device<h8h_timer16_channel_device> m_timer16_4;
|
||||||
required_device<h8_watchdog_device> m_watchdog;
|
required_device<h8_watchdog_device> m_watchdog;
|
||||||
|
|
||||||
|
devcb_write_line::array<4> m_tend_cb;
|
||||||
|
|
||||||
u8 m_syscr;
|
u8 m_syscr;
|
||||||
u8 m_rtmcsr;
|
u8 m_rtmcsr;
|
||||||
|
|
||||||
devcb_write_line::array<4> m_tend_cb;
|
|
||||||
|
|
||||||
virtual void update_irq_filter() override;
|
virtual void update_irq_filter() override;
|
||||||
virtual void interrupt_taken() override;
|
virtual void interrupt_taken() override;
|
||||||
virtual int trapa_setup() override;
|
virtual int trapa_setup() override;
|
||||||
|
@ -230,6 +230,7 @@ void h83006_device::internal_update(u64 current_time)
|
|||||||
void h83006_device::device_start()
|
void h83006_device::device_start()
|
||||||
{
|
{
|
||||||
h8h_device::device_start();
|
h8h_device::device_start();
|
||||||
|
save_item(NAME(m_syscr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h83006_device::device_reset()
|
void h83006_device::device_reset()
|
||||||
@ -238,7 +239,6 @@ void h83006_device::device_reset()
|
|||||||
m_syscr = 0x09;
|
m_syscr = 0x09;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
u8 h83006_device::syscr_r()
|
u8 h83006_device::syscr_r()
|
||||||
{
|
{
|
||||||
return m_syscr;
|
return m_syscr;
|
||||||
|
@ -207,6 +207,7 @@ void h83008_device::internal_update(u64 current_time)
|
|||||||
void h83008_device::device_start()
|
void h83008_device::device_start()
|
||||||
{
|
{
|
||||||
h8h_device::device_start();
|
h8h_device::device_start();
|
||||||
|
save_item(NAME(m_syscr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h83008_device::device_reset()
|
void h83008_device::device_reset()
|
||||||
@ -215,7 +216,6 @@ void h83008_device::device_reset()
|
|||||||
m_syscr = 0x09;
|
m_syscr = 0x09;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
u8 h83008_device::syscr_r()
|
u8 h83008_device::syscr_r()
|
||||||
{
|
{
|
||||||
return m_syscr;
|
return m_syscr;
|
||||||
|
@ -231,6 +231,7 @@ void h83032_device::internal_update(u64 current_time)
|
|||||||
void h83032_device::device_start()
|
void h83032_device::device_start()
|
||||||
{
|
{
|
||||||
h8h_device::device_start();
|
h8h_device::device_start();
|
||||||
|
save_item(NAME(m_syscr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h83032_device::device_reset()
|
void h83032_device::device_reset()
|
||||||
|
@ -266,6 +266,7 @@ void h83042_device::internal_update(u64 current_time)
|
|||||||
void h83042_device::device_start()
|
void h83042_device::device_start()
|
||||||
{
|
{
|
||||||
h8h_device::device_start();
|
h8h_device::device_start();
|
||||||
|
save_item(NAME(m_syscr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h83042_device::device_reset()
|
void h83042_device::device_reset()
|
||||||
|
@ -271,6 +271,7 @@ void h83048_device::internal_update(u64 current_time)
|
|||||||
void h83048_device::device_start()
|
void h83048_device::device_start()
|
||||||
{
|
{
|
||||||
h8h_device::device_start();
|
h8h_device::device_start();
|
||||||
|
save_item(NAME(m_syscr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h83048_device::device_reset()
|
void h83048_device::device_reset()
|
||||||
|
@ -304,6 +304,9 @@ void h8s2245_device::device_start()
|
|||||||
{
|
{
|
||||||
h8s2000_device::device_start();
|
h8s2000_device::device_start();
|
||||||
m_dtc_device = m_dtc;
|
m_dtc_device = m_dtc;
|
||||||
|
|
||||||
|
save_item(NAME(m_syscr));
|
||||||
|
save_item(NAME(m_mstpcr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h8s2245_device::device_reset()
|
void h8s2245_device::device_reset()
|
||||||
|
@ -440,6 +440,8 @@ void h8s2320_device::device_start()
|
|||||||
h8s2000_device::device_start();
|
h8s2000_device::device_start();
|
||||||
m_dma_device = m_dma;
|
m_dma_device = m_dma;
|
||||||
m_dtc_device = m_dtc;
|
m_dtc_device = m_dtc;
|
||||||
|
|
||||||
|
save_item(NAME(m_syscr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h8s2320_device::device_reset()
|
void h8s2320_device::device_reset()
|
||||||
|
@ -398,6 +398,7 @@ void h8s2357_device::internal_update(u64 current_time)
|
|||||||
void h8s2357_device::device_start()
|
void h8s2357_device::device_start()
|
||||||
{
|
{
|
||||||
h8s2000_device::device_start();
|
h8s2000_device::device_start();
|
||||||
|
save_item(NAME(m_syscr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h8s2357_device::device_reset()
|
void h8s2357_device::device_reset()
|
||||||
|
@ -411,6 +411,7 @@ void h8s2655_device::internal_update(u64 current_time)
|
|||||||
void h8s2655_device::device_start()
|
void h8s2655_device::device_start()
|
||||||
{
|
{
|
||||||
h8s2600_device::device_start();
|
h8s2600_device::device_start();
|
||||||
|
save_item(NAME(m_syscr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void h8s2655_device::device_reset()
|
void h8s2655_device::device_reset()
|
||||||
|
@ -417,6 +417,7 @@ void swx00_device::internal_update(u64 current_time)
|
|||||||
void swx00_device::device_start()
|
void swx00_device::device_start()
|
||||||
{
|
{
|
||||||
h8s2000_device::device_start();
|
h8s2000_device::device_start();
|
||||||
|
save_item(NAME(m_syscr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void swx00_device::device_reset()
|
void swx00_device::device_reset()
|
||||||
|
Loading…
Reference in New Issue
Block a user