English
Language : 

CC78K0S Datasheet, PDF (324/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
Usage of sfr Area
sfr
RESTRICTIONS
• All sfr names must be described in uppercase letters. Lowercase letters are treated as ordinary variables.
EXAMPLE
(C source)
#ifdef _ _K0S_ _
#pragma sfr
#endif
void main()
{
P0 -= RXB00;
/* RXB00 = 10;
}
==> error */
(Output object of compiler)
Codes that relate to declarations are not output and the following codes are output in the middle of the function.
mov
a, P0
sub
a, RXB00
mov
P0, a
324
User’s Manual U14872EJ1V0UM