GATE Computer ScienceHardGATE CS (PYQ pattern)

Two packed-BCD bytes 0x47 and 0x38 are added with a binary adder. Which correction is needed and what is the correct BCD result?

  1. A. Binary sum 0x7F; no correction needed → 0x7F
  2. B. Binary sum 0x85; subtract 6 → 0x7F
  3. C. Binary sum 0x7F; add 6 to both digits → 0xE5
  4. D. Binary sum 0x7F; add 6 to the low digit → 0x85

Correct answer: D. Binary sum 0x7F; add 6 to the low digit → 0x85

47 + 38 = 85. The binary sum is 0x7F; the low digit F > 9 so add 6 (0x06) to get 0x85. The high digit 7 is valid, so it is left alone.

More Computer Organization and Architecture questions

Exams that ask this topic