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

Method mnemonic_setup

bindings/python/capstone/__init__.py:1063–1072  ·  view source on GitHub ↗
(self, id, mnem)

Source from the content-addressed store, hash-verified

1061
1062 # customize instruction mnemonic
1063 def mnemonic_setup(self, id, mnem):
1064 _mnem_opt = _cs_opt_mnem()
1065 _mnem_opt.id = id
1066 if mnem:
1067 _mnem_opt.mnemonic = mnem.encode()
1068 else:
1069 _mnem_opt.mnemonic = mnem
1070 status = _cs.cs_option(self.csh, CS_OPT_MNEMONIC, ctypes.cast(ctypes.byref(_mnem_opt), ctypes.c_void_p))
1071 if status != CS_ERR_OK:
1072 raise CsError(status)
1073
1074
1075 # check to see if this engine supports a particular arch,

Callers 1

testFunction · 0.95

Calls 3

_cs_opt_mnemClass · 0.85
CsErrorClass · 0.85
cs_optionMethod · 0.80

Tested by 1

testFunction · 0.76