diff options
author | Vas Crabb <vas@vastheman.com> | 2016-09-27 20:57:45 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2016-09-27 20:57:45 +1000 |
commit | 320121823c456f6a2a9f8ba37851aa13e0ab3011 (patch) | |
tree | b37678d2bce6fae30db6d72988588d27d806b2c3 | |
parent | 38eec31e92752062c5a300cf7acb7418a1d6de27 (diff) |
fix disassembly if 6809 is interrupted mid-instruction [smf]
-rw-r--r-- | src/emu/debug/debugcpu.cpp | 2 | ||||
-rw-r--r-- | src/emu/debug/dvdisasm.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index 7832a03fa46..7fbcb29b3ea 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -3064,7 +3064,7 @@ UINT32 device_debug::dasm_wrapped(std::string &buffer, offs_t pc) UINT64 device_debug::get_current_pc(symbol_table &table, void *ref) { device_t *device = reinterpret_cast<device_t *>(table.globalref()); - return device->safe_pc(); + return device->safe_pcbase(); } diff --git a/src/emu/debug/dvdisasm.cpp b/src/emu/debug/dvdisasm.cpp index e49010e2ef6..bc7ca2a2300 100644 --- a/src/emu/debug/dvdisasm.cpp +++ b/src/emu/debug/dvdisasm.cpp @@ -458,7 +458,7 @@ void debug_view_disasm::view_update() { const debug_view_disasm_source &source = downcast<const debug_view_disasm_source &>(*m_source); - offs_t pc = source.device()->safe_pc(); + offs_t pc = source.device()->safe_pcbase(); offs_t pcbyte = source.m_space.address_to_byte(pc) & source.m_space.logbytemask(); // update our context; if the expression is dirty, recompute |