Skip to main content

exchange

Function exchange 

pub fn exchange<WIRE, H>(context: InstructionContext<'_, H, WIRE>)
where WIRE: 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.