vm: implement POW opcode
This commit is contained in:
parent
347212c0c5
commit
6496782736
5 changed files with 61 additions and 38 deletions
|
@ -162,6 +162,7 @@ var coefficients = map[opcode.Opcode]int64{
|
|||
opcode.MUL: 1 << 3,
|
||||
opcode.DIV: 1 << 3,
|
||||
opcode.MOD: 1 << 3,
|
||||
opcode.POW: 1 << 6,
|
||||
opcode.SHL: 1 << 3,
|
||||
opcode.SHR: 1 << 3,
|
||||
opcode.NOT: 1 << 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue