Twos Complement
Twos Complement
Twos Complement
Learning objectives
In this lesson you will learn to:
For more information about this topic and additional student activities
see Topic 2 of the student book.
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P7: Two’s complement (2)
Two’s complement
We discussed two’s complement in a previous lesson.
What do you remember?
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P7: Two’s complement (2)
Recap
In two’s complement, the most significant bit (MSB) is worth -128.
–128 64 32 16 8 4 2 1
What is the pattern for the highest value that can be represented in 8
bits?
What is the pattern for the lowest value that can be represented in 8-
bits?
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P7: Two’s complement (2)
–128 64 32 16 8 4 2 1
0 1 1 1 1 1 1 1
–128 64 32 16 8 4 2 1
1 0 0 0 0 0 0 0
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P7: Two’s complement (2)
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P7: Two’s complement (2)
0 0 0 0 0 1 1 1 = +7
1 1 1 1 1 0 1 1 + = –5
0 0 0 0 0 0 1 0 = +2
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P7: Two’s complement (2)
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.