Created
May 24, 2023 17:58
-
-
Save Genesis3800/593207be98576ea2df69323c86f638cb to your computer and use it in GitHub Desktop.
This gist is just a list of the opcode instructions for a simple smart contract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUSH1 0x80 | |
PUSH1 0x40 | |
MSTORE | |
CALLVALUE | |
DUP1 | |
ISZERO | |
PUSH2 0x0010 | |
JUMPI | |
PUSH1 0x00 | |
DUP1 | |
REVERT | |
JUMPDEST | |
POP | |
PUSH1 0x04 | |
CALLDATASIZE | |
LT | |
PUSH2 0x002b | |
JUMPI | |
PUSH1 0x00 | |
CALLDATALOAD | |
PUSH1 0xe0 | |
SHR | |
DUP1 | |
PUSH4 0x771602f7 | |
EQ | |
PUSH2 0x0030 | |
JUMPI | |
JUMPDEST | |
PUSH1 0x00 | |
DUP1 | |
REVERT | |
JUMPDEST | |
PUSH2 0x004a | |
PUSH1 0x04 | |
DUP1 | |
CALLDATASIZE | |
SUB | |
DUP2 | |
ADD | |
SWAP1 | |
PUSH2 0x0045 | |
SWAP2 | |
SWAP1 | |
PUSH2 0x00b6 | |
JUMP | |
JUMPDEST | |
PUSH2 0x0060 | |
JUMP | |
JUMPDEST | |
PUSH1 0x40 | |
MLOAD | |
PUSH2 0x0057 | |
SWAP2 | |
SWAP1 | |
PUSH2 0x0105 | |
JUMP | |
JUMPDEST | |
PUSH1 0x40 | |
MLOAD | |
DUP1 | |
SWAP2 | |
SUB | |
SWAP1 | |
RETURN | |
JUMPDEST | |
PUSH1 0x00 | |
DUP1 | |
DUP3 | |
DUP5 | |
PUSH2 0x006f | |
SWAP2 | |
SWAP1 | |
PUSH2 0x014f | |
JUMP | |
JUMPDEST | |
SWAP1 | |
POP | |
DUP1 | |
SWAP2 | |
POP | |
POP | |
SWAP3 | |
SWAP2 | |
POP | |
POP | |
JUMP | |
JUMPDEST | |
PUSH1 0x00 | |
DUP1 | |
REVERT | |
JUMPDEST | |
PUSH1 0x00 | |
DUP2 | |
SWAP1 | |
POP | |
SWAP2 | |
SWAP1 | |
POP | |
JUMP | |
JUMPDEST | |
PUSH2 0x0093 | |
DUP2 | |
PUSH2 0x0080 | |
JUMP | |
JUMPDEST | |
DUP2 | |
EQ | |
PUSH2 0x009e | |
JUMPI | |
PUSH1 0x00 | |
DUP1 | |
REVERT | |
JUMPDEST | |
POP | |
JUMP | |
JUMPDEST | |
PUSH1 0x00 | |
DUP2 | |
CALLDATALOAD | |
SWAP1 | |
POP | |
PUSH2 0x00b0 | |
DUP2 | |
PUSH2 0x008a | |
JUMP | |
JUMPDEST | |
SWAP3 | |
SWAP2 | |
POP | |
POP | |
JUMP | |
JUMPDEST | |
PUSH1 0x00 | |
DUP1 | |
PUSH1 0x40 | |
DUP4 | |
DUP6 | |
SUB | |
SLT | |
ISZERO | |
PUSH2 0x00cd | |
JUMPI | |
PUSH2 0x00cc | |
PUSH2 0x007b | |
JUMP | |
JUMPDEST | |
JUMPDEST | |
PUSH1 0x00 | |
PUSH2 0x00db | |
DUP6 | |
DUP3 | |
DUP7 | |
ADD | |
PUSH2 0x00a1 | |
JUMP | |
JUMPDEST | |
SWAP3 | |
POP | |
POP | |
PUSH1 0x20 | |
PUSH2 0x00ec | |
DUP6 | |
DUP3 | |
DUP7 | |
ADD | |
PUSH2 0x00a1 | |
JUMP | |
JUMPDEST | |
SWAP2 | |
POP | |
POP | |
SWAP3 | |
POP | |
SWAP3 | |
SWAP1 | |
POP | |
JUMP | |
JUMPDEST | |
PUSH2 0x00ff | |
DUP2 | |
PUSH2 0x0080 | |
JUMP | |
JUMPDEST | |
DUP3 | |
MSTORE | |
POP | |
POP | |
JUMP | |
JUMPDEST | |
PUSH1 0x00 | |
PUSH1 0x20 | |
DUP3 | |
ADD | |
SWAP1 | |
POP | |
PUSH2 0x011a | |
PUSH1 0x00 | |
DUP4 | |
ADD | |
DUP5 | |
PUSH2 0x00f6 | |
JUMP | |
JUMPDEST | |
SWAP3 | |
SWAP2 | |
POP | |
POP | |
JUMP | |
JUMPDEST | |
PUSH32 0x4e487b7100000000000000000000000000000000000000000000000000000000 | |
PUSH1 0x00 | |
MSTORE | |
PUSH1 0x11 | |
PUSH1 0x04 | |
MSTORE | |
PUSH1 0x24 | |
PUSH1 0x00 | |
REVERT | |
JUMPDEST | |
PUSH1 0x00 | |
PUSH2 0x015a | |
DUP3 | |
PUSH2 0x0080 | |
JUMP | |
JUMPDEST | |
SWAP2 | |
POP | |
PUSH2 0x0165 | |
DUP4 | |
PUSH2 0x0080 | |
JUMP | |
JUMPDEST | |
SWAP3 | |
POP | |
DUP3 | |
DUP3 | |
ADD | |
SWAP1 | |
POP | |
DUP1 | |
DUP3 | |
GT | |
ISZERO | |
PUSH2 0x017d | |
JUMPI | |
PUSH2 0x017c | |
PUSH2 0x0120 | |
JUMP | |
JUMPDEST | |
JUMPDEST | |
SWAP3 | |
SWAP2 | |
POP | |
POP | |
JUMP | |
'fe'(Unknown Opcode) | |
LOG2 | |
PUSH5 0x6970667358 | |
'22'(Unknown Opcode) | |
SLT | |
SHA3 | |
PUSH1 0x4f | |
PUSH24 0xb5479a48b1d518a2a2ddd1d68f6ed175b70322f8ce9f77fd | |
'25'(Unknown Opcode) | |
RETURNDATACOPY | |
SWAP12 | |
DUP8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment