diff options
| author | 2016-11-20 19:18:32 -0500 | |
|---|---|---|
| committer | 2016-11-20 19:18:32 -0500 | |
| commit | 7c868e53d0b32a8a776a0fa050ac36a7df22cfef (patch) | |
| tree | 058c362dfe5482db5f2dafcc23b05943e2ba17a3 /src/emu/debug/debugcmd.cpp | |
| parent | 0957c53ae5a38e2d456ddda98210db3163798dfd (diff) | |
Moving disasm.clear()/disasm.seekp(0) out of if statement, so the stream is always reset
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 42493267eda..e2f175f9e1c 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -2411,6 +2411,8 @@ void debugger_commands::execute_dasm(int ref, int params, const char *param[]) int numbytes = 0; output.clear(); output.rdbuf()->clear(); + disasm.clear(); + disasm.seekp(0); /* print the address */ stream_format(output, "%0*X: ", space->logaddrchars(), u32(space->byte_to_address(pcbyte))); @@ -2429,8 +2431,6 @@ void debugger_commands::execute_dasm(int ref, int params, const char *param[]) } /* disassemble the result */ - disasm.clear(); - disasm.seekp(0); i += numbytes = dasmintf->disassemble(disasm, offset + i, opbuf, argbuf) & DASMFLAG_LENGTHMASK; } |
