8085 Program to Multiply Two 8-bit Numbers

In this program, we will write an 8085 Program to Multiply Two 8-bit Numbers in the 8085 microprocessor with a program flow chart and explanation of the program.

8085 Program to Multiply Two 8-bit Numbers

Program Statement

Multiply two 8-bit numbers stored in memory locations D000H and D001H. Store the result in memory locations E000H and E001H.

Explanation of Program

Consider that a byte is present at the memory location D000 H and a second byte is present at memory location D001 H.

We have to multiply the bytes present at the above two memory locations.

We will multiply the numbers using the successive addition method.

In the successive addition method, one number is accepted and another number is taken as a counter. The first number is added with itself, till the counter decrements to zero.

The result is stored at memory locations E000 H and E001 H.

For example: D000 H = 12 H, D001 H=10 H

Result = 12H+ 12H+ 12H+ 12H+ 12H + 12H + 12H +12H + 12H+ 12H

Result = 0120 H

E000 H 20 H, E001 H= 01 H

Flow Chart of Program

flow chart of multiply two 8-bit numbers

Assembly Language Program

LDA D000HA = first numberA = 12 H
MOV E, AE = first numberE = 12 H
MVI D, 00HD = 00 HD = 00 H
LDA D001HA = second numberA = 10 H
MOV C, AInitialize counterC = 10 H
LXI H, 0000HResult = 0H = 00 H and L = 00H
BACK:DAD DResult = Result + first numberHL = HL + DE
DCR Cdecrement counterC = C – 1
JNZ BACKIf counter ≠ 0, repeat
SHLD E000HStore resultE000H = 20H
E001H = 01 H
HLTTerminate program executionStop
Sr. No.Name of the 8085 Programs
1.Write a program to load the data into the accumulator and any register.
2.Write a program to exchange the contents of memory locations.
3.Add two 8-bit numbers.
4.Subtract two 8-bit numbers.
5.Add two 16-bit numbers.
6.Subtract two 16-bit numbers
7.Find the 1’s complement of a Number
8.Find the 2’s complement of a Number
9.8085 Program To Mask The Lower Nibble
10.8085 Program To Mask The Upper Nibble
11.8085 program to pack the two unpacked BCD numbers
12.8085 program to Unpack the two packed BCD numbers
13.8085 program to find the sum of a series of 8-bit numbers
14.8085 Program to sort the numbers in ascending order
15.8085 Program to sort the numbers in Descending order
16.8085 Program to Multiply Two 8-bit Numbers
17.8085 Program to Divide 16-bit number by 8-bit number
18.8085 Program to Find the Number of Negative Numbers in Array
19.8085 Program to Find Maximum Number in Array
20.8085 Program to count the number of 1’s in a register

Hello friends, my name is Trupal Bhavsar, I am the Writer and Founder of this blog. I am Electronics Engineer(2014 pass out), Currently working as Junior Telecom Officer(B.S.N.L.) also I do Project Development, PCB designing and Teaching of Electronics Subjects.

Leave a Comment

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

telegram logo Join Our Telegram Group!