Skip to content

tms320 c64x compact instructions not supported #2647

Open
@trufae

Description

@trufae

Work environment

Questions Answers
System Capstone runs on OS/arch/bits Debian arm 64, MacOS AArch64, MacOS x86, Windows x86 etc.
Capstone module affected ppc, x86, arm, aarch64 etc.
Source of Capstone git clone, brew, pip, release binaries etc.
Version/git commit v5, next

Instruction bytes giving faulty results

a6fd f725

i get two invalid instructions, actually it seems like capstone can only disassemble 4-byte instructions despite my custom disassembler in r2 can handle and identify some of those. i cant get capstone to handle them at all

you can see the screenshot shared in this ticket radareorg/radare2#24068

Expected results

It should be:

a6fd    MVK.L1 -1,a3
f725.   STW.D2T1 a11, *B15--[2]

Steps to get the wrong result

With cstool:

cstool tms320c64x -d a6fd

i also assume this issue is also affected by the wrong endianness handling as reported in the previous ticket

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions