diff options
Diffstat (limited to 'lopcodes.h')
| -rw-r--r-- | lopcodes.h | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lopcodes.h,v 1.97 2002/05/13 13:09:00 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.98 2002/06/06 18:17: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 | */ |
| @@ -158,7 +158,10 @@ OP_CONCAT,/* A B C R(A) := R(B).. ... ..R(C) */ | |||
| 158 | OP_JMP,/* sBx PC += sBx */ | 158 | OP_JMP,/* sBx PC += sBx */ |
| 159 | 159 | ||
| 160 | OP_EQ,/* A B C if ((R(A) == R/K(C)) ~= B) then pc++ */ | 160 | OP_EQ,/* A B C if ((R(A) == R/K(C)) ~= B) then pc++ */ |
| 161 | OP_CMP,/* A B C if not (R(A) <B> R/K(C)) then pc++ (see note) */ | 161 | OP_LT,/* A B C if ((R(A) < R/K(C)) ~= B) then pc++ */ |
| 162 | OP_LE,/* A B C if ((R(A) <= R/K(C)) ~= B) then pc++ */ | ||
| 163 | OP_GT,/* A B C if ((R(A) > R/K(C)) ~= B) then pc++ */ | ||
| 164 | OP_GE,/* A B C if ((R(A) >= R/K(C)) ~= B) then pc++ */ | ||
| 162 | 165 | ||
| 163 | OP_TEST,/* A B C if (R(C) <=> B) then R(A) := R(C) else pc++ */ | 166 | OP_TEST,/* A B C if (R(C) <=> B) then R(A) := R(C) else pc++ */ |
| 164 | 167 | ||
