CS2259 8 BIT DATA MULTIPLICATION - Computer Programming

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Monday, March 28, 2011

CS2259 8 BIT DATA MULTIPLICATION


8 BIT DATA MULTIPLICATION


AIM:

             To multiply two 8 bit numbers stored at consecutive memory locations and store the result in memory.

ALGORITHM:

LOGIC: Multiplication can be done by repeated addition.

1.      Initialize memory pointer to data location.
2.      Move multiplicand to a register.
3.      Move the multiplier to another register.
4.      Clear the accumulator.
5.      Add multiplicand to accumulator
6.      Decrement multiplier
7.      Repeat step 5 till multiplier comes to zero.
8.      The result, which is in the accumulator, is stored in a memory location.




RESULT:

Thus the 8-bit multiplication was done in 8085mp using repeated addition method.





No comments:

Post a Comment