You are on page 1of 2

EXPERIMENT 2( a)

OBJECTIVE: Write a program for addition of two 8 Bit numbers.

DESCRIPTION: The program takes the content of memory location 2050, adds it
to the content of 2051 and stores the result back at 2052.

APPARATUS: 8085 Microprocessor kit, Power Supply (+5v)

PROCEDURE:
1. Draw the flow chart.
2. Write the op-codes for the Mnemonics instructions.
3. Feed the op-codes in the Microprocessor 8085 kit.
4. Execute the entered program.

ALGORITHM:
1. Load 2050 in H-L reg. pair.
2. Move 1st number to accumulator from memory location 2050.
3. Increment H-L register pair data.
4. Add the numbers of memory and accumulator. (Result in Accumulator).
5. Move the result to memory location 2052.

PRECAUTIONS:
1. Check for proper connections of power supply.
2. Enter the codes in the Microprocessor kit properly.
3. Always remember the exact address location where you had started.

RESULT :
Two 8 bit numbers have been added & the result can be verified at 2052.

QUESTIONS:
1. What does letter X indicates in an instruction eg LXI rp, data 16 and INX.
2. How does the microprocessor perform the execution of a program.
3. what is an assembler
PROGRAM

ADDRESS MNEMONICS REMARKS


2000 LXI H,2050 (H-L) ← (2050)
2003 MOV A,M (A)← (H-L)
2004 INX H (H-L)←[(H-L)+1]
2005 ADD M (A)←(A) + (H-L)
2006 INX H (H-L)←{(H-L)+1}
2007 MOV M,A (H-L)←(A)
2008 RST 5 End of Program
2009 END

You might also like