KEMBAR78
BCD arithmetic and 16-bit data operations | PPTX
BCD ARITHMETIC AND 16-BIT DATA
OPERATIONS
DHANANJAYSINH JHALA
170410107027
TY CE-1, BATCH B
MICROPROCESSOR AND INTERFACING ALA
BCD ADDITION
The addition of two BCD numbers in 8085 may not represent an
appropriate BCD value.
This is because the microprocessor cannot recognize BCD
numbers.
In BCD addition, any number larger than 9 is invalid and we need
to adjust that by adding 6 in binary.
 A special instruction called decimal adjust accumulator(DAA)
performs the function of adjusting a BCD sum.
PACKED AND UNPACKED BCD
ADDITION OF UNSIGNED BCD NUMBERS
Problem statement: A set of 10 packed BCD numbers is stored in
the memory location starting at XX50H.
SUBTRACTION OF PACKED BCD NUMBERS
16-BIT DATA OPERATIONS
BCD arithmetic and 16-bit data operations
BCD arithmetic and 16-bit data operations
BCD arithmetic and 16-bit data operations
BCD arithmetic and 16-bit data operations
BCD arithmetic and 16-bit data operations

BCD arithmetic and 16-bit data operations

  • 1.
    BCD ARITHMETIC AND16-BIT DATA OPERATIONS DHANANJAYSINH JHALA 170410107027 TY CE-1, BATCH B MICROPROCESSOR AND INTERFACING ALA
  • 2.
    BCD ADDITION The additionof two BCD numbers in 8085 may not represent an appropriate BCD value. This is because the microprocessor cannot recognize BCD numbers. In BCD addition, any number larger than 9 is invalid and we need to adjust that by adding 6 in binary.  A special instruction called decimal adjust accumulator(DAA) performs the function of adjusting a BCD sum.
  • 4.
  • 5.
    ADDITION OF UNSIGNEDBCD NUMBERS Problem statement: A set of 10 packed BCD numbers is stored in the memory location starting at XX50H.
  • 9.
  • 10.