VIVEKANANDA INSTITUTE OF MANAGEMENT
Department Of Computer Science [ BCA ]
Computer Architecture Lab Manual
Simulator used: GNUSim8085 Download link: GNUSim8085 - Download (srid.ca)
1. Write an 8085 program to swap two 8 bit numbers.
INPUT: OUTPUT:
2. a. Write a program to find the largest of two numbers.
OUTPUT:
b. Write a program to find the smallest of two numbers.
OUTPUT:
3. Write an 8085 program to find whether an 8 bit number is positive, negative or zero
Vivekananda Institute of Management, Rajajinagar, Bangalore-55 MEGHA D R, Asst. professor, Dept of CS, BCA
If positive display 11, if negative display 22 and if zero display 33.
OUTPUT:
POSITIVE NEGATIVE ZERO
4. Write an 8085 program to check whether 4th bit of a number is zero or one.
If 4th bit number is 1 display 11, if 4th bit number is 0 display 22.
OUTPUT:
Vivekananda Institute of Management, Rajajinagar, Bangalore-55 MEGHA D R, Asst. professor, Dept of CS, BCA
5. Write an 8085 program to calculate the sum of first ten natural numbers.
OUTPUT:
6. Write an 8085 program to find the sum of digits of an 8 bit number.
NOTE:
Vivekananda Institute of Management, Rajajinagar, Bangalore-55 MEGHA D R, Asst. professor, Dept of CS, BCA
DECIMAL HEXADECIMAL
67 43
15 0F
240 F0
OUTPUT:
7. Write an 8085 program to find the reverse of an 8 bit number.
INPUT & OUTPUT:
Vivekananda Institute of Management, Rajajinagar, Bangalore-55 MEGHA D R, Asst. professor, Dept of CS, BCA
8. Write an 8085 program to check whether 1 byte number is a palindrome or not. If it is a palindrome display
display 11 otherwise display 22.
PALINDROME NOT A PALINDROME
NOTE:
DECIMAL HEXADECIMAL
17 11
16 10
OUTPUT:
9. Write an 8085 program to check whether a number is ODD or EVEN. If even display 22, if odd display 11.
Vivekananda Institute of Management, Rajajinagar, Bangalore-55 MEGHA D R, Asst. professor, Dept of CS, BCA
ODD EVEN
OUTPUT:
10. Write an 8085 program to count number of ones in the given 8 bit number.
OUTPUT:
11. Write an 8085 program to find Addition and subtraction of two 8 bit HEX numbers.
Vivekananda Institute of Management, Rajajinagar, Bangalore-55 MEGHA D R, Asst. professor, Dept of CS, BCA
OUTPUT:
12. Write an 8085 program to find addition of two 16 bit numbers.
INPUT:
OUTPUT:
Vivekananda Institute of Management, Rajajinagar, Bangalore-55 MEGHA D R, Asst. professor, Dept of CS, BCA
13. Write an 8085 program to find subtraction of two 16 bit numbers.
OUTPUT:
14. Write an 8085 program for swapping two 16 bit numbers.
Vivekananda Institute of Management, Rajajinagar, Bangalore-55 MEGHA D R, Asst. professor, Dept of CS, BCA
INPUT: OUTPUT:
15. Write an 8085 program to implement 2 out of 5 codes.
OUTPUT:
Vivekananda Institute of Management, Rajajinagar, Bangalore-55 MEGHA D R, Asst. professor, Dept of CS, BCA
16. Write an 8085 program to generate Fibonacci series.
OUTPUT:
17. Write an 8085 program to find the first ten terms of odd and even numbers.
OUTPUT:
Vivekananda Institute of Management, Rajajinagar, Bangalore-55 MEGHA D R, Asst. professor, Dept of CS, BCA
18. Write an 8085 program to find 4 digit BCD Addition.
OUTPUT:
19. Write an 8085 program to find multiplication of two digit BCD numbers.
Vivekananda Institute of Management, Rajajinagar, Bangalore-55 MEGHA D R, Asst. professor, Dept of CS, BCA
INPUT:
OUTPUT:
20. Write an 8085 program to find division of two 8 bit numbers.
OUTPUT:
-----------------------------------------------------------------------------------------------------------------------------------------------------
Vivekananda Institute of Management, Rajajinagar, Bangalore-55 MEGHA D R, Asst. professor, Dept of CS, BCA