cancel
Showing results for 
Search instead for 
Did you mean: 

Reading PSR

Gawie
Associate II
Posted on May 16, 2013 at 10:00

Hi

Does anybody have some inline GCC assembly to read the PSR? I am coming from an IAR background and in IAR I just used __get_PSR(), but this is not available in GCC - CrossStudio for Arm from Rowley. 

Any help in reading the PSR from C code in GCC will be helpful. 

Thanks,

Gawie

1 REPLY 1
Gawie
Associate II
Posted on May 16, 2013 at 17:45

To answer my own question: It can obviously be found in the CMSIS library as __get_xPSR() in core_cmFunc.h.