PART A : ASSEMBLY CODES

PART A
DEVELOPED BY GURURAJ S CSE DEPT GNDEC BIDAR
Program 1: Write a program to multiply two 16 bit binary numbers.

ALGORITHM:

STEP 1: TAKE TWO SIXTEEN BIT NUMBERS R0=0X00008000 R1=0X00008000
STEP2: MULTIPLY THE TWO SIXTEEN BIT NUMBERS R2=R0*R1

FLOWCHART:




Program 2: Write a program to find the sum of the first 10 integer numbers.

ALGORITHM:
FLOWCHART:



Program 3: Write a program to find factorial of a number.

ALGORITHM:
FLOWCHART:

Program 4: Write a program to add an array of 16 bit numbers and store the 32 bit result in internal RAM 



Program 5: Write a program to find the square of a number (1 to 10) using look-up table.
Program 6: Write a program to find the largest/smallest number in an array of 32 numbers .
A.LARGEST


B. SMALLEST
Program 7: Write a program to arrange a series of 32 bit numbers in ascending/descending order.

Program 8: Write a program to count the number of ones and zeros in two consecutive memory locations.


No comments:

Post a Comment