Skip to main content

Try it Live

Run Opcode examples in the interactive playground

Opcode.name()

Get opcode mnemonic name.

Parameters

  • opcode: BrandedOpcode - Opcode byte (0x00-0xFF)

Returns

string | undefined - Mnemonic name or undefined if invalid

All Opcode Names

Arithmetic (0x00-0x0B)

Comparison (0x10-0x14)

Bitwise (0x15-0x1D)

Cryptographic (0x20)

Environmental (0x30-0x3F)

Stack/Memory/Storage (0x50-0x5F)

PUSH (0x60-0x7F)

DUP (0x80-0x8F)

SWAP (0x90-0x9F)

LOG (0xA0-0xA4)

System (0xF0-0xFF)

Use Cases

Disassembly

Filter by Name

Count Opcode Usage

Reverse Lookup

Performance

  • O(1) lookup time
  • Pre-computed string table
  • Zero allocation for query
  • Very fast