aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-08-20 14:31:07 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-08-20 14:31:07 -0300
commit88aa4049ad3e638571bfffcf5fd8b6a8e07c6aaf (patch)
tree00f92e5383964ce918cdaa9a5d7a3eaeeb8bbbcf /lopcodes.h
parentc688b00f73205273c46d7cf5656ff5a27e90ce36 (diff)
downloadlua-88aa4049ad3e638571bfffcf5fd8b6a8e07c6aaf.tar.gz
lua-88aa4049ad3e638571bfffcf5fd8b6a8e07c6aaf.tar.bz2
lua-88aa4049ad3e638571bfffcf5fd8b6a8e07c6aaf.zip
Keep the order left-right in shifts
Opcodes OP_SHLI-OP_SHRI and the cases for opcodes OP_SHL-OP_SHR were out of order.
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 97870038..9ad21021 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -272,8 +272,8 @@ OP_BANDK,/* A B C R[A] := R[B] & K[C]:integer */
272OP_BORK,/* A B C R[A] := R[B] | K[C]:integer */ 272OP_BORK,/* A B C R[A] := R[B] | K[C]:integer */
273OP_BXORK,/* A B C R[A] := R[B] ~ K[C]:integer */ 273OP_BXORK,/* A B C R[A] := R[B] ~ K[C]:integer */
274 274
275OP_SHRI,/* A B sC R[A] := R[B] >> sC */
276OP_SHLI,/* A B sC R[A] := sC << R[B] */ 275OP_SHLI,/* A B sC R[A] := sC << R[B] */
276OP_SHRI,/* A B sC R[A] := R[B] >> sC */
277 277
278OP_ADD,/* A B C R[A] := R[B] + R[C] */ 278OP_ADD,/* A B C R[A] := R[B] + R[C] */
279OP_SUB,/* A B C R[A] := R[B] - R[C] */ 279OP_SUB,/* A B C R[A] := R[B] - R[C] */