Replies: 14 comments 3 replies
-
I am the one workint on everything. Can you share samples so i can give it a try? |
Beta Was this translation helpful? Give feedback.
-
just added the missing EM_TI definitions in the elf parser so you dont have to -a tms320 by hand now in git master |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Only one line correct disassembly :( Thank you for your help. I have tried to find the tables for the capstone plugin but i am not shure if i found the correct files and what i have found looks difficult (with my limited experience). |
Beta Was this translation helpful? Give feedback.
-
with some more fixes i got this. but i think now it's up to capstone not handling compact instructions well for c64x. ill look into that to report whatever is needed there too ![]() |
Beta Was this translation helpful? Give feedback.
-
can i use this sample.out in the testsuite? |
Beta Was this translation helpful? Give feedback.
-
in capstone i filled the following tickets: |
Beta Was this translation helpful? Give feedback.
-
Yes, it is made with ti ccs from an empty main. Should be a good file for tests. You work with incredible speed. |
Beta Was this translation helpful? Give feedback.
-
added test. also waiting for this pr to be merged in capstone to update the dependency in r2 and continue pushing to get compact mode implemented capstone-engine/capstone#2648 |
Beta Was this translation helpful? Give feedback.
-
as an update: capstone fixed the endian bug, but they dont support compact instructions yet. maybe we shuold update our copy. but i have too much open fronts to handle that, can you follow up in the capstone repo? |
Beta Was this translation helpful? Give feedback.
-
I will subscribe to the cpstone issues. |
Beta Was this translation helpful? Give feedback.
-
I have compiled the radare with git version. But then i found a strange output. Ti dis6x: radare (with big endian =1): So i think a4 = a4 does not make sense... Unfortunately the chain is complicated.
Something for experts with special skills ;) Thank you for your help to this point. |
Beta Was this translation helpful? Give feedback.
-
Is someone working with the arch=tms320 disassembler?
I am playing around with it but not able to get any sensfull disassembly.
It looks like the byte order is wrong and the the instructions are handled wrong in some byte or 3 byte instructions while the tms320 has 32 bit or 16 bit instructions only.
Is there a parameter to change the byte order?
Can 16bit and 32bit instruction decoding be forced?
ELFDATA2LSB may be the needed parsing.
I am using radare2 on Windows.
radare2 5.9.8 1 @ windows-x86-64
birth: git.5.9.8 Tue 11/19/2024__11:46:03.42
commit: 4eb49d5
options: gpl -O? cs:5 cl:1 meson
This is a comparision of the radare2 output and the ti disassembler dis6x.exe, showing the wrong instruction byte order and the incorrect instruction length.

Beta Was this translation helpful? Give feedback.
All reactions