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

Method reg_write

bindings/python/capstone/__init__.py:851–859  ·  view source on GitHub ↗
(self, reg_id)

Source from the content-addressed store, hash-verified

849
850 # verify if this instruction implicitly modified register @reg_id
851 def reg_write(self, reg_id):
852 if self._raw.id == 0:
853 raise CsError(CS_ERR_SKIPDATA)
854
855 if self._cs._diet:
856 # Diet engine cannot provide regs_write information
857 raise CsError(CS_ERR_DIET)
858
859 return reg_id in self.regs_write
860
861 # return number of operands having same operand type @op_type
862 def op_count(self, op_type):

Callers

nothing calls this directly

Calls 1

CsErrorClass · 0.85

Tested by

no test coverage detected