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

Extended Inline Assembly

Hi,

I am using extended inline assembly functionality in Keil with keyword __asm.

The compiler is giving error!!!!

For the following code,
__asm { mov GPT12E_T5,#0x3CB0 }

The following error is coming.....

GPT2.C(195): error C195: inline-asm: invalid expression token
GPT2.C(195): error C195: inline-asm: missing ')'
GPT2.C(195): error C195: inline-asm: Invalid instruction operand(s)

My question is, in order to use extended inline assembly any seetings has to be done in the Keil. Or is anything wrong with the code.

Regards
Sunil