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 dd811cac..634a13f3 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.124 2005/12/02 18:42:08 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.125 2006/03/14 19:04: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*/
@@ -183,11 +183,11 @@ OP_CONCAT,/* A B C R(A) := R(B).. ... ..R(C) */
183OP_JMP,/* sBx pc+=sBx */ 183OP_JMP,/* sBx pc+=sBx */
184 184
185OP_EQ,/* A B C if ((RK(B) == RK(C)) ~= A) then pc++ */ 185OP_EQ,/* A B C if ((RK(B) == RK(C)) ~= A) then pc++ */
186OP_LT,/* A B C if ((RK(B) < RK(C)) ~= A) then pc++ */ 186OP_LT,/* A B C if ((RK(B) < RK(C)) ~= A) then pc++ */
187OP_LE,/* A B C if ((RK(B) <= RK(C)) ~= A) then pc++ */ 187OP_LE,/* A B C if ((RK(B) <= RK(C)) ~= A) then pc++ */
188 188
189OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ 189OP_TEST,/* A C if not (R(A) <=> C) then pc++ */
190OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ 190OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */
191 191
192OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */ 192OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */
193OP_TAILCALL,/* A B C return R(A)(R(A+1), ... ,R(A+B-1)) */ 193OP_TAILCALL,/* A B C return R(A)(R(A+1), ... ,R(A+B-1)) */
@@ -197,11 +197,11 @@ OP_FORLOOP,/* A sBx R(A)+=R(A+2);
197 if R(A) <?= R(A+1) then { pc+=sBx; R(A+3)=R(A) }*/ 197 if R(A) <?= R(A+1) then { pc+=sBx; R(A+3)=R(A) }*/
198OP_FORPREP,/* A sBx R(A)-=R(A+2); pc+=sBx */ 198OP_FORPREP,/* A sBx R(A)-=R(A+2); pc+=sBx */
199 199
200OP_TFORLOOP,/* A C R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2)); 200OP_TFORLOOP,/* A C R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2));
201 if R(A+3) ~= nil then R(A+2)=R(A+3) else pc++ */ 201 if R(A+3) ~= nil then R(A+2)=R(A+3) else pc++ */
202OP_SETLIST,/* A B C R(A)[(C-1)*FPF+i] := R(A+i), 1 <= i <= B */ 202OP_SETLIST,/* A B C R(A)[(C-1)*FPF+i] := R(A+i), 1 <= i <= B */
203 203
204OP_CLOSE,/* A close all variables in the stack up to (>=) R(A)*/ 204OP_CLOSE,/* A close all variables in the stack up to (>=) R(A)*/
205OP_CLOSURE,/* A Bx R(A) := closure(KPROTO[Bx], R(A), ... ,R(A+n)) */ 205OP_CLOSURE,/* A Bx R(A) := closure(KPROTO[Bx], R(A), ... ,R(A+n)) */
206 206
207OP_VARARG/* A B R(A), R(A+1), ..., R(A+B-1) = vararg */ 207OP_VARARG/* A B R(A), R(A+1), ..., R(A+B-1) = vararg */
@@ -240,7 +240,7 @@ OP_VARARG/* A B R(A), R(A+1), ..., R(A+B-1) = vararg */
240** bits 4-5: B arg mode 240** bits 4-5: B arg mode
241** bit 6: instruction set register A 241** bit 6: instruction set register A
242** bit 7: operator is a test 242** bit 7: operator is a test
243*/ 243*/
244 244
245enum OpArgMask { 245enum OpArgMask {
246 OpArgN, /* argument is not used */ 246 OpArgN, /* argument is not used */