diff options
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
| -rw-r--r-- | src/emu/debug/debugcmd.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index b1a1f08a47a..bdfd4dbf826 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -39,7 +39,7 @@ const size_t debugger_commands::MAX_GLOBALS = 1000; bool debugger_commands::cheat_address_is_valid(address_space &space, offs_t address) { - return m_cpu.translate(space, TRANSLATE_READ, &address) && (space.get_write_ptr(address) != nullptr); + return space.device().memory().translate(space.spacenum(), TRANSLATE_READ, address) && (space.get_write_ptr(address) != nullptr); } @@ -1727,7 +1727,7 @@ void debugger_commands::execute_dump(int ref, int params, const char *param[]) if (i + j <= endoffset) { offs_t curaddr = i + j; - if (m_cpu.translate(*space, TRANSLATE_READ_DEBUG, &curaddr)) + if (space->device().memory().translate(space->spacenum(), TRANSLATE_READ_DEBUG, curaddr)) { UINT64 value = m_cpu.read_memory(*space, i + j, width, TRUE); util::stream_format(output, " %0*X", width * 2, value); @@ -1748,7 +1748,7 @@ void debugger_commands::execute_dump(int ref, int params, const char *param[]) for (UINT64 j = 0; j < 16 && (i + j) <= endoffset; j++) { offs_t curaddr = i + j; - if (m_cpu.translate(*space, TRANSLATE_READ_DEBUG, &curaddr)) + if (space->device().memory().translate(space->spacenum(), TRANSLATE_READ_DEBUG, curaddr)) { UINT8 byte = m_cpu.read_byte(*space, i + j, TRUE); util::stream_format(output, "%c", (byte >= 32 && byte < 127) ? byte : '.'); @@ -2379,7 +2379,7 @@ void debugger_commands::execute_dasm(int ref, int params, const char *param[]) /* make sure we can translate the address */ tempaddr = pcbyte; - if (m_cpu.translate(*space, TRANSLATE_FETCH_DEBUG, &tempaddr)) + if (space->device().memory().translate(space->spacenum(), TRANSLATE_FETCH_DEBUG, tempaddr)) { UINT8 opbuf[64], argbuf[64]; @@ -2766,7 +2766,7 @@ void debugger_commands::execute_map(int ref, int params, const char *param[]) { static const char *const intnames[] = { "Read", "Write", "Fetch" }; taddress = space->address_to_byte(address) & space->bytemask(); - if (m_cpu.translate(*space, intention, &taddress)) + if (space->device().memory().translate(space->spacenum(), intention, taddress)) { const char *mapname = space->get_handler_string((intention == TRANSLATE_WRITE_DEBUG) ? ROW_WRITE : ROW_READ, taddress); m_console.printf( |
