• Support PF! Buy your school textbooks, materials and every day products Here!

Two's complement

  • Thread starter naspek
  • Start date
  • #1
181
0

Homework Statement


Perform the following arithmetic operation using 8-bit
two's complement

a) 8710 - 2910


The Attempt at a Solution


i just want to know.. am i converting the number correctly?

89 = 0101 1001
-29 = 1110 0011
 

Answers and Replies

  • #2
CompuChip
Science Advisor
Homework Helper
4,302
47
Yep, you did that correctly.
 
  • #3
181
0
thanks.. =)
 
  • #4
33,501
5,190

Homework Statement


Perform the following arithmetic operation using 8-bit
two's complement

a) 8710 - 2910
One quibble: you wrote 87 above, but worked with 89 below.

The Attempt at a Solution


i just want to know.. am i converting the number correctly?

89 = 0101 1001
-29 = 1110 0011
 

Related Threads on Two's complement

  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
8
Views
1K
Replies
6
Views
8K
Replies
2
Views
1K
Replies
2
Views
510
Replies
2
Views
542
  • Last Post
Replies
1
Views
7K
  • Last Post
Replies
13
Views
2K
  • Last Post
Replies
2
Views
11K
Replies
0
Views
15K
Top