Manual Sem 2
Manual Sem 2
COLLEGE
SEC – 7 BHILAI NAGAR
DEPARTMENT OF PHYSICS
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
Stop
Program :-
Memory Label Mnemonics Operand Machine Comments
Location 0pcode code
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.