MCPcopy Create free account
hub / github.com/capstone-engine/capstone / reg_name

Method reg_name

bindings/python/capstone/__init__.py:801–806  ·  view source on GitHub ↗
(self, reg_id, default=None)

Source from the content-addressed store, hash-verified

799
800 # get the register name, given the register ID
801 def reg_name(self, reg_id, default=None):
802 if self._cs._diet:
803 # Diet engine cannot provide register name
804 raise CsError(CS_ERR_DIET)
805
806 return _ascii_name_or_default(_cs.cs_reg_name(self._cs.csh, reg_id), default)
807
808 # get the instruction name
809 def insn_name(self, default=None):

Callers

nothing calls this directly

Calls 3

CsErrorClass · 0.85
_ascii_name_or_defaultFunction · 0.85
cs_reg_nameMethod · 0.80

Tested by

no test coverage detected