aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/Instruction.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-02-07 06:14:17 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-02-27 19:03:18 +0800
commit59e6ea601b90577e39fe22a4c504f09e862dc40e (patch)
tree2635157b8eb07e02c768b9c113cff6e9d8badbc7 /libevmasm/Instruction.h
parent9c31a0d8f584f245ce368dc57ee760fe752f3ca6 (diff)
downloaddexon-solidity-59e6ea601b90577e39fe22a4c504f09e862dc40e.tar
dexon-solidity-59e6ea601b90577e39fe22a4c504f09e862dc40e.tar.gz
dexon-solidity-59e6ea601b90577e39fe22a4c504f09e862dc40e.tar.bz2
dexon-solidity-59e6ea601b90577e39fe22a4c504f09e862dc40e.tar.lz
dexon-solidity-59e6ea601b90577e39fe22a4c504f09e862dc40e.tar.xz
dexon-solidity-59e6ea601b90577e39fe22a4c504f09e862dc40e.tar.zst
dexon-solidity-59e6ea601b90577e39fe22a4c504f09e862dc40e.zip
Add bitwise shift operators to libevmasm (EIP145)
Diffstat (limited to 'libevmasm/Instruction.h')
-rw-r--r--libevmasm/Instruction.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libevmasm/Instruction.h b/libevmasm/Instruction.h
index d9c53900..e56d4c9a 100644
--- a/libevmasm/Instruction.h
+++ b/libevmasm/Instruction.h
@@ -59,8 +59,13 @@ enum class Instruction: uint8_t
AND, ///< bitwise AND operation
OR, ///< bitwise OR operation
XOR, ///< bitwise XOR operation
- NOT, ///< bitwise NOT opertation
+ NOT, ///< bitwise NOT operation
BYTE, ///< retrieve single byte from word
+ SHL, ///< bitwise SHL operation
+ SHR, ///< bitwise SHR operation
+ SAR, ///< bitwise SAR operation
+ ROL, ///< bitwise ROL operation
+ ROR, ///< bitwise ROR operation
KECCAK256 = 0x20, ///< compute KECCAK-256 hash