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

Method reg

python/lowlevelil.py:4357–4368  ·  view source on GitHub ↗

``reg`` returns a register of size ``size`` with name ``reg`` :param int size: the size of the register in bytes :param str reg: the name of the register :param ILSourceLocation loc: location of returned expression :return: A register expression for the given string :rtype: ExpressionI

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

Source from the content-addressed store, hash-verified

4355 return self.expr(LowLevelILOperation.LLIL_POP, size=size, source_location=loc)
4356
4357 def reg(self, size: int, reg: 'architecture.RegisterType', loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
4358 """
4359 ``reg`` returns a register of size ``size`` with name ``reg``
4360
4361 :param int size: the size of the register in bytes
4362 :param str reg: the name of the register
4363 :param ILSourceLocation loc: location of returned expression
4364 :return: A register expression for the given string
4365 :rtype: ExpressionIndex
4366 """
4367 _reg = ExpressionIndex(self.arch.get_reg_index(reg))
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',

Callers 1

copy_expr_toMethod · 0.45

Calls 2

exprMethod · 0.95
get_reg_indexMethod · 0.80

Tested by

no test coverage detected