class Instruction:
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 |
Returns the nicely printable string representation of this instance.
| Returns | |
str | Undocumented |
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. |
operands:
_Sequence[ str] =
Property: Disassembled instruction's operands.
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 list of strings |
raw:
bytearray =
Property: Assembled instruction as a bytearray
Information
| Returns | |
| A bytearray. |