aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-12-30 18:47:58 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-12-30 18:47:58 -0200
commit1ea2d20f74cea9c61817d4a5ed67c4fc47cafb51 (patch)
treebdedb3205963f8db43391aaef5be853cdeb59df4 /lopcodes.h
parentf5133aa1a55cee96b535ff788764437deacdc26a (diff)
downloadlua-1ea2d20f74cea9c61817d4a5ed67c4fc47cafb51.tar.gz
lua-1ea2d20f74cea9c61817d4a5ed67c4fc47cafb51.tar.bz2
lua-1ea2d20f74cea9c61817d4a5ed67c4fc47cafb51.zip
first implementation of '<<', '>>', and '~' (bitwise not)
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 6894f45f..632dee64 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.144 2013/12/16 19:06:52 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.145 2013/12/18 14:12:03 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*/
@@ -194,7 +194,10 @@ OP_IDIV,/* A B C R(A) := RK(B) // RK(C) */
194OP_BAND,/* A B C R(A) := RK(B) & RK(C) */ 194OP_BAND,/* A B C R(A) := RK(B) & RK(C) */
195OP_BOR,/* A B C R(A) := RK(B) | RK(C) */ 195OP_BOR,/* A B C R(A) := RK(B) | RK(C) */
196OP_BXOR,/* A B C R(A) := RK(B) ~ RK(C) */ 196OP_BXOR,/* A B C R(A) := RK(B) ~ RK(C) */
197OP_SHL,/* A B C R(A) := RK(B) << RK(C) */
198OP_SHR,/* A B C R(A) := RK(B) >> RK(C) */
197OP_UNM,/* A B R(A) := -R(B) */ 199OP_UNM,/* A B R(A) := -R(B) */
200OP_BNOT,/* A B R(A) := ~R(B) */
198OP_NOT,/* A B R(A) := not R(B) */ 201OP_NOT,/* A B R(A) := not R(B) */
199OP_LEN,/* A B R(A) := length of R(B) */ 202OP_LEN,/* A B R(A) := length of R(B) */
200 203