diff options
author | Colin Snover | 2017-10-04 00:25:45 -0500 |
---|---|---|
committer | Colin Snover | 2017-10-04 00:27:18 -0500 |
commit | 60bdb7936f4584025d8ce8bafe2e1d8afd16b369 (patch) | |
tree | ccf1eb7cc2035e455286afc7482dd4e31042e111 /engines | |
parent | 5ef0b3a62a281877f2070b98d2a87ec8f2f0a941 (diff) | |
download | scummvm-rg350-60bdb7936f4584025d8ce8bafe2e1d8afd16b369.tar.gz scummvm-rg350-60bdb7936f4584025d8ce8bafe2e1d8afd16b369.tar.bz2 scummvm-rg350-60bdb7936f4584025d8ce8bafe2e1d8afd16b369.zip |
SCI: Fix disassembly of 32-bit addresses
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/console.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 241683427b..75fa60632c 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -3625,7 +3625,7 @@ bool Console::cmdDisassembleAddress(int argc, const char **argv) { uint opCount = 1; bool printBWTag = false; bool printBytes = false; - uint16 size; + uint32 size; if (parse_reg_t(_engine->_gamestate, argv[1], &vpc, false)) { debugPrintf("Invalid address passed.\n"); @@ -3650,7 +3650,6 @@ bool Console::cmdDisassembleAddress(int argc, const char **argv) { } do { - // TODO: Use a true 32-bit reg_t for the position (vpc) vpc = disassemble(_engine->_gamestate, make_reg32(vpc.getSegment(), vpc.getOffset()), nullptr, printBWTag, printBytes); } while ((vpc.getOffset() > 0) && (vpc.getOffset() + 6 < size) && (--opCount)); |