microprobe.target.isa.operand.OperandImmRange
- class OperandImmRange(name, descr, minvalue, maxvalue, step, aim, shift, novalues, add)[source]
Bases:
Operand
Class to represent a immediate range operand.
- __init__(name, descr, minvalue, maxvalue, step, aim, shift, novalues, add)[source]
- Parameters:
name
descr
minvalue
maxvalue
step
aim
shift
novalues
add
Methods
__init__
(name, descr, minvalue, maxvalue, ...)- param name:
access
(dummy)- param dummy:
check
(value)- param value:
codification
(value)- param value:
copy
()Return a copy of the operand.
random_value
(rand)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
Operand is for generating absolute addresses (
bool
).Operand is the base register for an address (
bool
).Operand is an immediate of an address (
bool
).Operand is the index register for an address (
bool
).Operand is for generating relative addresses (
bool
).Operand is constant (
bool
).Operand description (
str
).Operand is float (
bool
).Operand is immediate (
bool
).Operand name (
str
).Operand is vector (
bool
).
- random_value(rand: Random)[source]
Return a random possible value for the operand.
- Return type:
:
int
- property max
- property min
- property step
- property shift
- property add