class documentation

class Instruction(object):

View In Hierarchy

Basic representation of a disassembled instruction.

Warnings

This object is not meant to be constructed directly. Use Transition.instruction instead.

Examples

>>> # From a transition
>>> reven_server.trace.transition(id).instruction # May be None
>>> # From a CPU Exception
>>> reven_server.trace.transition(id).exception.related_instruction # May be None
Method __init__ Undocumented
Property mnemonic Property: Disassembled instruction's mnemonic
Property operands Property: Disassembled instruction's operands.
Property raw Property: Assembled instruction as a bytearray
Property size Property: Size in bytes of assembled instruction
Method __str__ Undocumented
Method __repr__ Undocumented
Instance Variable _raw Undocumented
Instance Variable _mnemonic Undocumented
Instance Variable _operands Undocumented
Instance Variable _prefixes Undocumented
def __init__(self, _data):

Undocumented

_raw =

Undocumented

_mnemonic =

Undocumented

_operands =

Undocumented

_prefixes =

Undocumented

@property
mnemonic =

Property: Disassembled instruction's mnemonic

Warning

The value returned by this method is primarily provided for display purposes, and may change between versions of REVEN.

Use the Instruction.raw property with a disassembler library to disassemble the instruction.

Information

ReturnsA string.
@property
operands =

Property: Disassembled instruction's operands.

Warning

Instructions with more than 3 operands are not handled for the moment, and additional operands will be appended to the third operand.

The value returned by this method is primarily provided for display purposes, and may change between versions of REVEN.

Use the Instruction.raw property with a disassembler library to disassemble the instruction.

Information

ReturnsA list of strings
@property
raw =

Property: Assembled instruction as a bytearray

Information

ReturnsA bytearray.
@property
size =

Property: Size in bytes of assembled instruction

Information

ReturnsAn integer.
def __str__(self):

Undocumented

def __repr__(self):

Undocumented

API Documentation for reven2, generated by pydoctor 21.2.2 at 2021-04-08 12:31:35.