diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-20 16:53:55 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-20 16:53:55 -0300 |
| commit | 6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d (patch) | |
| tree | 0cf827d0f9d328be0c3aedbb7def8bc964905415 /lopcodes.c | |
| parent | c354211744e80c14314b3a363e7d57f5751be835 (diff) | |
| download | lua-6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d.tar.gz lua-6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d.tar.bz2 lua-6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d.zip | |
new opcode LOADI (for loading immediate integers)
Diffstat (limited to 'lopcodes.c')
| -rw-r--r-- | lopcodes.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lopcodes.c,v 1.54 2014/11/02 19:19:04 roberto Exp roberto $ | 2 | ** $Id: lopcodes.c,v 1.55 2015/01/05 13:48: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 | */ |
| @@ -20,6 +20,7 @@ | |||
| 20 | LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { | 20 | LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { |
| 21 | "MOVE", | 21 | "MOVE", |
| 22 | "LOADK", | 22 | "LOADK", |
| 23 | "LOADI", | ||
| 23 | "LOADKX", | 24 | "LOADKX", |
| 24 | "LOADBOOL", | 25 | "LOADBOOL", |
| 25 | "LOADNIL", | 26 | "LOADNIL", |
| @@ -75,6 +76,7 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { | |||
| 75 | /* T A B C mode opcode */ | 76 | /* T A B C mode opcode */ |
| 76 | opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_MOVE */ | 77 | opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_MOVE */ |
| 77 | ,opmode(0, 1, OpArgK, OpArgN, iABx) /* OP_LOADK */ | 78 | ,opmode(0, 1, OpArgK, OpArgN, iABx) /* OP_LOADK */ |
| 79 | ,opmode(0, 1, OpArgU, OpArgN, iAsBx) /* OP_LOADI */ | ||
| 78 | ,opmode(0, 1, OpArgN, OpArgN, iABx) /* OP_LOADKX */ | 80 | ,opmode(0, 1, OpArgN, OpArgN, iABx) /* OP_LOADKX */ |
| 79 | ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_LOADBOOL */ | 81 | ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_LOADBOOL */ |
| 80 | ,opmode(0, 1, OpArgU, OpArgN, iABC) /* OP_LOADNIL */ | 82 | ,opmode(0, 1, OpArgU, OpArgN, iABC) /* OP_LOADNIL */ |
