aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lopcodes.c4
-rw-r--r--lopcodes.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/lopcodes.c b/lopcodes.c
index a5c1c5db..e2169830 100644
--- a/lopcodes.c
+++ b/lopcodes.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id:$ 2** $Id: lopcodes.c,v 1.2 2001/07/03 17:02:02 roberto Exp roberto $
3** extracted automatically from lopcodes.h by mkprint.lua 3** extracted automatically from lopcodes.h by mkprint.lua
4** DO NOT EDIT 4** DO NOT EDIT
5** See Copyright Notice in lua.h 5** See Copyright Notice in lua.h
@@ -62,7 +62,7 @@ const l_char *const luaP_opnames[] = {
62 ((b)<<OpModeBreg) | ((c)<<OpModeCreg) | \ 62 ((b)<<OpModeBreg) | ((c)<<OpModeCreg) | \
63 ((sa)<<OpModesetA) | ((k)<<OpModeK) | (m)) 63 ((sa)<<OpModesetA) | ((k)<<OpModeK) | (m))
64 64
65const lu_byte luaP_opmodes[] = { 65const lu_byte luaP_opmodes[NUM_OPCODES] = {
66/* T _ B C sA K mode opcode */ 66/* T _ B C sA K mode opcode */
67 opmode(0,0,1,0, 1,0,iABC) /* OP_MOVE */ 67 opmode(0,0,1,0, 1,0,iABC) /* OP_MOVE */
68 ,opmode(0,0,0,0, 1,1,iABc) /* OP_LOADK */ 68 ,opmode(0,0,0,0, 1,1,iABc) /* OP_LOADK */
diff --git a/lopcodes.h b/lopcodes.h
index 95b46692..1fba78f3 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.77 2001/07/03 17:01:34 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.78 2001/07/24 17:19:07 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*/
@@ -213,7 +213,7 @@ enum OpModeMask {
213 OpModeT /* operator is a test */ 213 OpModeT /* operator is a test */
214}; 214};
215 215
216extern const lu_byte luaP_opmodes[]; 216extern const lu_byte luaP_opmodes[NUM_OPCODES];
217 217
218#define getOpMode(m) ((enum OpMode)(luaP_opmodes[m] & 3)) 218#define getOpMode(m) ((enum OpMode)(luaP_opmodes[m] & 3))
219#define testOpMode(m, b) (luaP_opmodes[m] & (1 << (b))) 219#define testOpMode(m, b) (luaP_opmodes[m] & (1 << (b)))