Tag Archives: given

Write an algorithm and draw a corresponding flow chart to print the sum of the digits of a given number

Write an algorithm and draw a corresponding flow chart to print the sum of the digits of a given number 10m Dec2005  An algorithm is a finite set of steps defining the solution of a particular problem. An algorithm is expressed in pseudo code – something resembling C language or Pascal, but with some statements… Read More »

An Assembly Lanuage Program to search for a character in a given string and calculate the number of occurrences of the character in the given string

Now we will write another Assembly Lanuage Program to search for a character in a given string and calculate the number of occurrences of the character in the given string Let’s identify variables needed for this program. First variable will be the one which will hold the Strings entered by user in the variables P1 LABEL BYTE   … Read More »

An Assembly Lanuage Program to determine a given string is a palindrome. If ‘Yes’ output the message “The given string is a palindrome”. If ‘No’ output the message “No, it is not a palindrome”.

Now we will write another Assembly Lanuage Program to determine a given string is a palindrome. If ‘Yes’ output the message “The given string is a palindrome”. If ‘No’ output the message “No, it is not a palindrome”. Let’s identify variables needed for this program. First variables will be the one which will hold the Strings entered… Read More »

An Assembly Lanuage Program for reversing a given string

Now we will write another Assembly Lanuage Program for reversing a given string. Let’s identify variables needed for this program. First variables will be the one which will hold the Strings entered by user in the variables P1 LABEL BYTE    M1 DB 0FFH    L1 DB ?    P11 DB 0FFH DUP (‘$’) to concate characters of two strings given by… Read More »

An Assembly program to conduct a binary search on a given sorted array of 16-bit, unsigned integers, and a given 16-bit unsigned key

Now we will write another Assembly program to conduct a binary search on a given sorted array of 16-bit, unsigned integers, and a given 16-bit unsigned key.   The above Logic is a C like Program to conduct a binary search we need small Algorithm Shown above in a very simple way, So Just we will covert… Read More »

An Assembly program to check if two strings are reverse of each other – IGNOU MCA Assignment 2013

MASTER OF COMPUTER APPLICATIONS Course Code : MCSL-012 Course Title : Computer Organisation and Assembly Language Programming Assignment Number : MCA(1)/012/Assign/2013 and BCA(II)/012/Assign/2013   Write a program in 8086 assembly Language (with proper comments) to find if the two given strings of length 5 are reverse of each other. You may assume that both the strings are… Read More »

An Assembly program to sort a given set of 16-bit unsigned intergers into Ascending order

Now we will write another Assembly program to sort a given set of 16-bit unsigned intergers into Ascending order. Let’s identify variables needed for this program. First variables will be the one which will hold the values present in the Given Numbers in Array list and it will be array ARR. Other variables will be holding Length of… Read More »

ASSEMBLY23 An Assembly program to sort a given set of 16-bit unsigned intergers into Descending order

Now we will write another Assembly program to sort a given set of 16-bit unsigned intergers into Descending order. Let’s identify variables needed for this program. First variables will be the one which will hold the values present in the Given Numbers in Array list and it will be array ARR. Other variables will be holding Length of… Read More »

ASSEMBLY22 An Assembly program to sort a given set of 8-bit unsigned intergers into Ascending order

Now we will write another Assembly program to sort a given set of 8-bit unsigned intergers into Ascending order. Let’s identify variables needed for this program. First variables will be the one which will hold the values present in the Given Numbers in Array list and it will be array ARR. Other variables will be holding Length of… Read More »

ASSEMBLY17 An Assembly program to arrange given N numbers in Descending order

Now we will write another Assembly program to to arrange given N numbers in Descending order. Let’s identify variables needed for this program. First variables will be the one which will hold the values present in the Given Numbers in Array list and it will be array ARR. Other variables will be holding Length of the Array and it… Read More »