12.07.2015 Views

williams-et-al-1983-apple-ii-computer-graphics

williams-et-al-1983-apple-ii-computer-graphics

williams-et-al-1983-apple-ii-computer-graphics

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 2-COMPUTER PHYSIOLOGY 9Taking a Sm<strong>al</strong>ler ByteThe next problem is to represent each of the 256 diffe rent v<strong>al</strong>ues for onebyte using only the sixteen hex digits-the standard (/) through 9, plus thel<strong>et</strong>ters A, B, C, D, E, and F; where A stands fo r ten, B for eleven, and soforth through F which stands for fifteen.One byte is represented by two hex digits; each digit represents four ofthe eight bits in that byte. As modern <strong>computer</strong> whimsy would dictate,each of the two h<strong>al</strong>f-bytes is c<strong>al</strong>led a nibble (som<strong>et</strong>imes nybble) . A binarynibble corresponds to a hex digit as shown in Figure 2-2.Suppose that you were looking at a byte with <strong>al</strong>l eight bits turned on.Separated into the two nibbles, it would look like 1111 1111 and wouldcorrespond to hexadecim<strong>al</strong> FF, since each nibble (1 111) corresponds to F.The binary byte 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!