CH - 2 - Art of Assembly Language Programming
CH - 2 - Art of Assembly Language Programming
Course: Microprocessor
Course Code: 22415
https://www.youtube.com/watch?v=AkFi90lZmXA
https://www.youtube.com/watch?v=p3q5zWCw8J4
Unit 2- The art of assemble language programming - 8 Marks
Topics and Subtopics
1) Program Development Steps
2) Assembly Language Programming Tools
3) Assembler Directives
What is Assembly Language?
Each personal computer has a microprocessor that manages the computer's arithmetical, logical,
and control activities.
Each family of processors has its own set of instructions for handling various operations such as
getting input from keyboard, displaying information on screen and performing various other
jobs.
A processor understands only machine language instructions, which are strings of 1's and 0's.
However, machine language is too obscure and complex for using in software development.
1. Defining the problem: The first step in writing program is to think very carefully about the
problem that the program must solve.
Defining
the
problem
Algorithm
Program Development steps
Flowchart
Initializatio
n checklist
Program Development steps
5. Choosing instructions: Choose those instructions that make program smaller in size and
more importantly efficient in execution.
Choosing
instructions
b) It enables one to create, edit, save, copy and make modification in source file.
Assembler
a) Assembler is a program that translates assembly language program to the correct binary
code for each instruction i.e. machine code and generate the file called as object file with
extension .obj .
c) It can be also be used to produce list (.lst) which contains assembly language statements,
binary codes, and offset address for each instruction
Assembly language programming tools
Linker
b) It combines, if requested ,more than one separated assembled modules into one executable
module such as two or more assembly programs or an assembly language with C program.
Debugger
a) Debugger is a program that allows the execution of program in single step mode under the
control of the user.