diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-22 17:15:44 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-22 17:15:44 -0200 |
commit | 3c230cc8254538d81be300d55481cdac0103e3c5 (patch) | |
tree | 90f86f5fbbfdace25ce603e2840d53630cf4d6fe /lopcodes.h | |
parent | 41f2936d8f2ec3894e0ef013f6b9e8f6ea17c181 (diff) | |
download | lua-3c230cc8254538d81be300d55481cdac0103e3c5.tar.gz lua-3c230cc8254538d81be300d55481cdac0103e3c5.tar.bz2 lua-3c230cc8254538d81be300d55481cdac0103e3c5.zip |
using 'A' for register instead of 'B' in relational opcodes
('R(A)' is already created by default for all instructions.)
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.168 2017/11/16 12:59:14 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.169 2017/11/22 18:41:20 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 | */ |
@@ -236,12 +236,12 @@ OP_CONCAT,/* A B C R(A) := R(B).. ... ..R(C) */ | |||
236 | 236 | ||
237 | OP_CLOSE,/* A close all upvalues >= R(A) */ | 237 | OP_CLOSE,/* A close all upvalues >= R(A) */ |
238 | OP_JMP,/* k sJ pc += sJ (k is used in code generation) */ | 238 | OP_JMP,/* k sJ pc += sJ (k is used in code generation) */ |
239 | OP_EQ,/* A B C if ((R(B) == R(C)) ~= A) then pc++ */ | 239 | OP_EQ,/* A B C if ((R(A) == R(C)) ~= B) then pc++ */ |
240 | OP_LT,/* A B C if ((R(B) < R(C)) ~= A) then pc++ */ | 240 | OP_LT,/* A B C if ((R(A) < R(C)) ~= B) then pc++ */ |
241 | OP_LE,/* A B C if ((R(B) <= R(C)) ~= A) then pc++ */ | 241 | OP_LE,/* A B C if ((R(A) <= R(C)) ~= B) then pc++ */ |
242 | 242 | ||
243 | OP_EQK,/* A B C if ((R(B) == K(C)) ~= A) then pc++ */ | 243 | OP_EQK,/* A B C if ((R(A) == K(C)) ~= B) then pc++ */ |
244 | OP_EQI,/* A B C if ((R(B) == C) ~= A) then pc++ */ | 244 | OP_EQI,/* A B C if ((R(A) == C) ~= B) then pc++ */ |
245 | 245 | ||
246 | OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ | 246 | OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ |
247 | OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ | 247 | OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ |