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.

Is it possible to read the PC (Program Counter) ?

I use 6455 DSP and want to just read (and not modify) the program counter.  I tried the following:

#include <c6x.h>
...
unsigned int temp;
temp = PCE1;

....

Is this the right way to do it?  I don't get the exact value of PC at the line.  It is slightly off.   Thanks

Bharat Meshwani