Torque 3D 3.7
ContentsIndexHome
PreviousUpNext
Compiler::CompiledInstructions Enumeration
Syntax
C++
enum CompiledInstructions { OP_FUNC_DECL, OP_CREATE_OBJECT, OP_ADD_OBJECT, OP_END_OBJECT, OP_FINISH_OBJECT, OP_JMPIFFNOT, OP_JMPIFNOT, OP_JMPIFF, OP_JMPIF, OP_JMPIFNOT_NP, OP_JMPIF_NP, OP_JMP, OP_RETURN, OP_RETURN_VOID, OP_RETURN_FLT, OP_RETURN_UINT, OP_CMPEQ, OP_CMPGR, OP_CMPGE, OP_CMPLT, OP_CMPLE, OP_CMPNE, OP_XOR, OP_MOD, OP_BITAND, OP_BITOR, OP_NOT, OP_NOTF, OP_ONESCOMPLEMENT, OP_SHR, OP_SHL, OP_AND, OP_OR, OP_ADD, OP_SUB, OP_MUL, OP_DIV, OP_NEG, OP_SETCURVAR, OP_SETCURVAR_CREATE, OP_SETCURVAR_ARRAY, OP_SETCURVAR_ARRAY_CREATE, OP_LOADVAR_UINT, OP_LOADVAR_FLT, OP_LOADVAR_STR, OP_LOADVAR_VAR, OP_SAVEVAR_UINT, OP_SAVEVAR_FLT, OP_SAVEVAR_STR, OP_SAVEVAR_VAR, OP_SETCUROBJECT, OP_SETCUROBJECT_NEW, OP_SETCUROBJECT_INTERNAL, OP_SETCURFIELD, OP_SETCURFIELD_ARRAY, OP_SETCURFIELD_TYPE, OP_LOADFIELD_UINT, OP_LOADFIELD_FLT, OP_LOADFIELD_STR, OP_SAVEFIELD_UINT, OP_SAVEFIELD_FLT, OP_SAVEFIELD_STR, OP_STR_TO_UINT, OP_STR_TO_FLT, OP_STR_TO_NONE, OP_FLT_TO_UINT, OP_FLT_TO_STR, OP_FLT_TO_NONE, OP_UINT_TO_FLT, OP_UINT_TO_STR, OP_UINT_TO_NONE, OP_COPYVAR_TO_NONE, OP_LOADIMMED_UINT, OP_LOADIMMED_FLT, OP_TAG_TO_STR, OP_LOADIMMED_STR, OP_DOCBLOCK_STR, OP_LOADIMMED_IDENT, OP_CALLFUNC_RESOLVE, OP_CALLFUNC, OP_ADVANCE_STR, OP_ADVANCE_STR_APPENDCHAR, OP_ADVANCE_STR_COMMA, OP_ADVANCE_STR_NUL, OP_REWIND_STR, OP_TERMINATE_REWIND_STR, OP_COMPARE_STR, OP_PUSH, OP_PUSH_UINT, OP_PUSH_FLT, OP_PUSH_VAR, OP_PUSH_FRAME, OP_ASSERT, OP_BREAK, OP_ITER_BEGIN, OP_ITER_BEGIN_STR, OP_ITER, OP_ITER_END, OP_INVALID };
Members 
Description 
OP_FINISH_OBJECT 
Added to fix the stack issue [7/9/2007 Black 
OP_JMPIF_NP 
10 
OP_RETURN_VOID 
fixes a bug when not explicitly returning a value 
OP_XOR 
20 
OP_OR 
30 
OP_LOADVAR_UINT 
40 
OP_SETCURFIELD_ARRAY 
50 
OP_STR_TO_NONE 
60 
OP_LOADIMMED_STR 
70 
OP_TERMINATE_REWIND_STR 
80 
OP_PUSH 
OP_PUSH_UINT 
Integer 
OP_PUSH_FLT 
Float 
OP_PUSH_VAR 
Variable 
OP_PUSH_FRAME 
Frame 
OP_ITER_BEGIN 
< Prepare foreach iterator. 
OP_ITER_BEGIN_STR 
< Prepare foreach$ iterator. 
OP_ITER 
< Enter foreach loop. 
OP_ITER_END 
< End foreach loop. 
OP_INVALID 
90 

The opcodes for the TorqueScript VM.

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!