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.

MSP430 Get CPU Core register value from C code



Hello!

I have a problem with TI Compiller (4.3.3) and CCS6.
I need to get and store in to varible Core Register value (for example R11).
In GCC I usually use the code like this:

volatile int *i __asm(" R11");

Or like this:

__asm("mov (%0), %%bl" :: "r" (y) : "%bl");

But in TI compiller this way is doesn't work:
#1493-D GCC-style explicit register variables are not supported main.c

How can I do it in TI Compiler? What is the best way for do this?

Best regards,
Alexander

**Attention** This is a public forum