Professional Documents
Culture Documents
BCD numbers.
B.Sc.IT-SEMESTER 2
PROJECT REPORT
BY
APARNA DUBEY (22162)
SHIVAM RAJBHAR (22164)
SHIVNATH BALAWAT (22161)
YASH JAISWAL (22163)
SHIVNATH KUSHWAHA (22165)
INDEX
Sr Topics Page
No. no.
1 AIM OF THE PROJECT 4
2 Flow Diagram 6
3 8085 PROGRAMS 7
3 CLASSIFICATION Of 12
INSTRUCTION IN A TABLE
4 SUBROUTINES 13
5 CONCLUSION 14
AIM:-
Write a Assembly Program with Microprocessor (8085) To
set of ten packed BCD numbers and stored in the memory
location starting from 8040H to 8049H.
Discussion
The numbers are present at 8040 onwards. As the B will store the
carry, we have to clear the B first. In the first phase we have to take
the number from memory, then add them as BCD numbers, and store
them accordingly. In the next phase the Unpacking task will be
completed. In that part we are taking the 16-bit BCD number then
break it into 4 digits. Then store them into given location.
Address Data
… …
8040 12
8041 23
8042 42
8043 55
8044 10
8045 99
8046 35
8047 45
8048 76
8049 81
… …
Input:-
Flow Diagram
PROGRAM :-
8001 40
8002 80
8004 0A
8006 47 MOV B, A
8008 23
8009 80
800C C2 JNZNEXTBCD
800D 07
800E 08
8010 60
8011 80
8015 61
8016 80
8019 62
801A 80
801C 2E
801D 80
8020 2E
8021 80
8029 01
802A 27 DAA
802B 47 MOV B, A
8030 0F
8035 F0
8037 0F RRC
8038 0F RRC
8039 0F RRC
Address Data
… …
8060 78
8061 04
8062 08
8063 07
8064 04
8065 00
… …
Classification:-
Sr.no Instruction Types
9 HLT Halt
CONCLUSION:-
The above program taught us how to write an assembly
language code to find the ten packed BCD numbers It helped
us to learn more about different types of instructions that we
can use in our program that are present in 8085 and also how
to use a subroutine in assembly language program to perform
a specific task.