Sei sulla pagina 1di 3

List of Microprocessor Example Programs and Excersizes: 1.

Write an assembly language program to add data located at offset 0100H in 2000H segment to another data byte available at 0600H in the same segment and store the result at 0700H in the same segment. a. Write an assembly language program to add data located at offset 0200H in 2000H segment to another data byte available at 0500H in the same segment and store the result at 0700H in the same segment. b. Write an assembly language program to add the contents of the memory location 3000H: 0300H to contents of 5000H: 0555H and store the result in 2000H: 0414H c. Write an assembly language program to add the immediate byte 0FH to the data residing in memory location, whose address is computed using DS=3000H and offset=0200H.Store the result at 0600H. 2. Write an assembly language program for the addition of a series of 8-bit numbers. a. Write an assembly language program for the addition of a series of 8-bit numbers and store the result at 4000H: 0400H. b. Write an assembly language program to store the value 56H at 5 consecutive locations. 3. Write an assembly language program to find out the number of positive and negative numbers from a series of signed numbers. Hint: Assembler converts negative numbers into 2s complement representation. a. Write an assembly language program to find out the positive numbers from a series of signed numbers. b. Write an assembly language program to find out the negative numbers from a series of signed numbers. 4. Write an assembly language program to convert Fahrenheit to Celsius. a. Write an assembly language program to convert Celsius to Fahrenheit. b. Write an assembly language program to invert a given array of words. 5. Write an assembly language program to find out the largest number from a given unordered array of 8-bit numbers a. Write an assembly language program to find out the largest number from a given unordered array of 8-bit numbers 6. Write an assembly language program to move 5 bytes of data one location to another location a. Write an assembly language program to move 3bytes of data using indexed addressing. b. Write an assembly language program to move 3 bytes of data using indirect addressing. 7. Write an assembly language program to find the square root of a given number.(Assume that the number is a perfect square) a. Write an assembly language program to find average of three words b. Write an assembly language program to find the cube root of a given number.(Assume that the number is a perfect cube 8. Write an assembly language program to perform multiplication by shift and add method. a. Write an assembly language program to perform multiplication by repetitive addition method. 9. Write an assembly language program to compute factorial of a given number. a. Write an assembly language program to generate Fibonacci series of different count and store it at different location.

10. Write a program to convert a 16 bit binary number into equivalent BCD number. a. Write a program to convert a 16 bit BCD number into equivalent Binary number. 11. Write a program to convert an 8 bit binary number into equivalent gray code. a. Write a program to convert an 8 bit gray code into equivalent binary number. 12. Write a program to convert the BCD numbers 0 to 9 to their equivalent seven segment codes using look-up table technique. Hint: Assume the codes [7-seg] are stored sequentially in code list at the relative addresses from 0 to 9.the BCD number (char) is taken in all. a. Write an assembly language program to add two 8-bit BCD numbers. b. Write an assembly language program to perform packing of four BCD numbers. c. Write an assembly language program to perform Unpacking of five BCD numbers 13. Write a program for the addition of two 3x3 matrices. The matrices are stored in the form of lists (row wise). Store the result of addition in the third list. 14. Write an assembly language program to find LCM of two given numbers. a. Write an assembly language program to find GCD of two given numbers 15. Write an assembly language program to display ASCII codes between 65 and 75. a. Write an assembly language program to add three bytes of ASCII numbers 16. Write an assembly language program to concatenate two given strings. a. Write an assembly language program to insert a sub string in the main string. 17. Write an assembly language program to check whether the string is palindrome or not. a. Write an assembly language program to display a string in increasing alphabetical order b. Write an assembly language program to scan a value 66H 18. Write an assembly language program to convert to BCD to Binary number by using procedure (using register). a. Write an assembly language program to BCD to Binary number by using procedure (using memory locations). b. Write an assembly language program to BCD to Binary number by using procedure (using memory pointer).

List of Microcontroller Example Programs and excersizes: 1. LED Projects a. LEDs -Different Patterns b. LEDs -Switches c. Elevator d. Intensity variations 2. LCD Projects a. Displaying characters b. Displaying strings c. Changing positions and lines of LCD d. Moving message 3. Serial Communication Projects a. Transmission and reception of data b. Input from Matrix Keypad to Transmit to PC c. Receive from PC and display on LCD. 4. Matrix Keypad Projects a. Accessing Key pad and displaying on LCD b. Accessing Key pad and displaying on serial window 5. ADC Projects (display o/p on LCD or PC) a. Convert analog voltage to digital form b. input from IR sensor c. input from reed switch d. input from temperature sensor e. input from LDR 6. DAC Projects a. simple digital data b. take i/p from Matrix Keypad display on LCD 7. Motor Projects a. Motor rotation clock and counter clock directions b. Speed control c. Motor rotation clock and counter clock directions using switches

Potrebbero piacerti anche