Daa Instruction In 8085 Microprocessor Apr 2026

An example showing how to add two large decimal numbers.

Operationally, DAA follows a two-step logic based on the status of the processor's flags and the values of the two 4-bit nibbles in the accumulator. First, it examines the lower nibble (bits D0-D3). If this value is greater than 9, or if the Auxiliary Carry (AC) flag is set to 1, the instruction adds 6 (06H) to the accumulator. Second, it examines the upper nibble (bits D4-D7). If this value is now greater than 9, or if the Carry (CY) flag is set to 1, the instruction adds 96 (60H) to the accumulator. These additions of 6 or 60 force a carry-over into the next higher digit, effectively converting base-16 overflows into base-10 carries. Daa Instruction In 8085 Microprocessor

The between DAA in the 8085 versus the 8086 or Z80. An example showing how to add two large decimal numbers