diff options
| author | chai <chaifix@163.com> | 2020-07-20 09:42:30 +0800 |
|---|---|---|
| committer | chai <chaifix@163.com> | 2020-07-20 09:42:30 +0800 |
| commit | 77ac95b9985f5669d6659bfb54728786d28c2ef0 (patch) | |
| tree | ab42f7da14ffbd9ba72f503baff71b44298b113a /src/lua51/lopcodes.c | |
| parent | c5d9668a1b7092262b7132679e961a5297da2f75 (diff) | |
*misc
Diffstat (limited to 'src/lua51/lopcodes.c')
| -rw-r--r-- | src/lua51/lopcodes.c | 7 |
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] = { |
