diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-30 18:47:58 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-30 18:47:58 -0200 |
commit | 1ea2d20f74cea9c61817d4a5ed67c4fc47cafb51 (patch) | |
tree | bdedb3205963f8db43391aaef5be853cdeb59df4 /lopcodes.h | |
parent | f5133aa1a55cee96b535ff788764437deacdc26a (diff) | |
download | lua-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) */ | |||
194 | OP_BAND,/* A B C R(A) := RK(B) & RK(C) */ | 194 | OP_BAND,/* A B C R(A) := RK(B) & RK(C) */ |
195 | OP_BOR,/* A B C R(A) := RK(B) | RK(C) */ | 195 | OP_BOR,/* A B C R(A) := RK(B) | RK(C) */ |
196 | OP_BXOR,/* A B C R(A) := RK(B) ~ RK(C) */ | 196 | OP_BXOR,/* A B C R(A) := RK(B) ~ RK(C) */ |
197 | OP_SHL,/* A B C R(A) := RK(B) << RK(C) */ | ||
198 | OP_SHR,/* A B C R(A) := RK(B) >> RK(C) */ | ||
197 | OP_UNM,/* A B R(A) := -R(B) */ | 199 | OP_UNM,/* A B R(A) := -R(B) */ |
200 | OP_BNOT,/* A B R(A) := ~R(B) */ | ||
198 | OP_NOT,/* A B R(A) := not R(B) */ | 201 | OP_NOT,/* A B R(A) := not R(B) */ |
199 | OP_LEN,/* A B R(A) := length of R(B) */ | 202 | OP_LEN,/* A B R(A) := length of R(B) */ |
200 | 203 | ||