diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-16 10:59:14 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-16 10:59:14 -0200 |
commit | 4c0e36a46e11be2f101203ed0db66ea750bf4333 (patch) | |
tree | 625e7be62fc7d9eb95c052a6a8f31ee1892332e7 /lopcodes.h | |
parent | 5440b42f434ecb6fe7a8e0d19fb8e8baf82e90b7 (diff) | |
download | lua-4c0e36a46e11be2f101203ed0db66ea750bf4333.tar.gz lua-4c0e36a46e11be2f101203ed0db66ea750bf4333.tar.bz2 lua-4c0e36a46e11be2f101203ed0db66ea750bf4333.zip |
new instruction 'OP_EQK' (for equality with constants)
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.166 2017/10/04 21:56:32 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.167 2017/11/07 17:20:42 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 | */ |
@@ -240,6 +240,8 @@ OP_EQ,/* A B C if ((R(B) == R(C)) ~= A) then pc++ */ | |||
240 | OP_LT,/* A B C if ((R(B) < R(C)) ~= A) then pc++ */ | 240 | OP_LT,/* A B C if ((R(B) < R(C)) ~= A) then pc++ */ |
241 | OP_LE,/* A B C if ((R(B) <= R(C)) ~= A) then pc++ */ | 241 | OP_LE,/* A B C if ((R(B) <= R(C)) ~= A) then pc++ */ |
242 | 242 | ||
243 | OP_EQK,/* A B C if ((R(B) == K(C)) ~= A) then pc++ */ | ||
244 | |||
243 | OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ | 245 | OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ |
244 | OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ | 246 | OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ |
245 | 247 | ||