diff options
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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++ */ | |||
166 | OP_TESTT,/* A B if (R(B)) then R(A) := R(B) else pc++ */ | 166 | OP_TESTT,/* A B if (R(B)) then R(A) := R(B) else pc++ */ |
167 | OP_TESTF,/* A B if not (R(B)) then R(A) := R(B) else pc++ */ | 167 | OP_TESTF,/* A B if not (R(B)) then R(A) := R(B) else pc++ */ |
168 | 168 | ||
169 | OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1))*/ | 169 | OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */ |
170 | OP_RETURN,/* A B return R(A), ... ,R(A+B-2) (see (3)) */ | 170 | OP_RETURN,/* A B return R(A), ... ,R(A+B-2) (see (3)) */ |
171 | 171 | ||
172 | OP_FORLOOP,/* A sBc */ | 172 | OP_FORLOOP,/* A sBc R(A)+=R(A+2); if R(A) <?= R(A+1) then PC+= sBc */ |
173 | OP_TFORLOOP,/* A sBc */ | 173 | |
174 | OP_TFORLOOP,/* A C R(A+1), ... ,R(A+C) := R(A)(); | ||
175 | if R(A+1) ~= nil then pc++ */ | ||
174 | 176 | ||
175 | OP_SETLIST,/* A Bc R(A)[Bc-Bc%FPF+i] := R(A+i), 1 <= i <= Bc%FPF+1 */ | 177 | OP_SETLIST,/* A Bc R(A)[Bc-Bc%FPF+i] := R(A+i), 1 <= i <= Bc%FPF+1 */ |
176 | OP_SETLISTO,/* A Bc */ | 178 | OP_SETLISTO,/* A Bc */ |