We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm trying to use inline assembly in a C file (my projetc consists in one C file and several a51 files). Options "generate assembler SRC" and "assemble SRC" are checked.
I get the following message : "asm/endasm" requires the src-control to be active.
Actually I don't really get what I have to do.
Thanks for your help.
"I'm trying to use inline assembly in a C file (my projetc consists in one C file and several a51 files)"
Inline assembler refers to assembler instructions within your 'C' source file.
If you have separate A51 files, why do you need inline assembler? It's far better to keep the assembler in separate assembler source files, and call them from 'C'
See: http://www.keil.com/support/man/docs/c251/c251_ap_ctoasm.htm
See Inline Assembler - Just don't do it! in this thread: http://www.keil.com/forum/docs/thread9886.asp and many others!