You are on page 1of 13

Sanjivani Rural Education Society’s

Sanjivani College of Engineering, Kopargaon-423603


(An Autonomous Institute Affiliated to Savitribai Phule Pune University, Pune)
NAAC ‘A’ Grade Accredited, ISO 9001:2015 Certified
Department of Information Technology
(NBA Accredited)

Microprocessors & Microcontrollers

Dr.R.D.Chintamani
Assistant Professor
Sanjivani Rural Education Society’s

Sanjivani College of Engineering, Kopargaon-423603


(An Autonomous Institute Affiliated to Savitribai Phule Pune University, Pune)
NAAC ‘A’ Grade Accredited, ISO 9001:2015 Certified
Department of Information Technology
(NBA Accredited)

Microprocessors & Microcontrollers


UNIT – I : INTRODUCTION TO
ASSEMBLY LANGUAGE
PROGRAMMING
Topi Assembly Language
c Programming
1.2 Tools
Dr. R.D.Chintamani
Assistant Professor
Assembly Language Programming Tools
 Assembler
 Linker
 Debugger
 Simulator
 Emulator

Microprocessors & Microcontrollers – Unit-I: Topic 1.2 Dr.R.D.Chintamani Department of Information Technology
Assembler
 Assembler is a program that converts assembly language
program into machine language.
 Input to the assembler is a source file containing
assembly language program usually has extension .asm
 Output of the assembler is object file which created as a result
of assembling the program.
 Output file has the extension as .obj
 If there are any syntax errors in the program assembler does
not create object file. It displays errors and warnings with line
numbers.
 In case of any errors programmer has to first correct the errors.
Microprocessors & Microcontrollers – Unit-I: Topic 1.2 Dr.R.D.Chintamani Department of Information Technology
Assembler
 Assembler for different processor are different.
 To assemble 8086 assembly language program, popular assembler
available are MASM & TASM.
 An ALP program contained by source file named sample.asm
can be assembled with following command
TASM sample.asm
 As a result of assembling this file if no errors sample.obj file
is generated.
 The .obj files though contain machine code are not ready
for execution.
Microprocessors & Microcontrollers – Unit-I: Topic 1.2 Dr.R.D.Chintamani Department of Information Technology
Linker
 Linker is a program that links one or more object file with
library.
 Input to linker is object file(s) with .obj extension.
 Output of linker is executable file with .exe extension.
 There are two popular linker used in development of
8086 assembly language program TLINK and LINK.
 The object files can be linked by giving following command
on command prompt.
TLINK sample.obj
 As a result of linking the program an executable is
generated named sample.exe
Microprocessors & Microcontrollers – Unit-I: Topic 1.2 Dr.R.D.Chintamani Department of Information Technology
Debugger
 Debugger is the program which helps programmer to debug
or troubleshoot with logical errors in the program.
 Debuggers provide the facilities link single step running
the program, watching registers/memory,

Microprocessors & Microcontrollers – Unit-I: Topic 1.2 Dr.R.D.Chintamani Department of Information Technology
Simulator
 Simulator is a tool used for development of assembly
language program of one type of computer using some
different type of computer.
 Simulator is used to execute programs for one computer type
e.g. 8051 based system on some other type computer e.g. 8086
based system.
 Here the 8086 based system can not directly execute the
programs 8051 based system. Hence simulator converts
instructions to equivalent instructions and gives feel to the
programmer that the program is executed.
Microprocessors & Microcontrollers – Unit-I: Topic 1.2 Dr.R.D.Chintamani Department of Information Technology
Emulator
 Emulator is another tool used for development of assembly
language program of one type of computer using some different
type of computer.
 Simulator can simulate all instructions related to register and
memory in simulation mode. But simulation of input and
output devices may be difficult or not exactly same as the real
devices.
 In case of Emulator the computer emulating instructions of other
type of computer connects itself to the input and output devices
also executes the program on behalf of that computer for which the
program is written.
Microprocessors & Microcontrollers – Unit-I: Topic 1.2 Dr.R.D.Chintamani Department of Information Technology
Emulator

Microprocessors & Microcontrollers – Unit-I: Topic 1.2 Dr.R.D.Chintamani Department of Information Technology
Topic Summary – Assembly Language Programming Tools

Assembler
Linker
Debugger
Simulator
Emulator

Microprocessors & Microcontrollers – Unit-I: Topic 1.2 Dr.R.D.Chintamani Department of Information Technology
Next Topic – Assembler Directive
 Defining segments
 Defining and initializing
data
 Other assembler directives

Microprocessors & Microcontrollers – Unit-I: Topic 1.1 Dr.R.D.Chintamani Department of Information Technology
Ask Questions & Share Responses
You can ask your questions and share your responses at:

 Email: chintamanirameshwarit@Sanjivani.org.in
 Google Class room
Lecture Presentation and Literature
To refer presentation of this lecture and literature visit:
 Google Classroom: Microprocessors & Microcontrollers
References:
1 Peter Abel, Niyaz Nizamuddin, "IBM PC Assembly Language and Programming", Pearson Education.
2 Ray Duncan, "Advanced MS DOS Programming", 2nd Edition, BPB Publications.
3 Douglas Hall, “Microprocessors and Interfacing”, 2nd Edition, 1992, MGH, ISBN-0-07-100462-9.
Microprocessors & Microcontrollers – Unit-I: Topic 1.2 Dr.R.D.Chintamani Department of Information Technology

You might also like