mirror of
https://github.com/holub/mame
synced 2025-05-12 00:58:53 +03:00
Fix disassembler override hook [Aaron Giles]
This commit is contained in:
parent
44df73278d
commit
a5f476e301
@ -281,7 +281,7 @@ offs_t debug_view_disasm::find_pc_backwards(offs_t targetpc, int numinstrs)
|
||||
if (debug_cpu_translate(source.m_space, TRANSLATE_FETCH, &physpcbyte))
|
||||
{
|
||||
char dasmbuffer[100];
|
||||
instlen = source.m_disasmintf->disassemble(dasmbuffer, scanpc, &opbuf[1000 + scanpcbyte - targetpcbyte], &argbuf[1000 + scanpcbyte - targetpcbyte]) & DASMFLAG_LENGTHMASK;
|
||||
instlen = source.m_device.debug()->disassemble(dasmbuffer, scanpc, &opbuf[1000 + scanpcbyte - targetpcbyte], &argbuf[1000 + scanpcbyte - targetpcbyte]) & DASMFLAG_LENGTHMASK;
|
||||
}
|
||||
|
||||
// count this one
|
||||
@ -418,7 +418,7 @@ bool debug_view_disasm::recompute(offs_t pc, int startline, int lines)
|
||||
}
|
||||
|
||||
// disassemble the result
|
||||
pc += numbytes = source.m_disasmintf->disassemble(buffer, pc & source.m_space->logaddrmask(), opbuf, argbuf) & DASMFLAG_LENGTHMASK;
|
||||
pc += numbytes = source.m_device.debug()->disassemble(buffer, pc & source.m_space->logaddrmask(), opbuf, argbuf) & DASMFLAG_LENGTHMASK;
|
||||
}
|
||||
else
|
||||
strcpy(buffer, "<unmapped>");
|
||||
|
Loading…
Reference in New Issue
Block a user