← The Creative Apple

The Creative Apple

From the originals

13 scans

Machine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.

These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.

Image 1

THE CREATIVE APPLE Edited by Mark Pelczarski and Joe Tate

A book cover with the red title 'THE CREATIVE APPLE' above a grid of nine photographs of a red apple progressively pixelated from sharp in the top-left to heavily mosaicked in the bottom row, on a peach background.

Languages
English
PDF page 1

THE CREATIVE APPLE Edited by Mark Pelczarski and Joe Tate

A book cover with a tan background, large red and black shadowed title lettering, and a 3x3 grid of nine photographs of a red apple that progressively pixelate from sharp at top left to heavily mosaicked at bottom row, with red author credit text at the bottom.

Languages
English
PDF page 2

The Creative Apple BK 251 15.95

A mostly blank white page with a thin black rounded-corner border and a bold centered title 'The Creative Apple', with handwritten notes 'BK 251' and '15.95' in the top right corner.

Reading notes: Handwritten 'BK 251' and '15.95' at top edge; the price lacks a currency symbol and is handwritten, so it is uncertain whether it is an advertised price. Handwritten marks are partially cut off at the top edge of the scan.

Languages
English
PDF page 3

The Creative Apple Edited by Mark Pelczarski & Joe Tate Creative Computing Press Morris Plains, New Jersey

A title page with a rounded black border containing centered bold serif title text, editor credits, and publisher name on a white background, with faint ghosted copyright and printing fine print visible near the middle and lower portion.

Reading notes: Faint ghosted copyright and imprint fine print (copyright notice, ISBN, printing line, and publisher address) is very light and only partially legible, so it was not transcribed. Reading order assumed top to bottom for the centered title block.

Languages
English
PDF page 4

Copyright c 1982 by Creative Computing Press. All rights reserved. No portion of this book may be reproduced-mechanically, electronically, or by any other means, including photocopying-without written permission of the publisher. Library of Congress Number 81-70543 ISBN 0-916688-25-9 Printed in the United States of America 10 9 8 7 6 5 4 3 2 Creative Computing Press 39 East Hanover Ave. Morris Plains, New Jersey 07950

Reading notes: Headline not identifiable from supplied copyright page text; no primary heading present.

Printed dates
1982 · 81-70543
Languages
English
PDF page 5

Introduction There are dozens of computer magazines on the stands today. But Creative Computing was there before Apple (the computer, not its Garden of Eden namesake). Creative has followed Apple's development from the original press releases, advertisements, and early versions of its Basic all the way through today's exciting developments with reviews of new products and complete, ready-to-run programs and utilities. In this book, we've sifted through everything Creative Computing has published in the last four years, noting any article we could find that related in some way to the Apple. It wasn't a difficult task. Like thousands of others who read Creative, we had wanted to see such a book for a Jong time. So we set out to put together the book that we always wanted on our shelves. We love it. We think you will, too. It was a Jot of work. We didn't just reprint articles for you. We categorized, updated, verified some of the older sources, and finally settled on well over a hundred articles. These represent the most current and varied cross-section of articles and applications we could find. We used our own Apples to help with the handling of all that information, and for typing and editing the initial manuscript. What a versatile computer! We've kept all product mentions as current as possible, although any references in the original articles to prices should be used as guidelines, not hard facts. Prices tend to change considerably with competition and demand. We also tried to present a cross-section of what's available, not an absolute, comprehensive list. Although not a "buying guide," the articles about products are a good place to start your search for what you want. Check with your dealers for comparable products and current prices. This book will give you some idea of the wide range of applications possible with the Apple. Let the possibilities tickle your imagination! There are thousands more that haven't even been touched yet. Don't look at our chapters as absolute boundaries. In categorizing articles we'd often come up with ideas of how something in Chapter X could be used with an idea in Chapter II for an application discussed in Chapter III, and so on. The most amazing thing about the Apple is the versatility of the machine - how much was designed into it several years back. Although some computers can claim a small degree of superiority in one area or another, none can claim such high marks across a wide range of applications. In other words, if you bought an Apple, it was a choice well made. Here's a book that will help you enjoy your Apple even more and tap its great potential. Mark Pelczarski & Joe Tate

