GCC-Style Inline Assembly

The CodeWarrior compiler accepts GCC (Gnu Compiler Collection) syntax for inline assembly statements:

asm("assembly-statements\n")

where assembly-statements represents inline assembly statements that follow the syntax recognized by the GCC C/C++ compiler.

Listing: Example of GCC-style inline assembly

void func(void)
{

asm("add r0, r1\n");

}