[Scummvm-cvs-logs] SF.net SVN: scummvm:[51547] tools/branches/gsoc2010-decompiler/decompiler

pidgeot at users.sourceforge.net pidgeot at users.sourceforge.net
Sat Jul 31 20:21:22 CEST 2010


Revision: 51547
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51547&view=rev
Author:   pidgeot
Date:     2010-07-31 18:21:22 +0000 (Sat, 31 Jul 2010)

Log Message:
-----------
Also output parameters to calls in hex

Modified Paths:
--------------
    tools/branches/gsoc2010-decompiler/decompiler/disassembler.cpp
    tools/branches/gsoc2010-decompiler/decompiler/graph.h

Modified: tools/branches/gsoc2010-decompiler/decompiler/disassembler.cpp
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/disassembler.cpp	2010-07-31 18:10:44 UTC (rev 51546)
+++ tools/branches/gsoc2010-decompiler/decompiler/disassembler.cpp	2010-07-31 18:21:22 UTC (rev 51547)
@@ -41,7 +41,7 @@
 		for (param = inst->_params.begin(); param != inst->_params.end(); ++param) {
 			if (param != inst->_params.begin())
 				output << ",";
-			if (inst->_type == kCondJump || inst->_type == kCondJumpRel || inst->_type == kJump || inst->_type == kJumpRel) {
+			if (inst->_type == kCondJump || inst->_type == kCondJumpRel || inst->_type == kJump || inst->_type == kJumpRel || inst->_type == kCall) {
 				switch (param->_type) {
 				case kSByte:
 				case kShort:

Modified: tools/branches/gsoc2010-decompiler/decompiler/graph.h
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/graph.h	2010-07-31 18:10:44 UTC (rev 51546)
+++ tools/branches/gsoc2010-decompiler/decompiler/graph.h	2010-07-31 18:21:22 UTC (rev 51547)
@@ -311,7 +311,7 @@
 					output << ",";
 				output << " ";
 				if (param->_type != kString) {
-					if (inst->_type == kCondJump || inst->_type == kCondJumpRel || inst->_type == kJump || inst->_type == kJumpRel) {
+					if (inst->_type == kCondJump || inst->_type == kCondJumpRel || inst->_type == kJump || inst->_type == kJumpRel || inst->_type == kCall) {
 						switch (param->_type) {
 						case kSByte:
 						case kShort:


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