microprobe.code.ins.InstructionOperandValue

class InstructionOperandValue(operand_descriptor)[source]

Bases: microprobe.utils.misc.Pickable

Class to represent an instruction operand value

__init__(operand_descriptor)[source]
Parameters:operand_descriptor

Methods

__init__(operand_descriptor)
param operand_descriptor:
 
copy() Return a copy of the instruction operand value.
register_operand_callbacks(set_function, …)
param set_function:
 
set_descriptor(descriptor)
param descriptor:
 
set_value(value[, check])
param value:
sets() Return the list of registers set by the operand.
unset_value() Unsets the operand value.
uses() Return the list of registers used by the operand.

Attributes

descriptor Descriptor of the operand (OperandDescriptor)
representation Representation of the operand value for generating assembly.
value Value of the instruction operand.



value

Value of the instruction operand. (type depends on the operand)

descriptor

Descriptor of the operand (OperandDescriptor)

copy()[source]

Return a copy of the instruction operand value.

Return type:InstructionOperandValue
set_descriptor(descriptor)[source]
Parameters:descriptor
set_value(value, check=True)[source]
Parameters:
  • value
  • check – (Default value = True)
unset_value()[source]

Unsets the operand value.

sets()[source]

Return the list of registers set by the operand.

Return type:list of Register
representation

Representation of the operand value for generating assembly.

uses()[source]

Return the list of registers used by the operand.

Return type:list of Register
register_operand_callbacks(set_function, unset_function)[source]
Parameters:
  • set_function
  • unset_function