mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Save state regs for 3745x & m740 (nw)
This commit is contained in:
parent
a7bb1e2a75
commit
102a582f08
@ -92,6 +92,15 @@ void m3745x_device::device_start()
|
||||
|
||||
m740_device::device_start();
|
||||
|
||||
save_item(NAME(m_ports));
|
||||
save_item(NAME(m_ddrs));
|
||||
save_item(NAME(m_intreq1));
|
||||
save_item(NAME(m_intreq2));
|
||||
save_item(NAME(m_intctrl1));
|
||||
save_item(NAME(m_intctrl2));
|
||||
save_item(NAME(m_adctrl));
|
||||
save_item(NAME(m_last_all_ints));
|
||||
|
||||
// all ports reset to input on startup
|
||||
memset(m_ddrs, 0, sizeof(m_ddrs));
|
||||
memset(m_ports, 0, sizeof(m_ports));
|
||||
|
@ -57,6 +57,14 @@ offs_t m740_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 *opr
|
||||
return disassemble_generic(buffer, pc, oprom, opram, options, disasm_entries);
|
||||
}
|
||||
|
||||
void m740_device::device_start()
|
||||
{
|
||||
m6502_device::device_start();
|
||||
|
||||
save_item(NAME(m_irq_multiplex));
|
||||
save_item(NAME(m_irq_vector));
|
||||
}
|
||||
|
||||
void m740_device::device_reset()
|
||||
{
|
||||
inst_state_base = 0;
|
||||
|
@ -68,6 +68,7 @@ public:
|
||||
m740_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
m740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
|
||||
|
||||
virtual void device_start();
|
||||
virtual void device_reset();
|
||||
|
||||
static const disasm_entry disasm_entries[0x200];
|
||||
|
Loading…
Reference in New Issue
Block a user