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.

34 APPLE II COMPUTER GRAPHICS• Switch 4 selects b<strong>et</strong>ween the Low"Res and Hi-Res modes. Switch 4 hasno visible effect unless switc h 1 is s<strong>et</strong> to display <strong>graphics</strong>.The APPLE lie has sever<strong>al</strong> addition<strong>al</strong> display-oriented soft switches.Those switches are discussed later in this chapter under the heading "Forlle's Only."Toggling So SwitchesDismembering your <strong>computer</strong> to look fo r these switches will not help youlocate them; remember, they are not a physic<strong>al</strong> switch, but only exist inthe system software. So how do you flip a switch that does not exist? Whenthe <strong>computer</strong> is turned on, the operating system automatic<strong>al</strong>ly togglesswitch one and switch three to display the primary page of text, but fromthere it is up to you.Each switch may be fli pped in the desired direction by referring to theassociated address. To s<strong>et</strong> switch 1 from BASIC to display <strong>graphics</strong>, youcould PEEK at the v<strong>al</strong>ue which is in location 49232, or POKE a new v<strong>al</strong>uein there. Neither the v<strong>al</strong>ue POKEd nor the the v<strong>al</strong>ue PEEKed is of anyconsequence; POKE 49232,0, X = PEEK (49232), PRINT PEEK (49232), andPOKE 49232, 175 <strong>al</strong>l s<strong>et</strong> switch 1 to <strong>graphics</strong> mode. It is the mere act ofreferring to that location which s<strong>et</strong>s the switch. From Monitor you can s<strong>et</strong>the <strong>graphics</strong> switch by typing C050 , so that Monitor willdisplay the v<strong>al</strong>ue in location C050, or type C050:0 to place a zero in thatlocation. Again, it is only the reference to the location which is important.Try s<strong>et</strong>ting the switches to view the fi rst page of Hi-Res <strong>graphics</strong> withoutthe four lines of text at the bottom and without clearing the screen. Referto Figure 5-2 fo r the associated addresses for each switch. Your sequenceof commands should look som<strong>et</strong>hing like this. From the BASIC prompt ( >or ])type:POKE 49234, (S<strong>et</strong> fu ll screen)POKE 49236, (S<strong>et</strong> page 1)POKE 49239, (S<strong>et</strong> Hi-Res mode)POKE 49232, (S<strong>et</strong> <strong>graphics</strong>)The order is not important, but if you s<strong>et</strong> the <strong>graphics</strong> mode fi rst (POKE49232,0), then the remainder of the POKEs will not be visible to you sinc<strong>et</strong>he text is no longer being displayed.To s<strong>et</strong> the same display sequence from Monitor, type:C52: C54: C57: C5:

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

Saved successfully!

Ooh no, something went wrong!