diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-04 15:41:30 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-04 15:41:30 -0200 |
commit | c7ee7fe026aa2247377bdd7915089a8e0074de1a (patch) | |
tree | 6c76f673032ede69516fc1c19c98e0d9a26d778d /lopcodes.h | |
parent | 421e459684f7fdf483454d99c048b47783cb0611 (diff) | |
download | lua-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 */ | |||
217 | OP_DIVI,/* A B sC R(A) := R(B) / C */ | 217 | OP_DIVI,/* A B sC R(A) := R(B) / C */ |
218 | OP_IDIVI,/* A B sC R(A) := R(B) // C */ | 218 | OP_IDIVI,/* A B sC R(A) := R(B) // C */ |
219 | 219 | ||
220 | OP_SHRI,/* A B C R(A) := R(B) >> C */ | ||
221 | OP_SHLI,/* A B C R(A) := C << R(B) */ | ||
222 | |||
220 | OP_ADD,/* A B C R(A) := R(B) + R(C) */ | 223 | OP_ADD,/* A B C R(A) := R(B) + R(C) */ |
221 | OP_SUB,/* A B C R(A) := R(B) - R(C) */ | 224 | OP_SUB,/* A B C R(A) := R(B) - R(C) */ |
222 | OP_MUL,/* A B C R(A) := R(B) * R(C) */ | 225 | OP_MUL,/* A B C R(A) := R(B) * R(C) */ |