diff options
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -131,12 +131,13 @@ OP_MOVE,/* A B R(A) := R(B) */ | |||
131 | OP_LOADK,/* A Bc R(A) := Kst(Bc) */ | 131 | OP_LOADK,/* A Bc R(A) := Kst(Bc) */ |
132 | OP_LOADINT,/* A sBc R(A) := (Number)sBc */ | 132 | OP_LOADINT,/* A sBc R(A) := (Number)sBc */ |
133 | OP_LOADNIL,/* A B R(A) := ... := R(B) := nil */ | 133 | OP_LOADNIL,/* A B R(A) := ... := R(B) := nil */ |
134 | OP_LOADUPVAL,/* A Bc R(A) := UpValue[Bc] */ | 134 | OP_GETUPVAL,/* A B R(A) := UpValue[B] */ |
135 | 135 | ||
136 | OP_GETGLOBAL,/* A Bc R(A) := Gbl[Kst(Bc)] */ | 136 | OP_GETGLOBAL,/* A Bc R(A) := Gbl[Kst(Bc)] */ |
137 | OP_GETTABLE,/* A B C R(A) := R(B)[R/K(C)] */ | 137 | OP_GETTABLE,/* A B C R(A) := R(B)[R/K(C)] */ |
138 | 138 | ||
139 | OP_SETGLOBAL,/* A Bc Gbl[Kst(Bc)] := R(A) */ | 139 | OP_SETGLOBAL,/* A Bc Gbl[Kst(Bc)] := R(A) */ |
140 | OP_SETUPVAL,/* A B UpValue[B] := R(A) */ | ||
140 | OP_SETTABLE,/* A B C R(B)[R/K(C)] := R(A) */ | 141 | OP_SETTABLE,/* A B C R(B)[R/K(C)] := R(A) */ |
141 | 142 | ||
142 | OP_NEWTABLE,/* A Bc R(A) := {} (size = Bc) */ | 143 | OP_NEWTABLE,/* A Bc R(A) := {} (size = Bc) */ |
@@ -180,6 +181,7 @@ OP_TFORLOOP,/* A sBc */ | |||
180 | OP_SETLIST,/* A Bc R(A)[Bc-Bc%FPF+i] := R(A+i), 1 <= i <= Bc%FPF+1 */ | 181 | OP_SETLIST,/* A Bc R(A)[Bc-Bc%FPF+i] := R(A+i), 1 <= i <= Bc%FPF+1 */ |
181 | OP_SETLISTO,/* A Bc */ | 182 | OP_SETLISTO,/* A Bc */ |
182 | 183 | ||
184 | OP_CLOSE,/* A close all variables in the stack up to (>=) R(A)*/ | ||
183 | OP_CLOSURE /* A Bc R(A) := closure(KPROTO[Bc], R(A), ... ,R(A+n)) */ | 185 | OP_CLOSURE /* A Bc R(A) := closure(KPROTO[Bc], R(A), ... ,R(A+n)) */ |
184 | } OpCode; | 186 | } OpCode; |
185 | 187 | ||