Instruction

sealed interface Instruction(source)

Represents a disassembled instruction.

This is the base type for all architecture-specific instructions. Cast to specific types (e.g., ArmInstruction, X86Instruction) to access detailed operands.

Inheritors

Properties

Link copied to clipboard

Extension to get AArch64Instruction enum from Instruction

Link copied to clipboard
abstract val address: Long
Link copied to clipboard

Extension to get ArmInstruction enum from Instruction

Link copied to clipboard
abstract val bytes: ByteArray
Link copied to clipboard
abstract val id: Int
Link copied to clipboard
open val isCall: Boolean
Link copied to clipboard
open val isJump: Boolean
Link copied to clipboard
Link copied to clipboard
open val isReturn: Boolean
Link copied to clipboard
abstract val mnemonic: String
Link copied to clipboard
abstract val opStr: String
Link copied to clipboard
abstract val size: Int
Link copied to clipboard

Extension to get X86Instruction enum from Instruction

Functions

Link copied to clipboard
abstract fun isInGroup(group: InstructionGroup): Boolean

Check if instruction belongs to a specific group

Link copied to clipboard
abstract override fun toString(): String

Human-readable string representation