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 mnemonic Property: Disassembled instruction's mnemonic
Method operands Property: Disassembled instruction's operands.
Method raw Property: Assembled instruction as a bytearray
Method size Property: Size in bytes of assembled instruction
Method __str__ Undocumented
Method __repr__ Undocumented
def __init__(self, _data):
Undocumented
@property
def mnemonic(self):

Property: Disassembled instruction's mnemonic

Information

ReturnsA string.
@property
def operands(self):

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.

Information

ReturnsA list of string
@property
def raw(self):

Property: Assembled instruction as a bytearray

Information

ReturnsA bytearray.
@property
def size(self):

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 at 2020-12-14 16:47:40.