Skip to content

TMS32c64x gives different assembly text if details are enabled #2650

Open
@Rot127

Description

@Rot127

Work environment

Questions Answers
System Capstone runs on OS/arch/bits All
Capstone module affected tms32oc64x
Source of Capstone git clone
Version/git commit v5, v6

Instruction bytes giving faulty results

0x02,0x7f,0xff,0xa9 (big endian)

Expected results

It should be either:

mvk.S1 -1, a4 ||

or

mvk -1, a4

But it must be consistent.

Steps to get the wrong result

With cstool:

cstool tms320c64x -d 0x02,0x7f,0xff,0xa9
cstool tms320c64x 0x02,0x7f,0xff,0xa9

Additional Logs, screenshots, source code, configuration dump, ...

The TMS320C64x_post_printer() changes the assembly text if the details are enabled. Which doesn't make sense, because it should also fix up the text if it isn't enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TMS320C64xArchbugSomething is not working as it should

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions