mirror of
https://github.com/holub/mame
synced 2025-04-25 01:40:16 +03:00
fix disassembly if 6809 is interrupted mid-instruction [smf]
This commit is contained in:
parent
e2641a33c1
commit
1de6465b18
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user