Skip to main content

opcode_to_string

Function opcode_to_string 

Source
pub fn opcode_to_string(op: u8) -> &'static str
Expand description

Convert an opcode byte value to its string representation for ASM output.

Returns the canonical OP_xxx name for known opcodes, or “OP_UNKNOWNxxx” for unrecognized values.

§Arguments

  • op - The opcode byte value.

§Returns

A static string slice with the opcode name.