This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error: #40: expected an identifier

Dear All,

I am compiling following code.

__asm{ STMDB R0!, {LR} };
__asm{ MOV LR, R0 };
__asm{ LDMIA SP!, {R0} };
. .
.

But compiler is giving me following errors for each of above line.

error: #40: expected an identifier
error: #666: "asm" must be used with a function
error: #65: expected a ";"

Can anybody tell me the solution for it.
Please reply me asearly as possible.

Thanks & Regards,
Sachin D. Bhujbal

0