diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-08 15:00:16 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-08 15:00:16 -0300 |
commit | 7d57ea70bc975922485d589c8a6d8dedaa0fba02 (patch) | |
tree | d7f7da1492de151749a69042cd2bf63320638020 /lopcodes.h | |
parent | 2d5b923759a77d8f5f7bfa62906ea37f46b9281d (diff) | |
download | lua-7d57ea70bc975922485d589c8a6d8dedaa0fba02.tar.gz lua-7d57ea70bc975922485d589c8a6d8dedaa0fba02.tar.bz2 lua-7d57ea70bc975922485d589c8a6d8dedaa0fba02.zip |
new `mod' (`%') operator
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.113 2004/10/04 19:07:42 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.114 2004/12/02 12:59:10 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 | */ |
@@ -172,6 +172,7 @@ OP_ADD,/* A B C R(A) := RK(B) + RK(C) */ | |||
172 | OP_SUB,/* A B C R(A) := RK(B) - RK(C) */ | 172 | OP_SUB,/* A B C R(A) := RK(B) - RK(C) */ |
173 | OP_MUL,/* A B C R(A) := RK(B) * RK(C) */ | 173 | OP_MUL,/* A B C R(A) := RK(B) * RK(C) */ |
174 | OP_DIV,/* A B C R(A) := RK(B) / RK(C) */ | 174 | OP_DIV,/* A B C R(A) := RK(B) / RK(C) */ |
175 | OP_MOD,/* A B C R(A) := RK(B) % RK(C) */ | ||
175 | OP_POW,/* A B C R(A) := RK(B) ^ RK(C) */ | 176 | OP_POW,/* A B C R(A) := RK(B) ^ RK(C) */ |
176 | OP_UNM,/* A B R(A) := -R(B) */ | 177 | OP_UNM,/* A B R(A) := -R(B) */ |
177 | OP_NOT,/* A B R(A) := not R(B) */ | 178 | OP_NOT,/* A B R(A) := not R(B) */ |