Fix opcode type

This commit is contained in:
Alexander Ivanov 2018-01-16 20:58:07 +02:00
parent 69475a98f5
commit 8a2aa81a44
1 changed files with 140 additions and 134 deletions

View File

@ -1,135 +1,141 @@
# TODO : hex
const const
STOP* = 0 STOP* = 0.byte
ADD* = 1 ADD* = 1.byte
MUL* = 2 MUL* = 2.byte
SUB* = 3 SUB* = 3.byte
DIV* = 4 DIV* = 4.byte
SDIV* = 5 SDIV* = 5.byte
MOD* = 6 MOD* = 6.byte
SMOD* = 7 SMOD* = 7.byte
ADDMOD* = 8 ADDMOD* = 8.byte
MULMOD* = 9 MULMOD* = 9.byte
EXP* = 10 EXP* = 10.byte
SIGNEXTEND* = 11 SIGNEXTEND* = 11.byte
LT* = 16
GT* = 17 LT* = 16.byte
SLT* = 18 GT* = 17.byte
SGT* = 19 SLT* = 18.byte
EQ* = 20 SGT* = 19.byte
ISZERO* = 21 EQ* = 20.byte
AND* = 22 ISZERO* = 21.byte
OR* = 23 AND* = 22.byte
XOR* = 24 OR* = 23.byte
NOT* = 25 XOR* = 24.byte
BYTE* = 26 NOT* = 25.byte
SHA3* = 32 BYTE* = 26.byte
ADDRESS* = 48
BALANCE* = 49 SHA3* = 32.byte
ORIGIN* = 50
CALLER* = 51 ADDRESS* = 48.byte
CALLVALUE* = 52 BALANCE* = 49.byte
CALLDATALOAD* = 53 ORIGIN* = 50.byte
CALLDATASIZE* = 54 CALLER* = 51.byte
CALLDATACOPY* = 55 CALLVALUE* = 52.byte
CODESIZE* = 56 CALLDATALOAD* = 53.byte
CODECOPY* = 57 CALLDATASIZE* = 54.byte
GASPRICE* = 58 CALLDATACOPY* = 55.byte
EXTCODESIZE* = 59 CODESIZE* = 56.byte
EXTCODECOPY* = 60 CODECOPY* = 57.byte
RETURNDATASIZE* = 61 GASPRICE* = 58.byte
RETURNDATACOPY* = 62 EXTCODESIZE* = 59.byte
BLOCKHASH* = 64 EXTCODECOPY* = 60.byte
COINBASE* = 65 RETURNDATASIZE* = 61.byte
TIMESTAMP* = 66 RETURNDATACOPY* = 62.byte
NUMBER* = 67 BLOCKHASH* = 64.byte
DIFFICULTY* = 68 COINBASE* = 65.byte
GASLIMIT* = 69 TIMESTAMP* = 66.byte
POP* = 80 NUMBER* = 67.byte
MLOAD* = 81 DIFFICULTY* = 68.byte
MSTORE* = 82 GASLIMIT* = 69.byte
MSTORE8 = 83
SLOAD* = 84 POP* = 80.byte
SSTORE* = 85 MLOAD* = 81.byte
JUMP* = 86 MSTORE* = 82.byte
JUMPI* = 87 MSTORE8 = 83.byte
PC* = 88 SLOAD* = 84.byte
MSIZE* = 89 SSTORE* = 85.byte
GAS* = 90 JUMP* = 86.byte
JUMPDEST* = 91 JUMPI* = 87.byte
PUSH1* = 96.byte PC* = 88.byte
PUSH2* = 97.byte MSIZE* = 89.byte
PUSH3* = 98.byte GAS* = 90.byte
PUSH4* = 99.byte JUMPDEST* = 91.byte
PUSH5* = 100.byte
PUSH6* = 101.byte PUSH1* = 96.byte
PUSH7* = 102.byte PUSH2* = 97.byte
PUSH8* = 103.byte PUSH3* = 98.byte
PUSH9* = 104.byte PUSH4* = 99.byte
PUSH10* = 105.byte PUSH5* = 100.byte
PUSH11* = 106.byte PUSH6* = 101.byte
PUSH12* = 107.byte PUSH7* = 102.byte
PUSH13* = 108.byte PUSH8* = 103.byte
PUSH14* = 109.byte PUSH9* = 104.byte
PUSH15* = 110.byte PUSH10* = 105.byte
PUSH16* = 111.byte PUSH11* = 106.byte
PUSH17* = 112.byte PUSH12* = 107.byte
PUSH18* = 113.byte PUSH13* = 108.byte
PUSH19* = 114.byte PUSH14* = 109.byte
PUSH20* = 115.byte PUSH15* = 110.byte
PUSH21* = 116.byte PUSH16* = 111.byte
PUSH22* = 117.byte PUSH17* = 112.byte
PUSH23* = 118.byte PUSH18* = 113.byte
PUSH24* = 119.byte PUSH19* = 114.byte
PUSH25* = 120.byte PUSH20* = 115.byte
PUSH26* = 121.byte PUSH21* = 116.byte
PUSH27* = 122.byte PUSH22* = 117.byte
PUSH28* = 123.byte PUSH23* = 118.byte
PUSH29* = 124.byte PUSH24* = 119.byte
PUSH30* = 125.byte PUSH25* = 120.byte
PUSH31* = 126.byte PUSH26* = 121.byte
PUSH32* = 127.byte PUSH27* = 122.byte
DUP1* = 128 PUSH28* = 123.byte
DUP2* = 129 PUSH29* = 124.byte
DUP3* = 130 PUSH30* = 125.byte
DUP4* = 131 PUSH31* = 126.byte
DUP5* = 132 PUSH32* = 127.byte
DUP6* = 133 DUP1* = 128.byte
DUP7* = 134 DUP2* = 129.byte
DUP8* = 135 DUP3* = 130.byte
DUP9* = 136 DUP4* = 131.byte
DUP10* = 137 DUP5* = 132.byte
DUP11* = 138 DUP6* = 133.byte
DUP12* = 139 DUP7* = 134.byte
DUP13* = 140 DUP8* = 135.byte
DUP14* = 141 DUP9* = 136.byte
DUP15* = 142 DUP10* = 137.byte
DUP16* = 143 DUP11* = 138.byte
SWAP1* = 144 DUP12* = 139.byte
SWAP2* = 145 DUP13* = 140.byte
SWAP3* = 146 DUP14* = 141.byte
SWAP4* = 147 DUP15* = 142.byte
SWAP5* = 148 DUP16* = 143.byte
SWAP6* = 149 SWAP1* = 144.byte
SWAP7* = 150 SWAP2* = 145.byte
SWAP8* = 151 SWAP3* = 146.byte
SWAP9* = 152 SWAP4* = 147.byte
SWAP10* = 153 SWAP5* = 148.byte
SWAP11* = 154 SWAP6* = 149.byte
SWAP12* = 155 SWAP7* = 150.byte
SWAP13* = 156 SWAP8* = 151.byte
SWAP14* = 157 SWAP9* = 152.byte
SWAP15* = 158 SWAP10* = 153.byte
SWAP16* = 159 SWAP11* = 154.byte
LOG0* = 160 SWAP12* = 155.byte
LOG1* = 161 SWAP13* = 156.byte
LOG2* = 162 SWAP14* = 157.byte
LOG3* = 163 SWAP15* = 158.byte
LOG4* = 164 SWAP16* = 159.byte
CREATE* = 240 LOG0* = 160.byte
CALL* = 241 LOG1* = 161.byte
CALLCODE* = 242 LOG2* = 162.byte
RETURN* = 243 LOG3* = 163.byte
DELEGATECALL* = 244 LOG4* = 164.byte
STATICCALL* = 250 CREATE* = 240.byte
REVERT* = 253 CALL* = 241.byte
SELFDESTRUCT* = 255 CALLCODE* = 242.byte
RETURN* = 243.byte
DELEGATECALL* = 244.byte
STATICCALL* = 250.byte
REVERT* = 253.byte
SELFDESTRUCT* = 255.byte