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

Function test_class

bindings/python/tests/test_mos65xx.py:64–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63# ## Test class Cs
64def test_class():
65 print("*" * 16)
66 print("Platform: %s" % "MOS65XX")
67 print("Code: %s" % MOS65XX_CODE.hex(' '))
68 print("Disasm:")
69
70 try:
71 md = Cs(CS_ARCH_MOS65XX, 0)
72 md.detail = True
73 for insn in md.disasm(MOS65XX_CODE, 0x1000):
74 print_insn_detail(insn)
75 print()
76
77 print("0x%x:\n" % (insn.address + insn.size))
78 except CsError as e:
79 print("ERROR: %s" % e)
80
81
82if __name__ == '__main__':

Callers 1

test_mos65xx.pyFile · 0.70

Calls 4

disasmMethod · 0.95
CsClass · 0.85
print_insn_detailFunction · 0.70
hexMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…