Assembler code

Assembler code can be included in C code using the __asm__ directive. The syntax of this extension mimics gcc __asm__ extension.
void f()
{
  __asm__("mylabel") ;
  __asm__("\tmovlw 0\n"
          "\tmovwf INDF0,0"
         ) ;
}

The __asm__ directive does not insert leading blank, so you can use it to insert labels. On the other hand, a trailing newline is automatically appended to asm code.



AG 2013-04-10