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,All I tried to using #pragma asm/#pragma endasm in my C program.Although reference the Keil's document.I still can't do the job. //----------------------- #pragma SRC //----------------------------- #pragma asm mov dptr,#0xf31b mov a,#0xff movx @dptr,a #pragma endasm //----------------------------- It show obj file not found. What can I do ? Thanks.
Have you tried to change the compilation option for the file itself? You can ask the compiler to generate the src file (in the project view, right click and look for the file options, don't know them by heart) and maybe then you will have the object file you're looking for.
"You can ask the compiler to generate the src file ... maybe then you will have the object file..." No. Read the description of the SRC Directive in the Manual - it specifically tells you what the compiler will (and will not) generate!