From a3f027374896f9c26d92dadbfe89f9a1d39a6037 Mon Sep 17 00:00:00 2001 From: AJR Date: Wed, 7 Feb 2018 00:34:57 -0500 Subject: [PATCH] Fix ASCII dump output for big-endian spaces --- src/emu/debug/debugcmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &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 : '.'); } }