Byte Parts and It's Terminology
Byte Parts: Bit, Crumb, Nibble, Byte โ LSB & MSB
Every piece of digital dataโtext, images, soundโis built from bits (0 or 1).
Bits group into larger, human-friendly units with specific names: crumbs (2 bits), nibbles (4 bits), and bytes (8 bits).
Understanding these building blocksโand how LSB and MSB workโmakes binary, hex, and memory maps much easier.ย
๐น 1๏ธโฃ Core Definitions
- Bit: the smallest unit of information โ 0 or 1.
- Crumb: a group of 2 bits. (Yes, โcrumbโ is the official term used in your slides.)
- Nibble: a group of 4 bits (ยฝ byte).
- Byte: 8 bits. (1 byte = 2 nibbles = 4 crumbs.)
๐น 2๏ธโฃ Lower vs Upper Nibble
-
Lower Nibble: the rightmost 4 bits of a byte (
b3 b2 b1 b0). -
Upper Nibble: the leftmost 4 bits of a byte (
b7 b6 b5 b4).
These names matter because hex maps perfectly to nibbles: 1 byte โ 2 hex digits (upper nibble = first hex digit, lower nibble = second).ย
๐น 3๏ธโฃ LSB & MSB
-
LSB (Least Significant Bit): the rightmost bit of the byte (
b0). It carries the smallest weight (2โฐ). -
MSB (Most Significant Bit): the leftmost bit of the byte (
b7). It carries the largest weight (2โท). We call them โleast/most significantโ because they contribute the least/most to the numeric value of the binary number.ย
๐น 4๏ธโฃ Quick Examples
-
Byte:
0101 1100-
Upper nibble =
0101(hex 5) -
Lower nibble =
1100(hex C) -
LSB =
0(rightmost) -
MSB =
0(leftmost)
-
Upper nibble =
-
Byte:
1010 0111- Upper nibble =
1010(hex A) - Lower nibble =
0111(hex 7) - LSB =
1, MSB =1
- Upper nibble =
๐ Interconnection
- 2 bits = Crumb, 4 bits = Nibble, 8 bits = Byte โ hierarchical building blocks.
-
Upper nibble (left 4) + Lower nibble (right 4) = 1 byte โ aligns perfectly with two hex digits.
-
MSB (leftmost) carries the highest weight, LSB (rightmost) the lowest โ drives numeric value.
By mastering crumbs, nibbles, bytes, and LSB/MSB, you read binary/hex confidently and avoid off-by-nibble errors in real code! ๐ย
06 Programming Foundations - ByteParts.pdf

69 comments