microprobe.target.isa.instruction.GenericInstructionType¶
- class GenericInstructionType(name, mnemonic, opcode, descr, iformat, operands, ioperands, moperands, instruction_checks, target_checks)[source]¶
Bases:
microprobe.target.isa.instruction.InstructionTypeInstruction generic class implementation
- Parameters
iname (
str) – Instruction nameidescr (
str) – Instruction descriptioniformat (
InstructionFormat) – Instruction format
- __init__(name, mnemonic, opcode, descr, iformat, operands, ioperands, moperands, instruction_checks, target_checks)[source]¶
- Parameters
name –
mnemonic –
opcode –
descr –
iformat –
operands –
ioperands –
moperands –
instruction_checks –
target_checks –
Methods
__init__(name, mnemonic, opcode, descr, …)- param name
assembly(args[, dissabled_fields])Returns the assembly representation of this register when when invoked with args
listofOperand.binary(args[, asm_args])Return the binary representation of this register when when invoked with args
listofOperand.full_report([tabs])list_properties([tabs])match(binary)Return a bolean indicating if the binary provided matches the intruction binary mask
register_property(prop[, force])- param prop
sets(*args)Returns a
listofRegisterinstances set by thisInstructionTypewhen invoked with argslistofOperand.unregister_property(prop)- param prop
uses(args)Returns a
listofRegisterinstances used by thisInstructionTypewhen invoked with argslistofOperand.Attributes
- property name¶
- property mnemonic¶
- property description¶
- property opcode¶
- property operands¶
- property memory_operand_descriptors¶
- property operand_descriptors¶
- property implicit_operands¶
- property format¶
- property instruction_checks¶
- property target_checks¶
- property bit_mask¶
- sets(*args)[source]¶
Returns a
listofRegisterinstances set by thisInstructionTypewhen invoked with argslistofOperand.- Parameters
args (
listofOperandinstances) – Input operands.
- uses(args)[source]¶
Returns a
listofRegisterinstances used by thisInstructionTypewhen invoked with argslistofOperand.- Parameters
args (
listofOperandinstances) – Input operands.
- assembly(args, dissabled_fields=None)[source]¶
Returns the assembly representation of this register when when invoked with args
listofOperand.- Parameters
args – Input operands.
dissable_fields – list of fields that will not be translated into assembly
dissabled_fields – (Default value =None)
- binary(args, asm_args=None)[source]¶
Return the binary representation of this register when when invoked with args
listofOperand.- Parameters
args – Input operands.
asm_args – (Default value = None)
- match(binary)[source]¶
Return a bolean indicating if the binary provided matches the intruction binary mask
- list_properties(tabs=0)¶
- property properties¶
- register_property(prop, force=False)¶
- Parameters
prop –
- unregister_property(prop)¶
- Parameters
prop –