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.

calling assembly function in c

team,

i ve to call the assembly function in my c code.

; Enable interrupts - R4 IRQ & FIQ

       .def _enable_interrupt_
       .asmfunc

_enable_interrupt_

        cpsie if
        bx    lr
        
        .endasmfunc

extern void _enable_interrupt_();

void main()

{

 _enable_interrupt_();

}

is this the correct way to call???

thanks in advance