Reading notes: OCR spacing irregularities in the source text, such as 'Jong' for 'long' and 'Jot' for 'lot'. 'Apple' is used both for the computer and for the company, which may be ambiguous.

Printed product names
Apple · Creative Computing · Basic
Languages
English
PDF page 6

Contents Chapter I. Graphics Chapter IV. Word Processing Apple Sketch .. .. .... .. ... .... .. ... ... .. . ... II A Primer for Wo rd Processing .. . .. . .. ... .... 141 The Crowd Stopper ....... . .. .. .. . . . . .... .. .. 16 Fundamentals of Apple Writer . .. .. . .. .... . .. 146 Apple Graphics Utilities . ....... . .... ......... 19 Lower Case Display for Apple Writer ......... 148 Apple Picture Packer ..... . .. ............. ... 21 Easy Writer . . ...... .. . . ... ...... . .. ........ 152 Hi-Res Text for the Apple . . .... ......... .. .. . 27 Word Processing Fast a nd Easy .......... .. . . 153 Apple II Lo-Res Shape Tables ................ 30 Th ro ugh the Magic Window ........... .... .. 155 Apple II Kaleidescopes ..... . ........ ... ...... 33 Lo wer Case Plus ..... . ... .. ...... . . . ... . ... 157 Apple Graphics Tablet . .. ... . . . .. . .. . . .. . .... 37 Project 80 ............... . .... .. . . .. ....... 158 Graphics With the Versa Writer . ........ .... . .. 39 The Prince and the Paper .... . ..... . .... .... . 162 Dithering Heights ...... .. . . ... . .............. 41 Printer Contro l Codes .... .. ....... ...... .... 164 Integrating CAI and Videotape ... .... .. .... . .. 42 Options fo r Apple and Epson .... .. .... .. ..... 44 Chapter V. Business Apple Slide Show . . ...... .. .. . . ... .... .... .. 46 3-D Apple Graphics ............... . .......... 49 Page Flipping . .. ...... . .. . .... . . .. ...... .. .. 56 A Manager and His Machine ........... . .... 167 A First Class Ma il bag ............ . ... .. . .. .. 171 Programs for the Investo r ............. . .. . .. 173 Chapter II. Music Desktop/ P lan ..... .. .... . .. .. ... . . .... . .... 174 VisiCalc: Reason Enough for a Computer . ..... 177 Sound Advice .... ........... . ..... .. .... . .. . 61 Even Analysis With VisiCalc ........... .. .. .. 180 ALF/ Apple Music Synt hesize r .. .. .... .... . . .. 63 Well-Fashioned Forms .... . ... . . ......... . .. 182 Apple Music Synthesizer .... ... .. .. . .. ...... . 65 VisiTrend and VisiPlot .. . ................ .. . 183 Micro Composer . .. .. . ...... .. . ........ . . ... 73 Comp uter Music ............ .... .. .. ...... . . 75 Chapter VI. Apple Cart ..... .. ...... 189 Sound Apple Hint .... . .. .. .. . .' . .. . .. .... . .. . 80 Chapter III. Education How to Solve It - Parts I-VIII . . . .. . .... .. ... 85 A Dozen Apples for the Classroom .. .... ..... 123 Micros GOTO School .. .. .. .. .. . .. . . .... .. . . 127 Grade Maintenance . . ... . ... ... .... .... .... . 129 Reading Level Difficulty .. ...... . ... .... . . . . . 135 Anot her Hallmark in Prog ramming ... . . . ... . . 137

Reading notes: Table of contents has irregular spacing and some split words (e.g., 'Kaleidescopes', 'Lo wer Case', 'Th ro ugh'), which may reflect OCR artifacts. Several entries have uncertain page or punctuation spacing, such as 'Sound Apple Hint' and the 'Chapter VI. Apple Cart' line.

Printed product names
Apple Sketch · Apple Graphics Utilities · Apple Picture Packer · Apple II Lo-Res Shape Tables · Apple II Kaleidescopes · Apple Graphics Tablet · Apple Music Synthesizer · Apple Writer · Lower Case Display for Apple Writer · Easy Writer · Project 80 · Apple Slide Show · VisiCalc · VisiTrend · VisiPlot · Micro Composer · Versa Writer
Languages
English
PDF page 7

