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.

36 APPLE II COMPUTER GRAPHICSFor I/e 's OnlyThe APPLE lie uses three addition<strong>al</strong> soft switches to help control the display.These switches are referred to by the names 80COL, 80STO RE, andALTCHARSET.80COL d<strong>et</strong>ermi nes wh<strong>et</strong>her the text is displayed with the norm<strong>al</strong> 40columns per line or with 80 columns per line. (You must have an 80column card inst<strong>al</strong>led to display 80 columns per line!) To s<strong>et</strong> the 40column mode, POKE a v<strong>al</strong>ue (any v<strong>al</strong>ue) into 491 64 ($C00C). To enabl<strong>et</strong>he 80 column mode, POKE location 49165 ($C00D).80STORE d<strong>et</strong>ermines wh<strong>et</strong>her addresses referencing memory locationswithin the first page of text (1024 to 2047) actu<strong>al</strong>ly refer to memory on themain memory boara, or memory on the auxil iary 80 column board. Doyou have the feeling that you missed som<strong>et</strong>hing? L<strong>et</strong>'s back up a bit.Allowing an 80 column display doubles the number of characters whichare displayed on one page of text. This requires twice the amount ofmemory. The Apple lie designers had to fi nd an addition<strong>al</strong> 1024 bytes ofmemory somewhere, without disturbing the existing memory ranges usedin the APPLE II +. The solution was to "clone" Page 1 of Text memory andput the duplicate memor/ on the 80 column board. But now there are twopost office boxes with the address 1024, two boxes addressed 1025, and soon through 2047. When your c " omputer "postman" is told to deliver av<strong>al</strong>ue to one of these addresses (for example, address 1777), he or shemust know which of the two boxes having that address is to receive thev<strong>al</strong>ue. The 80STORE switch acts as a mini ZIP code; it specifies which ofthe two banks of memory, main or auxiliary, is intended . POKEing anyv<strong>al</strong>ue into 49152 ($C000) will route <strong>al</strong>l addresses to memory on the mainboard, and POKEing into 49153 ($C©©1) routes addresses from 1 ©24through 2©47 to the memory on the 8© column board .ALTCHARSET switches the character generator (the thing that takes thenumeric code for an A and makes it appear as A on the on the screen)b<strong>et</strong>ween the standard character s<strong>et</strong> (American characters) and some onboard,<strong>al</strong>ternate character s<strong>et</strong>. For, though it may come as a surprise to8©COL8©STOREALTCHARSET$C!iJ!iJC ( 49164)$C!iJ!iJD ( 49165)$C!il!il!il ( 49152)$C!il!ill ( 4915 3)$C!iJ!iJE ( 49166)$C!iJ!iJF ( 49167)4© Columns8© ColumnsStore in main memoryStore in auxiliary memoryStandard character s<strong>et</strong>Alternate character s<strong>et</strong>Figure 5-4. Summary of Apple lie so switches.

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

Saved successfully!

Ooh no, something went wrong!