8051

8051 16 bit multiplication Program- Codes Explorer

8051 16 Bit Multiplication ALP 
ALGORITHM:
  1. Start.
  2. Load the MSB’s of Data in two different registers.
  3. Load the LSB’s of Data in other two different registers.
  4. Successive multiplication is carried out.
  5. The product obtained in the registers.
  6. The output is stored in the registers.
  7. End.

For example if we are trying to multiply two 16 bit numbers as below.We have divided 16 bit numbers into two 8 bit numbers

Basically, we are multiplying FFFF & EF9D.
But in this program,   AB = FF
                                   CD = FF
                                   EF  = EF
                                   GH = 9D
After we execute the above Program, the result will be stored in R7-R6-R5-R4.

If you are facing problem reading the code.Download this code.
Click on the link below to Download

 

8051 16 Bit Multiplication Assembly Program File

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.