Microprocessor Practical Questions [15]
Microprocessor Practical Questions
1. Write an assembly language program for detection of even and odd data of a memory
location.
2. Write an assembly language program to add two 8-bit numbers.
3. Write an assembly language program to add two I6-bit numbers.
4. Write an assembly language program to subtract two 8-bit numbers.
5. Write an assembly language program to subtract two 16-bit numbers.
6. Write a program to add two BCD numbers.
7. Write a program to divide one 8-bit number with another 8-bit number.
8. Write a program to convert a BCD number into its ASCII equivalent.
9. Write a program to find out the difference between the maximum and minimum of N
numbers stored in memory.
10. Write a program to divide one 16-bit number with an 8-bit number.
11. Write a program to multiply two 8-bit numbers.
12. Write a program to multiply two 16-bit numbers.
13. Write a program to determine the square of an 8-bit number.
14. Write a program to swap the contents of two registers without using any other general
purpose register.
15. Write a program to add N 8-bit numbers stored in contiguous memory locations.
16. Write a program to find the largest number out of an array of numbers.
17. Write a program to multiply a 16-bit number with an 8-bit number.
18. Write a program to sort an array of N numbers in ascending order.
19. Write a program to transfer a block of data from one memory location to another.
20. Write a program to search a particular number from a series of numbers residing in
memory locations.
21. Write a program to test whether a 16-bit number is palindrome or not.
22. Write a program to illustrate multiplication by 2 and division by 2 by means of bit
shifting operation on a number.
1
Microprocessor Practical Questions [15]
23. Write a program to sort 10 numbers stored in memory locations starting from XXO5H in
descending order and store them in another memory location starting from XXAO.
24. Use stack pointer register to swap the contents of two registers.
25. Find the average and median of 10 numbers stored in memory locations.
26. Write an assembly language program to obtain 1's and 2's complement of a number
ranges between 50 to 250.
27. Write a program to show the effect of division and multiplication by means of shift
operator.
28. Write an assembly program to find largest among four numbers.
29. Write an assembly language program to multiply one 8-bit number with a 4-bit number.
30. Write a program to sort five single digit numbers.
31. Write a program to create a delay of 5 seconds. Use this module to create another delay
of 10 seconds.
32. Write a program to generate a square wave using 8255.
33. Write a program to generate a ramp junction using 8255.
34. Toggle a LED with an interval of 2 seconds using 8255.
35. Design a decimal counter using seven-segment LED.
36. Design 7 segment LED display to count from 9 to 0.
37. A byte is residing at XX30H. Write a program to compute the bit S using the logical
expression S = A7.A6 + A5.A4 + A3.A2 + A1.A0 and store the bits in the location XXDIH.
38. Write a program to scroll display the string "CSEDEPTKALYANI".
39. Write a program to generate a staircase.
40. Write a program to display the digits 1, 2, 3, 4, 5, 6, 7, 8 on a seven-segment LED one by
one with an interval of 2 seconds.
41. Write a program to scroll "[Link]. HONS" as a String.
42. Design a 7-segment LED Display.
43. Write a program to test whether a 16-bit number is odd or not.
44. Write a program to find the smallest number out of an array of numbers.
45. Write a program to add two 8-bit numbers.
2
Microprocessor Practical Questions [15]
46. Write a program to subtract two BCD numbers.
47. Toggle a LED with an interval of 5 seconds using 8255.
48. Write a program to create a delay of 3 seconds and five seconds alternatively.
49. Write a program to generate a delay of 5 seconds and 3 seconds alternatively.
50. Write a program to make a delay of 10 seconds and 5 seconds alternatively.
51. Design a counter to design 7 to 3 count.
52. Write a program to display the digits 1, 3, 5, 7, 9 on a seven segment LED one by one
with an interval of 3 seconds.
53. Write a program to scroll 'Practical Exam' as a string.
54. Write a program to find the largest and the second largest out of an array of numbers.
55. Write a program to add two BCD numbers.
56. Write a program to compare two sixteen-bit numbers. If the numbers are identical then
print "EQUAL" else print "UNEQUAL".
57. Write a program to display the digits with delay of 1 sec 9, 8 7, 6, 5, 4, 3, 2, 1, 0.
58. Find the lowest among five numbers.
59. Multiply and divide a number n with/by m without using multiplication and division
operator.
60. Design a Counter to display the following sequence:
6, 0, 5, 1, 4, 2, 3.