Addition Using 8085: Ex - No: 16-Bit Date: Aim
Addition Using 8085: Ex - No: 16-Bit Date: Aim
AIM:
To learn to write an assembly language program for adding two sixteen bit numbers.
APPARATUS REQUIRED:
8085 Microprocessor kit,
Power supply
ALGORITHM:
Start the program.
Enter the 1st input in one memory location.
Enter another input in other memory location.
Add two inputs.
Store the result and carry in different memory locations.
Stop the program.
FLOWCHART:
START
Get the2ndnumber
Is
carry=1
STOP
PROGRAM
MANUAL CALCULATION:
DATA 1= 1C 15 H
DATA 2 =5A B7 H (+)
SUM = 76 CC H
ADDRESS DATA
Input
4200 15 H (LSB OF DATA 1)
4201 1C H (MSB OF DATA 1)
4202 B7 H (LSB OF DATA 2)
4203 5A H (MSB OF DATA 2)
Output
4204 CC H (LSB OF SUM)
4205 76 H (MSB OF SUM)
Result
Addition of two 16-bit numbers using 8085 is performed and the output is verified.