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.

8 APPLE II COMPUTER GRAPHICSzeros into som<strong>et</strong>hing more easily communicated to the human brain, somost modern <strong>computer</strong>s like to speak to people using hex.Hexadecim<strong>al</strong>, which uses sixteen digits, is used to represent the 256different combinations available with an eight-bit byte. It is conceivable torepresent the v<strong>al</strong>ue of a byte using a single base 256 digit; however, mostpeople would fi nd it very difficult to remember 256 different digits. There,::fore, in the interest of simplicity, instead of one base 256 digit representingthe v<strong>al</strong>ue of a byte, two hex digits are used. Why not use decim<strong>al</strong> which is ,..simpler y<strong>et</strong>? Do not forg<strong>et</strong> that we are de<strong>al</strong>ing with a group of bits. The tendecim<strong>al</strong> digits are too many to represent three bits and too few for fourbits, as three bits make for eight combinations, and four bits make forsixteen. The fact that sixteen combinations are available to four bits, andthat hexadecim<strong>al</strong> uses exactly sixteen digits, is very important. This is thereason that many programmers count like they have sixteen fi ngers!BIT BIT BIT BIT1 2 3 4HEXADECIMAL BINARYDECIMALOFF OFF OFF OFFOFF OFF OFF ON0 0 0 o I o1 0 0 0 101OFF OFF ONOFF2 0 0 1 02OFF OFF ONON3 0 0 1 13OFF ONOFF OFF4 0 1 0 04OFF ONOFF ON5 0 1 0 15OFF ON ON OFFOFF ON ON ON6 0 1 1 07 0 1 1 167ONOFF OFF OFF8I 1 0 0 08ONONOFF OFF ONOFF ON OFF9 1 0 0 1A 1 0 1 o I910ONOFF ONONB 1 0 1 111ONONOFF OFFc 1 1 0 012ONONOFF ONDI 1 1 0 113ONON ON OFFEI 1 1 1 014ONON ON ONF! 1 1 1 I 115Figure 2-2. A binary/hex chart.

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

Saved successfully!

Ooh no, something went wrong!