<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>rpm: lua/lopcodes.c Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.4.7 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li id="current"><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul></div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul></div> <h1>lua/lopcodes.c</h1><a href="lopcodes_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment">** $Id: lopcodes.c,v 1.1 2004/03/16 21:58:30 niemeyer Exp $</span> <a name="l00003"></a>00003 <span class="comment">** extracted automatically from lopcodes.h by mkprint.lua</span> <a name="l00004"></a>00004 <span class="comment">** DO NOT EDIT</span> <a name="l00005"></a>00005 <span class="comment">** See Copyright Notice in lua.h</span> <a name="l00006"></a>00006 <span class="comment">*/</span> <a name="l00007"></a>00007 <a name="l00008"></a>00008 <a name="l00009"></a><a class="code" href="lopcodes_8c.html#8e1491fc511f54244be48bb655fc4fff">00009</a> <span class="preprocessor">#define lopcodes_c</span> <a name="l00010"></a>00010 <span class="preprocessor"></span> <a name="l00011"></a>00011 <span class="preprocessor">#include "lua.h"</span> <a name="l00012"></a>00012 <a name="l00013"></a>00013 <span class="preprocessor">#include "<a class="code" href="lobject_8h.html">lobject.h</a>"</span> <a name="l00014"></a>00014 <span class="preprocessor">#include "<a class="code" href="lopcodes_8h.html">lopcodes.h</a>"</span> <a name="l00015"></a>00015 <a name="l00016"></a>00016 <a name="l00017"></a>00017 <span class="preprocessor">#ifdef LUA_OPNAMES</span> <a name="l00018"></a>00018 <span class="preprocessor"></span> <a name="l00019"></a>00019 <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> luaP_opnames[] = { <a name="l00020"></a>00020 <span class="stringliteral">"MOVE"</span>, <a name="l00021"></a>00021 <span class="stringliteral">"LOADK"</span>, <a name="l00022"></a>00022 <span class="stringliteral">"LOADBOOL"</span>, <a name="l00023"></a>00023 <span class="stringliteral">"LOADNIL"</span>, <a name="l00024"></a>00024 <span class="stringliteral">"GETUPVAL"</span>, <a name="l00025"></a>00025 <span class="stringliteral">"GETGLOBAL"</span>, <a name="l00026"></a>00026 <span class="stringliteral">"GETTABLE"</span>, <a name="l00027"></a>00027 <span class="stringliteral">"SETGLOBAL"</span>, <a name="l00028"></a>00028 <span class="stringliteral">"SETUPVAL"</span>, <a name="l00029"></a>00029 <span class="stringliteral">"SETTABLE"</span>, <a name="l00030"></a>00030 <span class="stringliteral">"NEWTABLE"</span>, <a name="l00031"></a>00031 <span class="stringliteral">"SELF"</span>, <a name="l00032"></a>00032 <span class="stringliteral">"ADD"</span>, <a name="l00033"></a>00033 <span class="stringliteral">"SUB"</span>, <a name="l00034"></a>00034 <span class="stringliteral">"MUL"</span>, <a name="l00035"></a>00035 <span class="stringliteral">"DIV"</span>, <a name="l00036"></a>00036 <span class="stringliteral">"POW"</span>, <a name="l00037"></a>00037 <span class="stringliteral">"UNM"</span>, <a name="l00038"></a>00038 <span class="stringliteral">"NOT"</span>, <a name="l00039"></a>00039 <span class="stringliteral">"CONCAT"</span>, <a name="l00040"></a>00040 <span class="stringliteral">"JMP"</span>, <a name="l00041"></a>00041 <span class="stringliteral">"EQ"</span>, <a name="l00042"></a>00042 <span class="stringliteral">"LT"</span>, <a name="l00043"></a>00043 <span class="stringliteral">"LE"</span>, <a name="l00044"></a>00044 <span class="stringliteral">"TEST"</span>, <a name="l00045"></a>00045 <span class="stringliteral">"CALL"</span>, <a name="l00046"></a>00046 <span class="stringliteral">"TAILCALL"</span>, <a name="l00047"></a>00047 <span class="stringliteral">"RETURN"</span>, <a name="l00048"></a>00048 <span class="stringliteral">"FORLOOP"</span>, <a name="l00049"></a>00049 <span class="stringliteral">"TFORLOOP"</span>, <a name="l00050"></a>00050 <span class="stringliteral">"TFORPREP"</span>, <a name="l00051"></a>00051 <span class="stringliteral">"SETLIST"</span>, <a name="l00052"></a>00052 <span class="stringliteral">"SETLISTO"</span>, <a name="l00053"></a>00053 <span class="stringliteral">"CLOSE"</span>, <a name="l00054"></a>00054 <span class="stringliteral">"CLOSURE"</span> <a name="l00055"></a>00055 }; <a name="l00056"></a>00056 <a name="l00057"></a>00057 <span class="preprocessor">#endif</span> <a name="l00058"></a>00058 <span class="preprocessor"></span> <a name="l00059"></a><a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">00059</a> <span class="preprocessor">#define opmode(t,b,bk,ck,sa,k,m) (((t)<<OpModeT) | \</span> <a name="l00060"></a>00060 <span class="preprocessor"> ((b)<<OpModeBreg) | ((bk)<<OpModeBrk) | ((ck)<<OpModeCrk) | \</span> <a name="l00061"></a>00061 <span class="preprocessor"> ((sa)<<OpModesetA) | ((k)<<OpModeK) | (m))</span> <a name="l00062"></a>00062 <span class="preprocessor"></span> <a name="l00063"></a>00063 <a name="l00064"></a><a class="code" href="lopcodes_8h.html#f5c84fd2cae11b79621101db8a9c4390">00064</a> <span class="keyword">const</span> <a class="code" href="llimits_8h.html#e1fe9ac10d9803bd1d7bdf30b18bad68">lu_byte</a> <a class="code" href="lopcodes_8c.html#f5c84fd2cae11b79621101db8a9c4390">luaP_opmodes</a>[<a class="code" href="lopcodes_8h.html#1fb469ba81540d3314cfbe37c675ba20">NUM_OPCODES</a>] = { <a name="l00065"></a>00065 <span class="comment">/* T B Bk Ck sA K mode opcode */</span> <a name="l00066"></a>00066 <a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 1, 0, 0, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_MOVE */</span> <a name="l00067"></a>00067 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 1, 1, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68afe162f330f7a1e7581cdbbb4af60dc8ea">iABx</a>) <span class="comment">/* OP_LOADK */</span> <a name="l00068"></a>00068 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_LOADBOOL */</span> <a name="l00069"></a>00069 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 1, 0, 0, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_LOADNIL */</span> <a name="l00070"></a>00070 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_GETUPVAL */</span> <a name="l00071"></a>00071 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 1, 1, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68afe162f330f7a1e7581cdbbb4af60dc8ea">iABx</a>) <span class="comment">/* OP_GETGLOBAL */</span> <a name="l00072"></a>00072 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 1, 0, 1, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_GETTABLE */</span> <a name="l00073"></a>00073 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 0, 1, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68afe162f330f7a1e7581cdbbb4af60dc8ea">iABx</a>) <span class="comment">/* OP_SETGLOBAL */</span> <a name="l00074"></a>00074 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_SETUPVAL */</span> <a name="l00075"></a>00075 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 1, 1, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_SETTABLE */</span> <a name="l00076"></a>00076 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_NEWTABLE */</span> <a name="l00077"></a>00077 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 1, 0, 1, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_SELF */</span> <a name="l00078"></a>00078 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 1, 1, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_ADD */</span> <a name="l00079"></a>00079 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 1, 1, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_SUB */</span> <a name="l00080"></a>00080 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 1, 1, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_MUL */</span> <a name="l00081"></a>00081 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 1, 1, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_DIV */</span> <a name="l00082"></a>00082 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 1, 1, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_POW */</span> <a name="l00083"></a>00083 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 1, 0, 0, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_UNM */</span> <a name="l00084"></a>00084 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 1, 0, 0, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_NOT */</span> <a name="l00085"></a>00085 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 1, 0, 1, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_CONCAT */</span> <a name="l00086"></a>00086 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5db94456d16691b254a6b2fc7b473e55">iAsBx</a>) <span class="comment">/* OP_JMP */</span> <a name="l00087"></a>00087 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(1, 0, 1, 1, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_EQ */</span> <a name="l00088"></a>00088 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(1, 0, 1, 1, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_LT */</span> <a name="l00089"></a>00089 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(1, 0, 1, 1, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_LE */</span> <a name="l00090"></a>00090 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(1, 1, 0, 0, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_TEST */</span> <a name="l00091"></a>00091 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_CALL */</span> <a name="l00092"></a>00092 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_TAILCALL */</span> <a name="l00093"></a>00093 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_RETURN */</span> <a name="l00094"></a>00094 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5db94456d16691b254a6b2fc7b473e55">iAsBx</a>) <span class="comment">/* OP_FORLOOP */</span> <a name="l00095"></a>00095 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(1, 0, 0, 0, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_TFORLOOP */</span> <a name="l00096"></a>00096 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5db94456d16691b254a6b2fc7b473e55">iAsBx</a>) <span class="comment">/* OP_TFORPREP */</span> <a name="l00097"></a>00097 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68afe162f330f7a1e7581cdbbb4af60dc8ea">iABx</a>) <span class="comment">/* OP_SETLIST */</span> <a name="l00098"></a>00098 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68afe162f330f7a1e7581cdbbb4af60dc8ea">iABx</a>) <span class="comment">/* OP_SETLISTO */</span> <a name="l00099"></a>00099 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 0, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68af5032b5bab05a3312f6236ad8a6053cf3">iABC</a>) <span class="comment">/* OP_CLOSE */</span> <a name="l00100"></a>00100 ,<a class="code" href="lopcodes_8c.html#eb7e54e589e99f8931f7daf5969f4e0c">opmode</a>(0, 0, 0, 0, 1, 0, <a class="code" href="lopcodes_8h.html#56752d1aeb4bd4940e632396072d68afe162f330f7a1e7581cdbbb4af60dc8ea">iABx</a>) <span class="comment">/* OP_CLOSURE */</span> <a name="l00101"></a>00101 }; <a name="l00102"></a>00102 </pre></div><hr size="1"><address style="align: right;"><small>Generated on 1 Oct 2013 for rpm by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address> </body> </html>