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.

92 APPLE II COMPUTER GRAPHICSHEX HEX BIT DOT....h.PP3§§ ___ Y8------8IIfiN ______ EIIBN __2!il!il!il !ill !il!il!il!il !il!il!ill24!il!il 81 l!il!il!il !il!il!ill28!il!il !il2 !il!il!il!il !il!ill!il2C!il!il 82 l!il!il!il !il!ill!ilJ!il!il!il !il4 !il!il!il!il !ill!il!ilJ4!il!il 84 l!il!il!il !ill!il!ilJ 8!il!il !il8 !il!il!il!il l!il!il!ilJ C!il!il 88 l!il!il!il l!il!il!il2!iJ8!il l!il !il!il!ill !il!il!il!il248!il 9!il l!il!ill !il!il!il!il288!iJ 2!il !il!ill!il !il!il!il!il2C8!il A!il . l!ill!il !il!il!il!ilJ !il8!il 4!il !ill!il!il !il!il!il!ilJ48!il C!iJ ll!il!il !il!il!il!ilFigure 9-3.X------X-------X------X-------X------X-------X------X-------X------X-------X------X-------X------XPlace the v<strong>al</strong>ues in memory by typing2!il!iJ!iJ : !ill24!iJ!il : 8128!iJ!iJ : !il2J48!iJ : C!ilLooking at the dot patterns, the expected result is seven pairs of dots, withone dot of the pair directly above the other.However, when you enter the v<strong>al</strong>ues, what you g<strong>et</strong> is a diagon<strong>al</strong> line;the pairs of dots are not stacked as we expected, even though the samedot was turned on in each byte of the pair. This phenomenon relies on thefact that the fi rst byte in each pair was in color group one, and the secondbyte was from group two, as d<strong>et</strong>ermi ned by the color bit on the left side ofthe byte.One byte of screen memory actu<strong>al</strong>ly controls fou rteen dots on thescreen, and the two s<strong>et</strong>s of seven dots are interleaved as shown in Figure9-4.DOT # 1 2 3 4 5 6 7l•l•l•l•l•l•l•l•l •l•l•l•l•l • I• GROUP 1i GROUP 2Figure 9-4. Double dot picture.

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

Saved successfully!

Ooh no, something went wrong!