Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

Could I use a CLA instruction that doesn't exist

Hi,

I tried to use an instruction like the following in the CLA code section of the MCU TMS320x2803x:

MMOV32 @_CLA_SomeVariable, MR0, GEQ

Knowing that the flag GEQ depends on the previous instruction.

This instruciton doesn't exist in the list of CLA instructions (page 41 of the document SPRUGE6B). There are only MMOV32 MRa, mem32 {, CNDF} and MMOV32 MRa, MRb {, CNDF}. Could someone tell me if I can use the instruction that I mentioned above, please? Thanks a lot!

Kind regards,

  • The C2000 Assembler should have issued an error for this (or any other unsupported) instruction.  Instead, it appears it quietly compiles it into something else (a MMPYF32 || MOV32 instruction encoding).

    Care should be taken when writing hand-coded assembly to only use legitimate instructions.  If an instruction is not documented, that means there is no encoding for it.  There is no way for the hardware to understand an unsupported instruction.

    I will file an Assembler error report for this.  In general the Assembler tries to issue errors when it encounters unsupported instructions or operands.

    Thanks,

    Anna Youssefi

    Codegen Team

  • Thanks for your answer!

    I have tested this instruction and used the Disassembly tool to see which instruction is realy present on the micro when compiling the instruction MMOV32 @_CLA_SomeVariable, MR0, GEQ. As you mention, the compiled instruction is not the same as the one that I hoped be. Moreover, such instruction causes an impair alignment, therefore all instructions which follow were not precisely compiled.

    There is another instruction that is not documented but that I think works well. It is MMOV16 MAR1, *MAR0. I have tested it and there did not seem be a problem.

    Kind regards,