fix disassembly if 6809 is interrupted mid-instruction [smf]

This commit is contained in:
Vas Crabb 2016-09-27 20:57:45 +10:00
parent e2641a33c1
commit 1de6465b18
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}

View File

@ -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