Byte

From C64-Wiki

Revision as of 22:09, 9 December 2011 by Agmorion (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A byte has got eight bits and is an unit of the information or storage capacity. This eight bits can be switched in 8 to the power of 2 wise (also 256 sorts of states). In a few computer systems, software or coding languages exists another or unexactly definition of bytes. Another fragmentation of Bytes are nibbles (this are 4 bits) or 2 half-byte.

The normal character set of a computer system consists of ASCII or ANSI, which has got 256 different chars. A byte can also content a char ("A" is the byte "01000001" or the decimal value 65).

[edit] Low- / High-Byte

8-bit computer systems like the C64/C128 have 16-bit address widths, so they can address 64KB of memory. So it takes two 8-bit bytes to store a complete, 16-bit memory address. The standard order for memory address bytes is low-order byte first, followed by the high-order byte. For instance, the absolute memory address $c000 (49152 decimal) is stored in two, consecutive RAM bytes as $00, followed by $C0.

As a further example, the assembly instruction LDA $C000, is stored as three bytes. The first is the instruction itself with the absolute addressing mode: $AD, followed by $00 and $C0. The processor fetches the last two bytes as the address $C000.

[edit] Bytes units

  • 1 Kilobyte (KB) are 1024 bytes
  • 1 Megabyte (MB) are 1024 Kilobytes are 1024*1024 bytes
  • 1 Gigabyte (GB) are 1024 Megabytes
  • 1 Terabyte (TB) are 1024 Gigabytes
  • 1 Petabyte (PB) are 1024 Terabytes

By more than 1024 bytes it is better to use the international prefixs. For disks the storage capacity is used in KBytes, whereas for CDs and harddisks are preferred in MBytes and higher storage media like DVD and actual harddisks are produced in GBytes.


[edit] Links

WP-W11.png Wikipedia: Byte
Personal tools
Help and Feedback
In other languages