diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-27 15:44:31 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-27 15:44:31 -0200 |
commit | 093c16b67b263e334600ed306310b9015f65fa8b (patch) | |
tree | 5ed17cb52078eddcc9b6b051e102839194ad4ba8 /lopcodes.h | |
parent | 599f1742c628db70ef84794b3b8b25fdef9e5004 (diff) | |
download | lua-093c16b67b263e334600ed306310b9015f65fa8b.tar.gz lua-093c16b67b263e334600ed306310b9015f65fa8b.tar.bz2 lua-093c16b67b263e334600ed306310b9015f65fa8b.zip |
new opcodes 'OP_LTI' and 'OP_LEI'
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.169 2017/11/22 18:41:20 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.170 2017/11/22 19:15: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 | */ |
@@ -242,6 +242,8 @@ OP_LE,/* A B C if ((R(A) <= R(C)) ~= B) then pc++ */ | |||
242 | 242 | ||
243 | OP_EQK,/* A B C if ((R(A) == K(C)) ~= B) then pc++ */ | 243 | OP_EQK,/* A B C if ((R(A) == K(C)) ~= B) then pc++ */ |
244 | OP_EQI,/* A B C if ((R(A) == C) ~= B) then pc++ */ | 244 | OP_EQI,/* A B C if ((R(A) == C) ~= B) then pc++ */ |
245 | OP_LTI,/* A B C if ((R(A) < C) ~= B) then pc++ */ | ||
246 | OP_LEI,/* A B C if ((R(A) <= C) ~= B) then pc++ */ | ||
245 | 247 | ||
246 | OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ | 248 | OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ |
247 | OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ | 249 | OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ |