summaryrefslogtreecommitdiff
path: root/src/lua51/lopcodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua51/lopcodes.c')
-rw-r--r--src/lua51/lopcodes.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lua51/lopcodes.c b/src/lua51/lopcodes.c
index 4cc7452..64652bb 100644
--- a/src/lua51/lopcodes.c
+++ b/src/lua51/lopcodes.c
@@ -55,7 +55,12 @@ const char *const luaP_opnames[NUM_OPCODES+1] = {
NULL
};
-
+//c 限制每个指令的具体格式,用来后续判断
+//c t 是不是逻辑判断类指令,如相等,大于,小于
+//c a 此指令会不会赋值给寄存器A
+//c b 参数格式OpArgMask,如是寄存器,指令跳转偏移,常数
+//c c 同上
+//c m 指令格式
#define opmode(t,a,b,c,m) (((t)<<7) | ((a)<<6) | ((b)<<4) | ((c)<<2) | (m))
const lu_byte luaP_opmodes[NUM_OPCODES] = {