[Scummvm-cvs-logs] SF.net SVN: scummvm:[52018] tools/branches/gsoc2010-decompiler/decompiler/ doc/codegen.tex
pidgeot at users.sourceforge.net
pidgeot at users.sourceforge.net
Thu Aug 12 02:04:31 CEST 2010
Revision: 52018
http://scummvm.svn.sourceforge.net/scummvm/?rev=52018&view=rev
Author: pidgeot
Date: 2010-08-12 00:04:30 +0000 (Thu, 12 Aug 2010)
Log Message:
-----------
DECOMPILER: Remove kComparison from documentation
Modified Paths:
--------------
tools/branches/gsoc2010-decompiler/decompiler/doc/codegen.tex
Modified: tools/branches/gsoc2010-decompiler/decompiler/doc/codegen.tex
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/doc/codegen.tex 2010-08-12 00:01:37 UTC (rev 52017)
+++ tools/branches/gsoc2010-decompiler/decompiler/doc/codegen.tex 2010-08-12 00:04:30 UTC (rev 52018)
@@ -87,7 +87,7 @@
\paragraph{kUnaryOp}
The topmost stack entry is popped, and a \code{UnaryOpEntry} is created and pushed to the stack, using the codegen metadata as the operator, and the previously popped entry as the operand. Note: currently, a \code{UnaryOpEntry} only supports placing the operator on the left side of the operand.
-\paragraph{kBinaryOp and kComparison}
+\paragraph{kBinaryOp}
The two topmost stack entries are popped, and a BinaryOpEntry is created and pushed to the stack, using the codegen metadata as the operator and the previously popped entries as the operands. The order of the operands is determined by the value of the field \code{\_binOrder}, as described in Section~\vref{sec:argOrder}.
\paragraph{kCondJump and kCondJumpRel}
@@ -117,7 +117,7 @@
\subsection{Order of arguments}
\label{sec:argOrder}
-The generic handling of binary operators (kBinaryOp, kComparison) and magic functions (kSpecial) can be configured to display their arguments using FIFO or LIFO - respectively, the first and the last entry to be pushed onto the stack is used as the first (leftmost) argument. This is set as part of the constructor for the \code{CodeGenerator} class, using the enumeration values \code{kFIFO} and \code{kLIFO}.
+The generic handling of binary operators (kBinaryOp) and magic functions (kSpecial) can be configured to display their arguments using FIFO or LIFO - respectively, the first and the last entry to be pushed onto the stack is used as the first (leftmost) argument. This is set as part of the constructor for the \code{CodeGenerator} class, using the enumeration values \code{kFIFO} and \code{kLIFO}.
To provide an example, consider the following sequence of instructions:
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