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.
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".