aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 29ff40aa..4568fe46 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.85 2002/01/09 22:02:47 roberto Exp $ 2** $Id: lopcodes.h,v 1.89 2002/02/14 21:43:01 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*/
@@ -166,11 +166,13 @@ OP_TESTGE,/* A C if not (R(A) >= R/K(C)) then pc++ */
166OP_TESTT,/* A B if (R(B)) then R(A) := R(B) else pc++ */ 166OP_TESTT,/* A B if (R(B)) then R(A) := R(B) else pc++ */
167OP_TESTF,/* A B if not (R(B)) then R(A) := R(B) else pc++ */ 167OP_TESTF,/* A B if not (R(B)) then R(A) := R(B) else pc++ */
168 168
169OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1))*/ 169OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */
170OP_RETURN,/* A B return R(A), ... ,R(A+B-2) (see (3)) */ 170OP_RETURN,/* A B return R(A), ... ,R(A+B-2) (see (3)) */
171 171
172OP_FORLOOP,/* A sBc */ 172OP_FORLOOP,/* A sBc R(A)+=R(A+2); if R(A) <?= R(A+1) then PC+= sBc */
173OP_TFORLOOP,/* A sBc */ 173
174OP_TFORLOOP,/* A C R(A+1), ... ,R(A+C) := R(A)();
175 if R(A+1) ~= nil then pc++ */
174 176
175OP_SETLIST,/* A Bc R(A)[Bc-Bc%FPF+i] := R(A+i), 1 <= i <= Bc%FPF+1 */ 177OP_SETLIST,/* A Bc R(A)[Bc-Bc%FPF+i] := R(A+i), 1 <= i <= Bc%FPF+1 */
176OP_SETLISTO,/* A Bc */ 178OP_SETLISTO,/* A Bc */