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.

Writing and reading from General purpose registers of 6670

Other Parts Discussed in Thread: TMS320C6670

Hi TI,

    How the  General purpose registers A0 - A31 and B0-B31can be write and read ?. Is there any macro defined for this registers?

Thanks in Advance

Regards,

Janeeth R

  • Janeeth,

    In general with C code you don't make direct access to the General Purpose registers.  There is a C calling convention as described in the TMS320C6000 Optimizing Compiler UG - which can be found with all the relevant documentation on the TMS320C6670 <-- product page.  This tells you which registers the variables of a function call are passed to, what the return pointer is, and stack pointer ....

    If you want to directly use the registers, you need to write an routine in assembly.

    Best Regards,

    Chad

  • Hi Chad,

            Thanks for your reply . I'll try to go through the documents for further information.

    Regards,

    Janeeth R