Skip to main content

dup

Function dup 

pub fn dup<const N: usize, IT, H>(
    context: InstructionContext<'_, H, IT>,
) -> Result<(), InstructionResult>
where IT: InterpreterTypes, H: ?Sized,
Expand description

Implements the DUP1-DUP16 instructions.

Duplicates the Nth stack item to the top of the stack.