BCD addition
1. Add each digit of A and B using binary addition
2. if sum of two digits is more than 9 then result
is a Invalid BCD and add 01102 (610) to the
result, Otherwise result is valid BCD.
3. If carry then add it to the next bits
Add 156 and 548 using BCD addition
BCD code for 156 : 0001 0101 0110
BCD code for 548 : 0101 0100 1000
------------------------------------------------------
Addition : 0110 1001 1110
1. Add each digit of A If Invalid BCD then add 6 : Invali 0110
and B using binary d
-------------------------------------------------------
addition Addition : 0110 1001 10100
2. if sum of two digits Remaining bits except carry : 0110 1001 0100
is more than 9 then Carry : 1
result is Invalid BCD -------------------------------------------------------
and add 6 to the Addition : 0110 1010 0100
result, Otherwise If Invalid BCD then add 6 : Invali 0110
result is valid BCD. d
-------------------------------------------------------
Addition : 0110 10000 0100
3. If carry then add it Remaining bits except carry : 0110 0000 0100
to the next bits Carry : 1
-------------------------------------------------------
Addition : 0111 0000 0100
-------------------------------------------------------
BCD value : 7 0 4
BCD 156 + BCD 548 = BCD 704