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

GAS

T1 evm alu insn
Ethereum EVM Opcode GAS (0x5a)
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

Get the amount of available gas, including the corresponding reduction for the cost of this instruction. Byte 0x5a | stack: () -> (gas).

Syntax / Encoding

GAS  ; opcode 0x5a

Binary Encodings (1)

WidthFormatBit PatternMask / Match
8EVM-8010110100xff / 0x5a