Answer the following binary 2s complement questions.
All answers must be 8 bits long. You get 1 mark for the 1's complement and 1 mark for the 2's complement.
1s complement
2s complement
Example 11010
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | |
|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | number |
| 1 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1's complement |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | +1 |
| 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 2's complement |