English
Language : 

CC78K0S Datasheet, PDF (394/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
(22) Data insertion function
Data Insertion Function
#pragma opc
FUNCTION
• Inserts constant data into the current address.
• When there is no #pragma directive, the function for data insertion is regarded as an ordinary function.
EFFECT
• Specific data and instructions can be embedded in the code area without using the ASM statement.
When ASM is used, an object cannot be obtained without going through the assembler, whereas if the data
insertion function is used, an object can be obtained without going through the assembler.
USAGE
• Describe using uppercase letters in the source in the same format as that of a function call.
• The function name for data insertion is _ _OPC.
[List of data insertion functions]
void _ _OPC (unsigned char x,…);
Insert the value of the constant described in the argument to the current address.
Arguments can describe only constants.
• Declare the use of functions for data insertion by the #pragma opc directive.
However, the following items can be described before #pragma opc.
• Comments
• Other #pragma directives
• Preprocessing directives that neither define nor reference variables or functions
• Keywords following #pragma can be described in either uppercase or lowercase letters.
RESTRICTIONS
• The function names for data insertion cannot be used as function names (when #opc is specified).
• _ _OPC must be described in uppercase letters. If it is described in lowercase letters, it is handled as an
ordinary function.
394
User’s Manual U14872EJ1V0UM