From 60bdb7936f4584025d8ce8bafe2e1d8afd16b369 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 4 Oct 2017 00:25:45 -0500 Subject: SCI: Fix disassembly of 32-bit addresses --- engines/sci/console.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines') 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)); -- cgit v1.2.3