aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-09-19 15:38:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-09-19 15:38:14 -0300
commitabb17cf19bf7328a394f1758542172c4b4dbb539 (patch)
tree2dce52a3922e5772aca093b53442e7220d24634f /lopcodes.c
parente0c0e2ee14f519ad33429533f87519753f07051a (diff)
downloadlua-abb17cf19bf7328a394f1758542172c4b4dbb539.tar.gz
lua-abb17cf19bf7328a394f1758542172c4b4dbb539.tar.bz2
lua-abb17cf19bf7328a394f1758542172c4b4dbb539.zip
new opcode OP_LOADF (load immediate float)
Diffstat (limited to 'lopcodes.c')
-rw-r--r--lopcodes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lopcodes.c b/lopcodes.c
index 7e1ace25..9279a8df 100644
--- a/lopcodes.c
+++ b/lopcodes.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.c,v 1.61 2017/09/13 19:50:08 roberto Exp roberto $ 2** $Id: lopcodes.c,v 1.62 2017/09/15 14:19:06 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*/
@@ -20,6 +20,7 @@
20LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { 20LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = {
21 "MOVE", 21 "MOVE",
22 "LOADI", 22 "LOADI",
23 "LOADF",
23 "LOADK", 24 "LOADK",
24 "LOADKX", 25 "LOADKX",
25 "LOADBOOL", 26 "LOADBOOL",
@@ -82,6 +83,7 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
82/* T A B C mode opcode */ 83/* T A B C mode opcode */
83 opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_MOVE */ 84 opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_MOVE */
84 ,opmode(0, 1, OpArgU, OpArgN, iAsBx) /* OP_LOADI */ 85 ,opmode(0, 1, OpArgU, OpArgN, iAsBx) /* OP_LOADI */
86 ,opmode(0, 1, OpArgU, OpArgN, iAsBx) /* OP_LOADF */
85 ,opmode(0, 1, OpArgK, OpArgN, iABx) /* OP_LOADK */ 87 ,opmode(0, 1, OpArgK, OpArgN, iABx) /* OP_LOADK */
86 ,opmode(0, 1, OpArgN, OpArgN, iABx) /* OP_LOADKX */ 88 ,opmode(0, 1, OpArgN, OpArgN, iABx) /* OP_LOADKX */
87 ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_LOADBOOL */ 89 ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_LOADBOOL */