0% found this document useful (0 votes)
60 views6 pages

Experiment 2

1) The document describes Experiment No. 2 which involves adding two 8-bit binary numbers and two 16-bit binary numbers using an 8085 microprocessor. 2) It provides the concepts, learning objectives, equipment, and step-by-step procedures to develop assembly language programs to perform the additions. 3) The procedures include developing the program statement, algorithm, flowchart, assembly language program, entering the machine code into RAM, executing the program, and providing results.

Uploaded by

Deepak Mishra
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)
60 views6 pages

Experiment 2

1) The document describes Experiment No. 2 which involves adding two 8-bit binary numbers and two 16-bit binary numbers using an 8085 microprocessor. 2) It provides the concepts, learning objectives, equipment, and step-by-step procedures to develop assembly language programs to perform the additions. 3) The procedures include developing the program statement, algorithm, flowchart, assembly language program, entering the machine code into RAM, executing the program, and providing results.

Uploaded by

Deepak Mishra
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/ 6

Microprocesso r & Control Experiment No.

Experimen t No. 2
1.0 Title :
Additio n of two 8 bit binar y number s and additio n of two 16 bit binar y numbers.

2.0 Prior Concep ts :


2.1 Architecture of 8085 microprocesso r.
2.2 Addressin g mode s of 8085 microprocesso r.
2.3 Instruction set of 8085 microprocesso r.

3.0 New concep ts :


Propositio n 1 :
For 8-bit binary addition if result is 8-bit then use ADD instruction in the program and when
result is greate r than 8-bit (for successiv e / serie s addition) then use ADC instruction in program.
Propositio n 2 :
If result is greate r than 8-bit then one register should be initialized to take care of carry bit.
Propositio n 3 :
New information:
The programmin g process

Propositio n 4 : Programming sheet layout

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION ♦ 9


Experiment No. 2 Microprocesso r & Control

4.0 Learnin g Objective s :


Intellectua l skill s & Motor skills:
a. Analyze the program statement.
b. Develop algorithm.
c. Write assembl y languag e program and hand assembl e the program.
d. Enter machin e code (hexadecima l code) of program in RAM.
e. Enter data and execut e the program.

5.0 Equipmen t :
The 8085 microprocesso r kit along with its power supply unit.

6.0 Stepwise procedur e :


6.1 Developmen t of progra m for additio n of two 8 bit binar y numbers
6.1.1 Progra m statement:
Add two 8-bit binary number s stored at memory location 20C1 H and 20C2 H. Store result at
memory location 20C0 H.
6.1.2 Algorithm:
1. Load the addres s of first number in H-L pair.
2. Get first number in accumulato r.
3. Get addres s of secon d number in H-L pair.
4. Add two numbers.
5. Store result at specified memory location.
6. Stop executio n of program.
6.1.3 Flowchart:

10 ♦ MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION


Microprocesso r & Control Experiment No. 2

6.1.4 Assembl y Languag e Progra m Sheet:


Note: 1. Studen t is expecte d to write machin e code for each instruction. Opcod e shee t is
provided on the last shee t of this laboratory manual . Memory addresse s are to be
written accordin g to the memory available for the program memory (RAM area) in
the Microprocesso r kit.
2. User can terminat e the program either by HLT (Halt) or RST1 (Res tart) instruction.
For this it is recommende d to refer the user' s manual of the Microprocesso r kit
available.

6.1.5 Resul t :

(Fill in the details for three sets of data)

6.2 Developmen t of progra m for additio n of two 16-bit binar y numbers.


6.2.1 Progra m Statement:
Add two sixteen bit number s stored at memory location 20C2 H and 20C4 H. Store result at
memory locations 20C0 H and 20C1 H.
6.2.2 Algorith m :
(1) Get the first number in H-L pair.
(2) Move first 16 bit number in D-E register pair.
(3) Get secon d 16-bit number in H-L register pair from memory location.
(4) Add two 16-bit numbers.
(5) Store the result at memory location.
(6) Stop executio n of program.

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION ♦ 11


Experiment No. 2 Microprocesso r & Control

6.2.3 Flowchar t :

6.2.4 Assembl y Languag e Progra m :

7.0 Resul t :

(Fill in the details for three sets of data)

Date d signatur e of subjec t teacher

12 ♦ MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION


Microprocesso r & Control Experiment No. 2

8.0 Question s :
(Note :- Studen t to answe r Q ……. , Q ………. , Q ………. And the questio n numbers
shall be allotte d by the teache r.)
8.1 What modification s are suggeste d for the addition of two 8-bit binary number s for result
more than 8-bit?
8.2 Repea t the program of addition of two 8-bit number s using indirect addressin g mode.
8.3 Perform Decimal addition of two Decimal number s stored at memory location 20C0H and
20C1H and store the result at 20C2H & 20C3H.
8.4 Write on ALP for addition of two, sixteen bit number s using ADC Instruction.
8.5 What will be content of accumulato r and carry flag after executio n of ADI01H and INR A
instruction, if A= FF H
8.6 Write an ALP for addition of serie s of primary numbers.

(Space for Answers)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION ♦ 13


Experiment No. 2 Microprocesso r & Control

Space for Answers

Date :-

Signatur e of Subjec t Teacher

14 ♦ MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

You might also like