0% found this document useful (0 votes)
1K views

Assembling and Running An 8051 Program

The four main steps of an Assembly language program are: 1) Using an editor to create an ASCII file with a .asm or .src extension. 2) Feeding the source file to an assembler to convert instructions into machine code, producing object and list files with .obj and .lst extensions. 3) Using a linker to combine object files into an absolute file with a .abs extension. 4) Converting the absolute file into a hexadecimal file with a .hex extension, ready to burn into ROM.

Uploaded by

pcjoshi02
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Assembling and Running An 8051 Program

The four main steps of an Assembly language program are: 1) Using an editor to create an ASCII file with a .asm or .src extension. 2) Feeding the source file to an assembler to convert instructions into machine code, producing object and list files with .obj and .lst extensions. 3) Using a linker to combine object files into an absolute file with a .abs extension. 4) Converting the absolute file into a hexadecimal file with a .hex extension, ready to burn into ROM.

Uploaded by

pcjoshi02
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

The step of Assembly language

program are outlines as follows:


1) First we use an editor to type a program,
many excellent editors or word processors
are available that can be used to create
and/or edit the program
Notice that the editor must be able to

produce
an ASCII file
For many assemblers, the file names follow

the usual DOS conventions, but the source


file has the extension asm or src,
depending on which assembly you are using
2) The asm source file containing the program code
created in step 1 is fed to an 8051 assembler
The assembler converts the instructions into machine

code
The assembler will produce an object file and a list file

The extension for the object file is obj while the

extension for the list file is lst

3) Assembler require a third step called linking


The linker program takes one or more object code files

and produce an absolute object file with the extension


abs
This abs file is used by 8051 trainers that have a

monitor program
4) Next the abs file is fed into a program
called OH (object to hex converter) which
creates a file with extension hex that is
ready to burn into ROM
This program comes with all 8051

assemblers
Recent Windows-based assemblers combine

step 2 through 4 into one step

You might also like