This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to call an Assembly "macro" function in C language code??

How to call an Assembly "macro" function in C language code??

example:

in xx.asm

add3    .macro   P1, P2
             MOV   ACC,P1
             ADD   ACC,P2
            .endm

in xx.c

extern void add3(int,int);

void main(void)
{
    add3(10,2);

}

there is some tings wrong.

Thanks