From 77ac95b9985f5669d6659bfb54728786d28c2ef0 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 20 Jul 2020 09:42:30 +0800 Subject: *misc --- src/lua51/lopcodes.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/lua51/lopcodes.c') 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] = { -- cgit v1.1-26-g67d0