Книга: Introduction to Microprocessors and Microcontrollers
Complementary numbers
Complementary numbers
This has two significant advantages:
1 It allows the full number of bits to be used for a number so an 8-bit word can count from 0 to 111111112 or 255.
2 It is easy to implement with addition and subtraction using substantially the same circuitry.
So, how do we manage to use all eight bits for numbers yet still be able to designate a number positive or negative?
That’s clever. We will start by looking at positive numbers first because it is so easy. All positive numbers from 0 to 255 are the same as we get by simply converting denary to binary numbers. So that’s done.
Оглавление статьи/книги
Похожие страницы
- 5.2.3. Действия с объектами Numbers
- Maintaining Accurate Serial Numbers
- Numbers
- 1.6 Converting Binary Numbers into Decimal
- 1.7 Converting Decimal Numbers into Binary
- 1.8 Converting Binary Numbers into Hexadecimal
- 1.9 Converting Hexadecimal Numbers into Binary
- 1.10 Converting Hexadecimal Numbers into Decimal
- 1.11 Converting Decimal Numbers into Hexadecimal
- 1.12 Converting Octal Numbers into Decimal
- 1.13 Converting Decimal Numbers into Octal
- 1.14 Converting Octal Numbers into Binary