I am using the CC-RL compiler for RL78 devices. How do I write code for accessing SFRs in assembly language?
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.
MOV !PMC1, #0b11100000
|CS+ (formerly CubeSuite+)|
|C Compiler Package for RL78 Family|