__asm Keyword

The Compiler supports target processor instructions inside of C functions.

The asm keyword is a synonym for __asm, which is allowed when the -Ansi: Strict ANSI compiler option is not present.

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