diff options
| author | 2016-03-01 13:46:33 -0700 | |
|---|---|---|
| committer | 2016-03-01 13:46:33 -0700 | |
| commit | 8aa07c72e774fe004ffd4ccfef1cb6d2631dce34 (patch) | |
| tree | f9d53949538d5a1e123cf6e598a372204de80d74 /src/emu/debug/debugcmd.cpp | |
| parent | 5257bf21cd1f42562c0d57cb76eda2a8c29d4b55 (diff) | |
Change field format to show leading zeros for debugger 'dasm' command as well
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
| -rw-r--r-- | src/emu/debug/debugcmd.cpp | 4 |
1 files 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, " "); |
