From d291e4573bb423a0a337bf6dc8b33bb1e273f7b3 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 2 Apr 2023 11:11:24 -0400 Subject: Improvements to debugger 'map' command - Add names of physical and logical spaces now that one space can map to another - Correct usage of address space masks --- src/emu/debug/debugcmd.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index 10756496382..37fd470a455 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -3778,21 +3778,22 @@ void debugger_commands::execute_map(int spacenum, const std::vectorlogaddrmask(); // do the translation first for (int intention = device_memory_interface::TR_READ; intention <= device_memory_interface::TR_FETCH; intention++) { static const char *const intnames[] = { "Read", "Write", "Fetch" }; - offs_t taddress = address & space->addrmask(); + offs_t taddress = address; address_space *tspace; if (space->device().memory().translate(space->spacenum(), intention, taddress, tspace)) { std::string mapname = tspace->get_handler_string((intention == device_memory_interface::TR_WRITE) ? read_or_write::WRITE : read_or_write::READ, taddress); m_console.printf( - "%7s: %0*X logical == %0*X physical -> %s\n", + "%7s: %0*X logical %s == %0*X physical %s -> %s\n", intnames[intention & 3], - tspace->logaddrchars(), address, - tspace->addrchars(), taddress, + space->logaddrchars(), address, space->name(), + tspace->addrchars(), taddress, tspace->name(), mapname); } else -- cgit v1.2.3