Microprocessor 8085 program to find the Multiplication of two 8-bit numbers





In the third year of the B.Sc. Physics program under TANSCHE, it's really important to learn how microprocessors work. One of the main experiments is with the Microprocessor 8085, which is a popular 8-bit processor. In this experiment, students get to practice basic math operations.

In this blog post, we will talk about the experiment called "Multiplication of Two 8-bit Numbers with the Microprocessor 8085." This hands-on activity helps students understand how the 8085 microprocessor works, including programming and memory tasks. By the end of this experiment, you'll have a good grasp of how the 8085 processes data and performs math operations, giving you a strong base in microprocessor systems.

Microprocessor 8085 program to find the Multiplication of two 8-bit numbers

Aim:

Write an assembly language program to multiplication of two 8-bit numbers using microprocessor 8085.

Apparatus required:

Microprocessor 8085 kit, power supply etc

Program:

Multiplication of two 8-bit numbers

Memory address

Machine code

Labels

Mnemonics

Operands

Comments

8000

2A

LHLD

8501H

Loads content of 8502 in H and 8501 in L

8001

01

8002

85

8003

EB

XCHG

Exchange contents of H with D and L with E

8004

4A

MOV

C, D

Copies the content of D in C

8005

0E

MVI

C, 00H

Store 00H to C register

8006

00

8007

21

LXI

H, 0000H

Assigns 00 to H and 00 to L

8008

00

8009

00

800A

19

BEHIND

DAD

D

Adds HL and DE and assigns the result to HL

800B

0D

DCR

C

Decrements C by 1

800C

CA

JNZ

BEHIND

Jump on no zero to 800A

800D

0A

800E

80

800F

22

SHLD

8503

Stores the values of H at 8504 and L at 8503

8010

03

8011

85

8012

76

HLT

Stop the program

Example:

Multiplication of two 8-bit numbers

First input location 8501H - 43H

Second input location 8502H - 07H

Result location 8503H - D5H

Result location 8504H - 01H

Procedure:

Result: 

The assembly programmes for microprocessor 8085 for multiplication of two 8-bit numbers were written and executed using the microprocessor 8085 kit.

Click here for Division
For further reading:
External site

Post a Comment

0 Comments