[Scummvm-cvs-logs] CVS: scummvm/sword2 interpreter.cpp,1.44,1.45

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Wed Apr 7 02:07:06 CEST 2004


Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5812

Modified Files:
	interpreter.cpp 
Log Message:
Added notice about how I think CP_PUSH_LOCAL_ADDR is used.


Index: interpreter.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/interpreter.cpp,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- interpreter.cpp	7 Apr 2004 06:57:37 -0000	1.44
+++ interpreter.cpp	7 Apr 2004 08:53:24 -0000	1.45
@@ -361,7 +361,15 @@
 			debug(9, "CP_PUSH_GLOBAL_VAR32: scriptVars[%d] => %d", parameter, _scriptVars[parameter]);
 			break;
 		case CP_PUSH_LOCAL_ADDR:
-			// push the address of a local variable
+			// Push the address of a local variable
+
+			// From what I understand, some scripts store data
+			// (e.g. mouse pointers) in their local variable space
+			// from the very beginning, and use this mechanism to
+			// pass that data to the opcode function. I don't yet
+			// know the conceptual difference between this and the
+			// CP_PUSH_DEREFERENCED_STRUCTURE opcode.
+
 			Read16ip(parameter);
 			parameter /= 4;
 			ptr = (uint8 *) &localVars[parameter];





More information about the Scummvm-git-logs mailing list