diff options
author | 2016-09-27 14:24:33 +0100 | |
---|---|---|
committer | 2016-09-27 14:26:27 +0100 | |
commit | 1a186c8a3a16a7ce99d7df2dd217a7552b696c92 (patch) | |
tree | db6f7a7442ccc924049e3354c8cded6d62071ecd /src/devices/cpu/nec/nec.cpp | |
parent | 3957d89e4466d87f86a42597a49db12a7c040520 (diff) |
Make sure all cpu's export STATE_GENPCBASE and use safe_pcbase() for everything in the debugger, which allows interruptible cpu's to work properly. [smf]
Diffstat (limited to 'src/devices/cpu/nec/nec.cpp')
-rw-r--r-- | src/devices/cpu/nec/nec.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/cpu/nec/nec.cpp b/src/devices/cpu/nec/nec.cpp index b368d666ffe..6738a89f467 100644 --- a/src/devices/cpu/nec/nec.cpp +++ b/src/devices/cpu/nec/nec.cpp @@ -430,7 +430,8 @@ void nec_common_device::device_start() state_add( NEC_SS, "SS", Sreg(SS)).formatstr("%04X"); state_add( NEC_DS, "DS0", Sreg(DS0)).formatstr("%04X"); - state_add( STATE_GENPC, "GENPC", m_debugger_temp).callimport().callexport().noshow(); + state_add( STATE_GENPC, "GENPC", m_debugger_temp).callexport().noshow(); + state_add( STATE_GENPCBASE, "CURPC", m_debugger_temp).callexport().noshow(); state_add( STATE_GENSP, "GENSP", m_debugger_temp).callimport().callexport().noshow(); state_add( STATE_GENFLAGS, "GENFLAGS", m_debugger_temp).formatstr("%16s").noshow(); @@ -493,6 +494,7 @@ void nec_common_device::state_export(const device_state_entry &entry) switch (entry.index()) { case STATE_GENPC: + case STATE_GENPCBASE: case NEC_PC: m_debugger_temp = (Sreg(PS)<<4) + m_ip; break; |