aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-30 10:03:00 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-30 10:03:00 -0200
commit19c6b375c39e18441d1fa560d08688d66f746717 (patch)
tree8a3460f2df538f74d7b64aca99ba65f70d6771da /lopcodes.h
parent745eb4199333f153a28c75837b6a1addf614f4a9 (diff)
downloadlua-19c6b375c39e18441d1fa560d08688d66f746717.tar.gz
lua-19c6b375c39e18441d1fa560d08688d66f746717.tar.bz2
lua-19c6b375c39e18441d1fa560d08688d66f746717.zip
detail (spacing)
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 433d97a2..690c4c34 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.172 2017/11/28 12:58:18 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.173 2017/11/29 16:57:36 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*/
@@ -258,11 +258,11 @@ OP_RETURN0,/* return */
258OP_RETURN1,/* A return R(A) */ 258OP_RETURN1,/* A return R(A) */
259 259
260OP_FORLOOP,/* A Bx R(A)+=R(A+2); 260OP_FORLOOP,/* A Bx R(A)+=R(A+2);
261 if R(A) <?= R(A+1) then { pc-=Bx; R(A+3)=R(A) }*/ 261 if R(A) <?= R(A+1) then { pc-=Bx; R(A+3)=R(A) } */
262OP_FORPREP,/* A Bx R(A)-=R(A+2); pc+=Bx */ 262OP_FORPREP,/* A Bx R(A)-=R(A+2); pc+=Bx */
263 263
264OP_TFORCALL,/* A C R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2)); */ 264OP_TFORCALL,/* A C R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2)); */
265OP_TFORLOOP,/* A Bx if R(A+1) ~= nil then { R(A)=R(A+1); pc -= Bx }*/ 265OP_TFORLOOP,/* A Bx if R(A+1) ~= nil then { R(A)=R(A+1); pc -= Bx } */
266 266
267OP_SETLIST,/* A B C R(A)[(C-1)*FPF+i] := R(A+i), 1 <= i <= B */ 267OP_SETLIST,/* A B C R(A)[(C-1)*FPF+i] := R(A+i), 1 <= i <= B */
268 268