Exam-style question
Try this first
Perform 12 - 19 using 6-bit two’s complement. Show the binary calculation and explain how the final result is interpreted.
Answer and explanation
Concise answer
12 is 001100 and 19 is 010011.
Why this is correct
Subtraction is performed by adding the two’s complement of the number being subtracted. The result 111001 is a valid 6-bit representation of -7 because it has a leading 1 and its magnitude is found by inverting the bits and adding 1.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
