From 8aa07c72e774fe004ffd4ccfef1cb6d2631dce34 Mon Sep 17 00:00:00 2001 From: Happy Date: Tue, 1 Mar 2016 13:46:33 -0700 Subject: [PATCH] Change field format to show leading zeros for debugger 'dasm' command as well --- src/emu/debug/debugcmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index 0710237c494..9d3135b0cfc 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -2518,7 +2518,7 @@ static void execute_dasm(running_machine &machine, int ref, int params, const ch output.clear(); /* print the address */ - stream_format(output, "%*X: ", space->logaddrchars(), (UINT32)space->byte_to_address(pcbyte)); + stream_format(output, "%0*X: ", space->logaddrchars(), (UINT32)space->byte_to_address(pcbyte)); /* make sure we can translate the address */ tempaddr = pcbyte; @@ -2543,7 +2543,7 @@ static void execute_dasm(running_machine &machine, int ref, int params, const ch auto const startdex = output.tellp(); numbytes = space->address_to_byte(numbytes); for (j = 0; j < numbytes; j += minbytes) - stream_format(output, "%*X ", minbytes * 2, debug_read_opcode(*decrypted_space, pcbyte + j, minbytes)); + stream_format(output, "%0*X ", minbytes * 2, debug_read_opcode(*decrypted_space, pcbyte + j, minbytes)); if ((output.tellp() - startdex) < byteswidth) stream_format(output, "%*s", byteswidth - (output.tellp() - startdex), ""); stream_format(output, " ");