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
Yes, there is a problem: the inline assembler cannot deal with 'C' expressions such as '*((unsigned int *) 0xFE46)' etc. It can handle identifers, numbers and assembly language operators only.
Thanks Peter.... --Sunil