GATE Computer ScienceHardGATE CS (PYQ pattern)

An 8-bit CPU multiplies the two's-complement bytes 0xF6 and 0x0D as signed numbers into a 16-bit product. What is the product, and is the low byte alone the correct signed 8-bit result?

  1. A. 0x0C7E; no, the low byte reads +126
  2. B. 0xFF7E; no, the low byte reads +126
  3. C. 0xFF7E; yes, the product fits in 8 bits
  4. D. 0xFF82; no, the low byte reads −126

Correct answer: B. 0xFF7E; no, the low byte reads +126

0xF6 = −10, 0x0D = 13, product −130 = 0xFF7E in 16 bits. −130 is outside −128..127, so the low byte 0x7E (+126) is wrong. Unsigned multiplication gives 246 × 13 = 3198 = 0x0C7E; 0xFF82 is −126.

More Computer Organization and Architecture questions

Exams that ask this topic