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.
Hello, Iam facing problem with inserting asm code into my c file, what i did is I have opend new project and target controller is at89c51, and added following c file to project. *************************************** #pragma SRC #pragma LARGE #include <stdio.h> #include <intrins.h> #include <at89x51.h> void main(void) { #pragma asm MOV A,#21H JMP $ #pragma endasm } ******************************* the above was the sample file, i am trying to learn inline asm then i press F7 compiler shows some error like src control to be active. then i right click on my .c file and i activated "Assemble SRC file" option the shows error following. ******************* *** FATAL ERROR L210: I/O ERROR ON INPUT FILE: EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: D1.OBJ ******************* then again i right click on my .c file and i activated "Generate Assemble SRC file" option then while compiling shows error is ******************** C51 FATAL-ERROR - ACTION: PRASING INVOKE-/#PRAGMA -LINE LINE: #pragma SRC ERROR: RESPECIFIED OR CONFLICTING CONTROL. ******************** Why the above was happening, is any thing i am doing wrong?. Please help me Regarding above. THANKING YOU, PADMANABHAM
"unresolved external ?c_startup" http://www.keil.com/support/docs/1980.htm Note: I found that by simply cutting "unresolved external ?c_startup" from your post, and pasting it into the 'Search' function on this very site: http://www.keil.com/support/search.asp That's always a good place to start with any problem!