Skip to main content
Knowledgebase
Home
Renesas Electronics Europe - Knowledgebase

How can the PSW be accessed using C language?

Latest Updated:12/01/2011

Question:

How can the PSW be accessed using C language?

Answer:

The PSW cannot be accessed using C language.
To access the PSW using C language, you have to describe an assembler instruction (use an asm declaration or declare asm using the #pragma directive).

For details of the assembler description method, refer to 4.4 "Describing Assembler Directives" in the C Language User's Manual.

Suitable Products