mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Change field format to show leading zeros for debugger 'dasm' command as well
This commit is contained in:
parent
5257bf21cd
commit
8aa07c72e7
@ -2518,7 +2518,7 @@ static void execute_dasm(running_machine &machine, int ref, int params, const ch
|
|||||||
output.clear();
|
output.clear();
|
||||||
|
|
||||||
/* print the address */
|
/* 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 */
|
/* make sure we can translate the address */
|
||||||
tempaddr = pcbyte;
|
tempaddr = pcbyte;
|
||||||
@ -2543,7 +2543,7 @@ static void execute_dasm(running_machine &machine, int ref, int params, const ch
|
|||||||
auto const startdex = output.tellp();
|
auto const startdex = output.tellp();
|
||||||
numbytes = space->address_to_byte(numbytes);
|
numbytes = space->address_to_byte(numbytes);
|
||||||
for (j = 0; j < numbytes; j += minbytes)
|
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)
|
if ((output.tellp() - startdex) < byteswidth)
|
||||||
stream_format(output, "%*s", byteswidth - (output.tellp() - startdex), "");
|
stream_format(output, "%*s", byteswidth - (output.tellp() - startdex), "");
|
||||||
stream_format(output, " ");
|
stream_format(output, " ");
|
||||||
|
Loading…
Reference in New Issue
Block a user