PART A : ASSEMBLY CODES

PART A
DEVELOPED BY GURURAJ S CSE DEPT GNDEC BIDAR

NOTE: For Expt 1 and Expt 2 refer Observation and Class notes

Experiment 3: 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:




Experiment 4: Write a program to find the sum of the first 10 integer numbers.

ALGORITHM:
FLOWCHART:


Program 5: Write a program to find the largest/smallest number in an array of 32 numbers .
A.LARGEST


B. SMALLEST
Experiment 6: Write a program to count the number of ones and zeros in two consecutive memory locations.


ADDITIONAL PROGRAMS


Additional Programs: Write a program to arrange a series of 32 bit numbers in ascending/descending order.

Additional Expts: Write a program to find factorial of a number.

ALGORITHM:
FLOWCHART:

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



Additional Program : Write a program to find the square of a number (1 to 10) using look-up table.

No comments:

Post a Comment