Skip to main content

exchange

Function exchange 

Source
pub fn exchange<IT: ITy, H: ?Sized>(
    context: InstructionContext<'_, H, IT>,
) -> InstructionExecResult
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.