Could somebody tell me please how can I execute inline assembly code in C code using TI code composer studio (for ARM)?
I searched and tried but nothing worked.
For example, when I try this very simple code:
asm("push r0\n");
or this
__asm("push r0\n");
I always get:
[E0002] Illegal mnemonic specified push r0
1 Assembly Error, No Assembly Warnings
I read something says that my previous code is GCC style,and TI compiler doesn't accept it!. Then how can I execute my own inline assembly codes?