Skip to main content

decode_stack_immediate

Function decode_stack_immediate 

Source
const fn decode_stack_immediate(immediate: u8) -> Option<usize>
Expand description

Decodes the EIP-8024 DUPN/SWAPN immediate into a stack depth.

Bytes 0x5b..=0x7f are invalid so that the immediate is never a JUMPDEST or PUSH opcode.