English
Language : 

CC78K4 Datasheet, PDF (337/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
ASM Statements
#asm, #endasm
_ _asm
(b) _ _asm
• Use of _ _asm is declared by the #pragma asm specification made at the beginning of the module in
which the ASM statement is to be described (the uppercase letters and lowercase letters are distinguished
for the keywords following #pragma).
• The following items can be described before #pragma asm.
• Comment
• Other #pragma directive
• Preprocessing directive not creating variable definition/reference or function definition/reference
• The ASM statement is described in the following format in the C source.
_ _asm (string literal);
• The description method of the character string literal conforms to ANSI, and a line can be continued by using
an escape character string (\n: line feed, \t: tab) or ´, or character strings can be linked.
RESTRICTIONS
• Nesting of #asm directives is not allowed.
• If ASM statements are used, no object module file will be created. Instead, an assembler source file will be
created.
• Only lowercase letters can be described for _ _asm. If _ _asm is described with uppercase and lowercase
characters mixed, it is regarded as a user function.
• When the -ZA option is specified, only _ _asm is enabled.
• #asm - #endasm and the _ _asm block can only be described inside a function of the C source. Therefore,
the assembler source is output to CSEG (with medium/large model) of the segment name @@CODE or
@@CODES CSEG BASE (with small model).
User’s Manual U15556EJ1V0UM
337