To specify assembly-language interpretation for a block of code in your file, use the asm keyword and standard DSP56800E instruction mnemonics.
The following listing shows how to use the asm keyword with braces, to specify that an entire function is in assembly language.
asm <function header> { <assembly instructions> }
The function header can be any valid C function header; the local declarations are any valid C local declarations.
The following listing shows how to use the asm keyword with braces, to specify that a block of statements or a single statement is in assembly language.
asm { inline assembly statement inline assembly statement ... } asm {inline assembly statement}
The inline assembly statement is any valid assembly-language statement.
The following listing shows how to use the asm keyword with parentheses, to specify that a single statement is in assembly language. Note that a semicolon must follow the close parenthesis.
asm (inline assembly statement);