5.5 Using SFR Symbols and Extended SFR Symbols

When a device file is read, SFR symbols and extended SFR symbols can be used in the assembly source code.

For the SFR symbols and extended SFR symbols that can be used in the assembly source code, see the user's manual of the device.

SFR symbols and extended SFR symbols are handled in the same way as constants (addresses of the specified SFRs), but note the following.

-

Uppercase and lowercase letters are not distinguished for SFR symbols and extended SFR symbols.

-

SFR symbols and extended SFR symbols, which are abbreviations for SFR and extended SFR names and not actually symbols, cannot be defined as symbols in program code.

-

"!" needs to be at the beginning of an extended SFR symbol in an instruction operand.
"!" can be omitted when the assembler transition support option (-convert_asm) is specified.

 

See also the descriptions of sfr, sfrp, and addr16 in "5.1.16 Operand characteristics".