From 86431a2f1c668844c665f9d09e246de906b511d8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 13 Dec 2017 16:32:09 -0200 Subject: new opcodes BANDK/BORK/BXORK. (They do not use immediate operands because, too often, masks in bitwise operations are integers larger than one byte.) --- lopcodes.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lopcodes.h') diff --git a/lopcodes.h b/lopcodes.h index 7468b9e3..f3c3e055 100644 --- a/lopcodes.h +++ b/lopcodes.h @@ -1,5 +1,5 @@ /* -** $Id: lopcodes.h,v 1.175 2017/11/30 13:16:43 roberto Exp roberto $ +** $Id: lopcodes.h,v 1.176 2017/12/04 17:41:30 roberto Exp roberto $ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ @@ -217,6 +217,10 @@ OP_POWI,/* A B sC R(A) := R(B) ^ C */ OP_DIVI,/* A B sC R(A) := R(B) / C */ OP_IDIVI,/* A B sC R(A) := R(B) // C */ +OP_BANDK,/* A B C R(A) := R(B) & K(C):integer */ +OP_BORK,/* A B C R(A) := R(B) | K(C):integer */ +OP_BXORK,/* A B C R(A) := R(B) ~ K(C):integer */ + OP_SHRI,/* A B C R(A) := R(B) >> C */ OP_SHLI,/* A B C R(A) := C << R(B) */ -- cgit v1.2.3-55-g6feb