mirror of
https://github.com/holub/mame
synced 2025-06-07 05:13:46 +03:00
Merge pull request #2168 from Happy-yappH/dasm_virtual_space
Make debugger 'dasm' command able to traverse virtual spaces with
This commit is contained in:
commit
d287a4acbf
@ -2459,6 +2459,7 @@ void debugger_commands::execute_dasm(int ref, const std::vector<std::string> &pa
|
||||
/* make sure we can translate the address */
|
||||
tempaddr = pcbyte;
|
||||
if (space->device().memory().translate(space->spacenum(), TRANSLATE_FETCH_DEBUG, tempaddr))
|
||||
{
|
||||
{
|
||||
u8 opbuf[64], argbuf[64];
|
||||
|
||||
@ -2484,6 +2485,12 @@ void debugger_commands::execute_dasm(int ref, const std::vector<std::string> &pa
|
||||
stream_format(output, "%*s", byteswidth - (output.tellp() - startdex), "");
|
||||
stream_format(output, " ");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
disasm << "<unmapped>";
|
||||
i += minbytes;
|
||||
}
|
||||
|
||||
/* add the disassembly */
|
||||
disasm.put('\0');
|
||||
|
Loading…
Reference in New Issue
Block a user