reinstate lines removed in error (nw)

This commit is contained in:
smf- 2016-10-05 23:35:10 +01:00
parent 61be27c3cf
commit f9acb0c97b
2 changed files with 12 additions and 1 deletions

View File

@ -4222,7 +4222,7 @@ void sh34_base_device::device_start()
state_add(SH4_XF14, "XF14", m_debugger_temp).callimport().formatstr("%25s");
state_add(SH4_XF15, "XF15", m_debugger_temp).callimport().formatstr("%25s");
state_add(STATE_GENPC, "GENPC", m_debugger_temp).callimport().noshow();
state_add(STATE_GENPC, "GENPC", m_debugger_temp).callimport().callexport().noshow();
state_add(STATE_GENPCBASE, "CURPC", m_ppc).noshow();
state_add(STATE_GENSP, "GENSP", m_r[15]).noshow();
state_add(STATE_GENFLAGS, "GENFLAGS", m_sr).formatstr("%20s").noshow();
@ -4381,6 +4381,16 @@ void sh34_base_device::state_import(const device_state_entry &entry)
}
}
void sh34_base_device::state_export(const device_state_entry &entry)
{
switch (entry.index())
{
case STATE_GENPC:
m_debugger_temp = (m_pc & AM);
break;
}
}
void sh34_base_device::state_string_export(const device_state_entry &entry, std::string &str) const
{
#ifdef LSB_FIRST

View File

@ -219,6 +219,7 @@ protected:
// device_state_interface overrides
virtual void state_import(const device_state_entry &entry) override;
virtual void state_export(const device_state_entry &entry) override;
virtual void state_string_export(const device_state_entry &entry, std::string &str) const override;
// device_disasm_interface overrides