microprobe.target.isa.operand.OperandConst¶
-
class
OperandConst(name, descr, value, aim=False, arel=False)[source]¶ Bases:
microprobe.target.isa.operand.OperandClass to represent a constant operand.
Methods
__init__(name, descr, value[, aim, arel])param name: access(dummy)param dummy: check(value)Check if a value is valid for the operand. codification(value)param value: copy()random_value()Return a random possible value for the operand. representation(value)param value: set_valid_values(values)param values: 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).minnameOperand name ( str).shiftvectorOperand is vector ( bool).
-
shift¶
-
min¶
-
check(value)¶ Check if a value is valid for the operand.
Parameters: value ( str,Registerorint) – value of the operand.Raises: microprobe.exceptions.MicroprobeValueError – if the value is not allowed for the operand
-