You are currently viewing Multiplication of two numbers using 8051

Multiplication of two numbers using 8051

Spread the love

8-BIT MULTIPLICATION

AIM

To perform 8-bit multiplication of two 8-bit data using immediate addressing and store the result in memory.

THEORY

In this Experiment the Multiplicand Data is entered in B register and the Multiplier Value is entered in Accumulator Data Register, Using indirect addressing multiplication of two 8-bit data is stored in Resultant address

GIVE INPUT TO THIS LOCATION:

8600 – Multiplicand
8601 โ€“ Multiplier

RESULT ADDRESS:

8700

ASSEMBLY PROGRAM TO MULTIPLY TWO 8 BIT NUMBER

MEMORY ADDRESSOPCODESMNEMONICS
850090 86 00MOV DPTR,#8600H
8503E0MOVX A,@DPTR
8504F5 F0MOV B,A
850690 86 01MOV DPTR,#8601H
8509E0MOVX A,@DPTR
850AA4MUL AB
850B90 87 01MOV DPTR,#8701H
850EF0MOVX @DPTR,A
850F90 87 00MOV DPTR,#8700H
8512E5 F0MOV A,B
8514F0MOVX @DPTR,A
851580 FEE: SJMP E

PROCEDURE

โ˜žEnter the input data in memory location 8600 to 8601.

โ˜žEnter the above opcodes from 8500.

โ˜žExecute the program.

โ˜žResult stored in 8700 & 8701. Change data and check result in 8700, 8701.

RESULT

Thus the multiplication of two 8 bit numbers is stored in the resultant memory.



Leave a Reply

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