Lab Sheet 4: 8085 Array Programming
Lab Sheet 4: 8085 Array Programming
1. Write an 8085 assembly language program to find the number of one’s (1's) present in
the given 16-bit number.
Logic:
Result:
19EAC 285: Microcontroller Lab
2. Write an 8085 assembly language program to find the factorial of the given number. If the
factorial is odd make the PORT 0 high else make PORT 1 high (use any two ports for the
same).
Logic:
19EAC 285: Microcontroller Lab
Result:
19EAC 285: Microcontroller Lab
4. Write an 8085 assembly language program to write a delay program of FF x FF and move
F and zero alternatively to PORT 0. Call the delay code in between while moving 0 and F
to the port. This is the concept of blinking an LED
Logic:
19EAC 285: Microcontroller Lab
5. Write an assembly language program in 8085 to find the square of the given number.
Logic:
Result
19EAC 285: Microcontroller Lab
Evaluation: