Cover of Code by Charles Petzold - Business and Economics Book

From "Code"

Author: Charles Petzold
Publisher: Microsoft Press
Year: 2000
Category: Computers

🎧 Free Preview Complete

You've listened to your free 10-minute preview.
Sign up free to continue listening to the full summary.

🎧 Listen to Summary

Free 10-min Preview
0:00
Speed:
10:00 free remaining
Chapter 15: Bytes and Hex
Key Insight 1 from this chapter

Bytes

Key Insight

Data paths within computing circuits, such as those in improved adding machines, are commonly 8 bits wide. This 8-bit grouping is known as a byte, a term that originated at IBM around 1956. The word 'byte' was intentionally derived from 'bite' and spelled with a 'y' to prevent confusion with 'bit'. Initially, a byte referred simply to the number of bits in a particular data path, but by the mid-1960s, coinciding with the development of IBM's System/360, it became standardized as a specific group of 8 bits.

As an 8-bit quantity, a byte is capable of representing 2^8, or 256, distinct values, ranging from binary 00000000 through 11111111. These values can be interpreted as positive integers from 0 through 255. Alternatively, when using two's complement for negative number representation, an 8-bit byte can represent both positive and negative integers within the range of -128 through 127. This numerical versatility underscores the byte's fundamental role in digital data representation.

The 8-bit byte is an exceptionally useful unit for several practical applications. It facilitates the storage of numbers in formats like BCD and is highly suitable for representing text, as most written languages globally (with the exception of ideographs used in Chinese, Japanese, and Korean) utilize fewer than 256 characters. Furthermore, a byte is ideal for representing gray shades in black-and-white photographs, as the human eye can differentiate approximately 256 shades of gray. For data requiring more capacity, such as the aforementioned ideographs, two bytes (16 bits) can represent 2^16, or 65536, different things. Half a byte, or 4 bits, is sometimes referred to as a nibble, although this term is less frequently used.

📚 Continue Your Learning Journey — No Payment Required

Access the complete Code summary with audio narration, key takeaways, and actionable insights from Charles Petzold.