diff options
author | 2016-09-27 14:24:33 +0100 | |
---|---|---|
committer | 2016-09-28 17:45:37 +1000 | |
commit | fd279ffffaba099464a584b52c7b5436305493e5 (patch) | |
tree | 31fdd998bc915b83a27f6ea1fbae29f662b32917 /src/devices/cpu/g65816 | |
parent | 1de6465b1837b2dc391dcbe90df23a9c8427c750 (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/g65816')
-rw-r--r-- | src/devices/cpu/g65816/g65816.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/cpu/g65816/g65816.cpp b/src/devices/cpu/g65816/g65816.cpp index a98a822849d..169a8208e52 100644 --- a/src/devices/cpu/g65816/g65816.cpp +++ b/src/devices/cpu/g65816/g65816.cpp @@ -868,6 +868,7 @@ void g65816_device::device_start() state_add( G65816_IRQ_STATE, "IRQ", m_line_irq).mask(0x01).callimport().formatstr("%01X"); state_add( STATE_GENPC, "GENPC", m_debugger_temp).callimport().callexport().formatstr("%06X").noshow(); + state_add( STATE_GENPCBASE, "CURPC", m_debugger_temp).callimport().callexport().formatstr("%06X").noshow(); state_add( STATE_GENSP, "GENSP", m_debugger_temp).callimport().callexport().formatstr("%06X").noshow(); state_add( STATE_GENFLAGS, "GENFLAGS", m_debugger_temp).formatstr("%8s").noshow(); @@ -879,6 +880,7 @@ void g65816_device::state_import(const device_state_entry &entry) switch (entry.index()) { case STATE_GENPC: + case STATE_GENPCBASE: g65816_set_pc(m_debugger_temp); break; case STATE_GENSP: @@ -924,6 +926,7 @@ void g65816_device::state_export(const device_state_entry &entry) switch (entry.index()) { case STATE_GENPC: + case STATE_GENPCBASE: case G65816_PC: m_debugger_temp = g65816_get_pc(); break; |