summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcmd.cpp
diff options
context:
space:
mode:
author Happy <Happy-yappH@users.noreply.github.com>2016-03-01 13:16:38 -0700
committer Happy <Happy-yappH@users.noreply.github.com>2016-03-01 13:16:38 -0700
commit5257bf21cd1f42562c0d57cb76eda2a8c29d4b55 (patch)
treea0dadbe202642c9b4336adf9760e9fc5513883d8 /src/emu/debug/debugcmd.cpp
parentc1f0ae29e28db10c27ea7c48f7d0708b1ad48bbf (diff)
Change field format to show leading zeros for debugger 'dump' command
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r--src/emu/debug/debugcmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp
index ee5ea1f8b0f..0710237c494 100644
--- a/src/emu/debug/debugcmd.cpp
+++ b/src/emu/debug/debugcmd.cpp
@@ -1874,7 +1874,7 @@ static void execute_dump(running_machine &machine, int ref, int params, const ch
output.clear();
/* print the address */
- util::stream_format(output, "%*X: ", space->logaddrchars(), (UINT32)space->byte_to_address(i));
+ util::stream_format(output, "%0*X: ", space->logaddrchars(), (UINT32)space->byte_to_address(i));
/* print the bytes */
for (j = 0; j < 16; j += width)
@@ -1885,7 +1885,7 @@ static void execute_dump(running_machine &machine, int ref, int params, const ch
if (debug_cpu_translate(*space, TRANSLATE_READ_DEBUG, &curaddr))
{
UINT64 value = debug_read_memory(*space, i + j, width, TRUE);
- util::stream_format(output, " %*X", width * 2, value);
+ util::stream_format(output, " %0*X", width * 2, value);
}
else
util::stream_format(output, " %.*s", width * 2, "****************");