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