SDCC supports two formats for inline assembler code definition:
Most of inline assembler code examples in this manual use the old inline assembler code format, but the new format could be used equivalently.
Example:
__asm
; This is a comment
label:
nop
__endasm;
The __asm__ inline assembler code format was introduced in SDCC version 3.2.0.
Example:
__asm__ (”; This is a comment\nlabel:\n\tnop”);