Digital Electronics and Binary Representation: difficulty 4

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

An eight-bit adder is given the operands 0x5A and 0x3C and stores the eight-bit result in a register. The surrounding firmware reads that register in two places: once as an unsigned integer and once as an eight-bit two's-complement signed integer.

  1. Give the stored eight-bit result in binary and in hexadecimal.
  2. State the value the unsigned reader sees, and whether an unsigned overflow occurred.
  3. State the value the signed reader sees, and whether a signed overflow occurred. Justify the overflow verdict using the carries around the most significant bit rather than by inspecting the answer.
  4. What is the narrowest two's-complement register width that would have held the arithmetically correct sum?

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Digital Electronics and Binary Representation Questions: