What is the 2s complement of 0x3D9E?

  • Thread starter Tjvelcro
  • Start date
1 reply · 3K views · last reply
Tjvelcro
Messages
16
Reaction score
0

Homework Statement



Which is 2s complement of 0x3D9E

a) BD9F
b) BDA0
c) C262
d) 3D9E

Homework Equations



I believe I subract each digit from F

The Attempt at a Solution



FFFF
-3D9E
______
C261

Someone in my class said the answer was c) but do I still add one? I remember the saying "reverse the bits and and one" does that still apply?

Tjvelcro
 
You are computing 16's complement, not twos complement. And yes, you add 1 at the end to get the answer.