summaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-12-11 20:48:44 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-12-11 20:48:44 -0200
commit9aff171f3bf0125314a29a5ca952470b2d83708e (patch)
tree8d1b400e0108198bde554a31731c655113bc4086 /lopcodes.h
parented9be5e1f0d4b68aa848f85744ad959d7a57c9f4 (diff)
downloadlua-9aff171f3bf0125314a29a5ca952470b2d83708e.tar.gz
lua-9aff171f3bf0125314a29a5ca952470b2d83708e.tar.bz2
lua-9aff171f3bf0125314a29a5ca952470b2d83708e.zip
new type `boolean'
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lopcodes.h b/lopcodes.h
index ce09a7a4..b9539a9a 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.82 2001/10/25 19:14:14 roberto Exp $ 2** $Id: lopcodes.h,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $
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*/
@@ -130,6 +130,7 @@ name args description
130OP_MOVE,/* A B R(A) := R(B) */ 130OP_MOVE,/* A B R(A) := R(B) */
131OP_LOADK,/* A Bc R(A) := Kst(Bc) */ 131OP_LOADK,/* A Bc R(A) := Kst(Bc) */
132OP_LOADINT,/* A sBc R(A) := (Number)sBc */ 132OP_LOADINT,/* A sBc R(A) := (Number)sBc */
133OP_LOADBOOL,/* A B C R(A) := (Bool)B; if (C) PC++ */
133OP_LOADNIL,/* A B R(A) := ... := R(B) := nil */ 134OP_LOADNIL,/* A B R(A) := ... := R(B) := nil */
134OP_GETUPVAL,/* A B R(A) := UpValue[B] */ 135OP_GETUPVAL,/* A B R(A) := UpValue[B] */
135 136
@@ -165,9 +166,7 @@ OP_TESTGT,/* A C test := (R(A) > R/K(C)) */
165OP_TESTGE,/* A C test := (R(A) >= R/K(C)) */ 166OP_TESTGE,/* A C test := (R(A) >= R/K(C)) */
166 167
167OP_TESTT,/* A B test := R(B); if (test) R(A) := R(B) */ 168OP_TESTT,/* A B test := R(B); if (test) R(A) := R(B) */
168OP_TESTF,/* A B test := not R(B); if (test) R(A) := nil */ 169OP_TESTF,/* A B test := not R(B); if (test) R(A) := R(B) */
169
170OP_NILJMP,/* A Bc R(A) := nil; PC++; */
171 170
172OP_CALL,/* A B C R(A), ... ,R(A+C-1) := R(A)(R(A+1), ... ,R(A+B))*/ 171OP_CALL,/* A B C R(A), ... ,R(A+C-1) := R(A)(R(A+1), ... ,R(A+B))*/
173OP_RETURN,/* A B return R(A), ... ,R(A+B-1) (see (3)) */ 172OP_RETURN,/* A B return R(A), ... ,R(A+B-1) (see (3)) */