Tag Archives: string

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 Lanuage Program, which converts string lower case characters to upper case characters and upper case characters to lower case characters

Now we will write another Assembly Lanuage Program, which converts string lower case characters to upper case characters and upper case characters to lower case characters. 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… Read More »

An Assembly Lanuage Program, which takes two inputs as strings and display the Concatenated string.

Now we will write another Assembly Lanuage Program, which takes two inputs as strings and display the Concatenated 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 (‘$’),… Read More »

An Assembly Lanuage Program, which encodes the string into the ASCII value but not corresponding ASCII value; shift 5 place left in ASCII and write the encoding string

Now we will write another Assembly Lanuage Program, which encodes the string into the ASCII value but not corresponding ASCII value; shift 5 place left in ASCII and write the encoding string. Develop cryptographic algorithm where each letter is replaced by a different letter. Given the mapping of characters to encoded characters, it is simple… Read More »

An Assembly Language program two subroutines encrypting and decrypting – IGNOU MCA Assignment 2013

MASTER OF COMPUTER APPLICATIONS Course Code : MCSL-017 Course Title : C and Assembly Language Programming Assignment Number : MCA(1)/L017/Assign/2013    Write a Program in assembly language that has two subroutines: One for encrypting alphabets of a string and second for decrypting the encoded string. In Encryption, simply convert a character /number into its predefined numerical/character… Read More »

An Assembly Language program to reverse a string in memory and displayed – IGNOU MCA Assignment 2013

BACHELOR  OF COMPUTER APPLICATIONS Course Code : BCSL-022 Course Title : Assembly Language Programming Lab Assignment Number : BCA(II)/BCSL022/Assign/13   Write and run an Assembly language program that reverses a string. You may assume that the string is available in the memory and is 6 byte long. The reversed string should be stored in separate memory… 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 »

C025 A C program to input a string and output the reversed string using pointer notation

Let’s identify variables needed for this program. In this program, we need several variables to store string and count the number of characters in the given string. First variables will be the one which will save the string entered by the user and reverse of it. So it will be S[50] and R[50]. In C… Read More »

C028 A C program with a function that will return the length of a character string without using inbuilt function

Let’s identify variables needed for this program. In this program, we need several variables to store string and count the number of characters in the given string. First variable will be the one which will save the string entered by the user and it will be S[50]. In C language we do not have string… Read More »

C024 A C program to count number of vowels, consonants & spaces in a given string

Let’s identify variables needed for this program. In this program, we need several variables to store large sentence and count the number of occurrences in the given sentence. First variable will be the one which will save the sentence given and it will be S[]. Keeping the square bracket blank means it will take the… Read More »