mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Change field format to show leading zeros for debugger 'dump' command
This commit is contained in:
parent
c1f0ae29e2
commit
5257bf21cd
@ -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, "****************");
|
||||
|
Loading…
Reference in New Issue
Block a user