This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error in assembler for SUBDP



Hi,

 I have detected an error in the assembler tool of all CGT versions I tested (6.0.8, 6.1.22 and 7.4.2, the latest). The error is easily shown by trying to assemble the following code (test.asm) for the C672x DSPs:

    .text
    .global _test
_test:
    SUBDP.S1X         B17:B16,A9:A8,A29:A28
.end

 The command line used to assemble this piece of code is:

 cl6x.exe -mv67p -c test.asm

 To see what’s wrong, use the disassembler with this command line:

 dis6x.exe test.obj > test.txt

 Which outputs:

 00000000   0e411ef8           SUBDP.S1X     B9:B8,A17:A16,A29:A28

As you can see, the disassembled code is not the same as the original source code. The correct disassembler output should be:

00000000   0e221ef8           SUBDP.S1X     B17:B16,A9:A8,A29:A28

 Greetings.