- Load the MSB’s of Data in two different registers.
- Load the LSB’s of Data in other two different registers.
- Successive multiplication is carried out.
- The product obtained in the registers.
- The output is stored in the registers.
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
MOV R0,#0FFH ;MSB1
MOV R1,#0EFH ;MSB2
MOV R2,#0FFH ;LSB1
MOV R3,#9DH ;LSB2
If you are facing problem reading the code.Download this code.
Click on the link below to Download