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.

7Preserving YourPicturesObjectivesAfter reading Chapter 7 you should be able to:• Save the Low-Res screen using BSAVE, print a list of v<strong>al</strong>ues, write thelist of v<strong>al</strong>ues to a text file on disk, or create a text fi le of DATAstatements on disk.• Replace a figure on the Low-Res screen by using BLOAD, read the textfile of v<strong>al</strong>ues from disk and POKE them into screen memory, POKEv<strong>al</strong>ues from DATA statements-either keyed or EXECed nto the program,or load the screen v<strong>al</strong>ues into a safe memory area and thencopy those v<strong>al</strong>ues to Low-Res screen memory.In Chapter 6 you discovered how to save the Low-Res screen usingBSAVE or the Monitor WRITE command. Both m<strong>et</strong>hods were simple, butthey both have the same drawback-they often save a great de<strong>al</strong> of emptyspace. Since disk space is a precious commod ity, we will devote thischapter to discussing <strong>al</strong>ternate m<strong>et</strong>hods for saving your pictures.Scanning MemoryOne <strong>al</strong>ternate m<strong>et</strong>hod of saving your picture is to record which bytes ofLow-Res memory are turned "on," and what v<strong>al</strong>ues they contain. In the<strong>apple</strong> picture in Chapter 6, only about one of every ten bytes contains anon-zero v<strong>al</strong>ue. That is, nine-tenths of the screen is blank, and we areinterested only in the non-blank portions-those that are displaying a53

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

Saved successfully!

Ooh no, something went wrong!