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.

TMS320F280049: PUSH for CLA registers

Part Number: TMS320F280049

Dear Champs,

I am asking this for our customer.

The user wants to use assembly for their codes in CLA.

They find

__asm(" PUSH MAR0");

__asm(" PUSH MR0");

do not work on CLA .cla files.

but 

__asm(" PUSH ACC");

__asm(" PUSH XAR2");

works in C28x .c files.

So, is PUSH needed before using CLA registers?

Do they need to use PUSH/POP for CLA tasks?

Wayne Huang

  • Hi Wayne,

    If you do not use background task, you do not need to save and restore context since CLA tasks cannot be nested.

    CLA instruction set is very much different from C28x. It does not include PUSH/POP instructions, You can use MMOV32 instruction instead. You can refer to the TRM for instruction set of CLA

    Regards,

    Veena