SarkariResultOutPYQ
MediumBMS2024✓ Editorially verified
PDF

Carry and Auxiliary Carry Flags

For the given code MOV A, #0C2H ADD A, #3DH The value of CY and AC flag bits is
⚑ Report issue

Found a wrong answer, translation, image or source problem? Send it to editorial review.

Answer & Explanation
Correct AnswerA. CY = 0, AC = 0

Quick Explanation

C2H + 3DH = FFH. There is no carry out of bit 7, so CY=0. In the lower nibble, 2H+DH=FH, which also produces no carry from bit 3 to bit 4, so AC=0. The flag pair therefore corresponds to option A.

Formula / Key Relation

C2H+3DH=FFH; CY=0; AC=0
Carry and Auxiliary Carry Flags explanatory diagram

Detailed Explanation

Correct Answer

A — CY = 0, AC = 0

Concept and Reasoning

C2H + 3DH = FFH. There is no carry out of bit 7, so CY=0. In the lower nibble, 2H+DH=FH, which also produces no carry from bit 3 to bit 4, so AC=0. The flag pair therefore corresponds to option A.

Calculation / Key Relation

C2H+3DH=FFH

CY=0

AC=0

Exam Takeaway

CY checks carry out of bit 7; AC checks carry from bit 3 to bit 4.

Common Mistake

Do not set AC merely because the lower-nibble result is F; AC requires a carry beyond F.

Quick Trick

CY checks carry out of bit 7; AC checks carry from bit 3 to bit 4.

Common Mistake

Do not set AC merely because the lower-nibble result is F; AC requires a carry beyond F.

Exam Tip

CY checks carry out of bit 7; AC checks carry from bit 3 to bit 4.

Continue learningRelated PYQs & Exam ContextExam path, knowledge path and deeper practice links.
1Previous Exam Appearances
6All Related Questions

Previous Exam Appearances

QP-112-202425.pdf2024Q. 150

More Questions From This Concept

PYQ DiscoveryBrowse all verified PYQs
Open Index
Ready for exam mode?Practice this knowledge in Premium Mock Tests
Open Mock Tests →