This page is a placeholder. All examples on this page are currently AI-generated and are not correct. This documentation will be completed in the future with accurate, tested examples.
Overview
Opcode:0x64Introduced: Frontier (EVM genesis)PUSH5 pushes a 5-byte immediate value from the bytecode onto the stack. The 5 bytes immediately following the opcode are read and zero-padded to 256 bits.
value = read_bytes(pc + 1, 5) // Big-endianstack.push(value)pc += 6
Behavior
PUSH5 reads 5 bytes from bytecode starting at position pc + 1, interprets them as a big-endian unsigned integer, and pushes the result onto the stack.Key characteristics:
Reads exactly 5 bytes following opcode
Big-endian byte order (most significant byte first)