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:0x65Introduced: Frontier (EVM genesis)PUSH6 pushes a 6-byte immediate value from the bytecode onto the stack. The 6 bytes immediately following the opcode are read and zero-padded to 256 bits.
value = read_bytes(pc + 1, 6) // Big-endianstack.push(value)pc += 7
Behavior
PUSH6 reads 6 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 6 bytes following opcode
Big-endian byte order (most significant byte first)