aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-04-20 16:53:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-04-20 16:53:55 -0300
commit6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d (patch)
tree0cf827d0f9d328be0c3aedbb7def8bc964905415 /lopcodes.h
parentc354211744e80c14314b3a363e7d57f5751be835 (diff)
downloadlua-6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d.tar.gz
lua-6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d.tar.bz2
lua-6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d.zip
new opcode LOADI (for loading immediate integers)
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index dd2a7571..afb9205a 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.148 2014/10/25 11:50:46 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.149 2016/07/19 17:12:21 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*/
@@ -170,6 +170,7 @@ name args description
170------------------------------------------------------------------------*/ 170------------------------------------------------------------------------*/
171OP_MOVE,/* A B R(A) := R(B) */ 171OP_MOVE,/* A B R(A) := R(B) */
172OP_LOADK,/* A Bx R(A) := Kst(Bx) */ 172OP_LOADK,/* A Bx R(A) := Kst(Bx) */
173OP_LOADI,/* A sBx R(A) := sBx */
173OP_LOADKX,/* A R(A) := Kst(extra arg) */ 174OP_LOADKX,/* A R(A) := Kst(extra arg) */
174OP_LOADBOOL,/* A B C R(A) := (Bool)B; if (C) pc++ */ 175OP_LOADBOOL,/* A B C R(A) := (Bool)B; if (C) pc++ */
175OP_LOADNIL,/* A B R(A), R(A+1), ..., R(A+B) := nil */ 176OP_LOADNIL,/* A B R(A), R(A+1), ..., R(A+B) := nil */