ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

SWAP2

T1 evm load_store insn
Ethereum EVM Opcode SWAP2 (0x91)
SourceEthereum Virtual Machine (EVM) Opcodes & Gas Schedule (evm.codes) (ethereum_evm)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeEthereum EVM (Cancun / Pectra)
Ethereum EVM (L1 / L2)
License & VersionMIT
Cancun / Pectra
Upstreamhttps://github.com/duneanalytics/evm.codes
Privilegeuser
ExtensionsEVM

Summary

Exchange 1st and 3rd stack items. Byte 0x91 | stack: (a | b | c) -> (c | b | a).

Syntax / Encoding

SWAP2  ; opcode 0x91

Binary Encodings (1)

WidthFormatBit PatternMask / Match
8EVM-8100100010xff / 0x91