Contents Chapter VII. Software Reviews Flight Simulator Program ........ .... ....... 281 Fantasy Games - Parts 1, I I ............. .. .. 283 The Sargon Chronicle . .. .. .... .. ........ . ... 288 Wars in Space ......... . ...... . ..... . . ...... 290 The Warp Factor . .... ...................... 293 Through Space and Turf .................... 294 Three Mile Island .. .. .. . . .... ... ............ 295 ABM ....... . ................ .. ........... 297 Soft Centered .............................. 298 Computer Bismark .... .. .... .. ... ......... .. 300 New Games ...... . . . . .. . ... .. .......... . ... 303 Painter Powe r .............................. 306 Applesoft Compiler ......................... 307 Apple Disk Utilities .. .. ...... . .. . ... . ....... 312 Just for Kicks . . ............................ 315 On the Rocks . .. .... .. . . ... . .. .. ........... 316 UCSD Pascal .............................. 317 Graphs ..... . . .. ..... .. ... . .... . ...... .. ... 318 Let the Games Begin .. .... . ..... . .......... . 320 Chapter VIII. Programs - Ready to Run Li t 'l Red Bug ............ . .. . ...... . ....... 329 Grandapple Clock ....... . . ......... . ... .. . . 331 Chess Clock . . ... . ...... .... . ..... .. ....... 335 Caesar's Watch ................... ..... . .... 337 Apple Pie ... . .... . ......... ... ... .......... 340 Apple uclear Power Plant . . ..... . .......... 343 Landing Simulator ............ . .... ... ...... 351 Ten to the Thirty-Eighth ............ . ..... . .. 356 A Social Science Survey Program ............. 360 Intricate Graphs of the Polar Functions ....... 364 What to Name the Baby ..................... 367 Weather Station ...................... . .. .. . 368 Christmas Tree ... .... ................... .. . 370 Stoneville Manor ... ... . ... . ................ 372 Chapter IX. Tips for Easier Programming On Effective Documentatio n ............. .. .. 381 Bombproof Data Entry ........... . . . .. .. . ... 383 Bombproof Data En t ry - A Revisio n .. .. . .... 385 The Challenge of Error Trapping ............. 386 Displaying Numbers in Tabular Format . ...... 389 Divide 'N Conquer. ...................... .. . 391 Unlimited Precision Divisio n . ... ..... ...... .. 393 Strings and Things .................. . .. . .. .. 395 Apple Strings . ..... .. .. .. . . . ... .. .. .. .. ... . 400 Letters From the Dump .. . ...... . ..... . ..... 403 Dis k Power: How to Use It .................. 404 Executive Privilege .................... . ... . . 408 Apple Pascal .............. . .... . .. . ..... .. . 412 "Tiny" Interpreter Exercise ................... 414 Readi ng Data From Tape . .. ...... ..... .. .. . 422 Wizardry ....... . ................. . ........ 424 Chapter X. Branches App le as Time-Sharing User . . . . .. .. .. . ...... 429 A Guide co Data Banks .................... . 433 A Ho me Control Sys tem ... . ......... . ...... 435 The Quest for the Pe rfect Printer ............. 439 The Dyna typer Typewriter Interface . ...... . . .. 444 Chatsworth Data Mark Sense Card Reader . .. . 446 ROM PLU S ................................ 447

Reading notes: Several table-of-contents entries contain OCR spacing artifacts and possible misreadings (e.g., 'Fantasy Games - Parts 1, I I', 'Apple uclear Power Plant', 'Computer Bismark').

