diff options
| author | Li Jin <dragon-fly@qq.com> | 2021-03-03 21:31:01 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2021-03-03 21:33:37 +0800 |
| commit | 1df786307c1983b8ce693e3916081a8bcd4e95ae (patch) | |
| tree | 6c7aeb2198d825877fd3d179c394b7a5c1f06a17 /src/lua/lopcodes.h | |
| parent | 66168b112b707172b9035edf8c1daed469781e06 (diff) | |
| download | yuescript-1df786307c1983b8ce693e3916081a8bcd4e95ae.tar.gz yuescript-1df786307c1983b8ce693e3916081a8bcd4e95ae.tar.bz2 yuescript-1df786307c1983b8ce693e3916081a8bcd4e95ae.zip | |
add new metatable syntax for issue #41, fix reusing local variable issue, update built-in Lua.
Diffstat (limited to '')
| -rw-r--r-- | src/lua/lopcodes.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lua/lopcodes.h b/src/lua/lopcodes.h index 120cdd9..d6a47e5 100644 --- a/src/lua/lopcodes.h +++ b/src/lua/lopcodes.h | |||
| @@ -225,13 +225,13 @@ OP_SELF,/* A B C R[A+1] := R[B]; R[A] := R[B][RK(C):string] */ | |||
| 225 | 225 | ||
| 226 | OP_ADDI,/* A B sC R[A] := R[B] + sC */ | 226 | OP_ADDI,/* A B sC R[A] := R[B] + sC */ |
| 227 | 227 | ||
| 228 | OP_ADDK,/* A B C R[A] := R[B] + K[C] */ | 228 | OP_ADDK,/* A B C R[A] := R[B] + K[C]:number */ |
| 229 | OP_SUBK,/* A B C R[A] := R[B] - K[C] */ | 229 | OP_SUBK,/* A B C R[A] := R[B] - K[C]:number */ |
| 230 | OP_MULK,/* A B C R[A] := R[B] * K[C] */ | 230 | OP_MULK,/* A B C R[A] := R[B] * K[C]:number */ |
| 231 | OP_MODK,/* A B C R[A] := R[B] % K[C] */ | 231 | OP_MODK,/* A B C R[A] := R[B] % K[C]:number */ |
| 232 | OP_POWK,/* A B C R[A] := R[B] ^ K[C] */ | 232 | OP_POWK,/* A B C R[A] := R[B] ^ K[C]:number */ |
| 233 | OP_DIVK,/* A B C R[A] := R[B] / K[C] */ | 233 | OP_DIVK,/* A B C R[A] := R[B] / K[C]:number */ |
| 234 | OP_IDIVK,/* A B C R[A] := R[B] // K[C] */ | 234 | OP_IDIVK,/* A B C R[A] := R[B] // K[C]:number */ |
| 235 | 235 | ||
| 236 | OP_BANDK,/* A B C R[A] := R[B] & K[C]:integer */ | 236 | OP_BANDK,/* A B C R[A] := R[B] & K[C]:integer */ |
| 237 | OP_BORK,/* A B C R[A] := R[B] | K[C]:integer */ | 237 | OP_BORK,/* A B C R[A] := R[B] | K[C]:integer */ |
