MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / set_reg_split

Method set_reg_split

python/lowlevelil.py:4220–4241  ·  view source on GitHub ↗

``set_reg_split`` uses ``hi`` and ``lo`` as a single extended register setting ``hi:lo`` to the expression ``value``. :param int size: size of the register parameter in bytes :param str hi: the high register name :param str lo: the low register name :param ExpressionIndex value: an exp

(
	    self, size: int, hi: 'architecture.RegisterType', lo: 'architecture.RegisterType', value: ExpressionIndex,
	    flags: Optional['architecture.FlagType'] = None, loc: Optional['ILSourceLocation'] = None
	)

Source from the content-addressed store, hash-verified

4218 return self.expr(LowLevelILOperation.LLIL_SET_REG, _reg, value, size=size, flags=flags, source_location=loc)
4219
4220 def set_reg_split(
4221 self, size: int, hi: 'architecture.RegisterType', lo: 'architecture.RegisterType', value: ExpressionIndex,
4222 flags: Optional['architecture.FlagType'] = None, loc: Optional['ILSourceLocation'] = None
4223 ) -> ExpressionIndex:
4224 """
4225 ``set_reg_split`` uses ``hi`` and ``lo`` as a single extended register setting ``hi:lo`` to the expression
4226 ``value``.
4227
4228 :param int size: size of the register parameter in bytes
4229 :param str hi: the high register name
4230 :param str lo: the low register name
4231 :param ExpressionIndex value: an expression to set the split registers to
4232 :param str flags: which flags are set by this operation
4233 :param ILSourceLocation loc: location of returned expression
4234 :return: The expression ``hi:lo = value``
4235 :rtype: ExpressionIndex
4236 """
4237 _hi = ExpressionIndex(self.arch.get_reg_index(hi))
4238 _lo = ExpressionIndex(self.arch.get_reg_index(lo))
4239 if flags is None:
4240 flags = architecture.FlagIndex(0)
4241 return self.expr(LowLevelILOperation.LLIL_SET_REG_SPLIT, _hi, _lo, value, size=size, flags=flags, source_location=loc)
4242
4243 def set_reg_stack_top_relative(
4244 self, size: int, reg_stack: 'architecture.RegisterStackType', entry: ExpressionIndex, value: ExpressionIndex,

Callers 1

copy_expr_toMethod · 0.45

Calls 2

exprMethod · 0.95
get_reg_indexMethod · 0.80

Tested by

no test coverage detected