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

Method reg_split

python/lowlevelil.py:4370–4386  ·  view source on GitHub ↗

``reg_split`` combines registers of size ``size`` with names ``hi`` and ``lo`` :param int size: the size of the register in bytes :param str hi: register holding high part of value :param str lo: register holding low part of value :param ILSourceLocation loc: location of returned express

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

Source from the content-addressed store, hash-verified

4368 return self.expr(LowLevelILOperation.LLIL_REG, _reg, size=size, source_location=loc)
4369
4370 def reg_split(
4371 self, size: int, hi: 'architecture.RegisterType', lo: 'architecture.RegisterType',
4372 loc: Optional['ILSourceLocation'] = None
4373 ) -> ExpressionIndex:
4374 """
4375 ``reg_split`` combines registers of size ``size`` with names ``hi`` and ``lo``
4376
4377 :param int size: the size of the register in bytes
4378 :param str hi: register holding high part of value
4379 :param str lo: register holding low part of value
4380 :param ILSourceLocation loc: location of returned expression
4381 :return: The expression ``hi:lo``
4382 :rtype: ExpressionIndex
4383 """
4384 _hi = ExpressionIndex(self.arch.get_reg_index(hi))
4385 _lo = ExpressionIndex(self.arch.get_reg_index(lo))
4386 return self.expr(LowLevelILOperation.LLIL_REG_SPLIT, _hi, _lo, size=size, source_location=loc)
4387
4388 def reg_stack_top_relative(
4389 self, size: int, reg_stack: 'architecture.RegisterStackType', entry: ExpressionIndex,

Callers 1

copy_expr_toMethod · 0.45

Calls 2

exprMethod · 0.95
get_reg_indexMethod · 0.80

Tested by

no test coverage detected