Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Generation of .OBJ file using a cross-assembler
Generation of .OBJ file by using a cross-assembler:
The file assembly language program file, e.g. 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.
We have used some examples in the text of ‘2500 A.D i.e. the 8085 cross-assembler of version 4.01.
In the prompt mode the translation is:
We type ‘X8085
The prompting of the assembler occurs after typing the prompt mode X8085
The destinations are listed as (N, T, P, D, E, L,
where listing signifies for listing the code of the source, object, and the error details if anything gets encountered. The listing process may be on the terminal, or moreover even gets printed by the printer, or gets stored as a file with the .LST extension on disk. Further the listing process, if it is desired, may be confined to the listing only to the source code lines which are erroneous.
The abbreviation shown below signifies:
N for None where no listing is made,
T for Terminal where listing is done on the terminal,
P for Printer where listing gets printed by the printer,
D for Disk where listing gets stored as a .LST disk file,
E for Error which gets only listed,
L for Listing ON and OFF.
If we do not list, just typing the carriage return ‘
The errors listed to destination are T, P, D,
After responding to the carriage return the errors are listed to the terminal end as a result there are many errors which are encountered during the assembly process, So for the generation of a.LST file to the disk responding to the prompt by D should be done. Contact with the source file is shown below:
Input filename:
The source name of the file must be responded by the user. In the given example the user must respond to ‘MULT.ASM’. MULT is also sufficient to carry out the task. After that the user is prompted by the assembler for the name of the output file which is as follows:
Output filename:
The user responding with the change of address ‘
At last after the complete successful of the which is error free the result gets placed in MULT.OBJ file.
|
Option |
Function |
| X8085 MULT-T |
Displays listing on terminal. It pauses |
| |
when error is encountered |
| |
Continues when |
| X8085 MULT-P |
Prints listing using printer |
| X8085 MULT-D |
Generates .LST file on disk |
| X8085 MULT-ET |
Displays only error listing on terminal |
| X8085 MULT-EP |
Prints only error listing using printer |
| X8085 MULT-ED |
Generates .LST file containing errors only |
Following diagram depicts the steps required to execute .ASM program execution –

