IDA Domain Python API
ida_domain.Instructions Class Reference

Inherits object.

Public Member Functions

def __init__ (self, database)
 
def is_valid (self, insn)
 
def decode (self, ea)
 
def get_disassembly (self, insn)
 
def get_between (self, start, end)
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Detailed Description

Provides access to instruction-related operations.

Constructor & Destructor Documentation

◆ __init__()

def ida_domain.Instructions.__init__ (   self,
  database 
)
__init__(self, database) -> Instructions
Constructs an instructions handler for the given database.

:param database: Reference to the active IDA database.

Member Function Documentation

◆ decode()

def ida_domain.Instructions.decode (   self,
  ea 
)
decode(self, ea) -> BoolInsntPair
Decodes the instruction at the specified address.

:param ea: The effective address of the instruction.
:return: A pair <bool, insn_t>. The bool indicates success; if false, the instruction is invalid.

◆ get_between()

def ida_domain.Instructions.get_between (   self,
  start,
  end 
)
get_between(self, start, end) -> InstructionsIterator
Retrieves instructions between the specified addresses.

:param start: Start of the address range.
:param end: End of the address range.
:return: An instruction iterator.

◆ get_disassembly()

def ida_domain.Instructions.get_disassembly (   self,
  insn 
)
get_disassembly(self, insn) -> BoolStringPair
Retrieves the disassembled string representation of the given instruction.

:param insn: The instruction to disassemble.
:return: A pair <bool, string>. If disassembly fails, the bool is false.

◆ is_valid()

def ida_domain.Instructions.is_valid (   self,
  insn 
)
is_valid(self, insn) -> bool
Checks if the given instruction is valid.

:param insn: The instruction to validate.
:return: true if the instruction is valid, false otherwise.

Property Documentation

◆ thisown

ida_domain.Instructions.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static