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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

74 APPLE II COMPUTER GRAPHICSFigure 8-5. Alien critter.[From The Artist by Warren Schwader, used with permission.]Whew! That seems like a lot of work just for a few dots!! As it happens,working up an entire figure is not much harder. However, your preliminaryplanning is extremely important when designing a figure in Hi-Resl<strong>et</strong>'sput tog<strong>et</strong>her an <strong>al</strong>ien critter as an example. Figure 8-5 shows a sample<strong>al</strong>ien <strong>al</strong>ready drawn on graph paper. For simplicity, it is only seven dotswide and eight rows high so that it will fit within a single box of thememory map.The fi rst step is to c<strong>al</strong>culate the v<strong>al</strong>ue of each byte composing the <strong>al</strong>ien.Figure 8-6 shows the dot patterns, the required bit patterns, and the correspondinghex and decim<strong>al</strong> v<strong>al</strong>ues.DOT BIT HEX DECPATTERN PATTERN VALUE VALUE-------------------------------------·---------XXX-- !il!il!ill ll!il!il $1C 28-XXXXX- !il!illl lll!il $3D 61X--X--X !ill!il!il l!il!ill $49 73X--X--X !ill!il!il l!il!ill $49 73-XXXXX- !il!illl lll!il $3D 61--XXX-- !il!il!ill ll!il!il $1C 28-X---X- !il!ill!il !il!ill!il $22 34X-----X 0100 0001 $41 65Figure 8-6. Alien translation.The extra zero has been placed to the left of each bit pattern to supplythe "missing" eighth bit. C<strong>al</strong>culating the v<strong>al</strong>ues was not difficult at <strong>al</strong>l.Now you need to c<strong>al</strong>culate the addresses.

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

Saved successfully!

Ooh no, something went wrong!