mirror of
https://github.com/holub/mame
synced 2025-06-17 17:59:05 +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 */
|
/* make sure we can translate the address */
|
||||||
tempaddr = pcbyte;
|
tempaddr = pcbyte;
|
||||||
if (space->device().memory().translate(space->spacenum(), TRANSLATE_FETCH_DEBUG, tempaddr))
|
if (space->device().memory().translate(space->spacenum(), TRANSLATE_FETCH_DEBUG, tempaddr))
|
||||||
|
{
|
||||||
{
|
{
|
||||||
u8 opbuf[64], argbuf[64];
|
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, "%*s", byteswidth - (output.tellp() - startdex), "");
|
||||||
stream_format(output, " ");
|
stream_format(output, " ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
disasm << "<unmapped>";
|
||||||
|
i += minbytes;
|
||||||
|
}
|
||||||
|
|
||||||
/* add the disassembly */
|
/* add the disassembly */
|
||||||
disasm.put('\0');
|
disasm.put('\0');
|
||||||
|
Loading…
Reference in New Issue
Block a user