Creation of .ASM file using a text editor


The program written in assembly language is entered by us by the help of any editor, we prefer a screen editor because when we enter the program it is of no importance for the particular exact column label of instructions and the starting of the program. But the point to be noted that the instruction must start after column 1. More over the aligned program must be lucidly written for reading if its various fields should be assigned properly. There are many features which the editor provides like many help features which the user gets to be more familiar by the commands of the editor for just entering the program. There is always a screen editor by the help of which the program is always written by means of the editor. With the extension of .ASM the given file is created using a file name which suits it. The file so called source file is called the .ASM file. As an example to be cited as the program we have entered as a simple file so called the editor Norton with the name of the file called MULT.ASM. By using the .ASM file

Many files can be generated like .OBJ file The file MULT.ASM which is created by using an editor is simply a text file. We cannot execute this file directly. At first we have to assemble the file, and then we have to link it. The step of assembly the translation of the program of assembly language to machine code requires the generation of a .OBJ file. The .HEX file using a linker can be generated as the file MULT.ASM which is created by using an editor is simply a text file. We cannot execute this file directly. At first we have to assemble the file, and then we have to link it. The step of assembly the translation of the program of assembly language to machine code requires the generation of a .OBJ file.

The file MULT.ASM which is created by using an editor is simply a text file. We cannot execute this file directly. At first we have to assemble the file, and then we have to link it. The step of assembly the translation of the program of assembly language to machine code requires the generation of a .OBJ file.

In the prompt mode the translation is:

We type ‘X8085<cr>’ just for performing the translation in the prompt mode. We denote ‘<cr>’ just for the return of carriage, which we do by simply typing the key upon which we mark ‘Enter’. The prompting of the assembler at each and every step in this prompt mode is done. The advantage of this prompt mode lies in the fact that we don’t have to memorize each and every step while the implementation.

Updated on: 30-Jul-2019

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements