Computer Science, asked by hritik8124, 1 year ago

What are the steps in executing a assembly language program?

Answers

Answered by aditijaink283
0

Answer:

The steps in executing an assembly language program is given in the explanation.

Explanation:

Create the source file: - First write the program using a text editor such as DOS Edit, Wordpad, or Notepad and save the file with .asm extension (eg hello.asm). Build process: - After generating the source file, the next step is to build it using the "tasm" command as shown below.

C:\tasm> tasm hello.asm

The following is the screen output of the assembled Borland assembler program.

Error Messages: None

Warning Messages: None

Passes: 1

The default file generated by the build phase is an object file with an .obj extension (eg hello.obj).

first extension. The assembler also checks the program's syntax and prints out the line number with the error along with a description. It also issues a warning message, but the program with the warning message is built anyway.

Linking Process: In the LINK phase, the linker takes an object file named obj as input and creates an executable file named hello.exe and a link mapping file. Here is the command:

C:\tasm> tlink hello.obj

Run Program: A program can be run by typing its name or using the .exe extension.

C:\tasm> hello.exe

This will run the program.

#SPJ2

Similar questions