summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-09-27 20:57:45 +1000
committer Vas Crabb <vas@vastheman.com>2016-09-28 17:45:36 +1000
commit1de6465b1837b2dc391dcbe90df23a9c8427c750 (patch)
treebbf482ddc0ad44501a6ec83b843a3183beb45599 /src/emu
parente2641a33c18a3b750ae4f0c67cc3c112bf262d52 (diff)
fix disassembly if 6809 is interrupted mid-instruction [smf]
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/debug/debugcpu.cpp2
-rw-r--r--src/emu/debug/dvdisasm.cpp2
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