Skip to main content

swap

Function swap 

Source
pub fn swap<const N: usize, IT: ITy, H: ?Sized>(
    context: InstructionContext<'_, H, IT>,
) -> InstructionExecResult
Expand description

Implements the SWAP1-SWAP16 instructions.

Swaps the top stack item with the Nth stack item.