diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-29 17:49:21 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-29 17:49:21 -0300 |
| commit | 3b19af44b05ce5e7f7db3708d052cca25fe6d7d3 (patch) | |
| tree | f4575f972c8f780e64d935ff211ebd5cd8f9a3cf /lopcodes.h | |
| parent | 3390f9a35ac66d01c7bb0114083a4cb384783ff5 (diff) | |
| download | lua-3b19af44b05ce5e7f7db3708d052cca25fe6d7d3.tar.gz lua-3b19af44b05ce5e7f7db3708d052cca25fe6d7d3.tar.bz2 lua-3b19af44b05ce5e7f7db3708d052cca25fe6d7d3.zip | |
new method to handle tests without values (negative values)
Diffstat (limited to 'lopcodes.h')
| -rw-r--r-- | lopcodes.h | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lopcodes.h,v 1.120 2005/05/20 15:53:42 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.121 2005/06/06 13:30:25 roberto Exp $ |
| 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 | */ |
| @@ -186,7 +186,8 @@ OP_EQ,/* A B C if ((RK(B) == RK(C)) ~= A) then pc++ */ | |||
| 186 | OP_LT,/* A B C if ((RK(B) < RK(C)) ~= A) then pc++ */ | 186 | OP_LT,/* A B C if ((RK(B) < RK(C)) ~= A) then pc++ */ |
| 187 | OP_LE,/* A B C if ((RK(B) <= RK(C)) ~= A) then pc++ */ | 187 | OP_LE,/* A B C if ((RK(B) <= RK(C)) ~= A) then pc++ */ |
| 188 | 188 | ||
| 189 | OP_TEST,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ | 189 | OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ |
| 190 | OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ | ||
| 190 | 191 | ||
| 191 | OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */ | 192 | OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */ |
| 192 | OP_TAILCALL,/* A B C return R(A)(R(A+1), ... ,R(A+B-1)) */ | 193 | OP_TAILCALL,/* A B C return R(A)(R(A+1), ... ,R(A+B-1)) */ |
