__asm Keyword

The Compiler supports target processor instructions inside C functions.

The asm keyword is a synonym for __asm, which is allowed when the -Ansi: Strict ANSI compiler option is not present (as shown in the following listing).

See Non-ANSI Keywords in HC(S)08 Backend for details.

Listing: Examples of the __asm Keyword
__asm {   nop 
  nop ; comment 
} 
asm ("nop; nop"); 
  __asm("nop\n nop"); 
  __asm "nop"; 
  __asm nop; 

#asm

  nop

  nop


#endasm