A.2.1 Filling Assembler Instructions

In the RX family C/C++ compiler, assembler instructions can be written in a C-language source program using #pragma inline_asm.

[Example]

#pragma inline_asm func
static int func(int a, int b){
     ADD R2,R1 ; Assembly-language description
}
main(int *p){
     *p = func(10,20);
}

Inline expansion is performed for an assembly-language function specified by #pragma inline_asm.

The general function calling rules are also applied to the calls of assembly-language inline functions.