Skip to main content

exchange

Function exchange 

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

Implements the EXCHANGE instruction.

Swaps the N+1th stack item with the M+1th stack item, with N, M given by an immediate.