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 name - idescr (
str) – Instruction description - iformat (
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
bit_maskdescriptionformatimplicit_operandsinstruction_checksmemory_operand_descriptorsmnemonicnameopcodeoperand_descriptorsoperandspropertiestarget_checks
-
name¶
-
mnemonic¶
-
description¶
-
opcode¶
-
operands¶
-
memory_operand_descriptors¶
-
operand_descriptors¶
-
implicit_operands¶
-
format¶
-
instruction_checks¶
-
target_checks¶
-
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
Parameters: binary ( int) – Binary instruction codificationReturn type: bool
-
list_properties(tabs=0)¶
-
properties¶
-
register_property(prop, force=False)¶ Parameters: prop –
-
unregister_property(prop)¶ Parameters: prop –
- iname (