Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22459

MSP430 Get CPU Core register value from C code

$
0
0

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:

volatileint*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


Viewing all articles
Browse latest Browse all 22459

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>