You are on page 1of 2

EXPERIMENT No. 14 1.

0 TITLE :
To write a program to divide two numbers.

2.0 PRIOR CONCEPTS:


8051 Architecture & Instruction Set

3.0 NEW CONCEPTS:


1. Entering opcode and operand in the microcontroller. 2. Entering the program in proper order. 3. Executing the program. 4. Checking the results/ contents in various registers.

4.0 LEARNING OBJECTIVES:


1. To enter opcode and operand in the microcontroller.

2. To enter the program in proper order. 3. To execute the program. 4. To check the results/contents in the various registers.

5.0 APPARATUS:
8051 Microcontroller Kit.
6.0

PROCEDURE & OBSERVATION TABLE :


Address 6000 6002 6004 6005 90 Opcode/data 74 75 08 F002 84 7000 Instruction MOV A, # 08 MOV F0, # 02 DIV AB MOV DPTR, # 7000 Comment Load 08 in the accumulator Load 02 in the B register Divide the contents of accumulator with the contents of register B Set 7000 in the DPTR

6008 6009

MOVX@DPTR,A RET

Move contents of the accumulator into 7000 Return to command mode