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.InstructionType
Instruction 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
list
ofOperand
.binary
(args[, asm_args])Return the binary representation of this register when when invoked with args
list
ofOperand
.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
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
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
list
ofRegister
instances set by thisInstructionType
when invoked with argslist
ofOperand
.- Parameters
args (
list
ofOperand
instances) – Input operands.
-
uses
(args)[source]¶ Returns a
list
ofRegister
instances used by thisInstructionType
when invoked with argslist
ofOperand
.- Parameters
args (
list
ofOperand
instances) – Input operands.
-
assembly
(args, dissabled_fields=None)[source]¶ Returns the assembly representation of this register when when invoked with args
list
ofOperand
.- 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
list
ofOperand
.- 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 –