aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/lopcodes.h b/lopcodes.h
index e93f8c35..47a9f622 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.53 2000/03/27 14:31:12 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.54 2000/04/04 20:48:44 roberto Exp roberto $
3** Opcodes for Lua virtual machine 3** Opcodes for Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -105,35 +105,35 @@ OP_PUSHNEGNUM,/* N - -KNUM[u] */
105 105
106OP_PUSHUPVALUE,/* U - Closure[u] */ 106OP_PUSHUPVALUE,/* U - Closure[u] */
107 107
108OP_PUSHLOCAL,/* L - LOC[u] */ 108OP_GETLOCAL,/* L - LOC[u] */
109OP_GETGLOBAL,/* K - VAR[KSTR[k]] */ 109OP_GETGLOBAL,/* K - VAR[KSTR[k]] */
110 110
111OP_GETTABLE,/* - i t t[i] */ 111OP_GETTABLE,/* - i t t[i] */
112OP_GETDOTTED,/* K t t[KSTR[k]] */ 112OP_GETDOTTED,/* K t t[KSTR[k]] */
113OP_GETINDEXED,/* L t t[LOC[U]] */
113OP_PUSHSELF,/* K t t t[KSTR[k]] */ 114OP_PUSHSELF,/* K t t t[KSTR[k]] */
114 115
115OP_CREATETABLE,/* U - newarray(size = u) */ 116OP_CREATETABLE,/* U - newarray(size = u) */
116 117
117OP_SETLOCAL,/* L x - LOC[u]=x */ 118OP_SETLOCAL,/* L B v_b-v_1 - LOC[L]=v_b */
118OP_SETGLOBAL,/* K x - VAR[KSTR[k]]=x */ 119OP_SETGLOBAL,/* K x - VAR[KSTR[k]]=x */
119OP_SETTABLEPOP,/* - v i t - t[i]=v */ 120OP_SETTABLE,/* A B v a_a-a_1 i t a_x-a_1 i t t[i]=v */
120OP_SETTABLE,/* U v a_u-a_1 i t a_u-a_1 i t t[i]=v */
121 121
122OP_SETLIST,/* A B v_b-v_0 t t t[i+a*FPF]=v_i */ 122OP_SETLIST,/* A B v_b-v_0 t t t[i+a*FPF]=v_i */
123OP_SETMAP,/* U v_u k_u - v_0 k_0 t t t[k_i]=v_i */ 123OP_SETMAP,/* U v_u k_u - v_0 k_0 t t t[k_i]=v_i */
124 124
125OP_INCLOCAL,/* sA B - - LOC[B]+=sA */ 125OP_INCLOCAL,/* sA L - - LOC[L]+=sA */
126OP_ADD,/* - y x x+y */ 126OP_ADD,/* - y x x+y */
127OP_ADDI,/* S x x+s */ 127OP_ADDI,/* S x x+s */
128OP_SUB,/* - y x x-y */ 128OP_SUB,/* - y x x-y */
129OP_MULT,/* - y x x*y */ 129OP_MULT,/* - y x x*y */
130OP_DIV,/* - y x x/y */ 130OP_DIV,/* - y x x/y */
131OP_POW,/* - y x x^y */ 131OP_POW,/* - y x x^y */
132OP_CONC,/* U v_u-v_1 v1..-..v_u */ 132OP_CONCAT,/* U v_u-v_1 v1..-..v_u */
133OP_MINUS,/* - x -x */ 133OP_MINUS,/* - x -x */
134OP_NOT,/* - x (x==nil)? 1 : nil */ 134OP_NOT,/* - x (x==nil)? 1 : nil */
135 135
136OP_JMPNEQ,/* J y x - (x~=y)? PC+=s */ 136OP_JMPNE,/* J y x - (x~=y)? PC+=s */
137OP_JMPEQ,/* J y x - (x==y)? PC+=s */ 137OP_JMPEQ,/* J y x - (x==y)? PC+=s */
138OP_JMPLT,/* J y x - (x<y)? PC+=s */ 138OP_JMPLT,/* J y x - (x<y)? PC+=s */
139OP_JMPLE,/* J y x - (x<y)? PC+=s */ 139OP_JMPLE,/* J y x - (x<y)? PC+=s */
@@ -156,7 +156,7 @@ OP_SETLINE/* U - - LINE=u */
156 156
157 157
158 158
159#define ISJUMP(o) (OP_JMPNEQ <= (o) && (o) <= OP_JMP) 159#define ISJUMP(o) (OP_JMPNE <= (o) && (o) <= OP_JMP)
160 160
161 161
162#endif 162#endif