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.
hi
i want to use the assembly code in my c file how can i do this i refered the link below but did not the clear idea
http://www.keil.com/support/man/docs/c51/c51_cm_srcfile.htm i gone through following step's upto step 3 it is ok but after that i can't get any thing i used #pragma src at 1st line of my c file #pragma asm some asm code #pragma endasm help me 1.Create a C source file.
2.Add any required inline assembly instructions.
3.Compile using the SRC directive.
4.Rename the .SRC file so that it is not overwritten by subsequent compilations of the original C source (if required).
4.Make changes to the created assembler source file.
5.Assemble using the assembler.
one more thing 3.Compile using the SRC directive. i build the the target is it fine or i am wrong some where
"3.Compile using the SRC directive. i build the the target is it fine or i am wrong some where"
If you are using uVision, and you select both 'Generate Assembler Source' and 'Assembler SRC File', then the whole process is automatic - the build will do both the C-to-Assembler translation and the Assembler-to-Object translation
But, of course, this means that you can't make any manual changes to the .SRC file...