0% found this document useful (0 votes)
32 views3 pages

Microprocessor &amp Micro Controller Expt No.8

The document describes an experiment to write a program that increases the contents stored in memory locations each by 1. It involves entering different data in five memory locations, selecting a location using its number in the HL register, entering the number of locations in the accumulator, and forming a loop using JUMP instructions to increment each location's contents by 1. The procedure loads the value of the first memory location into HL, increments that location by 1, increments HL to the next location, decrements the accumulator, and jumps back if it is not zero to repeat for the remaining locations.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views3 pages

Microprocessor &amp Micro Controller Expt No.8

The document describes an experiment to write a program that increases the contents stored in memory locations each by 1. It involves entering different data in five memory locations, selecting a location using its number in the HL register, entering the number of locations in the accumulator, and forming a loop using JUMP instructions to increment each location's contents by 1. The procedure loads the value of the first memory location into HL, increments that location by 1, increments HL to the next location, decrements the accumulator, and jumps back if it is not zero to repeat for the remaining locations.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

EXPERIMENT No. 8 1.

0 TITLE :
To write a program to increase the contents stored in memory locations each by 1.

2.0 PRIOR CONCEPTS:


8085 Architecture & Instruction Set

3.0 NEW CONCEPTS:


1. Entering different data in five memory locations. 2. Selecting a memory location by entering its number in HL register. 3. Entering the number of memory locations in the accumulator. 4. Formation of a loop using JUMP instruction. 5. Increasing the contents of each memory location by 1.

4.0 LEARNING OBJECTIVES:


1. To enter different data in five memory locations as listed below .

2. To select a memory location by entering its number in HL register.


2. To enter the number of memory locations in the accumulator. 3. To form a loop using JUMP instruction. 4. To increase the contents of each memory location by 1.

5.0 APPARATUS:
8085 Microprocessor Kit.
6.0

PROCEDURE & OBSERVATION TABLE :


Memory location 7000 7001 Hex code 21 50 Instruction LXI H,7050 H Comment Load value of memory location 7050 in the HL pair register.

7002 7003 7004 7005 7006 7007 7008 7009 700A 700B

70 3E 05 34 23 3D C2 05 70 CF RST 1 Reset INR M INX H DCR A JNZ Increase the contents of memory location listed in HL register by 1 Increment the memory location number in HL register by 1. Decrement the contents of accumulator by 01H Jump if no zero to 7005 MVI A, 05 H Load 05H in the accumulator.

Contents before execution 7050 7051 7052 7053 7054 3B CF 30 4D 3A

Contents after execution 7050 7051 7052 7053 7054 3C D0 31 4E 3B

You might also like