aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-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);