English
Language : 

CC78K0S Datasheet, PDF (355/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 11 EXTENDED FUNCTIONS
CPU Control Instruction
#pragma HALT/STOP/NOP
EXAMPLE
(C source)
#pragma HALT
#pragma STOP
#pragma NOP
main ( )
{
HALT ( );
STOP ( );
NOP ( );
}
(Output object of compiler)
@@CODE
_main:
CSEG
halt
stop
nop
COMPATIBILITY
<From another C compiler to this C compiler>
• The C source program need not be modified if the CPU control instructions are not used.
• Modify the program according to the procedure described in USAGE above when the CPU control instructions
are used.
<From this C compiler to another C compiler>
• HALT, STOP, and NOP can be used as function names by deleting the “#pragma HALT”, “#pragma STOP”,
and “#pragma NOP” statements or delimiting them with #ifdef.
• To use these instructions as the CPU control instructions, modify the program according to the specifications
of each compiler (such as #asm, #endasm, and asm();).
User’s Manual U14872EJ1V0UM
355