microprobe.target.isa.instruction.InstructionType
- class InstructionType[source]
Bases:
PropertyHolder
Abstract class to represent a machine instruction type.
Methods
__init__
()assembly
(args[, dissabled_fields])Returns the assembly representation of this instruction when when invoked with args
list
ofOperand
.binary
(args[, asm_args])Return the binary representation of this register when when invoked with args
list
ofOperand
.full_report
([tabs])Return the string representation of this instruction.
list_properties
([tabs])register_property
(prop[, force])- param prop:
sets
(*args)Returns a
list
ofRegister
instances set by thisInstructionType
when invoked with argslist
ofOperand
.unregister_property
(prop)- param prop:
uses
(args)Returns a
list
ofRegister
instances used by thisInstructionType
when invoked with argslist
ofOperand
.Attributes
- property name
- property description
- property mnemonic
- property opcode
- property format
- property operands
- property memory_operand_descriptors
- property operand_descriptors
- property implicit_operands
- property target_checks
- property instruction_checks
- sets(*args)[source]
Returns a
list
ofRegister
instances set by thisInstructionType
when invoked with argslist
ofOperand
.
- uses(args)[source]
Returns a
list
ofRegister
instances used by thisInstructionType
when invoked with argslist
ofOperand
.
- assembly(args, dissabled_fields=None)[source]
Returns the assembly representation of this instruction when when invoked with args
list
ofOperand
.- Parameters:
args – Input operands.
- binary(args, asm_args=None)[source]
Return the binary representation of this register when when invoked with args
list
ofOperand
.- Parameters:
args – Input operands.
- list_properties(tabs=0)
- property properties
- register_property(prop, force=False)
- Parameters:
prop
- unregister_property(prop)
- Parameters:
prop