Microprocessor Fundamental and Programming subject lab tasks sem 5.
- Questions on Tasm Commands
- Add 2 16-bit numbers. The 16 bit numbers are stored into the data segment.
- Add 2 32-bit numbers stored in the data segment.
- Program to multiply two unsigned 16-bit numbers.
- Program to multiply signed 16-bit numbers.
- Program to divide a 16-bit unsigned/signed number by 16-bit number. The numbers are stored into the data segment.
- Program to copy an array of bytes/words from the variable “SOURCE” to variable “DEST” which are defined in data segment.
- To sum an array of numbers stored in the data segment.
- Program to separate even and odd numbers from an array of words.
- Write a program to find the smallest number in an array of words and store it in the variable named small of the data segment.
- Write a program to sort an array of signed numbers given in the data segment.
- Write a program to find the square root of a given number.
- Consider an array(array1) of 20 random numbers ranging between 1 to 4. Write a program to Count the number of 1’s, 2’s, 3’s and 4’s in the array1 and store the result of the count in one more array(array 2) of size 4 elements. At first location of array2 it has to store the count of 1’s, at second location it has to store count of 2’s and so on...
- Write a program to find all the prime numbers between 1 to 50.
- Write a program to read a string of lower case letters and convert to upper case and display the string on the console.
- Write a program to create a file and write 10 bytes of data into the file. Create one more file and make a copy of the first file.(i.e Read from the first file and write into the second file.)
- Write a program to display the string “Hello world” when the character ‘Y’ is pressed.
- Write the programs to verify the instructions AAA, AAS, AAM, AAD, DAA and DAS instructions.
- Implement the above instructions. The program should behave in the similar manner without using the above mentioned instructions.
- Implement a calculator for single digit numbers, which takes the input through the keyboard and display the result on the screen.
- Write a program to concatenate two strings STR1 and STR2 and store the result in the string STR3.
- Write an assembly language to count the number of occurrence of a substring in a given string.
- In a string “Good Morning”, write a program to replace the substring “Morning” with “Evening” and display “Good Evening”.
- Program to enter two strings, Find the characters that match in both the strings, store these characters
- Write a program to check whether a given number is an Armstrong number.Display appropriate message.
- Write a program to check whether two strings are the same irrespective of their case.
- Write a Program to check whether the input string is palindrome or not. Get the string through the user.
- Write a program to search an element from a sorted list using binary search.
- Write an assembly language to convert the code of a 4 digit BCD number to hexadecimal and viceversa.
- Write an assembly language to convert ASCII to 7 segment display.
- Write an assembly program to convert an 8 bit BCD number to corresponding octal number.
- Write an assembly language to find the LCM of two numbers. (Pass the parameters to the procedure using registers, pointers and stack)
- Write an assembly language to divide a 32 bit number by 16 nit number. The program should handle the quotient size exceeds 16 bits.
- Convert 8 bit binary number to gray code.
- Convert temp From Fahrenheit to Celsius. [(F − 32) × 5/9 = °C]
- Write a program to find the 2’s comp of a 16 bit number.
- Write an assembly language to handle the divide by zero interrupt.
- Write an assembly language to override the overflow interrupt.
- Write an assembly language program to find the factorial recursively and find the nCr.
- Write an assembly language to perform addition,sub,mul and div of two floating point/Integer numbers and verify the result.
- Write an assembly language to find the area of a circle.
- Write an assembly language to find the side of a right angled triangle.