English
Language : 

CC78K0S Datasheet, PDF (395/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
Data Insertion Function
#pragma opc
EXAMPLE
(C source)
#pragma opc
void main ( ) {
_ _OPC(0xBF) ;
_ _OPC(0xA1, 0x12) ;
_ _OPC(0x10, 0x34, 0x12) ;
}
(Output object of compiler)
_main :
; line
DB
; line
DB
DB
; line
DB
DB
DB
; line
ret
4 : _ _OPC (0xBF) ;
0BFH
5 : _ _OPC (0xA1, 0x12) ;
0A1H
012H
6 : _ _OPC (0x10, 0x34, 0x12) ;
010H
034H
012H
7:}
COMPATIBILITY
<From another C compiler to this C compiler>
• Modification is not needed if the compiler does not use the functions for data insertion.
• To change to functions for data insertion, modify according to USAGE above.
<From this C compiler to another C compiler>
• Function names for data insertion can be used as function names by deleting the #pragma opc statement or
delimiting it with #ifdef.
• To use as a function for data insertion, modify the program according to the specifications of each C compiler
(#asm, #endasm or asm() ; , etc.).
User’s Manual U14872EJ1V0UM
395