We have developed a disassembly library for XCore, and released it as open source project at http://capstone-engine.org/.
Find the source at https://github.com/aquynh/capstone
Capstone is friendly & simple to use. Written in C, but it supports bindings for all popular programming languages. Example: the below Python code disassemble 4 bytes:
Code: Select all
from capstone import *
CODE = “\x9e\xff\xec\x17”
md = Cs(CS_ARCH_XCORE, 0)
for i in md.disasm(CODE, 0x1000):
print "0x%x:\t%s\t%s" % (i.address, i.mnemonic, i.op_str)
Code: Select all
$ python testxcore.py
0x1000: get r3, ps[r6]
Thanks.