summaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-12 11:56:22 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-12 11:56:22 -0300
commiteeab473fc8fdce39c3a0a495a6a790d7906c7bdc (patch)
treef260370b15d8a196f4168d3e64dafb35c8083282 /lopcodes.h
parent6b8cdc9cdd545508af85d1de2013ea0fc64792b0 (diff)
downloadlua-eeab473fc8fdce39c3a0a495a6a790d7906c7bdc.tar.gz
lua-eeab473fc8fdce39c3a0a495a6a790d7906c7bdc.tar.bz2
lua-eeab473fc8fdce39c3a0a495a6a790d7906c7bdc.zip
new fallback __le (less equal), for partial order
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 95b5b373..5852233e 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.97 2002/05/13 13:09:00 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.98 2002/06/06 18:17:33 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*/
@@ -158,7 +158,10 @@ OP_CONCAT,/* A B C R(A) := R(B).. ... ..R(C) */
158OP_JMP,/* sBx PC += sBx */ 158OP_JMP,/* sBx PC += sBx */
159 159
160OP_EQ,/* A B C if ((R(A) == R/K(C)) ~= B) then pc++ */ 160OP_EQ,/* A B C if ((R(A) == R/K(C)) ~= B) then pc++ */
161OP_CMP,/* A B C if not (R(A) <B> R/K(C)) then pc++ (see note) */ 161OP_LT,/* A B C if ((R(A) < R/K(C)) ~= B) then pc++ */
162OP_LE,/* A B C if ((R(A) <= R/K(C)) ~= B) then pc++ */
163OP_GT,/* A B C if ((R(A) > R/K(C)) ~= B) then pc++ */
164OP_GE,/* A B C if ((R(A) >= R/K(C)) ~= B) then pc++ */
162 165
163OP_TEST,/* A B C if (R(C) <=> B) then R(A) := R(C) else pc++ */ 166OP_TEST,/* A B C if (R(C) <=> B) then R(A) := R(C) else pc++ */
164 167