Printed product names
Flight Simulator Program · Fantasy Games · The Sargon Chronicle · Wars in Space · The Warp Factor · Through Space and Turf · Three Mile Island · ABM · Soft Centered · Computer Bismark · New Games · Applesoft Compiler · Apple Disk Utilities · Just for Kicks · On the Rocks · UCSD Pascal · Graphs · Let the Games Begin · Grandapple Clock · Chess Clock · Caesar's Watch · Apple Pie · Landing Simulator · Ten to the Thirty-Eighth · A Social Science Survey Program · Intricate Graphs of the Polar Functions · What to Name the Baby · Weather Station · Christmas Tree · Stoneville Manor · Bombproof Data Entry · The Challenge of Error Trapping · Displaying Numbers in Tabular Format · Divide 'N Conquer · Strings and Things · Apple Strings · Letters From the Dump · Executive Privilege · Apple Pascal · "Tiny" Interpreter Exercise · Wizardry · Chatsworth Data Mark Sense Card Reader
Languages
English
PDF page 8

Chapter I Graphics [illegible] [illegible] [illegible] [illegible]

A book page with a thin rounded-corner border, a large bold centered heading reading "Chapter I Graphics" in the middle, and faint small body text in paragraph blocks above and below it, with a faint running header at the top.

Reading notes: The small body paragraphs and bullet-style sub-headings are too faint and small to read reliably and are marked [illegible]. The faint running header at the top of the page is not confidently legible. Reading order of the faint body blocks cannot be confirmed.

Languages
English
PDF page 9

Chapter I - Graphics

