From 5b4fd084b066d36cc68c7b9a635f10d6fb3c44d7 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sun, 18 Jul 2010 17:48:48 +0000 Subject: SCI: Fix order of characters when using hexDumpReg. svn-id: r50998 --- engines/sci/console.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index d91f257efe..005ac9eefd 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -3440,11 +3440,11 @@ void Console::hexDumpReg(const reg_t *data, int len, int regsPerLine, int startO } printf(" |"); for (i = 0; i < regsPerLine; i++) { - c = data[i].toUint16() >> 8; + c = data[i].toUint16() & 0xff; if (c < 32 || c >= 127) c = '.'; printf("%c", c); - c = data[i].toUint16() & 0xff; + c = data[i].toUint16() >> 8; if (c < 32 || c >= 127) c = '.'; printf("%c", c); @@ -3467,11 +3467,11 @@ void Console::hexDumpReg(const reg_t *data, int len, int regsPerLine, int startO } printf(" |"); for (i = 0; i < len; i++) { - c = data[i].toUint16() >> 8; + c = data[i].toUint16() & 0xff; if (c < 32 || c >= 127) c = '.'; printf("%c", c); - c = data[i].toUint16() & 0xff; + c = data[i].toUint16() >> 8; if (c < 32 || c >= 127) c = '.'; printf("%c", c); -- cgit v1.2.3