[Scummvm-cvs-logs] SF.net SVN: scummvm:[50998] scummvm/trunk/engines/sci/console.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Sun Jul 18 19:48:49 CEST 2010
Revision: 50998
http://scummvm.svn.sourceforge.net/scummvm/?rev=50998&view=rev
Author: mthreepwood
Date: 2010-07-18 17:48:48 +0000 (Sun, 18 Jul 2010)
Log Message:
-----------
SCI: Fix order of characters when using hexDumpReg.
Modified Paths:
--------------
scummvm/trunk/engines/sci/console.cpp
Modified: scummvm/trunk/engines/sci/console.cpp
===================================================================
--- scummvm/trunk/engines/sci/console.cpp 2010-07-18 17:18:56 UTC (rev 50997)
+++ scummvm/trunk/engines/sci/console.cpp 2010-07-18 17:48:48 UTC (rev 50998)
@@ -3440,11 +3440,11 @@
}
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 @@
}
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list