diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-02-07 00:34:57 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-02-07 00:34:57 -0500 |
commit | a3f027374896f9c26d92dadbfe89f9a1d39a6037 (patch) | |
tree | db52a7c1b909eb9b3e46ba7b2c0361bcf6306493 | |
parent | abb48bb5e428102d2983d1da0ad6f6262e2ed566 (diff) |
Fix ASCII dump output for big-endian spaces
-rw-r--r-- | src/emu/debug/debugcmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index c35c9ad2191..60c859bbe21 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -1987,7 +1987,7 @@ void debugger_commands::execute_dump(int ref, const std::vector<std::string> &pa break; } for (unsigned int b = 0; b != width; b++) { - u8 byte = data >> (8 * (be ? (width-i-b) : b)); + u8 byte = data >> (8 * (be ? (width-1-b) : b)); util::stream_format(output, "%c", (byte >= 32 && byte < 127) ? byte : '.'); } } |