Monthly Archives: April 2014

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 which should convert 4 digits BCD number into its binary equivalent

Now we will write another Assembly which should convert 4 digits BCD number into its binary equivalent. Let’s identify variables needed for this program. First variables will be the one which will hold the value present in the variable BCD to be converted and TEMP will hold the converted Hexadecimal equivalent and then to print its Binary… Read More »

An Assembly Program, which should add two 5-byte numbers (numbers are stored in array- NUM1 & NUM2), and stores the sum in another array named RESULT

Now we will write another Assembly Program, which should add two 5-byte numbers (numbers are stored in array- NUM1 & NUM2), and stores the sum in another array named RESULT. Let’s identify variables needed for this program. First variables will be the one which will hold the values present in the Given Arrays and it… Read More »

ASSEMBLY29 An Assembly program using the method of “add-and-shift” loop, in which you use the binary digits of one number to control additions of a shifted version of the other number into a running total; this is essentially the same algorithm you use when multiplying numbers by hand in decimal

Now we will write another Assembly program, Using the method of “add-and-shift” loop, in which you use the binary digits of one number to control additions of a shifted version of the other number into a running total; this is essentially the same algorithm you use when multiplying numbers by hand in decimal Let’s identify variables… Read More »

ASSEMBLY28 An Assembly program, which takes the input of 4-digit number, and display the sum of square of digits

Now we will write another Assembly program, which takes the input of  4-digit number, and display the sum of square of digits Let’s identify variables needed for this program. First variables will be the one which will hold the value entered by user in the variables D1, D2, D3, D4 to save 4-Digits separately in 4 variables  and variable SUM will hold sum of… 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 program to accept a decimal number and print it’s 2’s complement binary and hexadecimal – 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 an assembly language program to accept a decimal number and display it’s two’s complement representation in binary and hexadecimal formats   DATA SEGMENT     DIGIT1 DB ?     DIGIT2 DB ?     HEXNUM DB… Read More »

An Assembly Language program to convert packed BCD to equivalent binary – 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 converts a packed two digit BCD number in AL register to equivalent binary number. The binary number is stored in the AH register   DATA SEGMENT      PACKEDBCD… Read More »

A near procedure assembly Language program to convert ASCII to binary – 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 (using appropriate calling program) a near procedure in assembly language that converts an ASCII digit passed to it on AL register to equivalent binary value. The value is returned back on the AL… 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 »