Home DFS SB OD SDN

Notice: How To Tip The Webmaster.


You are at the section Bits 'N' Bytes

Words

Sixteen bits makes a word. So does four nibbles. Do does two bytes.

By combining the digits of 0 and 1, you can create 65,536 unique values ranging from 0000 0000 0000 0000 to 1111 1111 1111 1111. I'm putting spaces between the nibbles for easier reading,

Each bit in a word represents a power of 2 as you can see in this chart. Note that the "Bit Column" represents a digit position couting upwards from the right end of the byte towards the left.

Bit ColumnPower of 2Hex ValueDecimal Value
02⁰11
122
244
388
42⁴1016
52⁵2032
62⁶4064
72⁷80128
82⁸100256
92⁹200512
102¹⁰4001,024
112¹¹8002,048
122¹²10004,096
132¹³20008,192
142¹⁴400016,384
152¹⁵800032,768

To represent, for example, a number 257 you would need a word of 0000 0001 0000 0001, with the right-most digit on the second nubble being a 256 and the right-most digit on the fourth nibble being 1, so 256 + 1 = 257. In hexadecimal, it's 01 01.

Once again, below is the bit value table. This applies to nibbles, which are bits in groups of four. Combine four of the nibbles to make a word.

BitsDecimal ValueHexadecimal Value
000000
000111
001022
001133
010044
010155
011066
011177
100088
100199
101010A
101111B
110012C
110113D
111014E
111115F

Since bits are powers of 2, nibbles are basically powers of 16, and bytes are powers of 256.

The byte on the left represents 256¹, or 256, and the byte on the right represents 256⁰, or 1. Note that the "Byte Column" represents a digit position couting upwards from the right end of the word towards the left.

Byte ColumnPower of 256Hex ValueDecimal Value
0256⁰11
1256¹100256

Here is an excerpt of the byte value table. Each byte is givin The actual table runs for 65,536 values.

Bytes in DecimalBytes in HexadecimalDecimal Value
0 000 000
0 1600 1016
0 6400 4064
0 25500 FF255
1 001 00256
4 004 001024
16 010 004096
64 040 0016,384
128 070 0032,768
255 255FF FF65,535

32 bits form a Double Word or D-Word

Menu:
Bits 'N' Bytes Main Page Bits and Nibbles Bytes Words Gozintas Character Set: SIXBIT Character Set: PASCII Character Set: ASCII Character Set: IBM Code Page 437 Character Set: IBM Code Page 850 Character Set: OEM Code Character Set: ISO 8859-Part 1 Character Set: ISO 8859-Part 2 Character Set: ISO 8859-Part 3 Character Set: ISO 8859-Part 4 Character Set: ISO 8859-Part 9 Character Set: ISO 8859-Part 10 Character Set: ISO 8859-Part 13 Character Set: ISO 8859-Part 14 Character Set: ISO 8859-Part 15 Character Set: ISO 8859-Part 16 Character Set: Windows 1252 Character Set: Windows 1250 Character Set: ANSI Character Set: Unicode Character Set Chronolgy
Related:
Silicon Cajon Home Page DavesFunStuff
Market Zone:
Dave's Fun Stuff
TV Zone:
Find your favorite TV shows with "Let's Watch TV!"
Notable:
Dave's Fun Stuff SDN Media News and More
Footer:
Dave's Fun Stuff Super Birthdays Contact Webmaster



© 1995-2023. davesfunstuff.com. All Rights Reserved. Reproduction of any part of this website without expressed written consent is prohibited.

Help Support Our Ad-Free Web Section

Just use our PayPal link to pay.

Please Donate Cash to help pay for webhosting, domain payments, expenses and labor in keeping this section going. Thank you.

$2, $5, $10, $20, $50, $75, $100, $ANY

Notice Of Disclosure (updated June 2023):

"David Tanny is the owner and operator of the domains davesfunstuff.com and davidtanny.com"

Website Cookie Policy