Professional Documents
Culture Documents
Ex - No: Multi-Byte Addition in BCD Mode Date: Aim
Ex - No: Multi-Byte Addition in BCD Mode Date: Aim
Ex - No: Multi-Byte Addition in BCD Mode Date: Aim
AIM:
To learn to write an assembly language program for adding two 24 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= 50 A4 H 29
DATA 2 =28 37 H FB (+)
SUM = 78 DC H 24
ADDRESS DATA
Input
4150 03
4151 29
4152 A4
4153 50
4160 FB
4161 37
4162 28
Output
4151 24
4152 DCH
4153 78
Result
Addition of two 24-bit numbers using 8085 is performed and the output is verified.