class Instruction(object):
Basic representation of a disassembled instruction.
This object is not meant to be constructed directly. Use Transition.instruction
instead.
>>> # 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 |
Property: Disassembled instruction's mnemonic
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.
Returns | A string . |
Property: Disassembled instruction's operands.
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.
Returns | A list of strings |