Professional Documents
Culture Documents
8085 Manual B.tech - CS
8085 Manual B.tech - CS
1. Introduction to 8085
2. 8 bit Addition and Subtraction
3. 8 bit Multiplication and Division
4. 16 bit Addition and Subtraction
5. 16 bit Multiplication and Division
6. Largest and Smallest number in an array
7. Sorting in Ascending and Descending Order
8. Code Conversions using 8085
9. BCD Addition and Subtraction
10. Matrix Multiplication
11. Fibonacci Series
12. Factorial of N Data
13. Palindrome
14. Sum of Series
15. Square Root
Interfacing
1. Interfacing 8255 PPI IC with 8085
2. Interfacing 8253 Timer IC with 8085
3. Interfacing 8279 Keyboard Display IC with 8085
AIM:
To sort the given number in the ascending order using 8085 microprocessor.
ALGORITHM:
RESULT:
Thus the ascending order program is executed and thus the numbers are arranged in
ascending order.
FLOWCHART:
START
[B] 04H
[HL] [2100H]
[A] [HL]
[HL [HL] + 1
IS
[A] < [HL]?
[D] [HL]
[HL] [A]
NO
[HL] [D]
[HL] [HL] + 1
[C] [C] – 01 H
IS
[C] = 0?
[B] [B]-1
IS
[B] = 0?
NO
STOP
YES
NO
YES
PROGRAM:
OBSERVATION:
INPUT OUTPUT
MEMORY DATA MEMORY DATA
LOCATION LOCATION
2100 09 2100 01
2101 07 2101 03
2102 05 2102 05
2103 03 2103 07
2104 01 2104 09
7(B). DESCENDING ORDER
AIM:
To sort the given number in the descending order using 8085 microprocessor.
ALGORITHM:
RESULT:
Thus the descending order program is executed and thus the numbers are arranged in
descending order.
FLOWCHART:
START
[B] 04H
[HL] [2100H]
[A] [HL]
[HL [HL] + 1
IS
[A] < [HL]?
[D] [HL]
[HL] [A]
NO [HL] [HL] - 1
YES
[HL] [D]
[HL] [HL] + 1
[C] [C] – 01 H
IS
[C] = 0?
[B] [B]-1
IS
[B] = 0?
NO
STOP
YES
NO
YES
PROGRAM:
OBSERVATION:
INPUT OUTPUT
MEMORY DATA MEMORY DATA
LOCATION LOCATION
2100 01 2100 09
2101 03 2101 07
2102 05 2102 05
2103 07 2103 03
2104 09 2104 01
Experiment No. - 8
AIM:
Write a program to search a number in an array and finding its parity using 8085
microprocessor.
ALGORITHM:
RESULT:
Thus the program to search a number in an array and finding its parity using 8085
microprocessor is executed.
PROGRAM:
OBSERVATION:
0000 1010
*1111 1111
--------------
0000 1010
--------------
Parity is Even, because no. of one’s is even.