flâneur

EVM Codes - An Ethereum Virtual Machine Opcodes Interactive Reference

evm.codes · 1,746 words · saved by 1 readers

Explore any contract, externally owned account, or transaction on Ethereum and Avalanche. With contract interaction, an unrivaled representation of storage, and transaction tracing and simulation, evm.storage is the blockchain explorer designed for you. Try it out Index 1 is top of the stack. See PUSH. Creates a new sub context and execute the code of the given account, then resumes the current one. Note that an account with no code will return success as true. If the size of the return data is not known, it can also be retrieved after the call with the instructions RETURNDATASIZE and RETURNDATACOPY (since the Byzantium fork). From the Tangerine Whistle fork, gas is capped at all but one 64th (remaining_gas / 64) of the remaining gas of the current context. If a call tries to send more, the gas is changed to match the maximum allowed. If the caller doesn't have enough balance to send the value, the call fails but the current context is not reverted. See in playground. The state changes

00 STOP 0 Halts execution 01 ADD 3 a b a + b Addition operation 02 MUL 5 a b a * b Multiplication operation 03 SUB 3 a b a - b Subtraction operation 04 DIV 5 a b a // b Integer division operation 05 SDIV 5 a b a // b Signed integer division operation (truncated) 06 MOD 5 a b a % b Modulo remainder operation 07 SMOD 5 a b a % b Signed modulo remainder operation 08 ADDMOD 8 a b N (a + b) % N Modulo addition operation 09 MULMOD 8 a b N (a * b) % N Modulo multiplication operation 0a EXP 10 a exponent a ** exponent…

saved by

related reading