my program is asm file (.a51) when i build it ,the message occurs .I hadn't found a way to solve it, It really makes me headache. would you help me please?
the message is as follows:
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2008 *** ERROR: COMMAND-FILE '' NOT FOUND one led.a51 - 0 Error(s), 0 Warning(s).
I strongly you would be better off without that blank in the source file name.
Thank you very much for your reply, When i use the c ,it goes very well and it can debug and creates the target and creates hex files ,but when i use the asm program ,the error message occurs as i have mentioned before,what i want to say is that the asm file itself has no error,it has noting to do whit the program ,this also why i asking you for help ,I don't understand you answers,would you be in detail please?
What exactly are you trying to assemble? An empty file?
Post source in PRE tags, read posting notes.
Thanks for patient and heartful reply.
this is the simple code i write:
ORG 000H MAIN: SETB P1.0 LCALL DELAY CLR P1.0 LCALL DELAY LJMP MAIN DELAY:MOV R7,#250 D1:MOV R6,#250 D2:DJNZ R6,D2 DJNZ R7,D1 RET END
this is the message after press the “build” button:
Build target 'Target 1' assembling one led.a51... A51 MACRO ASSEMBLER V8.02b - SN: K1UMC-BDZY1C COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2008 *** ERROR: COMMAND-FILE '' NOT FOUND Target not created.
ORG 000H; MAIN: SETB P1.0; LCALL DELAY; CLR P1.0; LCALL DELAY; LJMP MAIN; DELAY:MOV R7,#250; D1:MOV R6,#250; D2:DJNZ R6,D2; DJNZ R7,D1; RET; END;
The problem is not with the contents of that file --- the assembler didn't even read it. It's the file name that's causing your problem. Change the filename to one without blanks.
He probably means you should get rid of the spaces from the file name and/or path.
Thank you very much! you are right , i tried to build a new project as you suggested,problem was solved ,error not happened again ,Thank you and Thank you for your patinence.Best wishes!