0% found this document useful (0 votes)
12 views4 pages

Manual Sem 2

The document outlines an assembly language program for hexadecimal addition of two numbers as part of a practical lab exercise for M.Sc. Physics students at Kalyan P.G. College. It includes a flowchart, program instructions, execution steps, and results demonstrating the addition of two hexadecimal values. Precautions for handling microprocessor kits and ICs are also provided to ensure safe operation.

Uploaded by

mnahm8096
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views4 pages

Manual Sem 2

The document outlines an assembly language program for hexadecimal addition of two numbers as part of a practical lab exercise for M.Sc. Physics students at Kalyan P.G. College. It includes a flowchart, program instructions, execution steps, and results demonstrating the addition of two hexadecimal values. Precautions for handling microprocessor kits and ICs are also provided to ensure safe operation.

Uploaded by

mnahm8096
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

KALYAN P.G.

COLLEGE
SEC – 7 BHILAI NAGAR
DEPARTMENT OF PHYSICS

M.Sc. – 2nd SEM PHYSICS


SESSION 2024-25
SUBJECT – PHYSICS PRACTICAL
LAB (B) – “MICROPROCESSOR”
Experiment No. - 05
AIM :- Write an assembly language program for
Hexa-decimal addition of two number.

GUIDED BY SUBMITTED BY
Dr. Neelam Shukla 1. Homeshwari Sahu
2. Lubhya
3. Shobha
EXPERIMENT NO. - 05
AIM :- Write an assembly language program for Hexa-decimal addition of two
numbers.
Flowchart :-

Start

Load H-L pair with address of operand memory location

Move the 1st operand from memory to accumulator

Increase H-L pair to point to next memory location

Move 2nd operand from memory to accumulator

Add accumulator with memory

Increase H-L pair

Move the result from accumulator to memory

Stop
Program :-
Memory Label Mnemonics Operand Machine Comments
Location 0pcode code

2000 LXI H, 2501 21 Get address of 1st number in H-L


01 pair
25

2003 MOV A, M 7E 1st number in accumulator

2004 INX H 23 Increment content of H-L pair

2005 ADD M 86 Add 1st & 2nd number

2006 STA 2503 H 32 Store sum in 2503 H


03
25

2009 HLT 76 Stop

Process :-
Steps for execution of program in 8085 -
(1) Program Enter :-
To enter program Reset Rel exam Memory location (2000)
Next
(2) Data Enter :-
Reset Rel exam Memory location Next
(3) Program Execution :-
Reset Go to Starting memory location (2000) Fill (F) E
(4) Result :-
Reset Rel exam Memory location Next

Program Execution :-
The instruction LDA 2501H transfer the number from memory location 2501H
to the accumulator CMA takes complements of the number STA 2502H stores
the result in the memory location 2503H. HLT ends the program.

Result :-
Input data Output data
2501 - 49H 2503 - 9D
2502 - 54H 2504 - F0

Precautions :-
1. Don’t apply pressure on ICs or the microprocessor kit.
2. Repeatedly hitting the reset button may lead to memory location
corruption or wear out the switch.
3. Ground yourself before touching chips or boards. Static discharge can
destroy sensitive components.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy