Skip to main content
Knowledgebase
Home
Renesas Electronics Europe - Knowledgebase

Is there other way to use CC-RL compiler for RL78 to access PSW?

Latest Updated:07/14/2015

Question:

I am using the CC-RL compiler for RL78 devices. I get the error message below when I attempt access to the PSW. I have included iodefine.h. Is there any way around this?

E0520020: Identifier " PSW " is undefined.

Answer:

There is no PSW definition in iodefine.h file, since you cannot access the PSW directly. Use the following intrinsic functions for PSW operations.

  • __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