microprobe.target.isa.operand.Operand¶
-
class
Operand(name, descr)[source]¶ Bases:
objectThis represents a machine instruction operand
Methods
__init__(name, descr)param name: access(value)param value: check(value)Check if a value is valid for the operand. codification(value)Return the binary codification of the operand. copy()Return a copy of the operand. random_value()Return a random possible value for the operand. representation(value)Return the string representation of the operand. set_valid_values(values)Sets the set of valid value for the operand. values()Return the possible value of the operand. Attributes
address_absoluteOperand is for generating absolute addresses ( bool).address_baseOperand is the base register for an address ( bool).address_immediateOperand is an immediate of an address ( bool).address_indexOperand is the index register for an address ( bool).address_relativeOperand is for generating relative addresses ( bool).constantOperand is constant ( bool).descriptionOperand description ( str).floatOperand is float ( bool).immediateOperand is immediate ( bool).nameOperand name ( str).vectorOperand is vector ( bool).
-
representation(value)[source]¶ Return the string representation of the operand.
Parameters: value ( str,Registerorint) – value of the operandReturn type: str
-
codification(value)[source]¶ Return the binary codification of the operand.
Parameters: value ( str,Registerorint) – value of the operand.Return type: str
-