aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-04 15:41:30 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-04 15:41:30 -0200
commitc7ee7fe026aa2247377bdd7915089a8e0074de1a (patch)
tree6c76f673032ede69516fc1c19c98e0d9a26d778d /lopcodes.h
parent421e459684f7fdf483454d99c048b47783cb0611 (diff)
downloadlua-c7ee7fe026aa2247377bdd7915089a8e0074de1a.tar.gz
lua-c7ee7fe026aa2247377bdd7915089a8e0074de1a.tar.bz2
lua-c7ee7fe026aa2247377bdd7915089a8e0074de1a.zip
new opcodes OP_SHLI/OP_SHRI
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 0d697c55..7468b9e3 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.174 2017/11/30 12:03:00 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.175 2017/11/30 13:16:43 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*/
@@ -217,6 +217,9 @@ OP_POWI,/* A B sC R(A) := R(B) ^ C */
217OP_DIVI,/* A B sC R(A) := R(B) / C */ 217OP_DIVI,/* A B sC R(A) := R(B) / C */
218OP_IDIVI,/* A B sC R(A) := R(B) // C */ 218OP_IDIVI,/* A B sC R(A) := R(B) // C */
219 219
220OP_SHRI,/* A B C R(A) := R(B) >> C */
221OP_SHLI,/* A B C R(A) := C << R(B) */
222
220OP_ADD,/* A B C R(A) := R(B) + R(C) */ 223OP_ADD,/* A B C R(A) := R(B) + R(C) */
221OP_SUB,/* A B C R(A) := R(B) - R(C) */ 224OP_SUB,/* A B C R(A) := R(B) - R(C) */
222OP_MUL,/* A B C R(A) := R(B) * R(C) */ 225OP_MUL,/* A B C R(A) := R(B) * R(C) */