Chapter I - Graphics The first Apples released, back in the days when they only came with Integer BASIC, were touted for their graphic capabilities. But very few people knew how to use anything other than the low resolution (40 by 40) mode. There were special subroμtines that you could load from cassette that let you use a high resolution mode, but they were difficult to use and the "hi-res" functions seemed interesting, but limited. Hahl Those subroutines became part of Applesoft BASIC, and as more and more people started playing with hi-res graphics, more and more tricks and techniques were discovered. State-of-the-art on the Apple now rivals some of the best video arcade games. (Come to think of it, a few years ago "pong" was state-of-the-art at the arcades ... and the Apple had all that stuff already built in, just waiting to be used. Now the six lowly colors provided with Apple hi-res have been mixed and matched into over a hundred, a nd the problem of mixing text and hi-res graphics has been solved many times over. Some computer artists have even claimed that with a digitizing tablet and the software that's available, the Apple is one of the most underrated grap hics tools available. It's much more cost-effective than a $200,000 ded icated graphics machine, and in situations where extremely high resolution is not necessary, quite able to take over many of the high-priced systems' functions. There's been a good cross-section of graphics articles in Creative Computing, especially because they run two special graphics issues a year. Included here are some reviews of graphics hardware and software , a few programs and utilities that may enhance your programming or provide some amusement, and articles on some possible interfaces you can use to extend the graphic range of your computer. Special Notes For Chapter I • Apple Sketch. by David Miller: Requires Applesoft, at least 32K of RAM, and a disk drive. It also happens to be attached to a nicely written article. • Apple Graphics Utilities, by David Lubar: David Lubar recently reviewed some of the graphics software now ava ilable for the Apple. Some other areas of graphics software not covered in this article include the creation of charts and graphs from given sets of data. Dataplot from MUSE and Visiplot from Personal Software are two examples of programs in that category. (Editor's note: see the review of Visiplot at the end of this chapter.) Another would be 3-D animation routines such as 3-D Supergraphics by Paul Lutus (United Software) and Bill Budge's 3-D Game Development Tool (California Pacific). A distinction is made here between 3- D design and animation systems. Design packages can be a lot more flexible because they don't have to adhere to the extremely demanding speed requirements of animation. Of course, the design packages won't let you animate. • Picture Packer, by David Lubar: This gives you a neat little pair of machine language programs that will work on any Apple. Even those of you who are not machine language junkies will find the steps behind the development of this utility very interesting as a description of how you can a ttack a programming problem. • Hi-Res Test for the Apple, by Paul Hitchcock: Paul Hitchcock's routines in this article require Applesoft BASIC. • Apple fl Lo-Res Shape Tables, by David Lubar: This Lo-Res Shape Table routine is written for an Integer BASIC Program. • Apple Graphics Tablet; Apple Hi-Res Graphics Made Easy with Versa Writer; Dithering Heights: These three articles describe various ways to put graphic information into your computer, other than with the keyboard, paddles, or a joystick. Of course, the possible input devices are almost endless. Sound , music, almost any kind of motion, or direct electronics from other devices can all be adapted as input. Hmmmm .. . • Integrating CAI and Video Tape, by Marc Schwartz: This last a rticle in Chapter I is about hooking you r computer to a videotape machine. This can be done in two ways: the computer controls the videotape machine itself, or the computer video is sent through the videotape machine and taped. Both open a lot of possibilities - from computer aided instruction, as Marc Schwartz suggests - to creating animations on tape. Another area of interest is laser disk technology, which can allow any of thousands of frames to be instantly retrieved, presumably with possible computer interfacing controlling the retrieval. Ah, for a few dollars ...

Reading notes: Possible OCR artifacts in 'subroμtines', 'Hahl', 'a nd', 'ded icated', 'graphics' spacing errors and 'fl' in 'Apple fl Lo-Res Shape Tables'

Printed product names
Apple · Integer BASIC · Applesoft BASIC · Apple Sketch · Apple Graphics Utilities · Dataplot · MUSE · Visiplot · Personal Software · 3-D Supergraphics · United Software · 3-D Game Development Tool · California Pacific · Picture Packer · Hi-Res Test for the Apple · Apple Graphics Tablet · Apple Hi-Res Graphics Made Easy with Versa Writer · Dithering Heights · Integrating CAI and Video Tape · Creative Computing
Printed prices
$200,000
Printed dates
a few years ago
Languages
English
PDF page 10

Apple-Sketch When I first bought my Apple II com- puter a few months ago, I was very excit- ed about using the high resolution graph- ics that would surely dazzle my friends. I had visions of swooping spacecraft catapulting across the screen, of finely detailed game displays; but most of all, I relished the possibility of drawing freely, in color, on the high resolution screen. What possibilities, I thought: a 45000 point display (give or take a few), with six available colors. Surely there would be an easy way to make it do my bidding! So I spent a few evenings working with my shiny new Apple, a color T.V. set, and the friendly Apple manuals, and quickly learned that things might not be very easy after all. Apple's high resolution graphics mode consists of two areas or "pages" of memory in which to store the informa- tion that makes up a high resolution pic- ture. The primary page picture buffer (or page 1) begins at memory location 8192 and extends up to location 16383, while the secondary page immediately follows, from locations 16384 to 24575. Six colors (black, white, green, violet, orange and blue) are available, although some limita- tions exist that I will talk more about later. Page one is mixture of graphics and text with four text lines residing beneath the graphics screen, although they can be removed by a simple POKE command. Page two is strictly graphics, with no text window easily available to the user. Basic statements can tum points on or off in color and can draw lines between a specified series of points. For those gamers in the crowd (like myself), binary shape tables can be created to draw, rotate, and expand a user defined shape anywhere on the screen. Sounds great, doesn't it? But let's backtrack for a moment. To put it frankly, a single point plotted on the screen does not a picture make! A lot of careful thought and planning bas to come before you can produce eye- catching drawings using this one-at-a- time method. Since many, many points must be used to produce a colorful draw- ing of, say, your friendly neighborhood computer, it becomes impractical (and very slow) to use a series of HPLOT state- ments to draw it from within a program. Who'd want to figure out where all those points should go, anyway? The method used to create shape tables is very tedious and difficult; a single mistake can put you right back where you started from. As a result, many would-be graphics artists have become frustrated with high- David Miller, 79 Hawley Ave .. Port Ches ter. NY 10573. resolution graphics and shy away from using them in their programs. The more affluent, of course, buy expensive graphics tablets costing hundreds of dollars, and produce visual effects to make the rest of us tum green with envy. I soon decided to even up the score a little bit; perhaps through a little software magic, it would become possible to dupli- cate some of the features of the graphics tablets. The method used to create shape tables is very tedious and difficult; a single mistake can put you right back where you started from. The result is my program, written in Applesoft to make life a little more enjoy- able for the artistic Apple owner. With it you can create vivid computer art, without spending hundreds of dollars on an expensive graphics tablet, by using the Apple paddles for the drawing input. All six colors are available for either the actual drawing or for a change of back- ground color; three pen sizes will produce thick strokes or fine detail. If you'd like to throw in some straight lines between any points on the screen, fine; and it's simple to selectively erase parts of a drawing, or the whole screen, instantly. None of this is going to do you much good if you can't preserve the results of your painstaking labor, so it is possible to save drawings on a disk and load them back into memory another time for viewing or modification. What happens if you get stuck and can't remember how to erase the screen, or change color? Type control-H for help! and a page listing all the commands appears in place of the graphics screen; after perusing for a while, hit a key and the graphics screen is instantly restored, with any drawings intact. When the program is run, a title page appears, followed by the command page after a key is pressed. As I said, you can pop right back here when in trouble by typing control-H. It's very helpful for beginners, but as you grow more experi- enced you won't be needing it anymore. Press another key and the real fun starts. The text screen is now replaced by the black high resolution graphics screen, with a flashing white dot hiding somewhere about. lf you doubt my word, tum the paddle knobs and it will magic- ally dance across the screen. This is the point mode, as the first text line informs you, and pen position is indicated by that little blinking dot; it's color is white on a black screen and black on the others to improve visibility. To pop back into it when drawing, press P and the point will reappear. You can use it to carefully erase or chip away at parts of a drawing, or to jump quickly from place to place without drawing. Ready to start a picture? Hit the W key and the dot stops flashing; by manipulat- ing the paddle, you can produce a fine line of small white dots. Quickly move the pen to separate the dots, or draw slowly and carefully for a smooth white line. You can instantly change colors by pressing the first letter of the color desired (control-B for blue to differentiate it from B for black). It's just as easy to change pen size; press S and numerically choose small, medium, or large by pressing 1, 2 or 3. The point mode resumes, so press a color to begin drawing again in the new size. The pen will now be a small box instead of a single point, and a thicker line will result as you draw. Varying pen size within a drawing 11

Reading notes: Source text contains a stray page-number mark and a line-break hyphenation artifact; printed date '79' is part of an address and may not be a date

Printed product names
Apple II · Apple · Applesoft · Apple paddles · Apple manuals
Printed prices
hundreds of dollars
Printed dates
79 Hawley Ave
Languages
English
PDF page 11

will produce more pleasing results, so use all three to spice up your work. The largest size, by the way, will quickly color in large areas of a picture, such as the sky. But suppose you'd rather draw black on a white background, or blue on an orange background? No problem! Press X and then the number of the new back· ground color you want; the screen will be instantly filled with that color, and you'll be returned to the point mode. In the process, everything on the screen is erased, so if you hit X by mistake, "return" will get you back to the point mode, safe and sound! I'm sure that the first few attempts at a drawing will result in a meaningless clutter on the screen; it takes a lot of practice to draw easily with the paddles. By typing control·W, you can erase the whole screen instantly and start over again for (hopefully!) better results. Or you can selectively erase parts of a draw· ing, either by using the point or with the special erase mode. Press E and a large, blinking square will appear in place of the pen ; move it carefully around to erase more quickly than with the point. The eraser is easier to locate than the point, being larger and more visible, so it could also be called a kind of extended point mode. The line drawing mode can be used to quickly draw straight, even lines between any two points on the screen; a line is drawn in the last pen color used, and its thickness corresponds to the current pen size. After Lis pressed, the flashing point reappears on the screen, and its changing X-Y coordinates are continuously dis· played in the text window. To set the first endpoint, hit a key; the point will be plotted, followed by a brief pause so that the pen can be moved away. Then the flashing dot reappears, and the second endpoint can be set in the same way. The program asks if there are any corrections, and if the endpoints are exactly where you want them, depress N to draw the line and return to the point mode. Press· ing Y gives the option of changing either or both of the endpoints; hit 1 to change point #1, 2 to change point #2, or B to change both. Hitting "return" when in the line drawing mode returns you to the point mode. Okay, so now you have a great picture done that you want to show your family and friends; how can it be saved? Type control-S and enter the name you'd like it to be stored under; this name should begin with a letter, not a number or con- trol character, although these can be used after the first letter. Hit "return", and the contents of the entire high resolu- tion screen will be saved in a binary file on the disk. Be careful, because an un- locked file with the same name will be erased and written over! If you change 12 your mind about saving, hit "return" to reenter the point mode. The same process holds true for the load command (control-L), but instead of saving, a high resolution picture will be loaded into memory from the specified disk file, gradually filling the graphics screen and erasing anything previously displayed. One important note here: if you load a picture with a colored background , make sure you change the screen to the correct cplor first. Otherwise, the point mode will start erasing the background, as it might previo usly have been set for a black screen. The final command is control-E, and it allows for a graceful, dignified exit from the program, after giving you one last chance to reconsider. More violent types will, I'm sure, use control-C or even (ugh!) reset; make your choice accord- ingly. And now, for the program itself: Line 5 resets LOMEM: to 16384, above the primary page of high resolution graphics. While I was entering the pro- gram, I painfully discovered that as it You can instantly change colors by pressing the first letter of the color desired. grew, it extended upward above location 8192 and into the primary high resolution page, causing the random lines to appear on the graphics screen. The last few lines of the program also acquired bad habits, playing hide and seek with me when more was added to the program. All very unpleasant, but the first line magically cures the proble m. Incidentally, LOMEM: is reset to its normal value Uust above 2000 with firmware Applesoft), by NEW, DEL, and by add ing or changing a program line. Lines 10-50 print the title page, wait for a key to be pressed, clear the keyboard strobe, and go to subroutine 1000, which prints out the command page. Line 90 traps for an error that might occur during the program run ; without it, the program would bomb out, and you would probably lose your picture. It sends program flow to subroutine 4000, where the error is appropriately processed. Line 100 is initialization; it sets point and screen color, pen size, drawing modes, and OS as Control-D for DOS commands. It clears the text screen and initializes the high resolution display; then line 105 pops the cursor down to the 21st line directly below the graphics screen and goes to subroutine 650, which handles the point mode and pen size display. Lines 100-200 handle the drawing, de- pending on the present program mode and pen size. If a key is pressed, line 110 goes to subroutine 300, which handles commands. Lines 120 and 130 read the two paddles for the X and Y pen position. If the point mode is true, line 140 plots at the present position, erases, resets the color and returns to line 110. Lines 150 and 160 draw a medium and large box in the present color, depending on pen size, if the erase mode is off. If the eraser is on, lines 170 and 180 set its color, depending on the present screen color, and 190 draws and erases it. If none of the above are true, line 200 plots the point and returns to line 110. The following are program subroutines that are used when commands are input from the keyboard: Lines 300-385 process commands, call- ing other subroutines in the process and finally returning to the main drawing section. Line 300 gets the character pressed from the keyboard and clears the keyboard strobe. The remaining lines change colors or modes, or call other subroutines if necessary, depending on the command that has been entered. If the key pressed is not a command, line 385 returns to the main drawing section. Lines 500-530 save a picture on disk; line 520 alerts DOS with previously initialized DS and BSAVEs the entire memory contents of high resolution page 1 under the file name input in line 510. AS2000 specifies the starting hexa- decimal address (8192 decimal) and LS2000 specifies the length of the area of memory to be stored. Lines 600-630 are used in the same way to load a picture from disk into memory starting at hex location 2000, the beginning of the pri- mary page. Lines 650-660 set the color of the point for the point mode, depending on the present screen color. Line 660 clears the text window, sets and prints the point mode, goes to subroutine 3000 where the pen size is displayed, and returns. Lines 700- 730 are reached by control- E, and provide a dignified exit from the program. As I said before, killjoys may use "reset" or control-C if they wish. Lines 800-840 print out the numbers for the different colors and get a character response. "Return" or CHRS (13) pops you back into the drawing routine after resetting the point mode; an incorrect response causes line 815 to get another character. Otherwise, line 830 sets the new screen color, plots a point, and calls the special machine language routine 62454 to clear the screen in the last color HPLOTed. Finally, line 840 goes to subroutine 650, which handles the point mode restoration and pen size display. Lines 900-940 use the same method to get a new pen size; a valid response resets

Reading notes: Source text contains line-break hyphenation and OCR-style spacing artifacts (e.g., 'control·W', 'Lis pressed', 'cplor') Several reading-order breaks around the inserted sidebar 'You can instantly change colors by pressing the first letter of the color desired.'

Languages
English