class documentation

class Instruction:

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
Method __repr__ Undocumented
Method __str__ Returns the nicely printable string representation of this instance.
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
Instance Variable _transition Undocumented
def __init__(self, _transition):

Undocumented

Parameters
_transition:TransitionUndocumented
def __repr__(self):

Undocumented

Returns
strUndocumented
def __str__(self):

Returns the nicely printable string representation of this instance.

Returns
strUndocumented
@property
mnemonic: str =

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

Returns
A string.
@property
operands: _Sequence[str] =

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

Returns
A list of strings
@property
raw: bytearray =

Property: Assembled instruction as a bytearray

Information

Returns
A bytearray.
@property
size: int =

Property: Size in bytes of assembled instruction

Information

Returns
An integer.
_transition =

Undocumented