Skip to main content
Knowledgebase
Home
Renesas India - Knowledgebase

Can I use “PSW” to represent the program status word in C source code?

Latest Updated:05/18/2015

Question:

I am using the CC-RL compiler for RL78 devices. Can I use “PSW” to represent the program status word in C source code?

Answer:

Using PSW as a symbol is not possible. Use the following built-in functions.
・__get_psw
This returns the contents of the PSW.
・__set_psw
This sets a value for the PSW.
Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family