Professional Documents
Culture Documents
AIM:
To learn to write an assembly language program for performing sorting the given N data in
descending order using 8085.
APPARATUS REQUIRED:
ALGORITHM:
a. Start the program.
b. Enter the number to be arranged in descending order in one memory locations.
c. Compare the two data.
d. Store the descending order in another memory location.
e. Store the result and stop the program.
FLOW CHART:
PROGRAM:
ADDRESS DATA
Input:
Output:
4300 H 04 H(COUNT VAUE)
4301 H 79 H
4302 H 56 H
4303 H 21 H
4304 H 15 H
RESULT:
Thus the assembly language program for descending order for given N data using
8085 is performed and the output is justified.