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. What is the value in AL and CF after the following instruction in 8086 is executed?
    MOV AL, 8EH
    MOV CL, 02H
    SAR AL, CL
  2. What is the content in R1, after the following instructions are executed?
    CLR C
    MOV A,#4CH
    SUBB A,#6EH
    JNC NEXT
    CPL A
    INC A
    NEXT: MOV R1, A
  3. When TMOD is 10 H, the timer will operate as ____________.
  4. The Assembler directive in 8086 which is used to tell the assembler that the names or labels following the directive are in some other assembly module is, ____________.
  5. The magnetic vector potential of an electromagnetic system is given by $  \vec{A}=(y \cos ax)  \vec{a_x} + (y+e^x)   \vec{a_z}$. The magnitude of the magnetic flux density at the origin is

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