The Numeric Systems: 
As mentioned earlier, a computer (running running on an Intel microprocessor) uses the binary system to represent its data using combinations of 0 or 1 values. Each value is called a bit, which stands for binary digit. We will illustrate this using a small cup to represent such a value. This cup can have only one of two states. When the cup is empty, we will give it a value of 0. When the cup is full, we give it a value of 1:
The bit (binary digit) is the most fundamental representation of the computer's counting system.
The binary system provides the combination of 4 bits as the second value representation of the system:
The first bit, on the right side of the group, is called the Low Order bit or LO bit. The last bit, on the left side of the
group, is called the High Order bit or HI bit. The other bits are called by their positions: bit 1 and bit 2. This produces the following binary combinations: 0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1110, 1111 = 16 combinations. When using the decimal system, these combinations can be resented as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, and 15. This is a system that the computer uses to count bits internally. Sometimes, you will encounter a number less than four bits, such as 10 or 01 or 101. The technique used to complete and fill out the group consists of displaying 0 for each nonrepresented bit. This makes it easier to recognize. The binary number 10 will be the same as 0010. The number 01 is the same as 0001. The number 101 is the same as 0101. This technique is valuable and allows you to always identify a binary number as a divisor of 4. When all bits in the group are 0, you have the lowest value, which is 0000. Any of the other combinations has at least one 0 bit, except for the last one. When all bits are 1, this provides the highest value possible for a group of four bits. The lowest value, also considered the minimum value, can be represented in the decimal system as 0. The highest value, also considered the maximum, can be expressed in decimal value as 2^{4} (2 represents the fact that there are two possible states: 0 and 1; 4 represents the fact that there are four possible combinations), which is 16. As you can see, the binary system can be difficult to read when a value combines various bit representations. To make it a little easier, the computer recognizes the hexadecimal representation of bits. Following the box combinations above, we can represent each 4bit of the sixteen combinations using the decimal, hexadecimal, and binary systems as follows:
Table of numeric conversions When looking at a binary value represented by 4 bits, you can get its decimal or hexadecimal values by referring to the table above. For this reason, you may have to memorize it. A group of four consecutive bits, has a minimum and maximum values on each system:
A byte combines 8 consecutive bits. Once again, the bits are counted from left to right starting at 0. The most right bit is called the Low Order bit or LO bit. The most left bit is called the High Order bit or HI bit. The other bits are
referred to following their positions: Using the binary system, you can represent the byte using a combination of 0s and 1s. When all bits have a value of 0, the byte is represented as 00000000 or simply 0. On the other hand, when all bits have a value of 1, the byte is represented as 11111111. When the number grows very large, it becomes difficult to read. To make it easy to read, you can represent bits in groups of four. Instead of writing 00000000, you can write 0000 0000. If you get the patience to create combinations of bits using the boxes as we did for the nibble, you would find out that there are 256 possible combinations. Another way to find it out is by using the base 2 technique: 2^{7} + 2^{6} + 2^{5} + 2^{4} + 2^{3} + 2^{2} + 2^{1} + 2^{0 } = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 256 Therefore, the maximum decimal value you can store in a byte is 256. When a byte is completely represented with 0s, it provides the minimum value it can hold; this is 0000 0000, which is also 0. When all bits have a value of 1, which is 1111 1111, a byte holds its maximum value that we calculated as 255. As done with the group of four bits, you can get the following table:
A word is a group of 16 consecutive bits. Again, the bits are counted from left to right starting at 0: Considered as a group of 16bit, the most right bit of a word is called the Low Order bit or LO bit. The most left bit is called the High Order bit or HI bit. The other bits are referred to using their positions.: bit 1, bit 2, bit 10, etc. Considering that a word is made of two bytes, the group of the right 8 bits is called the Low Order byte. The other group is called the High Order byte.
The most fundamental representation of a word in binary format is 0000000000000000. To make it easier to read, you can group bits in 4, like this 0000 0000 0000 0000. Therefore, the minimum binary value represented by a word is 0000 0000 0000 0000. The maximum binary value represented by a word is 1111 1111 1111 1111. The minimum decimal value of a word is 0. To find out the maximum decimal value of a word, you can use the base 2 formula, filling out each bit (with 1): 
1*2^{15}+ 1*2^{14 }+1*2^{13} + 1*2^{12} + 1*2^{11} + 1*2^{10} + 1*2^{9} + 1*2^{8} + 1*2^{7} + 1*2^{6} + 1*2^{5} + 1*2^{4} + 1*2^{3} + 1*2^{2} + 1*2^{1} + 2^{0}
= 32768 + 16384 + 8192 + 4096 + 2048 + 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
= 65535
The minimum hexadecimal value you can store in a word is 0x0000000000000000. This is also represented as 0x00000000, or 0x0000, or 0x0. All these numbers produce the same value. To find out the maximum hexadecimal number you can represent with a word, replace every group of 4bits with an f or F: 

Counting on base and extending the table we used earlier, we would get: 






= 65535  
A DoubleWord 
A doubleword is a group of two consecutive Words. This means a doubleword combines 2 words, or 4 bytes, or 32 bits. The bits, counted from left to right start at 0 and end at 31: 
The most right bit, bit 0, is called the Low Order bit, or LO bit. The most left bit, bit 31, is called the High Order bit, or HI bit. The other bits are called using their positions. The group of the first 8 bits (from bit 0 to bit 7), which is the right byte, is called the Low Order Byte, or LO Byte. The group of the last 8 bits (from bit 24 to bit 31), which is the left byte, is called the High Order Byte, or HI Byte. The other bytes are called by their positions. The group of the right 16 bits, or the right Word, is called the Low Order Word, or LO Word. The group of the left 16 bits, or the left Word, is called the High Order Word, or HI Word. 
The minimum decimal value of a doubleword is 0. To find out the maximum decimal value of a word, you can use the base 2 formula giving a 1 value to each bit: 
1*2^{31} + 1*2^{30} + 1*2^{29} + 1*2^{28} + 1*2^{27} + 1*2^{26} + 1*2^{25} + 1*2^{24} + 1*2^{23} + 1*2^{22} + 1*2^{21} + 1*2^{20}
+ 1*2^{19} + 1*2^{18} + 1*2^{17} + 1*2^{16} + 1*2^{15} + 1*2^{14} + 1*2^{13} + 1*2^{12} + 1*2^{11} + 1*2^{10} + 1*2^{9} + 1*2^{8} + 1*2^{7}
+ 1*2^{6} + 1*2^{5} + 1*2^{4} + 1*2^{3} + 1*2^{2} + 1*2^{1} + 2^{0}
= 2,147,483,648 + 1,073,741,824 + 536,870,912 + 268,435,456 + 134,217,728 + 67,108,864 + 33,554,432
+ 16,777,216 + 8,388,608 + 4,194,304 + 2,097,152 + 1,048,576 + 524,288 + 262,144 + 131,072 + 65,536
+ 32,768 + 16,384 + 8,192 + 4,096 + 2,048 + 1,024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
= 4,294,967,295
The minimum hexadecimal value you can store in a doubleword is 0x0. To find out the maximum hexadecimal number you can represent with a doubleword, replace every group of 4bits with an f or F: 


Previous  Copyright © 20032008 FunctionX, Inc.  Next 
