Q. What is the corrective action done during an an arithmetic operation resulting in an invalid BCD code ?

A
0110 is added to the result
B
0100 is added to the result
C
0110 is subtracted from the result
D
0010 is subtracted from the result.
Solution:

Only 10 codes are valid in case of BCD. While addition , if the result becomes any of 6 invalid codes, we add 0110 ( decimal value – 6 ) to correct the result .

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!