Skip to main content
Knowledgebase
Home
Renesas Electronics Europe - Knowledgebase

How to write code for accessing SFRs in assembly language?

Latest Updated:04/24/2015

Question:

I am using the CC-RL compiler for RL78 devices. How do I write code for accessing SFRs in assembly language?

Answer:

You can use the reserved words for the SFRs.
Note that “!” should be added before the symbol of each reserved word when you access extended SFRs.

Example:
MOV !PMC1, #0b11100000

Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family