MP Exp04 C80
MP Exp04 C80
04
A.1 Aim: Write assembly language program to sort numbers in ascending / descending order.
[Use BIOS/DOS interrupts to read input and display results.]
A.2 Prerequisite: Basic knowledge of sorting the numbers and interrupts of 8086
A.3 Outcome:
After successful completion of this experiment students will be able to
1. Use appropriate instructions to program microprocessor to perform various
task.
2. Develop the program in assembly/ mixed language for Intel 8086 processor
3. Demonstrate the execution and debugging of assembly/ mixed language program
A.4 Theory
Theory: A Sorting Algorithm is used to rearrange a given array or list elements
according to a comparison operator on the elements. The comparison operator is used to
decide the new order of element in the respective memory locations. In the given diagram the
numbers are sorted in ascending order from an array of n numbers, where size n is stored in
memory location2000:500 and numbers are sorted from memory location 2000:501
A.5 Algorithm
(Students must submit the soft copy as per following segments within two hours of the
practical. The soft copy must be uploaded at the end of the practical)
Roll. No Name:
Class: Batch
Date of Experiment: Date of Submission:
Grade:
(Paste your code completed during the 2 hours of practical in the lab here)
(Students are expected to comment on the output obtained with clear observations and
learning for each task/ sub part assigned)
B.4 Conclusion:
(Students must write the conclusion as per the attainment of individual outcome listed
above and learning/observation noted in section B.3)
Q1. List out and explain the instructions used in above program
Q2. Write an assembly language program to do bubble sorting.