capstone
capstone copied to clipboard
Support for TMS320C67x?
Following a Radare2 discussion, it was suggested that the 'best' way to add support for the C67x would be through Capstone. https://github.com/radareorg/radare2/issues/20020
Is this correct, and does the existing code for the TMS320C64x show the correct way to implement this? If so, I will attempt to spin up a fork/branch to start this work... it's my itch after all.
OpCodes are defined here. Are there tools to parse the TI documentation, and is this permitted? Or does someone (like me...) have to manually work through the file: https://www.ti.com/lit/ug/spru733a/spru733a.pdf
I also note that compatibility is listed for (mostly) 'C62x, C64x, C67x, and C67x+ CPU'. Do 'we' have to treat these separately, or can support be combined in some way?
I parsed Chapter 3 to scope out the work... c67x_opcodes.txt
Interestingly, the majority of the opcode are the same as the C64x.
82 Compatibility C62x, C64x, C67x, and C67x+ CPU
32 Compatibility C67x and C67x+ CPU
2 Compatibility C67x+ CPUonly