0% found this document useful (0 votes)
28 views5 pages

Experiment No. - 1.2: Addition of Two 16 Bit Numbers, Sum 16 Bit

The document outlines a practical experiment conducted by a student named Gurman in a Microprocessor and Interfacing Lab, focusing on the addition of two 16-bit numbers using the Jublin application. The procedure includes initializing values, performing the addition with specific code instructions, and storing the results. Key learning outcomes include handling microprocessors and performing mathematical operations within them.

Uploaded by

Harshit
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)
28 views5 pages

Experiment No. - 1.2: Addition of Two 16 Bit Numbers, Sum 16 Bit

The document outlines a practical experiment conducted by a student named Gurman in a Microprocessor and Interfacing Lab, focusing on the addition of two 16-bit numbers using the Jublin application. The procedure includes initializing values, performing the addition with specific code instructions, and storing the results. Key learning outcomes include handling microprocessors and performing mathematical operations within them.

Uploaded by

Harshit
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

Experiment No. – 1.

Student Name: Gurman UID: 20BCS5111


Branch: CSE Section/Group: 705-A
Semester: 4th Date of Performance: 23-Feb-2021
Subject Name: Microprocessor and Interfacing Lab
Subject Code: 22E-20CSP-253

1. Aim/Overview of the practical:


Addition of two 16 bit numbers, sum 16 bit

2. Task to be done:
Adding 16-bit number using the Jublin application with help of some lines of
codes to get the desirable answer
3. Apparatus/Simulator used:

8085 Compiler, Java


4. Algorithm/Flowchart (For programming based labs):

1. Initialize the MSBs of the sum to 0


2. Get the first number.
3. Add the second number to the first number.
4. If there is any carry, increment MSBs of the sum by 1.
5. Store LSBs of the sum.
6. Store MSBs of the sum.

5. Description/ Code:

LHLD 7601H Get 1st no. in HL pair from memory 7601


XCHG Exchange cont. of DE HL
LHLD 7603H Get 2st no. in HL pair from location 7603
MVI C, 00H Clear reg. C.
DAD D Get HL+DE & store result in HL
JNC LOOP If no carry move to loop/if carry then move to
next step.
INR C Increment reg C
LOOP: MOV A, C Move carry from reg. C to reg.A
STA 7502H Store carry at 7502H
SHLD 7500H Store result in 7500H.
HLT
6. Result/Output/Writing Summary:
Input:
7601 77
7602 66
7603 44
7604 22
Output:
7502 BB
7503 88
7500 00

7. Learning outcomes (What I have learned):


1. Handling the microprocessors.
2. Doing mathematical operations in Microprocessor.
3. learning about the working of Microprocessor.
4. Operation of two 16-bit numbers.

You might also like