aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2010-07-18 17:48:48 +0000
committerMatthew Hoops2010-07-18 17:48:48 +0000
commit5b4fd084b066d36cc68c7b9a635f10d6fb3c44d7 (patch)
tree817bfe36a8e81d73b677fd258557973fa0aa610f
parentf2496427339e009d17dbe225cd76c55ec1badcc1 (diff)
downloadscummvm-rg350-5b4fd084b066d36cc68c7b9a635f10d6fb3c44d7.tar.gz
scummvm-rg350-5b4fd084b066d36cc68c7b9a635f10d6fb3c44d7.tar.bz2
scummvm-rg350-5b4fd084b066d36cc68c7b9a635f10d6fb3c44d7.zip
SCI: Fix order of characters when using hexDumpReg.
svn-id: r50998
-rw-r--r--engines/sci/console.cpp8
1 files 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);