From 4c0e36a46e11be2f101203ed0db66ea750bf4333 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 16 Nov 2017 10:59:14 -0200 Subject: new instruction 'OP_EQK' (for equality with constants) --- lopcodes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lopcodes.h') diff --git a/lopcodes.h b/lopcodes.h index bc8d722f..a805ba63 100644 --- a/lopcodes.h +++ b/lopcodes.h @@ -1,5 +1,5 @@ /* -** $Id: lopcodes.h,v 1.166 2017/10/04 21:56:32 roberto Exp roberto $ +** $Id: lopcodes.h,v 1.167 2017/11/07 17:20:42 roberto Exp roberto $ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ @@ -240,6 +240,8 @@ OP_EQ,/* A B C if ((R(B) == R(C)) ~= A) then pc++ */ OP_LT,/* A B C if ((R(B) < R(C)) ~= A) then pc++ */ OP_LE,/* A B C if ((R(B) <= R(C)) ~= A) then pc++ */ +OP_EQK,/* A B C if ((R(B) == K(C)) ~= A) then pc++ */ + OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ -- cgit v1.2.3-55-g6feb