aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-27 15:44:31 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-27 15:44:31 -0200
commit093c16b67b263e334600ed306310b9015f65fa8b (patch)
tree5ed17cb52078eddcc9b6b051e102839194ad4ba8 /lopcodes.h
parent599f1742c628db70ef84794b3b8b25fdef9e5004 (diff)
downloadlua-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index a9645620..5b955ce8 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -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
243OP_EQK,/* A B C if ((R(A) == K(C)) ~= B) then pc++ */ 243OP_EQK,/* A B C if ((R(A) == K(C)) ~= B) then pc++ */
244OP_EQI,/* A B C if ((R(A) == C) ~= B) then pc++ */ 244OP_EQI,/* A B C if ((R(A) == C) ~= B) then pc++ */
245OP_LTI,/* A B C if ((R(A) < C) ~= B) then pc++ */
246OP_LEI,/* A B C if ((R(A) <= C) ~= B) then pc++ */
245 247
246OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ 248OP_TEST,/* A C if not (R(A) <=> C) then pc++ */
247OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ 249OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */