for at89c2051 what steps should be followed to compile .asm files and get hexcode? i looked the help menu and couldnt get it. i too searched for the topics at other posts. there were articles related to asm coding and not steps for compilation. similar is the case with help menu too.
to compile .asm files ... is that you can not 'compile' a .asm file, assembler files are not 'compiled'. Neither can you assemble a .asm file with Keil; However, you can assemble .a51 files with keil.
This 'smells' like you are trying to assemble some downloaded code with an assembler it is not written for.
Erik
Don't create new threads for continuing on an existing problem. You already had this thread about "compiling" assembler code: http://www.keil.com/forum/docs/thread13858.asp
Erik,
I'm sure you're right about your assumption.
The (annoyingly) pedantic part of me thinks I need to correct you on a minor issue though:
You can actually assemble a .asm file with Keil - The A51 extension is convention, it is not a requirement and it is not enforced. This, of course, is if the .asm file is legal A51 syntax.
Why anyone would want to??? Some may have their own reasons.
Most tools can process files with any extension. But that often requires that the user has the knowledge to "convince" the tool that the file with the strange - or missing - extension is a file that can be processed.
In this case, I'm not convinced that the OP has the knowledge to tell his IDE that a file of random extension is an assembler file that should be assembled - instead of a C file to compile, or an object or library file to link or possibly a header or documentation file or something else.
Deviating from the "cook book" is something you do after having reached a certain knowledge level where you are comfortable with everything in the cook book and also understands "why" the individual rules and steps are written down in the cook book.
Our OP has a problem with the concept of forum threads, which may be an indication about how comfortable he is with project files and build settings. In this case, I recommend everything "by the book".
Yes, that is correct.
"The A51 extension is convention, it is not a requirement and it is not enforced"
Also correct: 'A51' is just the default - you can override the default if you want.
"This, of course, is if the .asm file is legal A51 syntax."
Absolutely! And, as Erik suggests, the fact that it is not using the Keil default is quite a strong hint that it may not be Keil assembler at all...
And, as Per says, it's probably best to stick with the defaults until you are sufficiently familiar with the tools to know how to change them...