microprobe.target.isa.instruction.InstructionType

class InstructionType[source]

Bases: microprobe.property.PropertyHolder

Abstract class to represent a machine instruction type.

__init__()[source]

Methods

__init__()
assembly(args[, dissabled_fields]) Returns the assembly representation of this instruction when when invoked with args list of Operand.
binary(args[, asm_args]) Return the binary representation of this register when when invoked with args list of Operand.
full_report([tabs]) Return the string representation of this instruction.
list_properties([tabs])
register_property(prop[, force])
param prop:
sets(*args) Returns a list of Register instances set by this InstructionType when invoked with args list of Operand.
unregister_property(prop)
param prop:
uses(args) Returns a list of Register instances used by this InstructionType when invoked with args list of Operand.

Attributes

description
format
implicit_operands
instruction_checks
memory_operand_descriptors
mnemonic
name
opcode
operand_descriptors
operands
properties
target_checks



name
description
mnemonic
opcode
format
operands
memory_operand_descriptors
operand_descriptors
implicit_operands
target_checks
instruction_checks
sets(*args)[source]

Returns a list of Register instances set by this InstructionType when invoked with args list of Operand.

Parameters:args (list of Operand instances) – Input operands.
uses(args)[source]

Returns a list of Register instances used by this InstructionType when invoked with args list of Operand.

Parameters:
  • args (list of Operand instances) – Input operands.
  • args
assembly(args, dissabled_fields=None)[source]

Returns the assembly representation of this instruction when when invoked with args list of Operand.

Parameters:args – Input operands.
binary(args, asm_args=None)[source]

Return the binary representation of this register when when invoked with args list of Operand.

Parameters:args – Input operands.
full_report(tabs=0)[source]

Return the string representation of this instruction.

list_properties(tabs=0)
properties
register_property(prop, force=False)
Parameters:prop
unregister_property(prop)
Parameters:prop