**AIM: **To perform division of two 8 – bit numbers using 8051 instruction set.

**ALGORITHM:**

- Get the data in A – reg.
- Get the value to be divided in B – reg.
- Divide the two data
- The quotient is in A – reg.
- The remainder is in B – reg.
- Store the results.

**PROGRAM:**

```
ORG 4100
CLR C
MOV A,#data1
MOV B,#data2
DIV AB
MOV DPTR,#4500
MOVX @DPTR,A
INC DPTR
MOV A,B
MOVX @DPTR,A
HERE: SJMP HERE
```

**OBSERVATION:**

Input: | 05 |

03 | |

Output: | 01 (4500) |

02 (4501) |

**RESULT:**

Thus the program to perform multiplication of two 8 – bit numbers using 8051 instruction set was executed.