All Exams Test series for 1 year @ ₹349 only
Question

Assertion (A) : For DAA instruction in 8086 $\mu$P, if four LSBs of register AL are greater than 9 or AC = 1 then 6 is added to the four LSBs of register AL.
Reason (R) : Because AL contains binary sum which needs to be converted into BCD sum.

The correct answer is
Both (A) and (R) are true and (R) is the correct explanation of (A).

8086 DAA Instruction: Assertion and Reason Explained

This solution analyzes the assertion and reason provided for the DAA (Decimal Adjust Accumulator) instruction in the 8086 microprocessor.

DAA Instruction Assertion Analysis

The assertion (A) states: "For DAA instruction in 8086 $\mu$P, if four LSBs of register AL are greater than 9 or AC = 1 then 6 is added to the four LSBs of register AL."

  • Condition 1 Check: If the lower 4 bits (nibble) of AL represent a value greater than 9 (i.e., $A_{16}$ to $F_{16}$), it's not a valid BCD digit.
  • Condition 2 Check: If the Auxiliary Carry (AC) flag is set (AC = 1), it indicates a carry occurred from the lower nibble to the upper nibble during the preceding binary addition, signifying the need for BCD adjustment.
  • Action Check: When either condition is met, the value 6 (which is $0110_2$) is added to the lower nibble of AL. This correction adjusts the binary sum to its correct BCD representation. For example, if AL holds $1100_2$ (binary 12) and AC=1 or the nibble is > 9, adding 6 ($0110_2$) results in $10010_2$. The lower nibble becomes $0010_2$ (2) and a carry is generated, correctly representing BCD 12.

Therefore, Assertion (A) is true.

DAA Instruction Reason Analysis

The reason (R) states: "Because AL contains binary sum which needs to be converted into BCD sum."

  • The DAA instruction is specifically designed to follow binary addition operations that are intended to produce BCD results.
  • After such an addition, the AL register holds a binary value that might not be a valid BCD digit or representation.
  • The purpose of DAA is to correct this binary sum into a proper BCD format.

Therefore, Reason (R) is true.

Relationship Between Assertion and Reason

The conditions mentioned in the assertion (lower nibble > 9 or AC=1) are the specific triggers that necessitate the conversion from a binary sum to a BCD sum, as stated in the reason. The action of adding 6 is the mechanism by which this conversion occurs.

Thus, the reason (R) correctly explains why the condition in assertion (A) requires the specific adjustment.

Both statements are true, and (R) provides the correct explanation for (A).

Was this answer helpful?

Important Questions from Microprocessors

  1. Register which is used to store values of arithmetic and logical operations is termed:

  2. How many bytes of bit addressable memory is present in 8051 based microcontrollers?

  3. A single instruction to clear the lower four bits of the accumulator in 8085 assembly language is-

  4. In Microprocessor 8085 Address/Data buffer is a/an _______ buffer.

  5. Microprocessor 8085 operates on a clock cycle with ______ duty cycle.

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App