Call-A.P.P.L.E. Magazine • August 1982

~.I~~c!)~-A ~ - ...P. P. L. E. APPLE PUGETSOUND PROGRAM LIBRARY EXCHANGE A W .. shinglon 51 .. 11.' Non-Profit Corpordlion Call-A.P.P.L.E. Magazine

Issue Year

1982

Issue Month

August

Apple Pugetsound Program Library Exchange I Page 0001 of 0090 Call-A.P.P.L.E. Magazine • August 1982

II Volume V, Number 8 £L 75 UK,

A Call -A.P.P.L.E. TECHNIQUE: Garbagemen

Strike Page 9

A Call -A.P.P.L.E. APPLECATION:

Total Recall PagelS

A Call -A.P.P.L.E. REVIEW: BASIS 108 ...

An Alternative Page 23

A Call -A.P.P.L.E. REVIEW: Spelling

Programs Page 31

Apple Pugetsound Program Library Exchange Page 0002 of 0090 Call-A.P.P.L.E. Magazine • August 1982

H,

II II Volume V, Number 8 August 1982 52.50 (53.00 Canada, £1. 75 UK.

A Call -A.P.P.L.E. TECHNIQUE: Garbagemen

Strike Page 9

A Call -A.P.P.L.E. APPLECATION:

Total Recall PagelS

A Call -A.P.P.L.E. REVIEW: BASIS 108 ...

An Alternative Page 23

A Call -A.P.P.L.E. REVIEW: Spelling

Programs Page 31

Apple Pugetsound Program Library Exchange Page 0003 of 0090 Call-A.P.P.L.E. Magazine • August 1982 THE PROWRITER COMETH. (And It Cometh On Like Gangbusters.) Evolution. It's InevItable. An eternal venty. Just when you thInk you've got it knocked. and you're resting on your laurels. some­ body comes along and makes a dinosaur out of you. Witness what happened to the Centronics printer when the Epson MX-88 came along In 1981. And now. WItness what's happening to the MX-80 as the ProWriter cometh to be the foremost printer of the decade. SPEED MX-80: 80 cps. for 46 full lInes per minute throughput. PROWRITER: 120 cps. for 63 full lines per minute throughput. GRAPHICS MX-80: Block graphiCS standard. fine for thIngs lIke bar graphs. PROWRITER: HIgh-resolu­ tion graphICS features. fIne for bar graphs. smooth curves. thIn lines. intrIcate details. etc. PRINTING MX-80: Dot matrIx bUSIness quality. PROWRITER: Dot matrix correspondence qualIty. WIth incremental printing capabIlIty standard. FEED MX-80: Tractor feed standard: optIonal friction-feed kIt for about $75 extra. PROWRITER: Both tractor and friction feed standard. INTERFACE MX-80: Parallel interface standard: optional serial Interface for about $75 extra. PROWRITER: Parallel and serial interface standard. WARRANTY MX-80: 90 days. from Epson. PROWRITER: One full year. from Leading Edge. PRICE Heh. heh. DIsrnbuted ExclUSively by LClldznp, Edge Products, Inc. 225 TiiTnplke Street. Canton. Mass(}cnust'[[s 02021. Cal! toll/ree J-8()(}-343-6833. or zn lV1assacnusetts l'ull o)!lcl[ 16111828-8150 Telex 951-624. LEADING EDGE. For afree poster oj 'Ace" IPmwnter's pllo[/ dozng JlIS rhlllp,. please wrzte liS.

Apple Pugetsound Program Library Exchange Page 0004 of 0090 Call-A.P.P.L.E. Magazine • August 1982

.1'<

TAKE YOU'R APi1E II® 7n "·U~.J DimenSion Super D drive that takes your TIf read/write electronics sn ~1i\/~ilrj 35/80 track Dual Super Drive • are virtually eliminated. . , 12 megabyte capacity drive. that keeps boot and track acc:ess, SrTlOoJth alnl • Parallel printer interface with143,360 the bytesability of to DOS read 3.3® h~I'~-~~(~~~~~~i~;,~~~lo~~~~~lce . .' ~:_~I~~c:~.~~~_. • 80 x 24 video card on DOS 3.2.1 ®, Pascal®, or and pricing information. And, the disk enclosure mates ;~1~~~~~~,;~~IS., ~~~~~~~~~~s~~p~ecifics- Fourth, Dimension Systems cabinetry. Suggested retail price. parts and labor warranty at no cost quantity discounts available). ·utilizes Siemens 100-5 mechanics

~~ l.J~~ ~~.~.. "..,..,..... "",,~ CornpU'ter F)rodlucts, 13'10"B" E. Edinger. Santa Ana, CA 92705 (714) 558-8813 I ::;, ',411.31,':1 Ct., Virginia Beach, VA 23464 (804) 420-2361 " tz ,. Plf 't SYSTE~S 5212 Princeton, NJ 08540 (609) 771-0374 CONTACT: Fourth Dimension Systems, 3100 W. Wi:lrne~r A'ilenlJe,~~7/0Iept. 1, Santa Ana, CA 92704 (714) 850-1228 APPLE. APPLE II. DOS 3.2.1 and DOS 3.3 are registered a trademark of UCSD, CP/M is a registered trademark of Digital Research, Inc.

Apple Pugetsound Program Library Exchange Page 0005 of 0090 Call-A.P.P.L.E. Magazine • August 1982

APPLE PUGETSOUND PROGRAM LIBRARY EXCHANGE: CLUB INFORMATION

GENERAL OFFICES EDITORIAL DEPARTMENT ADVERTISING REPRESENTATIVES 304 Main Ave. S., Suite 300 5606 California Ave. S.W. Grawin Publications Renton, WA 98055 -(206) 271-4514 Seattle, WA 98136-(206)932-8288 1020 Lloyd Building Summer Hours: 8-6 Monday - Friday Hours: 8-4 Monday - Friday Seattle, WA 98101 (206) 223-0861 Thursdays till 7 p.m. Member SeNices/Dea/er Orders

MEETING NOTICES CALL -A.P.P.L.E. HOT LINE Cation blank, order form and description (206) 932-6588 sheet of club products. Special Meeting Hours: 9 AM - 3 PM and Please allow up to 30 days for a turn around 7:30 PM, Tuesday, Aug. 3, 1982 6 PM - 10 PM 7 days per week on membership and orders. Pacific Time Guest Speaker Call -A.P.P.L.E. is mailed free twelve times Mike Markku/a/President Apple Computer, Inc. See page 85 of the June '82 issue for per year as benefit of membership. Contact office for reseNations information on use of the Hotline. Subscriptions are not available. Please also check our list of consultants 1982 back issues available at 52.50 each. 7:30 PM, Tuesday, August 17, 1982 below for a specialist in your field. Swan Computers Call -A.P.P.L.E. bound volumes for pre­ 1034 1l6th Ave., Bellevue vious years are available as indicated on the member order form on the last page. Special Interest Groups Membership Information Please direct telephone questions on 7:30 PM, Tuesday, September 21, 1982 membership and orders to (206) 271-4514. Institutional memberships are now avail­ A.P.P.L.£ Office One Time Apple-Cation Fee .... 525.00 able. Contact General Office for details. 304 Main Ave. S, Renton Annual Dues ., ...... 520.00 Guest Speaker futal ~~OO Prospective authors please send se/f­ Don Brown/Eamon Adventures Author Additional postage required for foreign addressed stamped envelope (37ct memberships and Shipments. postage) to Editorial Dept. for a copy of BULLETIN BOARD Author's guidelines. Membership is on an annual, 12 month A.P.P.LE. CRATE basis, commencing with the month of en­ (206) 935-9119 rollment. Upon receipt of total membership Cover and interior design by Vic Warren (4 pm - 9 am Pacific Time) fees, new members will receive an Apple- Design.

Officers and Directors Grawin Publications ...... Production, Advertising ..... (206) 223-0861 David B. Garson ...... ,Program Editor ...... (714) 452-7524 Dick Hubert, President ...... (206) 271-6939 Bob Huelsdonk. Vice President ...... (206) 362-4910 Consultants Dave Lingwood, Secretary .. , , ...... , , . , . , ...... (206) 244-9360 Bob Huelsdonk ...... Apple /// ...... , (206) 362-4910 Bob Clardy, Treasurer ...... (206) 641-1917 Dennis Baumgarte ..... , .. Assembly (Eastern U.S.) ...... (914) 473-3210 Val j. Golding, Director ...... , ... (206) 932-6588 Don Williams ...... Assembly (Western U.S.) . , .. (206) 242-6807 Ken Smith, Director ...... , .. , . , , (206) 322-4199 Michael Thyng ...... Business ...... ,. (206) 524-2744 Fred Merchant, Director ...... , . , . ,(415) 921- 7792 Ted Perry ...... CA.1...... (916) 485-1690 Office Staff William P. Steinberg, ...... DOS (Eastern U.S.) ...... (212) 921-0663 Dick Hubert ...... , , . , . , ...... , . , , .. Executive Director Art Schumer ...... DOS (Northern U.S.) .... , ... (701) 696-2574 Dave O'leary ...... , , . , , . , ...... , . , . Administrative Assistant Lee Meador .... , . , . , . , . ,DOS (Southern U.S.) .. ,. , ... (817) 469-6019 Sally Davies. , , , .. , , .... , .... • •...... Admin. of Information Systems Kurt Thams ...... DOS/Gen'l (Western U.S.) ... (714) 870-9316 Arliss Sword . , , , , , ...... , , . , , ...... , Dealer Orders WM. Reynolds III ...... ,DQS/Tech (Western U.S.) ... (503) 472-4028 Patti Hoffmann ...... , ... , . , . , , ...... Special Projects Coordinator Murray Arnow ...... , .... Engineering Applications .... (312) 291-9210 Gunter Hirt, . , .... , , . , , , . , . , , . , ..... , Bookkeeping, Member Records Cornelis Bongers ...... European Consultant . OJO-52551l Ext. 3275 Jeff Morgan ... , . , ...... , , . , , ...... , Technical Operations Alan Robinson ...... Fortran ...... , . , .... , . , . (503) 757-8234 Cheryle McCalmant ...... , , . , . , ...... , ... , . , . Order Processing Tom Deal, MD...... , .... Handicapped Applications., (206) 634-2847 Kris Mortenson, . , ...... , ...... , , . , , . , . , . , .. Order Processing Randy Halvorson ...... Hardware Interfacing ., .... (206) 783-9040 Gayle Rank ...... , , , ...... , ...... , . Secretary/Receptionist Ed So ...... ,Hi-Res ...... , (408) 267-3448 Mike Christensen. , . , ...... , , . , ...... , , . , . , Systems Development Steve Ross ...... Mainframe Interfacing ..... (206) 838-2810 Carol jackson ...... , , , ...... , , ...... Shipping/Receiving Stowe Keller, . , .. , ...... Mathematics ...... , ..... (804) 293-944 I Steve johnson ... ,', ...... , .. , ...... Engineering laboratory Fred Merchant. MD...... Medical Group ...... (415) 921-7792 Stephen F. Lee .. , . , ...... Music. ... , ...... , . . . (704) 289-4102 Magazine Staff Tom Woteki ...... , . Pascal (Eastern U.S.) ...... (202) 547-0984 Val J Golding ... ".".,' Editor ... "." ...... (206) 932-8288 Carl Winter ...... Pascal (Western U.S.)., ..... (206) 454-2720 Kathryn Hallgrimson .,.,' . Office Administrator .... , .. (206) 932-8288 Randy Warrens ...... , . Pilot language ...... (608) 837-9566 Kathy Cherry .. "., ...... Editorial Assistant ,.,., .... (206) 932-8288 Hersch Pilloff ...... Stock Market ...... (301) 292-3100 Ron DeGroat, ... , , . , .. , ,Pascal Editor. , . , ...... , . (303) 442-4794 Mark Robbins ...... Telecommunications ...... (303) 755-6440 Kevin O. Donohoe ..... , .. Production Editor" ...... , (206) 223-0861 Clifton Howard, MD...... Utilities ...... (201) 768-9274 jim Hockenhull ... , ... , .. Staff Writer ...... , . , . (509) 334-4137 jim Hockenhull ...... ,. Video Interfacing ...... (509) 334-4137 Paul Mosher, M.D.. , .. , .. ,Staff Writer ...... , . , .. , .... (518) 765-4118 jerry Brieger ..... , ...... VisiCalc IWestl ...... (206) 881-1241 Lee Reynolds , ... , .. , .. ,' Staff Writer, .. , ...... (305) 722-2639 Vince Adereate ...... ViciCalc (NOrth) ...... (312) 289-9685 Charles Rusch, . , .. , ...... Staff Writer ...... , .. , ... (503) 484-4618 Dr. 80b Richard ...... VisiCalc (South) ...... (504) 466-0894 Ralph H. Swerdlow, M.D... Staff Writer ...... , .. , . , .... (916) 920-8709 jeff Finn ...... ,Word Processing ...... (206) 325-0430

2 Call-A.P.P.L.E. August 1982 Apple Pugetsound Program Library Exchange I Page 0006 of 0090 Call-A.P.P.L.E. Magazine • August 1982 Call-A.P.P.L.E~ Volume 5, Number 8 August 1982/Menu Val J. Golding, Editor ENmEES 9 A CALL -A.P'p.L.E. TECHNIOUE: 23 A CALL -A.P.P.L.E. REVIEW: Garbagemen Strike BASIS 108 ... An.Alternative SELECTIVE STRING PRESERVATION Cornel is Bongers/Call -A.P.P.L.E. Staff Writer Clay Ruth 31 A CALL -A.P.P.L.E. REVIEW: 15 A CALL -A.P.P.L.E. APPLECATION: Spelling Programs Total Recall Ralph H. Swerdlow, M.D.jCall -A.P.P.L.E. Staff Writer David Linker, M.D.

ALACARTE

40 A CALL -A.P.P.L.E. TECHNIQUE: 51 Print to Disk Executing Deferred Commands Vince Giambalvo From the Keyboard c. Dorsman 57 A CALL -A.P.P.L.E. TECHNOTE: Squashing A Nasty DOS Bug 43 A CALL -A.P.P.LE. TECHNOTE: Art Schumer Beware the SCFXX David Goss 61 A CALL A.P.P.L.E. TECHNIQUE: DOING THE SPLITS 47 Roasting Applesoft Preserves Roy Meyers David G. Sparks

HORS d'OEUVRES

2 A.P.P.L.E. Club Information 69 Tomorrow's Apples Today Kevin Donohoe/Editor 5 The Editor Bytes Back The Editor 75 A.P.P.LE. Doctor George Spelvin 5 BOOT Craig MacIntosh 77 A.P.P.L.E. Meeting Minutes Dave Lingwood/Secretary 7 Bytes From A.P.P.LE. Val J. Golding 78 WRITE -A.P.P.LE. The Readers 16 So What Did You Expect Dept.7 N. D. Greene 83 Advertiser's Index 67 A CALL -A.P.P.L.E. CONTEST: 83 A.P.P.L.E. Order Form So What Did You Expect Dept. 7 84 Call -A.P.P.L.E. Unclassifieds

Apple user groups may reprint without prior permission any portion of the contents herein, provided author, title, and publication credits are given and a written notice of such use furnished to the editorial office. For commercial applications of programs herein, the author should be contaaed c/o General Office. Call -AP.P.LE. is published monthly by Apple Puget Sound Program Library Exchange, 304 Main Ave. S., Renton, WA 98055. Subscriptions are not available but copies are mailed free as a benefit of A.P.P.LE. membership.

Call -A.P.P.LE. Auqust 1982 3 Apple Pugetsound Program Library Exchange I Page 0007 of 0090 Call-A.P.P.L.E. Magazine • August 1982

No video monitor has ever combined Apple II compati­ What is DVM? The DVM, or "Digital Video Multiplexor," bility with exceptional performance like the new 13" is a low cost interface that allows the Apple II computer Color-II monitor from Amdek. to be used with an RGB monitor, such as our Color-II. Color-II features our optional new DVM peripheral board Amdek's DVM is software programmable to allow trans­ for easy interfacing with your Apple II. And look at the parent operation, and is parallel with existing Apple other top-of-the-line features Color-II offers: text and graphic modes. Three of its channels are used to multiplex the existing Apple text, low resolution and high o RGB, TTL input for high resolution graphics. resolution graphics. The 4th channel allows the use of an • 80 x 24 character display capability (with expansion 80 character line video board. card by Vydec). 0560 (H) x 260 (V) resolution. Our DVM is also color channel software programmable, o Molded-in carrying handle for easier portability. enabling you to turn the three color channels on or off o Front-mounted controls for faster fine-tuning. by software control. For example, the red and blue channel can be turned off when the 80 character So if you want to get the most from your Apple II channel is turned on, resulting in a green phosphor system, get the "most" monitor. Ask your dealer about video presentation. Amdek's new Color-II monitor with the optional DVM For convenient operation, the DVM board may occupy interface board. any slot in the Apple II. The DVM also features low-power consumption and low-power schottky logic. ~I 1f**1C:~...... Amdek Corporation, 2420 E. Oakton Street, Suite "E" Arlington Heights, Illinois 60005 (312) 364-1180 TLX: 25-4786

Apple Pugetsound Program Library Exchange Page 0008 of 0090 Call-A.P.P.L.E. Magazine • August 1982

THE EDITOR BYTES BACK

the editor

OMORROW the world. That's David linker (With a name like better way. No matter how good the the Idea, if somewhat over­ Linker, he's IcelandiC???) offers Total programmer, there are always things stated, behind Tomorrow's Recall, an application program to work that can be overlooked, enhancements, Apples Today, Kevin Donohoe's in conjunction with Multiple Disk Catalog ways to speed up execution, etc. Many continuingT compilation of some of the on our Utility Dlskpak 6B-16. Dave has of these modifications or Improvements newest and unique products coming to found a way to decrease sort times Originate With our members who under­ Appledom If you've looked in the other tenfold, which makes thiS file utility prac­ stand one of our oriQlnal ond under­ magazines without success, then take a tical to work With for the first time. lying club prinCiples members help look at KeVin's column. What's more, If As promised, our European consul­ members you can't find your product there, drop tant and staff writer Cornelis Bongers ThiS IS one way In which Call us a line. If an Item eXists for your par­ brings you a comprehenSive report of -A.P.P.l.E. sets Itself aSide Fr()111 and ticular application, we'll try and find it. If his views of the BASIS 108, an Apple­ above other Hpple rTKKJOLl1 les UJe will you're not a member of A.P.P.l.E., let compatible computer very recently reprint ':>lOrles or programs where us add that this concept, along with our released. What makes this review par­ Significant changes have been mode low-prICed member software, to the ticularly Intriguing is that the BASIS that demand r-zpublicatlon In thiS Issue, many reasons for JOining apparently Incorporates most, If not all, David Sparks roosts 'nme boo-boos Nationally syndicated columnist of the Innovations antiCipated In the mode by yours trul~J In Roasting Apple­ Mike Mailway has recently formed hiS new revIsion Apple ][ to be announced soft Preserves. Roy Myers uncovered own syndication bureau, Crown Syndi­ later thiS year. a new technique for Doing the Splits. cate, Inc. Since Mike IS one of our Spelling Programs are a Johnny­ by putting the subroutines Irl lower members, we have been able to make come-lately In the area of Apple word memory when splitting on Applesoft special arrangements to bring you processing Staff writer Ralph Swerdlow program around the HI-Res page, and Craig Macintosh's Boot, making ItS sec­ reviews three of the early contenders, SOllie nice enilOncements can be ex­ ond appearance this month. We hope and from our mountain-top View, they pected shortly For lee Reynolds you enJOY It look like a real assist to writers. FILEDUMP. a highly popular DOS utility Speaking of thiS month, let's take a Everybody likes a contest, right? So that appeared In the June Issue look at our headlines and see what's In here's one our members can particI­ (ls usual, we have rur, out of spare store Clay Ruth returns to top the cover pate In several ways. If we've caught long before we could mention even halF With some good technique Garbage­ your Interest, hustle off and read So of the exciting new programs and men Strike Again, one more (and What Did You Expect... a Call-A.P.P.l.E. stories In thiS Issue, thus your recourse different way) to circumvent the frustra­ Contest? IS to JMP to the contents page and look tions of Applesoft garbage collection. The gospel we teach IS, among over what we didn't describe t!I other things, that there is always a

BOOT

Craig Macintosh

MRN, MY $700 DIGITAl­ WONDE::.R 'M-lAT TIM~ ATOM\C, CAL..E:.ND~~t)IO IT IS.? Al-ARM WAlCl-l STu-n:=.D. r----,,------,..

Crown Syndicate. Inc,. Five Crown Road. Weatherford. Texas 76086. Telephone (817) 594-5125.

Call -APP.L.E. August 1982 5 Apple Pugetsound Program Library Exchange Page 0009 of 0090 Call-A.P.P.L.E. Magazine • August 1982

Apple Pugetsound Program Library Exchange Page 0010 of 0090 Call-A.P.P.L.E. Magazine • August 1982

BYTES FROM A.P.P.L.E.

Val J. Golding

ISCOUNTS for our mem­ special price to members is $75 to What more can we do? Ask and ye bers is the word this time subscribe to this multi-faceted shall receive. Power of Visicalc has around. By the time you read system, a 25% discount off the been one of the most-ordered items Dthis, you should have already regular price. In addition we expect from the A.P.P.L.E. library. Now we received our special member's mail­ to announce shortly the availability of have volume 2 of this worthwhile ing, which is planned to include at a "closed system" that will be series available at the member price least the three items covered in the available for the exclusive use of of $8.50. But wait, suppose you have following paragraphs, and perhaps A.P.P.L.E./Source members which is neither volume currently. Once more. It is here that the element of expected to include downloading of again, your club to the rescue. Now "time travel" we often write about Call -A.P.P.L.E. programs, pro­ you can order both volumes for a comes into play. We write in June for gramming and technical assistance total special price of $13 and save the August Call -A. P.P.L.E. , about and other member oriented functions. four ($1) bills in the process. Just see something that when you read it, is Next we have reduced rate sub­ the order form on the last page. already in your past, since you have scriptions to two popular Apple mag­ Sometimes we just sit here, rack­ read, and perhaps already ordered azines, Softalk and Peelings. Softalk is ing our collective brains to see what items from the mailer. offered free to Apple Computer users we can come up with in the way of In the event you haven't yet, here for the first year; thereafter subscrip­ new products and specials that would are some of the schemes we have put tions are $24. Our special offer to be of benefit to our members. You together to save money for out mem­ members will let you renew at the can help. Drop us a note with sugges­ bers, while at the same time expand­ bargain basement price of $15 for the tions of what you would like to see ing the uses to which they may put next year. Peelings is a magazine offered. Note this does not mean we their Apple. devoted entirely to in depth reviews will automatically make them avail­ For members of A.P.P.L.E.: of products, software and hardware, able, but your ideas will certainly Source, a service by Source Tele­ for the Apple computer. We refer to give us food for thought. All commer­ communications, Inc., which pro­ it often, and find it indispensible. We cial products that we supply to our vides a wide range of online data are sure you will also, particularly members are products that have been bases, electronic mail, shopping serv­ when we let you know you can save determined by the A.P.P.L.E. board ices, "chatting" with other members $3 over the regular subscription price of directors to be of superior quality and numerous other features. Our of $21. and useful to our members. t!i

eptis VANTEC 80 The COMPLETE 80 COLUMN VIDEO Board with HIGH RESOLUTION GRAPHICS CAPABILITY for youi' APPLE.

At last ... a complete video board for your Apple II or Apple 11+ microcomputer. No longer are "Soft Switches, Lower case Eproms" and low quality graphics necessary. By • The VANTEC 80 is the only board that can overlay an 80 mixing the 80 column video directly onto the normal video character display on the normal Apple video. output, either high resolution graphics, low resolution graphics or 40 column text may be combined with the • Software switching between 80 & 40 character displays. 80 column display. • Mix High Res or Lo Res graphics with the 80 character Save $90 on Introductory Special .... (List $389) .... $299* text display. RC Electronics Inc. • Upper and lower case characters with shift mod provided. • Flashing or inverted block video cursor. 7265 Tuolumne Drive, Goleta, CA 93117 (805) 968-6614 • Apple-soft, Apple Pascal and Z80 Softcard

How to chart your company's fortune without spending one It's a fact. Asingle chart or graph can tell you instantly what it You can also save and modify your graphics through takes hours to interpret from printouts or other raw data. Strobe's menu-driven programs. A broad selection of Now, with the Strobe 100 Graphics Plotter and Software software-including a VisiCalc .:. -compatible program­ package, you can create superb hardcopy graphics directly is now available. from your computer. And you can do it for a fraction of the cost When the Strobe Graphics System is interfaced to your of most other systems. computer, an 8-1/2 x 11 inch sheet of paper can speak any­ The Strobe System transforms complex data into one's language-visually. Visit your local dealer and learn dynamic, colorful visuals with a how to start charting your for­ few simple commands from your tunes today. Because a perspective computer. Charts and transparen­ on the present can also be your cies that once took hours to pro­ window on the future. duce are plotted within minutes. Information can be presented as bar charts, pie charts, curves or isometrics in a variety of colors. II STROBE And with a resolution of 500 INCORf'OII:ATEU points per inch, the Strobe 100 Strobe Inc. matches or surpasses the quality 897-5A Independence Avenue of plotters costing thousands of Mountain View, CA 94043 dollars more. Telephone 415/969-5130 The Strobe Graphics System Seeing is believing ' VisiCalc is a trademarl< of VisiCorp

Apple Pugetsound Program Library Exchange Page 0012 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A Call -A.P.P.LE. TECHNIQUE: Garbagemen Strike SELECTrvE STRING PRESERVATION Clay Ruth

OST Applesoft program­ Operating System" is a complex Garbage collection is the process mers, and many non­ string-processing program. Call signs of eliminating temporary strings "en programming users, are all of other stations are input from the masse" by packing permanent strings M too well aware of "garbage keyboard and checked against all together in upper RAM. collection." That's what happens previously-entered calls to avoid whenever the strings, which Apple­ duplication. Those with whom Garbage collection is the soft stores from HIMEM: downward, contacts are completed are stored in process of eliminating run into array variables which build a 10 by 500 string array. Information temporary strings ... upward from the simple variables exchanged between stations is input atop the tokenized program. The from the keyboard and written out to Selective string preservation Apple pauses to sift through the a text file. Transmitted messages are involves continual elimination of tem­ strings, packing all the active ones generated automatically for Morse porary strings by allowing each new into the upper reaches of RAM (just code sending. It handles a lot of permanent string to overwrite them. below DOS) and wiping out those lengthy strings on a once-through Permanent strings are effectively that are no longer pointed to by a basis, while all it really needs to packed together in upper RAM just string variable. retain in the long run is the callsign as with garbage collection, but the If there are only a few string array! Speed is of the utmost impor­ packing is done as the string is variables, this happens very quickly. tance, as any unnecessary pauses can generated, not put off until memory You may not even notice that any­ cause lost contacts. Garbage is full. thing is wrong. However, once collection threatened to be its The process itself is extremely you've DIMensioned a large string downfall until I developed a tech­ simple and requires very little over­ array, garbage collection becomes a nique I call "Selective String head. The tricky part is figuring out Preservation" . exactly where to implement it in your Garbage collection becomes I had considered using "Fast Gar­ program! a painful process. bage Collection" (Call -A.P.PLE., January, 1981), But it would have Implementation painful process. You've just entered a added 505 bytes of overhead, and Before you attempt selective string string from the keyboard, or one has garbage collection would still occur preservation, make sure the program just been read from a file, or some (more quickly, but also more fre­ has been completely debugged. Us­ previous strings are being concate­ quently). Besides, I would have to ing selective preservation routines at nated by the program, when suddenly secure permission to use Randy the wrong spot in the program will do the Apple seems to lock up. For a Wiggington's routine in a commercial some very strange things to your couple of frustrated minutes you product. I sought a way to eliminate data! It is helpful to know that only bang the keyboard, trying everything garbage collection altogether. the modifications, not some other you can think of to get the blasted thing going again. Just when you're I sought a way to eliminate Save your unmodified about to hit the panic buttom (spelled garbage collection program separately... R-E-S-E-T), suddenly everything altogether. proceeds as though nothing has bugs, are to blame. Save your un­ happened ... and perhaps then you What It Does modified program separately, so you realize for the first time that you've In any string-processing program, can go back to it if problems with the been tricked by the garbageman! the strings can be classified accord· modifications force you back to Step ing to two categories: 1. Here's the procedure: A Need Arose I recently began marketing a soft­ 1. "Permanent" - those strings ware package I authored for use by needed in RAM for later use. rauio amateurs who participate in 2. "Temporary" - those strings radio contests. My "Contest Radio passed once-through to a file or other output device, after which they are no longer needed.

Calf -A.P.P.L.E. August 1982 9

Apple Pugetsound Program Library Exchange Page 0013 of 0090 Call-A.P.P.L.E. Magazine • August 1982

GARBAGEMEN STRIKE Step 1: Step 4: The example is a simple database Add two one-line subroutines to Now look for the proof that you've generation program which accepts your program, as shown in lines accomplished something! Get into keyboard input and writes it to a 305 and 306 of Listing 1. You can the monitor with CALL -151 and sequential text file. Each topic is give them any numbers that are enter 6F.74 [return]. Bytes $6F compared to all previous topics to convenient for your program, and and $70 (decimal 111 and 112) avoid duplication. To accomplish they don't have to be together. If point to the low end of the strings this, the topics are stored in the your program already uses the (low order byte first). Bytes $73 PERM$ array, which must be treated variables SL and SR, you can call and $74 point to the high end as permanent strings. The DOS them something else in these sub­ (HIMEM:). control string, D$, is also permanent, routines. You could use SL% and because we use it every time we SH% if you like, as they will always Display a screenful of bytes within access the disk. All other strings (A$ be integers. the string area. You'll find the and B$) are temporary because once ASCII representation of all your they are in the file, we never refer to Step 2: permanent strings packed end-to­ them again. Here's the difficult part! You must end below HIMEM:, and only the study the flow of logic in your most recently-entered temporary ... permanent strings are program and find all areas where strings (those not yet overwritten) stored in the PERMS array... temporary strings are assigned, below them. Compare this to what processed and disposed of be­ you see when you run the unmodi­ Selective string preservation is tween assignments of permanent fied version ... all the garbage easiest to implement when you strings. Immediately after accept­ interspersed among your perma- organize your program in this way; ing a permanent string, insert a that is, all temporary strings involved GOSUB 305. Then, after tempo­ Comparing the low-end in one pass through the loop are rary strings have been processed pointers . .. will show how generated, processed and disposed of through, insert GOSUB 306 before much memory you've saved. between assignments of permanent the next permanent string is strings. If your program can't be assigned. nent strings. Comparing the low­ arranged this way, you may have to end pointers ($6F.70) after a long settle for some garbage buildup. At Step 3: session will show you just how least you can minimize it. As a Save the modified version, then much memory you've saved. general rule, never execute a GOSUB run it. Process some strings with 306 until the temporary strings have it, and exit. Then print your per­ An Example been sent to their final destination. manent strings to confirm their You might want to type in the pro­ The complete program in Listing accuracy, and review any resultant gram shown in Listing 1, just to 1 is the "AFTER" program (already files to make sure none of your prove to yourself that it works. modified). To make the "BEFORE" temporary strings got scrambled Sample runs are included, complete version, delete lines 15, 85, 175, 305 before they were written out. If with post-run memory examination. and 306, and change the branch lines everything looks normal, proceed as indicated in the REMarks in lines with Step 4. If not, start over. 100 and 170. lLIST 140 PRINT PRINT "WE'VE ALREADY 300 END 5 REM DISCUSSED"; PERMS (I) ;"," 305 SL = PEEK PERMS(I) THEN 290 PRINT PRINT'"THAT'S ALL FO 170 R NOW, THANKS!"

10 Call -AP,P.L.E. August 1982 Apple Pugetsound Program Library Exchange I Page 0014 of 0090 Call-A.P.P.L.E. Magazine • August 1982

How the program works: strings pointer. This is of no Lines 180 through 260 receive Line 10 defines D$ as CHR$(4) for consequence the first time through, temporary strings A$ and B$, and use in DOS commands. This will because no new strings were entered write to the file all data generated by remain unaltered and will be used after SL· and SH were set. This line the current pass through the I -loop. several times during execution; will become useful on subsequent Line 270 increments I and, if more therefore, it is a permanent string. passes. topics are to be discussed, it returns Line 15 sets SL and SB equal to Lines 90 through 170 receive a to the beginning of the I-loop at line the bottom-of-strings pointer bytes, topic, test for duplication, and reject 80. Now look at what line 85 will do! which now point to D$. All subsequent all duplicates. Rejection leads back to It POKEs SL and SH into the strings will be placed below this line 85, where the pointer is reset so bottom-of-strings pointer, making it location. D$ will not be overwritten. the next topic will overwrite the point once more to the beginning of Lines 20 through 70 determin~ duplicate. the most recent permanent string. All how many topics will be discussed. Line 175 is reached only when the temporary strings processed since PERM$ is dimensioned accordingly, input topic has been accepted. To then lie below this point, and will be the file is opened, and the number of preserve it as a permanent string, it overwritten when line 90 receives topics is written as the first item in sets SL and SH equal to the bottom­ another permanent string! The the file. of-strings pointer, which now points garbage has been eliminated. Line 80 marks the top of the to the first character of the just-input This technique got me out of a I-loop. PERM$(I). Future strings will be serious bind and into production. I Line 85 POKEs the values of SL placed below this location. hope it can do the same for you. and SH back into the bottom-of- ~ LISTING 2 1RUNBEFORE NAME A TOPIC $ELECTIVE STRING FReSERVATI HOW MANY TOPICS SHALL WE DISCUSS~3 ON NAME A TOP!CCOMPUTERS DO YOU LIKE SEtECTIV: STRING PR:SERVATIO N~ y DO YOU LIKE COMPUTERS2Y WHY~:T CONSERVES MEMORY AND DotSN'T ~AST WHY 7 1 ENJOY PROGRAMMING E TIME

NAME A TOPICGAR8AGE COLLFCT:ON THAT'S AL~ FOR NOW THANKSI DO YOU LIKE GAREAGE C0LLECTIONIK

WHY NOT~IT SLOWS DOWN MY FROGRAMS. ALWA YS AT THE WORST FOSSiBLE tIMES,

:CHL-151 LISTING 3 • cr. 74 00 6F - fcf?l Strings start at $9547 A.P.P.L.E. Members Only 0070- ~ 72 95 and end below $9600. 4 ~ 1<9547 9SrF ~ Introducing: 9547- 4? ~ 9548- 54 20 IlJ

Call-AP.P.L.E. August 1982 II Apple Pugetsound Program Library Exchange I Page 0015 of 0090 Call-A.P.P.L.E. Magazine • August 1982

GARBAGEMEN STRIKE

LISTING 4 lRl.'NHTEP. WHY NCT'I! SLOWS DOWN MY PRO~RAM3 HOW MANY TOPICS SHALL ~£ DIS:USS~3 YS AT THE WCRST P0SSlBLE Ti~ES

NAME A TOPIC SELECTI)E STRIN~ PRE5CR1AT. ON DC Y~0 L;KI CCMPUTERS~Y DO YOU LIKE SELECTIVE STRING ~R£5EJVAT:C VHY:: ENJOY ?ROGRAMMING N?'f

WHY1IT CONSERVES ME~CR1 ANO DOESN'T WAST NAME A TOPIC GARBAGE :JLLEGTIJN E TIMr:~ DO YOU LIKE GAREAGE CCLLECTIONlN THATS ALL FOR NOW THANKS'

LISTING 5 JC. .O\LL-l:1 ~ 6F ~ 4 006F- Strings start at $959B 0070 - 9~ Co. .") 5 10 (j 961 and end below $9600 *9:; 'is rrnnfF f 5 9 B- 49 5<1 20 43 H . T C 0 ~ , 9SAO- 4E 53 q :; 52 56 45 5 j I.J 'J N ;;) E R V E S Most 95 Ad- 4D 45 4D 'if 5 'Z 59 20 iJ ! 11 E M 0 R y A recent B 0- ~ '. .?:; H 44 ~ 0 ~ 4

Business • Printer • Graphics DOUBLE your DISKETTES Games • Text • Music The only reasons your APPLE II cannot use the back side of Utilities • Data Base • Finance your diskette are: Science • Engineering • and many 1. There is no notch. others with 3.3 DOS for easy demuffining. 2. The diskette manufacturer either did not test the back side, or worse, put the flawed side to the back. First 3 disks available at $59.95 each A pair of diagonal cutters will solve problem number 1. DISK PREP Order all 3 for a free bonus disk. will solve problem number 2. Call now toll free: 1-800-327-8664 DISK PREP formats and tests your disk. Sectors with flaws are left so they cannot be used. Your disk is left ready to Fla. Residents: 305-584-7004 boot, complete with a flaw report program saved on it. Please add $3 for postage & handling. $25.00 6400 Hayes St. sympathetic software 9531 Telhan Drive Hollywood, FL 33024 a=- Huntington Beach, Ca. 92646 ·TM Apple is a registered trademark of Apple Computer Co. DOS 3.3 and DOS 3.2.1 California residents add $1.50 tax. 12 Apple Pugetsound Program Library Exchange I Page 0016 of 0090 Call-A.P.P.L.E. Magazine • August 1982

Completely Redesigned. The Grappler + Features: Now, the Grappler + • • Dual Hi-Res Graphics • Printer The original Grappler was the Selector Dip Switch • Apple III first graphics interface to give Compatible* • Graphics Screen you hi-res screen dumps from Dump. Inverse Graphics • Emphasized Graphics. Double Size your keyboard. The new Picture • 90° Rotation • Center Grappler + with Dual Hi-Res Graphics • Chart Recorder Graphics adds flexibility with a ACTUAL APPLE II PRINTOUT USING GRAPPLER' AND EPSON MX100 Mode • Block Graphics • Bell side-by-side printout of page 1 Control • Skip-over-perf • Left and and page 2 graphics. Right Margins. Variable Line Interfacing the Grappler + to a Length. Text Screen Dumps. wide range of printers is easy The Grappler + works with Pascal as changing a dip switch. 4K of and CPM. exclusive firmware makes the Grappler + the most intelligent, The Grappler + Interfaces with full-featured Apple Printer the following printers: Interface made. And, the • Anadex • Centronics • Datasouth • Epson*' • IDS • NEC. C-Itoh· Okidata* * Grappler + is Apple III compatible.· The imitations are many, so "'.'~i:!II~ Orange mi(~~. insist on the #1 Apple Graphics 3150 E. La Palma, Suite G Interface on the market. Insist Anaheim, California 92806 on the Grappler +. Available (714) 630·3620 now at most Apple dealers. CPM is a registered trademark of Digital Research, Inc Apple II and Apple III are registered trade names of eRequires additional software driver. Apple Computer Inc • "Requires graphics upgrade.

Apple Pugetsound Program Library Exchange Page 0017 of 0090 Call-A.P.P.L.E. Magazine • August 1982

GET FREE SOFTWARE FOR YOUR COMPUTER! HOW? JUST ORDER ANY OF THE ITEMS BELOW, AND SELECT YOUR FREE SOFTWARE FROM THE BONUS SOFTWARE SECTION, USING THE FOLLOWING RULE: FOR THE FIRST $100.00 WORTH OF MERCHANDISE ORDERED TAKE 1 ITEM; FOR THE NEXT $200.00 WORTH OF MERCHANDISE ORDERED TAKE ANOTHER ITEM; FOR THE NEXT $300.00 TAKE A THIRD ITEM, ETC. ALL AT NO COST.

HARDWARE by APPLE COMPUTER PRINTERS COMPUTER SYSTEMS APPLE II + 48K 1199 PASCAL 150 EPSON: ATARI FLOPPY DR + CNTRLR 545 FLOPPY DRIVE 465 MX80 449 MX80F/T 549 ATARI800(16K) 629 ATARI400(16K) 335 APPLEIII.128K 2999 PILOT 125 MX100w/Graftrax 729 MX70w/Graftrax 285 810DiskDrive 449 825 Printer 599 We carry the rest of the APPLE line at low. low prices I CALL' APPLE Intfce/Cbl 85 GRAFTRAX 60 16K Ram Memory 89 850 Interface 159 GRAPPLER Intfc 149 2K Buffer Serial Card 135 Microsoft BasIc 69 830 Modem 149 MX80 Ribbon 15 MX100R,bbon 24 INTEC 32K Ram Memory 129 Telelink Cartridge 25 for OTHER HARDWARE APPLE C.fTOH: ATARI800(48K) 739 AXLON 128K Ram Disk 550 O.C. HAYES' F'I 0 DaisyWheel (Par) 1495 F·l 0 DaisyWheel (Ser) 1495 ATARI400(48K) 435 MIcromodem II 285 Smarlmodem 225 Pro· Writer (Par ISer) 599 Pro· Writer (Par) 499 OSBORNE MICROSOFT' F'IO TractorOplion 225 Printer Interfaces CALL Osborne I 1695 Printer Cable 55 Z80 Softcard 269 16K Ramcard 139 NEC: XEROX MOUNTAIN COMPUTER: PC'8023A 495 NEC 771 0 Daisy 2345 820·1 System w I 5 " Dr 2450 820· 2 System w 18 'Dr 2950 Expansion ChassIs 559 Music Syslem 339 QUME: OtABLO: CP/M Op Sys 159 Wordstar 419 AID + D/ACard 299 CPS Multl·lunctlon 169 SPRINT 9/45 1995 630 RIO 2099 Super Calc 199 DIABLO 630 Printer 2099 X I 10 Control Card 169 Super Talker 169 OKIDATA: Systems·Plus BIZ SOFTWARE. PER MODULE CALL' CALL FOR MORE PRICES' WE CARRY FULL LINE' Microline82A 495 Mlcrollne 80 375 NEC CALIFORNIA COMPUTER SYSTEMS' MlcrolineTractor 59 Okigraph I 79 Full Line at Low. Low Prices I CALL' Centronics Par Int 115 AID Converter 105 Mlcrollne 83A 799 Microline84 (Par) 1099 COM MODORE VIC Async Serlallnt 135 Calendar I Clock 101 IDS: VIC 20 Computer 259 VIC 1515Printer 335 CALL FOR MORE PRICES' WE CARRY FULL LINE' 560wlth graphiCS 1095 Prism· Print Software 49 VIC 1540 Disk Drive 499 VIC 1211ASupr·Expndr 59 VIDEX' , Prlsm80(Baslc) 899 Prism 132(Basic) 1050 VIC 1530 Dalasette 69 VIC 1011ARS'232Port 45 80 Col Bd & Softswltch 235 Enhancer II 125 Auto Sheet Feed 125 Prism Color 325 Enhancer I 105 Soflswllch 29 Sprint Mode (200cps) 125 Dot Plot Graphics 85 MORE OTHER HAROWARE FOR APPLE GENERAL CP/M SOFTWARE SSM AIO·II 195 Keybd Co Num Keypad 129 MICROSOFT: SSM Serial AS I 0 115 Sunshine JoystICk 39 Basic 80 275 Edit80 139 ADD-ON MEMORY CAROS & DISK DRIVES BasIC SSM Par AP10 99 Game Paddles 29 FOR APPLE 299 Mu Math/Mu Simp 199 Novallon Apple Cat 319 Fortran 80 339 Mu Lisp/Mu Star 159 Shadow I Vet 885 MEMORY: VersawriterTablet 249 SUPR MOD 29 Cobol 80 499 M·Sort 12B Microsoft 16K Ramcard 139 Saturn 32K Card Prac Perlph M,crobull Prac Perlph M,crobutt 199 Macr080 139 Z·80 Softcardl Apple 269 Legend 128K Ramcard 649 Saturn 64K Card 369 132KI 249 ! 210 MICROPRO' 16KI Legend 64K Ramcard 299 Saturn 128K Card 525 Wordstar Calcstar SVA 256K APL·Cache 1045 Prometheus 128K 275 199 439 Mallmerge Supersort AXLON 320K Ram Disk 1149 16Kof4116. 200NS Mem 25 89 165 OTHER SOFTWARE for APPLE: Spellstar 165 Custom Notes 275 APPLE·COMPATIBLE FLOPPIES by MtCRO·SCI: Datastar 239 PERSONAL SOFTWARE/VISICORP' With Controller No Controller ASHTON· TATE: Vlslcalc 3 3 195 Vlsll,les 199 A35 Exact Replacement 460 A35 Exact Replacement 415 dBASE II 475 dBASE II GUide 29 CALL FOR MORE PRICES' WE CARRY FULL LINE' A40 40· Track 489 A4040·Track 399 MICROSOFT A7070· Track 599 A7070·Track 499 SORCIM' Super Calc 189 APPLEFortran I Z801 ' 29 APPLECobollZ801 499 B" FLOPPY DISK SYSTEMS: TASC BaslCCompller 139 M BASIC Compiler I l801 299 Vista Dual SSDD 1299 Vista Dual DSDD 1599 FOX·GELLER· TIME Manager 125 MuMath 199 SVA AMS8000 Dual SVA AMS8000 Dual Quickscreen 129 dUTIL 69 ALDS 99 M I SORT 149 SSOO 1945 oSoD 2595 QulCkcode (Writes programs lor d BASE II) 199 MICRO·PRO SVAlVX4Quad Cntrllr 495 SVA Disk 2 + 2 Cntrllr 359 ISA: Wordstar 225 Mall Merge 99 CORVUS HARD DISKS: Spellguard 219 SP/LAW 99 Spellstar 149 Data·Star 199 6MBHardOisk 2249 Apple Interface 175 PEACHTREE Super· Sort 149 Calc· Star 149 II MBHardolsk 3945 Other Computer I nllce CALL Gen. Ledger 399/40 Inventory 399/40 PEACHTREE: BIZ Packages. all 199 20MBHardoisk 4769 MifrorBack·Up 675 Accl. Rec 399/40 Magicalc 269/25 CPA BIZ Packages, all 195 Accl. Pay 399/40 Sales Invoicing 399/40 Payroll 399/40 MORE OTHER SOFTWARE fDr APPLE: DB Mdster 179 DB Master lor CORVUS 399 MONITORS, PLOTTERS & PERIPHERALS SYSTEMS PLUS Data Factory 5 0 239 PfS 85 MONITORS: All Modules 415/EA ASCII Express 55 Dakin 5Deprec Planner 299 Zenith 12" Green 125 Zenith 13 "Color 359 SorCim Super Calc 189 Dakin 5 BIZ Bookkeeper 299 Amdek 12" Green 135 Amdek 13" Color 359 Howard Tax Prep 115 Broderbund Payroll 325 BMC 12" Green 119 BMC 12" Color 349 S-100 BOARDS Howard Real Eslate Anal 129 BPI Accounting Pkgs/ea 325 Electrohome RGB Inllce 275 Electrohome RGB 13 'Clr 725 HAYES S·100 MODEM 325 HAYES SMART MODEM 219 HAYES CHRONOGRAPH 189 SynergistiC' Data Reporter Manages Plots & Edits Data' 189 PLOTTERS: CCS 64K RAM BOARD 525 Watanabe I·Pen 1150 Watanabe6·Pen 1400 WORO-PROCE~SORS & SPELLERS fDr APPLE: Strobe Plotter I·Pen 699 Strobel Apple I ntfce WordstarCP/M 225 EZWrlterProf Sys 99 215 Houston Inst DMp·3 929 Houston Inst DMp·4 1185 FLOPPY DISKS MaglCWandCP/M MUSE Super Text 80 299 150 Elephant 5 25" Elephant 8" Executive Secretary 199 Word power 50 OTHER PERIPHERALS: SoftSSSo/bx 25 SoftSSSo/6x Leiter Perlect 125 Hebrew II 55 Scott Shadow/VET 885 Street Echo II Synth 189 29 3M 5" Soft SSSD/bx 27 3M 8" SoftSSSD/bx MaglCWindow 85 Screenwriter II liD Votrax Type· N' . Talk 325 Computer Sta oithertlZer 269 32 Maxell5" Soft SSSD/bx 31 Spellguard 219 SpelistarCP/M 149 ALF 9·VOIce MusIC Bd 155 Comp Sta. VideoCamera375 Maxell8" Soft SSSD/bx 35 DYSAN 5" SoftSSSD/bx 37 Word Handler IG,ves 80·Col & Lower·Case With nO board' I 199 ALF 3·VOIce MUSIC Bd 199 Comp Stal. Bothabove 599 DYSAN 8" Sof SSSD/bx 49 BONUS SOFTWARE SECTION I Let us acquaint you with MESSAGE-MAKING SOFTWARE Just place the disk in the Records of files can be printed, if desired, Additional modules coming are a STATISTICS APPLE, enter the text. and colorful, dynamic messages appear on the screens alTV sets INTERFACE. CHECKBOOK. MAILING LIST & DATA·ENTRY connected to the computer Use the software to broadcast messages on TV .screens in REOUIRES 48K & ROM APPLESOFT $40 schools, hospitals, factories, store window. exhibit booths, etc. The following program is our latest release APPLE LITERATURE DATABASE: Allows rapid relrieval (via keywords) of references from total APPLE literature thru 1980, on 5.25" disk. Each entry in the data base consists of the SUPER MESSAGE: Creates messages in lull-page "thunks" Each message allows article, author-name, periodical:na~e" dat~ of issue, & page nos. The database, is statements of miKed typestyles, typesizes and colors, in mixed upper and lower case Intended to support large magazine Illes which would require lengthy manual searching S!yles range from regular APPLE characters, up to double-size, double-width characters to recover information. Annual updates will be available .vith a heavy, bold font Six colors may be used for each differenttypeslyle, 'lkrtical and REOUIRES 48K & ROM APPLESOFT $60 horizontal centering are available, and word-wrap is Users can chail1 ~utomatic, p~ges WORDPOWER: Is a simple, p.owerful, low cost. line-oriented word-processor program. It together,to make mullt·page messages Pages can be advanced manually or automatlcal Iy. Multi-page messages can be stored to disc or recalled instantly olfers a fast machine language FIND & REPLACE. Text can be listed to screen or printer. REOUIRES 48K & ROM APPLESOFT $50 with or without line·numbers. Lower·case adaptors are supported. You can merge files, move groups of Ii.nes.and easi~y add, change, or delete lines. ~ORDPOWER can. be used APPLE PLOTS YOUR DATA & KEEPS YOUR RECORDS TOO' APPLE DATA GRAPH 2.1 to create and maintain EXEC files. It can also be used as a rapid, unstructured, tnforma Plots up to 3 superimposed curves on the Hi-res Screen both X & Y axes dimensioned tion-storage and retrieval system via its rapid search capabilities Each curve consists of up 10120 pieces of data. Graphs can be stored to disc and recalled REQUIRES 48K & ROM APPLESQFT $50 immediately for updating Up to 100 graphs can be stored on the same disc. Great for Stock·market Charting, BUSiness Management, and Classroom instruction! LABELMAKER: Allows users to quickly create address labels. A given label may be gen­ REOUIRES 48K & ROM APPLESOFT $35 erated in any quantity from 1 to 32767. Space is allowed on labels for a personal and company name, but the space is 'automatically clospd up if only a personal name is APPLE RECORD MANAGER: Allows complex files to be brought into memory so Ihat record searches and manipulations are instantaneous. Records within any file can can fan~:r:7or 7!:~~~t~~:,1 ~~rr~~~b~r~o;nfg~~~I~mc~os~~~~ss sJ~~ :sr,~a~~ ~,a'~F~I:~ I~~~~~~~e lain up 10 20 fields, with user-de!ined headings. Information can be string,or numeric A self-incrementing feature allows. theatre-tickets 10 be produced. With a date, and Users can browse Ihru files uSing page-forward, page-backward or random-search com­ ~.unibers running Irof!! aOOO to z999, An editor is provided for editing labels prior to print mands. Records can easily be s~arched, altered or sorted at will. Files can be stored on Ing. All labels may be saved to disk for instant recall the same drive as the master prOQram, or on another. if a second drive is available REOUIRES 48K & ROM APPLESOFT $35. Above software lor APPLE DOS 3.2/3.3 only. Call for BONUSES lor other systems. TO ORDER: Use phone or mail. We accept VISA, MASTERCARD, COD's, personal checks & CONN. INFO. SYSTEMS CO. money orders. Add 4% for credit card. Customer pays handling on COD orders. Foreign orders must be in American Doliars & include 10% for handling. Connecticut residents add (203) 579·0472 7.5% sales lax. Prices subject to change without notice. 218 Huntington Road, Bridgeport, CT 06608 Not responSible for typographical errors Prices subject to change without notice

Apple Pugetsound Program Library Exchange I Page 0018 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A Call -A.P.P.L.E. APPLE-CATION Total Recall

David Unker

UICK, where is the disk When you run the program it first These are the most costly functions with that great utility asks you for the name of the file to in terms of computations and there­ routine you entered from load. If you don't know which files fore time. A volume sort took eight Q an issue of Call - are available, you can enter "c" to minutes, while an alphabetic sort A.P.P L.E. last year? If you have see the catalog. After you have took only 2:53. If you now do a more than a few disks, the method of entered the name of the file, the pro­ search, the results will come out in locating that program will leave gram reads it in (for my test file this sort order. something to be desired. The solu­ took 1:25). You then have your op­ tion to the problem lies in making tions displayed on a menu. . .. 8 minutes is much better the computer do the work of finding If you choose 1, the program will the disk from a multi-disk catalog. search for the title you give it. than 194 ... Fortunately there already is a pro­ Anything after you hit return is a gram called Mutt Disk Ctlg on the "wildcard," that is, it isn't used to Even though eight minutes is Diskpak 6B which reads the catalog determine the match. For example, if much better than 194, you only have on each disk you enter and creates a you enter "LIN " the program to do it once because you can save the text file containing the information. would match it to "LINEAR RE­ sorted file by using option 7. You can There is also a program called File GRESSION," and "LINCOLN," but choose a filename, and if you want to Cabinet II on the same disk which can not "BLINE," or "LI REG." This view the catalog before committing read the file and retrieve the data by type of search took 5 seconds with yourself, you can enter "c" for the search routines, or sort it. Sounds my test file. The programs that catalog. Finally, you can read in a great, doesn't it? match will be listed on the screen or new file through option 8, or quit The first time I tried the program the printer, depending on which you using option 9. I entered the catalogs of 20 disks specified. After the search is over, The program is set up to reject in­ with 595 programs. All went well un­ you will return to the menu. valid inputs, with the exception that til I tried to read them with File If you choose 2, you can search for it cannot check filenames. If for some Cabinet II The reading procedure an imbedded string. If you were to reason you quit, or have an abnormal took 45 minutes! Also, the estimated enter "LIN ," the program end due to an entry error, you can time for a sort was 194 minutes! would match it with the first three ex­ re-enter the program with the data Retrieval worked well once the data amples above, but not the last, and intact by typing "GOTO 810." had been entered, but in 45 minutes I would also match "CUBIC SPLINES" The machine language routine could have searched all the disks and "CURVILINEAR INTERPO­ uses the "&" vector for entry, and myself. LATION." This type of search took was extracted from "PRINT USING 1:45 with my file. AND FRIENDS" in Call ... Reading 595 titles took 45 The third entry on the menu -A.P.P.L.E. in Depth 1, by Craig causes a search by file type (A for minutes and sorting took 1941 Peterson, and uses exactly the same Applesoft, I for Integer, B for binary, syntax. If you have PUF already T for text, and R for relocatable). entered, you can use it without any Enter Retrieve, for total recall. This type of search took about 7 modifications other than changing This program, along. with a short seconds with my test file. "BRUN SWAP" to "BRUN PUF" machine language subroutine, will The fourth option allows a search in line 710. enable you to rapidly load the files by volume number, which is either created by Mutt Disk Ctlg, search for the volume number of the disk, or a How It Works programs by title, strings in the title, number you assigned when you used In order to understand how the volume (disk) number, or file type, Mutt Disk Ctlg. This option took six program works, and why it was and print the results on the screen or seconds. necessary to program it in certain a printer. In addition, you can sort the If you like well ordered lists, the ways, we need to know why File files by volume number or title and next two options are for you. Number Cabinet II has trouble with this file. save the sorted file under a new (or 5 performs a sort by volume number, When File Cabinet is run to enter the the same) name. and number 6 performs a sort by title. file, the disk drive runs for a while, and then stops for many minutes.

Call-A.P.P.L.E. August 1982 15 Apple Pugetsound Program Library Exchange I Page 0019 of 0090 Call-A.P.P.L.E. Magazine • August 1982

TOTAL RECALL

Then the drive starts up again and "Quicksort" algorithm, which will was avoided was to make sure that stops after a few seconds, to wait for give one of the best sort times in most control-D was not the first character another long period. This cycle cases, and doesn't use a lot of extra on the line the second time around, repeats until all the data has been memory. It is a gamble, but a fairly because then the print statement read in. The reason for the long safe bet. There are unusual circum­ would not be read as a DOS com­ delay has to do with how Applesoft stances under which the search time mand. in fact this was easy, since the handles strings and changes their will deteriorate, but they are ex­ preceeding statement was "GET value. tremely unlikely. The program uses a S$," which does not generate a car­ rewritten version of David's routine riage return. ... The reasons for the long to sort strings and allow several ar­ rays to be sorted simultaneously. The ... GET... Does not generate delay has to do with how resulting routine was still very slow, Applesoft handles strings ... but this time the reason was our old a carriage return ... demon, garbage. Applesoft stores a list of string The solution lay in the collection A few comments on the use of the names and pointers to where the ac­ of routines called Print Using and program are in order. When you use tual value resides in memory. When Friends. One of the routines is called MULT DISK CTLG to enter the pro­ you assign a new value to a string, SWAP, and what it does is trade two grams, you are allowed a choice of the value is put in memory and the variable values without having to the number of characters in the title pointers are changed, but the old assign a temporary storage variable, you want to store. Too large a value is left in place, without any and without creating any garbage! It number will adversely affect the pointers to it. If your program has a number of programs in the file and the length of time for a sub-string lot of string value changes, these ... The solution lies in trading unused values can fill up memory. In search, while too few may make order to prevent this, Applesoft will string values ... several programs have the same automatically do garbage collection titles. I use 22 characters, and with when memory is almost full to clean does this by changing the pointers to 595 programs in memory I have over out unused values. The catch is that the values, without moving the values 9K remaining (out of 48K). Next, all when you have a large number of themselves. Using that subroutine of the functions will be more efficient strings, this can take a long time cut the sort times down to the values if you divide up your files in logical (seven minutes in my test case!). If I mentioned above. If you have PUF, categories, such as "DOS 3.2 this occurs during a disk read, it will by all means use that file. If you GAMES," or "DOS 3.3 stop, and resume when the garbage don't, there is a listing of a assembly BUSINESS." That way, since you has been discarded. If it occurs language routine at the end of this ar­ know the category of program you during a sort, well, don't hold your ticle which only does the swap and are looking for, you will not have to breath! For more details on Applesoft therefore is shorter. After entering load as large a file and everthing will string handling and garbage collec­ the code through the monitor, re­ take less time. On the few occasions tion, see "Applesoft From Bottom enter Applesoft and type "BSAVE when you do have to search all the To Top" in Call -A.P.P.L.E. in SWAP,A$9581,L$7F." if you files, the added time will be minimal. Depth 1. have an assembler and want to move That's it! Now what are you going How can we avoid this? The first the routine to $300 to save space for to do with all the time you will save? method is to avoid unnecessary string strings, just change line 36 to aRTS, manipulations. In our case, this com­ delete line 33, change 27 to ORG ~ pletely eliminated the problem during $300, and delete the variables LIN­ file reading and searches, and cut NUM and RSHM. You can use the those times down to the times I routine to swap any two variables of quoted. All that remained was to the same type in your programs. To shorten the sort time. use it in other programs, just "BRUN" it before you have used any string variables in your program, •• .1 chose to use the "Quick then use the syntax "& SW AP > lLIST Sort" Algorithm ... varl,var2." 10 REK In RETRIEVE I used a little trick First we need an efficient sort to avoid loading the routine a second So What did you Espeet Dept. algorithm. Fortunately, there was a time when you load another file. It is good article on the subject in Call necessary to redimension the arrays N. D. Creene : Call -A.P.P.L.E. -A.P.P.L.E. in October 1980 by for the second file, and an easy way 100 FOR N : sa TO 1 STEP - I: FOR David Weston which compared ten to do this is to execute the statement I = 492.0 TO 49114:1 = PEEK sort algorithms. I chose to use the "RUN," but we would rather not (! ): KElT : FOR 1 = 1 10 5 • have to reload SWAP. The way this K: NElT : NElT

16 Call -A. P.PL E. August 1982 Apple Pugetsound Program Library Exchange I Page 0020 of 0090 Call-A.P.P.L.E. Magazine • August 1982

lL 1ST 300 REM ttt_ VOLUME SEARCH ttttttt.tt. o REM 310 INPUT "VOLUME I:";V: CO SUB 9 MULTI-DISK CATALOC RETRIEVAL 10 by David Linker no FOR I = 1 TO N: IF VAL (VS( I» .. v THEN PRINT VS(I>;" Call -A.P.P.L.E. : Aug. 1982 ";TS(I);" "iLS(I);" ";NS(I ):J .. J+l 1 COTO 710 330 NEXT: RETURN : REM 4 REM •••• ttt QUICKSORT ROUTINE tttt.t 400 REM ttt_ TYPE SEARCH ttt.tt.t •• tt 5 N$(N + 1) a "ZZZZZZZZZZZZZZZZZZ Z" : VS (N + 1) = NI (N + 1): LW .. 410 INPUT "TYPE?(A/B/I/T/R):";SS o : H I = N: ST = 0 : IF (SS ( ) "A") AND (SS ( 7 IF LIJ) H I THEN 31 ) " B" ) AND (S S { }" I " ) AND = (SS ( ) "T") AND (SS ( )" 9 J = HI + 1:1 .. LW:MID = INT « HI - LIJ) I 1) + LIJ R") THEN GOTO 410 11 & SWAP} TS(MID) ,TS(LW): & SW 420 COSUB 910: FOR I .. 1 TO N: IF AP ) VS NS( ;" ";TS(I);" ";LS(I);" ";N MI D) ,Nt ( LW) S(l):J .. J+l 13 I .. I + 1: ON SIJ COTO 37,41 430 NEXT: RETURN : REM 1 5 J = J - 1: ON SW COTO 45, 49 17 IF J ( = I THEN 21 500 REM ttt_ INPUT FILE tttttttttttttt 1 9 & SW A P ) N S ( 1) ,N S ( J): & 51J A P ) LS(l> ,LS, TS VS(J),VS(LIJ): & SWAP (NS): DIM VS(N + t),TS(N + 1 + } TS (J) ,TS ( LW): & SWAP ) LS ),LS(N + l),NS(N 1),B(32): (J) ,LS (LW): & SWAP) NS(J) ,N PCS .. CHRS (9) + "80N": REM S (LIJ) 80 COLUMN OUTPUT 23 IF J - LIJ ( HI - J THEN 27 5 ZO FOR 1 = 1 TO N: INPUT VS (l) , 25 B (ST + 1) .. LIJ: B '( ST + 1) .. J - TS(I),LS(I),NS(l): NEXT: PRINT l:LW .. J + 1: COTO 19 DS"CLOSE": RETURN: REM 27 B(ST + 1) .. J + 1:B(ST + 2) .. HI : HI = J - 1 600 REM 29 ST .. ST + 2: GOTO 7 ttt. OUTPUT rILE t.tt.tttttttt 31 IF ST 0 THEN 35 = 610 PRINT "WHAT FILE NAME?": liOSUB 33 HI .. B(ST) :LIJ .. B(ST - 1) :ST :0: ST - 2: COTO 7 1200 35 RETURN no PRINT DS"OPEN "5$: PRINT DS" 37 IF VS(I) ( = VS(LIJ) THEN 13 WRITE "SS: PRINT N: FOR I = 39 GOTO 15 1 TO N: PRINT VS (I): PRINT T 41 IF NS(I) ( = NI(LIJ) THEN 13 S (1): PRINT LS (1): PRINT NS< 43 GOTO 15 1>: NEXT: PRINT DS"CLOSE":J 4S IF VS(J) ) VS(LW) THEN 15 = J + 1: RETURN: REM 47 COTO 17 49 IF NS(J) ) NS

100 REM 710 PRINT CHIS (4)"BRUN S'JAP":D _tt_ SUBSTRING SEARCH tttttttt $ = CHRS (13) + CHRS (4): HOME VTAB (10): PRINT "IJHICH FI 110 INPUT "STRING TO SEARCH FOR: LE SHOULD I LOAD?": COSUB 1Z ";SS:S .. LEN (SS):L. LEN 00 (NS (1» : IT .. L - S + 1: COSUB 720 HOME VTAB (10): FLASH: PRINT 910 "READING FILES": NORMAL: COSUB 12 0 FOR I .. 1 TO N: rOR M • 1 TO 510: HOME: VTAB (4): REM IT: IF MIDS (NS,M,S) = S S THEN PRINT VS(l)j" "iTS(I 800 REM );" ";LS(I>;" "iNS(I>:J .. it_t MENU ttttttttttttt_tttttt J + 1 130 NEXT: NEXT : RETURN : REM 810 PRINT "DO YOU ""ANT TO:": PRINT PRINT "1) SEARCH FOR TITLE ZOO REM ": PR INT "Z) SEARCH FOR A SU ttt_ TITLE SEARCH tttttttttttt B STRINC": PRINT "3) SEARCH BY TYPE" 110 INPUT "TI TLE TO SEARCH FOR:" 820 PRINT "4) SEARCH FOR VOLUME" ;SS:L. LEN (55): COSUB 910 : PR INT "5) SORT BY VOLUME": PRINT "6) SORT BY TITLE": PRINT "7) SAVE SORT FILE": PRINT" no FOR 1 :0: 1 TO N: IF LEFTS (N HI)'L) .. SS THEN PRINT VS( 8) READ A NEW FlLE": PRINT II 1 ) ;" "; TS ( I ) ; " " ; L S ( I ) ;" " 9) QUIT": PR INT "YOUR SELECT ;NS(l):J .. J + 1 ION?": CET SS:S = ASC (St) - 130 NEXT: RETURN : REM 48 830 IF (S < 1) OR (S ) 9) THEN HOME : GOTO 810

Call -A.P.P.L.E. August 1982 17 Apple Pugetsound Program Library Exchange I Page 0021 of 0090 Call-A.P.P.L.E. Magazine • August 1982

TIRED OF ALL THE TOTAL RECALL "EXCEPT FOR ... "S? 84 0 IF ( S) = 1) AND (S ( = 4) THEN PRINT: PRINT "DO YOU WITH THE NEW PRINTOGRAPHER WANT TO PRINT RESULTS? (YIN GRAPHICS PRINTING SYSTEM, )": GET ASS: IF (ASS ( ) liN ") AND (ASS ( ) "Y") THEN GOTO WE'VE GOT YOU COVERED! 840 850 IF (S = 5) OR (S = 6) THEN S W = S - 4 860 J = 0: ON S GOSUB 210,110,410 PRINT , 310 , 5 15 I 6 10 , 1000 I 11 DO : PR INT D$i"PRIQ": IF J = 0 THEN PRINT "NO RECORDS FOUND" 870 PRINT "HIT ANY KEY TO CONTIN UE": GET 55: HOKE: COTO 810 : REM 900 REM a.*a HEADER ROUTINE .a •••• __ ._

910 IF ASS. "Y" THEN PRINT DS i "PRJ1": PRINT PCS 920 HOME : PRINT "VOL TYP LEN TI TLE": PRINT ,,------______------": RETURN : REM

999 REM _ •• a MISCELLANEOUS ROUTINES _ PRICE: $49.95 1000 RUN \CoIffomIO P.esldenrs odd 6% sole. 'ox.) 11 00 END 1200 INPUT" (ENTER I C I FOR CATAL llleMIHTOGIV.PHER is designed to fill all of your graphic prinfin9 OC) FILE:";SS: IF SS:o: "e" THEN ~s, without having to worry about running into the problem of it HOME: PRINT DSi"CATALOC": PRINT almost working, "except on your printer", or "except for the lack of "HIT ANY KEY TO CONTINUE": CET ftl

18 Call -AP.P.L.E. August 1982. Apple Pugetsound Program Library Exchange Page 0022 of 0090 Call-A.P.P.L.E. Magazine • August 1982

*•• *•••• *.* ••••••••• ** ••••••••• * 2 • & SWAP • 3 • Original by Craig Peterson. 4 • Call -A.P.P.L.E. in Depth 1 • 5 • "PRINT USING AND FRIENDS" • , * • 7 Adapted by David Linker 8 *• Ca 11 -A.P.P.L.E. Aug, 1982 • **** •• *•• e.** ••••• *.**.* ••••••••• 10 * 11 AMPV EOU S03F5 ; I & I JUMP VECTOR 12 * 13 LINNUM EOU S50 ;GENERAL PORPOSE REGISTER 14 RSHM EOU SF28C iRESET HIMEM ROUTINE 15 CMD EOU $19 ;COMMAND NUMBER 16 TXTPTR EOU US ; TEXT PO INTER 17 SNTX EOU SDEC9 ; SYNTAX ERROR 18 ADDON EOU SD998 iADD Y TO TITPTR 19 PTRGET EOU SDFE3 iGET VARIABLE POINTER 20 FORPNT EOU $85 iVARIABLE POINTER 1 11 VARNAM EOU S8l iVARIABLE NAKE 22 CHit COM EQU SDEBE iCHECK FOR COMMA 23 MMCH EOU SDD7' iMISMATCH ERROR 24 VARPNT EOU $83 iVARIABLE POINTER 2 25 • 26 27 * ORG $9581 ;PROGRAM ORIGIN 28 * 29 • 9581 12 02 30 INIT LOX 1$02 iSET UP ., . VCTR 9583 BD 91 95 31 INTl LDA AMPJ,I ;ANO RESET HIMEM 9586 90 F5 03 32 STA AMPV,X ;AND BOTTOM OF 9Sat 95 4F 33 STA L INNU"-l II ;STRING POINTERS 958B CA 34 DEX 958C 10 F5 35 BPL INTl 958E 4C ac n 36 JMP RSHM iRESET HIKEK AND RETURN 95 t1 4C 94 95 37 AMPJ JKP FNDC i • &. JUMP INSTR 38 • 39 * 9594 : 12 00 40 FNDC LDX IS 00 i INIT INDEXES 95" : 86 19 41 STI CMD 9591: 10 00 42 FNDl LDY IS 00 9591: BO Cl t5 43 LUPl LDA CTBL,X ;GET COMMAND CHAR 95 9D: FO 12 44 BEQ FWHD iIF O,COKMAND FOUND 95 9F: C9 FF 45 CHP UFF i IF .. UF, NO KORE 95Al : FO 08 46 BEQ ERRl iCMNDS TO ERROR 95Al : Dl B8 47 CKP (TXTPTR) I Y 9515 : DO 07 48 INE NXTC 95A7 : C8 49 INY 95A1 : E8 50 INX 9 5A9: DO EF 51 BNE LUPl i ALWAYS BRANCH 95A1: 4C C9 DE 52 ERRl JKP SNTX iDO SYNTAI ERROR 9SAE: 4C C9 DE 53 NXTC JHP SNTI iIF NO HATCH, SYNTAX ERR 9511 : 20 98 D9 54 FWND JSR ADDON iADD Y TO TXTPTR 9 SB4: 06 19 55 ASL CMD 95 B6: 16 19 56 LDX CKD 9 SBI: BO C9 95 57 LDA ATBL+l,X iCO TO COMMAND 95BB: 48 58 PHA iBY USING RTS 9 5BC: BO C8 95 59 LDA ATBL,I 95 BF: 48 60 PHA 9SCI: 60 61 RTS n 63 • 9 5C1 : 53 57 41 * 95 C4: 50 CF 00 H CTBL HEX 53574150CFOO iSWAP COMMAND 95C? : FF '5 HEI FF iNO OTHERS! 66 • 95Ca: C9 95 67 ATBL DA SVAP-1 iONLY ONE ADDRESS 611 95CA: 20 E3 DF SWAP* JSR PTRGET iGET VARIABLE ADDRESS 9 5CD: 85 85 70 S11 FORPNT iSAVE IT IN FORPNT 95 CF: 14 116 "71 STY FORPNT+l 9501 : A5 81 12 LDA VARNA" ; SAVE VARIABLE NAME 9503 : 48 73 PHA iON THE STACK 95D4 : AS 82 74 LDA VARNAM+l

Call -A.P.P.L.E. August 1982 19 • Apple Pugetsound Program Library Exchange I Page 0023 of 0090 Call-A.P.P.L.E. Magazine • August 1982

TOTAL RECAll

95D& : 48 75 PHA 95D7: 20 BE DE U. JSR CHKCOti 95DA: iCHECK FOR COMMA 20 £3 DF 77 JSR PTRGET ;GET NEXT VARIABLE 95DD: 68 78 PLA ADDRESS 95D£ : 45 82 79 EaR VARNAM+1 iAGAINST FIRST VARIABLE 95 EO: 30 1B 80 BKI ERR2 95 El: 68 B1 PLA 9 5E3: 45 81 12 EOR VARNAti 95 E5: 30 16 83 BMI ERR2 9 5E7: AD 02 84 LDY 1$02 iGET SIJAP COUNT 95£9 : 24 82 15 BIT VARNAM+1 95EB: 30 02 8& BMI S\JP1 95 ED: AO 04 17 LDY 1$ 04 9SEF: Bl 85 88 S\JP1 LDA (FORPNT) , Yi S\JAP THE VARIABLES 95 Fl : 48 89 PHA 95F2 : B1 83 90 LDA (VARPNT) , Y 95 F4: 91 85 91 STA (FORPNT) , Y 95F& : 68 92 PLA 95 F7: 91 83 93 STA (VARPNT), Y 95F' : 88 94 SIJP2 DEY 95FA: F3 10 95 BPL ~\JP1 95Fe: 60 96 RTS 9SFD: 4C 76 DD '7 ERR2 JHP KMCH iHISMATCH ERROR --End asseably-- 12 7 bytes Errors: 0

AppJe= users. THE SOURCE'" and TRANSEND: Together for the first time for only $89. Buy our $89 Transend state-of-the-art data communications software and membership in THE SOURCE, AMERICA'S INFORMATION UTILITysM, is included. This combination allows you to easily access one of the world's largest information services for up-to-the­ minute news and sports, stock prices, travel services and much more. An optional 260-page Source User's Manual is available for $19.95. Your dealer has complete details. Call 800-227-2400, ext. 912 (in Calif. 800-772-2666, ext. 912) for the name of your local Transend dealer. Offer expires Oct. 1, 1982. Apple is a trademark of Apple Computer Inc. THE SOURCE and AMERICA'S INFORMATION UTILITY are service marks of Source Telecomputing Corp., a subsidiary of The Reader's Digest Association Inc. The Thansformation People. ~~~ SSM Microcomputer Products Inc. ..,. -III 2190 Paragon Drive, San Jose, CA 95131

20 Call -A. P.P.L E. August 1982 Apple Pugetsound Program Library Exchange Page 0024 of 0090 Call-A.P.P.L.E. Magazine • August 1982 Welcome

Apple"- 3 Axla Space TlIbIet leoftwe,. included) 5475.00 4 Axis Spaea Tab/at leoftwa,. Included) $595.00 $595.00 \11$1\, "eJtlir¢atd ~d «.0.0:. accepted. CT realdent. add 7.5% Seles Tax. -",,!II!ma! ColltjllllratlQn: 4eK, Applaaoft, DOS 3.3 .."in' .... 1 Conllgllr.tlon: 14K, Gam. paddlelldapter, color/graphics adapter Apple and Apple II are Trademarks of Apple Computer. Inc

Introducing The Space Tablet'" the third from Micro Control Systems. mE~ nnst ...... •... (]r~mhic: design. Call or three-dimensional spatial dlmIlz91F ... you how The Spac$ compatible with Apple 11'" you. Personal Computers. ContrlDI Systems, Inc. The Space Tablet lets you inter­ ....Irtf' .. rtf Turnpike, Vernon, CT actively record x, y and z coordi­ 06066. Phone (203) 643-4897. nates of any object-even one that doesn't really exist-then allows you to manipulate any or all of those coordinates with the push of a but­ ton. A fast, practical way to play "what if?" in any design situation.

Apple Pugetsound Program Library Exchange Page 0025 of 0090 Call-A.P.P.L.E. Magazine • August 1982 DATA CAPTURE 4.(1 The most advanced and easiest to use telecommunications program for use with the MICROMODEM IjCf~ or the Apple COMMUNICATIONS CARD@).

" you use your Apple I!@ computer to communicate with other Apples or with timesharing systems, then you need Data capture 4.0. If you want to save stock quotes, airline schedules, electronic mail, or other data from a remote computer system for future use, then you need a smart terminal program for your Apple II~. Data Capture 4.0 is the most user friendly and most flexible program of this type. It is specifically designed to take advantage of all the features of the Micromodem II~, but it works equally well with the Apple Communications Card@ and several other popular serial interface cards. Data Capture 4.0 is the only Apple II~ smart terminal program available which is fully copyable and modifiable. This means that you don't have to worry about backup. Go ahead and make all the backup copies you need. The unprotected format and helpful documentation make modifications to Data Capture 4.0 very easy to perform. In addition, full technical support is available by phone from Southeastern Software. Data Capture 4.0 has many other features. Incoming data files are automatically captured regardless of length. Data in the memory buffer can be viewed, edited, printed, saved to or loaded from disk, or transmitted to the remote system at any time. An unattended mode of operation is provided so that you can call your Apple from another location and send data to it or load data from it. Data Capture 4.0 is fully compatible with the Apple III~ in

emulation mode. It is also compatible with all popular lower case adapters for the Apple II@, including the widely used shift key modification. An automatic logon utility for use with the SOURCE is provided with Data Capture 4.0. Also included is a HELP text file containing the latest tips and suggestions on using Data Capture 4.0 effectively (many of these are the result of feedback from customers). See your local Apple dealer today for a demonstration of Data Capture 4.0 or order direct from Southeastern Software at the address below. (Please include $2.50 for postage and handling.) If you presently own a previous version of Data Capture you may upgrade to the new version for the difference in price plus $2.50 for postage and handling. MASTER CARD or VISA orders may be placed by phone. DATA CAPTURE 4.0 ...... ,$65.00 Requires DISK I~, Applesoft I~ and 48K of Memory DATA CAPTURE 4.0 / 80· ...... $90.00 DATA CAPTURE 4.0© 1980-Southeastem Software ·Specify either Videx, Smarterm, Double Vision or 'AppIe8. Apple II Plus"!", Disk II"" and APPLESOFT II"" are trademarks of Apple 'Sup 'R' Terminal version Computer Company. SOURCE - Source Telecomputing Corporation. - Dealer Inquiries Invited - 'Micromode".". iS8 trademark of D.C. Hayes ASSOCiates, Inc.

Apple Pugetsound Program Library Exchange Page 0026 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A Call -A.P.P.L.E. REVIEW: BASIS 108. • • An Alternative Cornelis Bongers/Call -A.P.P.L.E. Staff Writer/Reviewer

1. Introduction When the machine arrived, it soon 108 appear to be very similar to those appeared that it had some bugs on of the soon-to-be-announced "Super BOUT three months the motherboard. Among others, the ][" by Apple. ago we had our national colors were very pale and the inter­ I shall begin by giving a brief . Apple meeting. The meet­ face card reset key didn't work prop­ overview of the BASIS, followed by a A ing differed from earlier erly. Furthermore, the keyboard detailed discussion of its specific ones, because for the first time autorepeat started too quickly. features. dealers and producers were invited to Although I did some tests using this 2. Brief Overview demonstrate their products. Repre­ motherboard, I ran most of them on The BASIS 108 is a single-board sented was, among others, a German the upgraded A2 version (with the Apple ][ compatible microcomputer. firm named BASIS microcomputer standard Apple ROMS). This mother­ It comes in two parts: a rather big GMBH, which developed an Apple ][ board worked fine, except that the aluminium covering and a separate compatible microcomputer called the HGR2 page showed flickering spots. keyboard with 100 keys. The covering BASIS 108. To me the specifications This problem, however, was effectively has two openings into which floppy seemed too good to be true. In par­ eliminated by replacing a faulty chip. disk drives may be installed. ticular, I had my questions about As this review is specifically writ­ The BASIS has two micro­ Apple compatibility. I had brought ten for Call-A.P.P.L.E., most of the processors, a 6502 and a Z80. The with me to the meeting a set of disks readers will be Apple owners. There­ latter is compatible with the Z80 soft­ with heavily system dependent soft­ fore, most of my attention shall be card from Microsoft Inc. Standard is ware to test on the BASIS. To my paid to the extra's (and differences) 64K of memory, however, BASIS great surprise, every program ran of the BASIS 108 in relation to the also has empty sockets to plug in without problems!! Apple ][. The many important featur~s another 64K of RAM memory. In Of course, my interest in the the BASIS and the Apple have 10 addition, there is a 2K monitor BASIS grew immediately and I common will not be discussed in Eprom and five sockets are present resolved to test the BASIS more detail. Readers who are not familiar for other Eproms (or ROMS). thoroughly. The Dutch dealer of with the Apple ][ should therefore Text and graphics on the BASIS BASIS, Vodenta in Tiel, reacted very read this review with caution, as it work similarly to those of the Apple positively on my wish to have the does not present a balanced treat­ ][. The BASIS has an additional BASIS installed in my office for some ment of all the capabilities of the feature; a built in 2K static RAM, time. It is primarily due to their BASIS. It should be further noted which can be used to display text in efforts that I am able to write this that the specifications of the BASIS 80 columns or low resolution review. graphics in an 80 by 48 format. Contrary to the Apple, the BASIS has only six slots. The two slots not present are 0 and 1. Slot 1 is reserved for the parallel and the RS232c inter­ face, which are both standard and built in on the BASIS. On the back of the covering are connectors for B/W video, color video, an RGB signal and a cassette recorder. The joystick connector is on the motherboard. Presently, the BASIS comes with­ out BASIC ROMS and software, except for a ZAP diskette to convert Applesoft, Pascal 1.1, CPM and the Apple system monitor to 80 column format. In the near future, however, the USCD Pascal version V 4.0 will be released.

Call-A.P.P.L.E. August 1982 23

Apple Pugetsound Program Library Exchange Page 0027 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A REVIEW OF THE BASIS 108 The suggested retail price of the In the front are two openings (on 3.2 Keyboard, Charactersets BASIS 108 (tax excluded) in the delivery covered with blindings), in and Interrupt Netherlands is fl 4995 (U.S.A: which two Apple compatible 51/4 inch The BASIS has a well designed $1949). drives can be installed (see photo 1 separate keyboard which is con­ and 2). When doing this, it is nected to the main system by a 1.35m 3. Specifics necessary to remove the cover from cable. The layout of the keyboard dif­ the drives, (an easy operation which fers significantly from that of the 3.1 Construction and does not require special "hardware" Apple ][. Apart from the normal type­ Power Supply knowledge). There are two AC power writer-like keys, the keyboard also The BASIS board is installed in a outlets at the rear of the covering. has another three groups of keys. To very strong aluminium covering with These are controlled by the main the right of the typewriter keys is a dimensions 49cm x 19cm x 50cm (w x power switch, which is located at the cluster of nine keys in a 3 by 3 matrix h x d). The covering contains the front, and can be used to connect a for cursor control. With these keys motherboard with six slots and a monitor or a printer. At the rear is one can perform (when using the 220V/50Hz or 1l0V/60Hz power sup­ also mounting space for six DP-25 BASIS monitor) the following func­ ply. The specifications of the power connectors. Furthermore, there is a tions: supply are: break thru for flat cables, two con­ nectors for video signals, a DP-9 ESC A,B,C, and D INPUT 115v/0.6A or plug for an RGB signal and a DIN Right and left arrow 23Ov/1.0A (50-60Hz) connector for a cassette recorder (see Clear to end of line OUTPUT VI + 12v 2.5A photo 3; this photo shows an earlier Clear to end of page V2 + 5v 6.0A version of the BASIS, which had only Home V3 - 5v O.5A one video connector). V4 -12v 0.5A To the right of the cursor control keys is a numeric keypad consisting of 18 keys. The keys represent the digits 0-9, the "=" , the decimal point and the operators + ,-,* and /. There is also a key marked CE which simulates the cancel line command (control X). It is worth noting that the I return key on the numeric keypad doesn't behave like a return key, but generates a Ctrl D instead. This may accomodate Pascal users, but for BASIC users it is rather inconvenient. On top of the keyboard are 15 function keys. These keys generate letters and symbols (like the type­ writer keys), but by referring to a special location (see below) one can determine whether a function key has been pressed. With each function key, four different values can be gener­ ated by pressing a function key alone or with the shift and/or Ctrl key. The layout of the typewriter keys (there are 56 of them) differ on several points from the Apple layout. For instance, the pound symbol is not located on top above the 3, but near the return key. Furthermore, on the machine I had, the Y and Z key were exchanged, which seems to be a com­ mon practice in Germany. However, BASIS Inc. has announced that key­ boards adapted to different countries will soon be available. The U.S. ver­ sion was scheduled for release at the end of May.

24 Call -A.P.P.LE. August 1982 Apple Pugetsound Program Library Exchange Page 0028 of 0090 Call-A.P.P.L.E. Magazine • August 1982

The alpha field has several extra The different sets can be selected possible to run programs in the back­ keys, which generate among others by performing a write operation to ground, while for instance data-entry the backslash, the left/right brackets one (or a combination) of the ad­ takes place in the foreground. On the ([]), the left/right braces ({ } ) and the dresses $COOO-$C005. By writing to Apple ][, this would soon lead to underscore (_). The keyboard also $C006 or $C007, the characters of memory problems, but by installing has a TAB, a DELETE and an alpha­ sets 2-4 can be displayed as inverse 128K RAM on the BASIS, there is lock key with a LED. All keys have or flashing, respectively. sufficient room to use this feature. autorepeat. To reset the BASIS, By reading address $C008, one An interesting application of the three keys must be pressed simultan­ may request (among others) the key­ keyboard interrupt is spooling output eously, so it is virtually impossible to board status. The status information to a printer at the same time a pro­ reset the system accidentally. consists of: gram is edited. I didn't have the time A disadvantage of the keyboard is to program a suitable printer driver, that the pressing of a key required bit 7 : Function key pressed but did try the concept with a simple more effort than on the Apple. This bit 6 : Shift key pressed program, which constantly incre­ has the effect that fast typists, who bit 5 : Non control key pressed mented a byte at $700 (so that it are not yet familiar with the key­ bit 4 : Any key hold down could be viewed on the screen). After board, may miss some characters bit 3 : Alpha lock on setting the interrupt vector and now and then. Fortunately, there is a bit 2 : HBL (horizontal blanking) patching the monitor read key remedy for this inconvenience. When bit 1 : Video synchronization routine, (so that it jumped to the pro­ removing the keycaps, a small plastic signal gram mentioned above instead of structure becomes visible. If this bit 0 : Printer return waiting for a key), everything worked structure is turned 180 degrees, the excellently. I could enter programs keys are considerably easier to press. A very interesting feature of the and execute DOS commands, and Not being a very good typist BASIS is the possibility to generate every time keyboard input was ex­ myself, I asked two experienced keyboard interrupts. The keyboard pected, the screen counter started. Of secretaries to rate the keyboard. interrupt can be enabled/disabled by course, the counter stopped when a Both considered it - regarding "ease writing to $C009/$C008. Provided program was running or when control of typing" - approximately compar­ the 6502 is interrupt enabled (which was passed to DOS, but it became able to the keyboard of an electronic can be achieved by executing the very clear that on data-entry or pro­ IBM typewriter. eLI instruction), control will be gram editing, the 6502 has sufficient The BASIS has four character transferred to the monitor interrupt time left to do some other tasks. sets (in a 4K 2732 Eprom). The stan­ handler if a key is being pressed. The dard character sets are: interrupt handler saves the ACCD in 3.3 Text and Graphics 1) Standard Apple ][ (64 char­ location $45 (the status register and Just like the Apple, the BASIS acters) the program counter are "automati­ has two text, two La-Res and two 2) Standard ASCII (128 char­ cally" saved on the stack if the 6502 Hi-Res pages. The text and graphics acters) accepts the interrupt). are in the same address range as 3) German (128 characters) Next, control is transferred to the those on the Apple and also the soft­ 4) APL address in $3FE,$3FF, where the switches (to switch between graphics user can store the starting address of and text) are identical to those on the his own interrupt handler. The key­ Apple. However, the BASIS has an board interrupt feature makes it extremely valuable extra feature. Namely, a 2K static RAM which can be mapped in the address range $400-$BFF. The static RAM can be write and read enabled by performing a write operation to $COOD. A write operation to $COOC disables the static RAM. The static RAM can be used for three purposes:

1) as scratch memory 2) to enlarge the La-Res graphics to 80 by 48 format 3) to obtain 80 characterslline in text mode.

For the latter two purposes it is necessary to set a switch which causes the normal text page ($400-$7FF) and the part of the static

Call-A.P.P.L.E. August 1982 25

Apple Pugetsound Program Library Exchange Page 0029 of 0090 Call-A.P.P.L.E. Magazine • August 1982 A REVIEW OF THE BASIS 108

RAM that is in the same address PHA save accu on stack new version of Applesoft from the range to be displayed simultaneously TYA get cursor position in Applesoft that is on the BASICs on the screen. On the 80 column ACCU diskette. The BASICs diskette, and STY SAY save cursor position screen, the even positions in each line LSR A set carry if position is Pascal system diskette which are correspond to the normal text page, odd also needed for the conversion, must whereas the odd positions correspond TAY put corrected position be supplied by the user. to the static RAM. Before a character in Y As to Hi-Res graphics, there is - PLA restore ACCU is sent to the screen, the horizontal BCC DONT branch if character when working in black and white - cursor must be checked on as to must be stored on one difference between the BASIS whether odd or even. normal text page and the Apple. This difference lies This can be accomplished by a STA $COOD write/read enable static with the BASIS bit 7 of a Hi-Res few machine language instructions. Ram byte. If bit 7 is set, the remaining bits DONT STA (BASL). Y put character on screen In case the cursor position is odd, the STA $COOC disable static Ram in the byte that are set will be dis­ static RAM has to be enabled, so that LOY SAY restore cursor position played in white. In case bit 7 is not the character will be stored in the set, however, the remaining bits that right memory page. After the char­ are set will be displayed in grey. The acter has been stored, the static A similar sequence of instructions BASIC HCOLOR = 3 instruction RAM must be turned off, for the can be used to display LORES (which causes bit 7 to be cleared) will upper part of the address range of the graphics in an 80 by 48 format. For therefore display a white color on the static RAM (i.e. $800-$BFF) is used this purpose it is necessary, however, Apple, but a grey color in the BASIS. by Applesoft. to patch Applesoft, as Applesoft By specifying HCOLOR = 7 (which The following (simplified) routine, checks whether the first parameter of causes bit 7 to be set), the color will derived from the BASIS monitor, illu­ the PLOT statement doesn't exceed be white on the BASIS as well as on strates the use of the static RAM. On 40. Fortunately, there is no need to the Apple. Therefore, a BASIC pro­ entry, the cursor position must be make the patch yourself, as the gram developed on the Apple can stored in the Y-register, and the BASIS comes with a ZAP diskette easily be converted to the BASIS by character to be displayed in the which contains a utility to generate a changing the HCOLOR = 3 instruc­ ACCD. tion (if this instruction was used to obtain white) to HCOLOR = 7. INTRODUCING Now THE INSPECTOR WATSON'· . HAS AN ASSISTANTM Teamed up inside ~ Eprom or disk versions are always at // your fingertips. Watson (requires The your Apple, Watson Inspector), $49.95. The Inspector, $59.95. At your local dealer or direct. Mastercard and Visa holders order adds new features toll-free, or return the coupon. that give you complete 1-800-835-2246 access to everything you ever y------.~, .41' wanted to know about memory h-, __r:P"";:roo,....::f~ • Send me ~OMEGA MICROV\ME,INC. and disks. Recover blown disks, o The Inspector @ $59.95 222 So. Riverside Plaza o Watson @ $49.95 Chicago, IL 60606 flX catalog entries, display' and delete i Check ormoney order enclosed. 312-648-4844 control characters, repair bact data files even c- System description: Apple II 0 Apple II + 0 Integer Card 0 16K Ram card 0 on disks with non-normafDOS. Search forward and ~ backwards in memory edit in HEX, ASCII, NEGATIVE ASCII 1: i and LOWER CASE. Scan ~isks forward and backwards, follow files ~ ~ forward and backwards in track/sector list on either 13- or t6-sector ~ ~ address ______disks. Lockout sectors on Track Bit Map, reconstruct vroc, find and display all " t Track/Sector Lists. display map of Sectors used on disk. read Nibbles track-by-track. t .~ ~:;f=~~~::: :!~I!~:P~~::!i~: ~-:::~:l:: =h:~~~ia;C::~:;;i~~a:~~:~::e~~~~:..dd:~~I:c ~.~ cily ______screen to a printer with a CTRL-Z. even from within BASIC. There's more but we're running out ofspace. ~ ~ Oh well, you get the idea. ~ 9 ~e~------_---_-_

26 Call-A.P.P.L.E. August 1982 Apple Pugetsound Program Library Exchange Page 0030 of 0090 Call-A.P.P.L.E. Magazine • August 1982

Regarding existing machine lan­ I was told by the BASIS spokes­ The RAM memory range guage software (games etc.) matters man that the switch is not imple­ $DOOO-$FFFF (indicated in figure 1 are much more complicated. It mented on the standard BASIS, but I by LCO and LCOO) can be accessed appears that in some Hi-Res soft­ suppose that most BASIS dealers will like a Language Card. The extra ware, the high bit was either not set install the switch QPon request. bank in the range $DOOO-$DFFF is or randomly set, giving a rather As to colors, I tried the PAL also available. All my Apple ][ negative effect. All parts of a picture signal with a Sony monitor and ob­ Language Card resident software (in­ that should have been white were dis­ tained good pictures, although the cluding Pascal) ran equally well on played in grey, or even worse, in a colors differed from those of the the BASIS. It is possible to prohibit mixture of white and grey. On the Apple. For instance. what is green on switching between the ROM and positive side, many other programs the Apple becomes blue on the RAM space by executing a write displayed much better pictures. An BASIS. Basis Inc, intends to make operation to $COOF. This causes the example of one of these is Galaxian, the next version of the BASIS color­ system not to recognize the soft­ displaying several details I never compatible with the Apple. switches $C080-$C08F anymore. If noted on the Apple. (Among others, the write operation is performed the difference between 10 and 30 3.4 Memory when the RAM range $DOOO-$FFFF point invaders). Figure 1 shows the memory map is enabled, switching back to the Nevertheless I feel it is important of the BASIS, which uses 4164 ROMS becomes impossible. By to have full compatibility with Apple dynamic RAMS. Standard is 64K writing to $COOE (or resetting the Hi-Res software, and therefore (Bank 0), but as mentioned before, system), the sOftswitches will be phoned BASIS Inc., to ask how this this can easily be expanded to 128K. recognized again. could be obtained. I was told that the The costs of the extra 64K are By expanding the BASIS to 128K, solution was very simple. It consists approximately fl 320 (ex. tax). Apart the complete memory range is doubled. of installing a switch between a pin of from RAM memory, there are sockets Unlike the stack and zero page, the an IC and its socket. If the switch is for six 2K ROMS (or EprQms), but one text and graphics screens are avail­ "off," only black and white will be of these is reserved for the system able in bank 0 only. Bank 1 can be displayed. If the switch is "on," one monitor. The remaining sockets can switched In main memory in 8K can make use of the BASIS capability be used to plug in Applesoft or In­ blocks. This happens by performing to display white, grey and black. In­ teger Basic. You may also use a write operation to one or more of stallation of the switch indeed led to Eproms instead of ROMS, but then the addresses in the range full (B&W) Hi-Res compatibility. you have to put two connectors on $C060-$C06F. (even = off, odd=on). different pins, which are for this pur­ pose installed on the motherboard. We've Figure 1 Memory map of ,he BASIS 108 Lowered Address bank 0 bank 1 $FFFF Our Prices ROM LCO LC1 Apple Software • All Programs On Disk LIST PRICE $2995. OUR PRICE $22.16 $OFFF Fly Wars S1ar Blas1er ROM LCOO LC01 LC10 LC11 Warp Des1royer W.S. Baseball $0000 I Dogs1ar Raider Fore' Rear Guard Tumble Bugs 1/0 1/0 $COOO LIST PRICE $34.95 • OU R PRICE $25.86 Bandl1s Deadly Secre1 Wlzardry'2 Laf Pak R Lazer Silk Congo Chopllf1er Gold Rush $6000 Kabul Spy Zenith HGR 2 Marauder Frogger $4000 DaVid's Midnl1e MagiC HGR 1 LIST p~~CRE $2000 Arcade Machine 44.95· 33.16 A Ultima II 54.95· 40.66 Deadline 49.95· 36,96 $OBFF Wizardry 49.95· 36.96 Screenwriter II 129.95· 96.16 80 cols TEXT 2 Vislcalc 3.3 250.00· t99.96 $0800 Tasc Compiler 175.00· t29.49 Graphics MagiCian 59.95· 44.36 80 cols TEXT 1 Home Accountant 74.95· 55.46 $0400 Versa Form 389.00 . 287.86 D.B. Master 229.00· 169.46 M Nibbles Away II 69.95· 5176 EPF IV 79.95· 59.16 COD. Money Orders. Certified Checks. Person<'Ji Check Allo ..... 2 Weeks $0200 N Y 5 Res Add 7 23% Sales Tall. Orders Under S 1()() 00 Add P& H STACKO STACK1 • F~::n~~h'a~!e~o~~;:~'~i:~~~ ~ $0100 • SEND FOR FREE PRICE LIST #908 • Source TCP637

$0000 BYTES & PIECES (516) 751-2535 \:: Box 525 Dept. C • E. Setauket, N.Y. 11733...1

Call -A'p.P.L.E. August 1982 27 Apple Pugetsound Program Library Exchange I Page 0031 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A REVIEW OF THE BASIS 108 For instance, by writing to $C067, Adapting CPM to 80 columns is card. The first three cards worked the Bank 1 range $6000-$7FFF is done by loading a file from the ZAP properly, but the other two gave me mapped in memory and a write to diskette. This file is then used to some problems. As to the Ramex $C066 causes a mapping of the same generate a new CPM system master card, it appeared that it was address range of bank o. from the old master, which must be necessary to reset this card after It will be clear that the double supplied by the user. The conversion power up, by typing $COB2 from memory range combines nicely with is an easy operation, which takes monitor command level (the card was the keyboard interrupt. Programs about ten minutes. installed in slot 3). After "hand­ that have to be executed in the back­ Apart from making 80 columns resetting" the Ramex card, it worked ground can be dumped as a whole in available, the conversion also leads to excellently and the system supported, bank 1, so that you do not have to full keyboard support. For instance, without any problems, software that worry about reallocation. Note, Wordstar recognized the TAB and used both the Language Card and the however, that it is not possible to DELETE key and also the difference Ramex card. The necessity to reset direct output of these programs between Ctrl H and the "cursor left" the Ramex card may have been caused directly to the screen, although with a key (which comes in handy if back­ by an error in the connection of the little effort it will not be a big prob­ spaces have to be sent to a printer). reset line to the slots on the old lem to program a utility output driver motherboard. Unfortunately, I had for this task. 3.6 Interfaces and Slots already returned the Ramex card Another useful application of the The BASIS has (unlike the Apple) before the upgraded A2 version of double memory range is related to six slots, which are numbered from 2 the motherboard arrived, so I was the well known Hi-Res problem. to 7 (see photo 4). Slot 0 is reserved for unable to test this card on the new When you have a large program that the "simulated" Language Card and motherboard. needs one or two Hi-Res pages, slot 1 for enabling the Z80 and the Installing the 6809 card on the separate software is necessary (on interfaces. Standard on the BASIS is BASIS led to a system crash. I do not the Apple) to split the program in two a parallel interface and the RS232c know why the 6809 card wouldn't parts which reside below and above serial interface. I tried the parallel work, but I suspect it has something the Hi-Res pages, repectively. On interface with an Epson MX80 to do with the system timing, which the BASIS this can easily be avoided printer and it worked allright. A sim­ seems to be a critical factor when by using two 8K banks of bank 1. For ple printer driver routine (which is using the Smartcard. The spokesman this purpose several patches have to recognized by Pascal and CPM) is of BASIS mentioned that they had be made in Applesoft. First, on the located at $C100. However, for use similar problems with the 6809 Mill warm/cold start of Applesoft, the two with non-standard software, this card. It seems that this card must be 8K banks of bank 1 have to be map­ driver will be too primitive, since it slightly modified before it can be ped in main memory. Second, on doesn't keep track of the column used on the BASIS. plotting a point on the Hi-Res screen count and tabs. This causes no real In relation to the slots of the the two (corresponding) banks of problem, as a printer driver is easily BASIS, it is important to note that all bank 0 have to be enabled and after written and there is room enough Apple memory cards that must be plotting they have to be disabled (when the BASIS is equipped with connected with a cable to a RAM again. I tried this concept and in only 128K) to put it away somewhere. socket on the motherboard cannot be half an hours time everything worked I can't say much about the used. This is due to the fact that the fine. Note that apart from the fact RS232c interface, being as I haven't BASIS has other RAMS (i.e. 4164) that this solution is more convenient, tried it yet. Since some of you may be than the Apple. However, a 256K it is also more memory efficient, interested in the specifications of this memory board for the BASIS will since an additional 16K of RAM, interface, I copied the following infor­ soon be released. previously occupied by the Hi-Res mation from the manual. "The Apart from the parallel and serial pages, is gained. RS232c interface consists of a 6551 interfaces, the BASIS has a cassette IC with a buffered line receiver and recorder interface. The specifications 3.5 The Z80 drivers. The IC has two handshake of this interface are identical to the Perhaps the most valuable feature lines. The data register of the IC is at one on the Apple, so tapes recorded of the BASIS is the Z80 processor address $C098, the status register at on the Apple can be read in by the that is installed on the motherboard. address $C099, the command regi­ BASIS and vice versa. I tried it and it The Z80 is fully compatible with the ster at $C09A and the mode register worked. Microsoft Z80 card, and can be acti­ at $C09B. The transmission rate can The BASIS and the Apple have vated by a write operation to $C100. be chosen between 50 and 19200 also the same specifications regard­ If a CPM disk is inserted into the baud." ing the game controller. After instal­ drive, CPM will automatically be To test Apple compatibility with ling Apple paddles (paddles are not loaded on the PR#6 command respect to the slots, I borrowed five standard on the BASIS), it appeared (assuming the disk interface is in slot different interface cards. These were that everything worked exactly the 6). All CPM software I have tried a Doublevision card, an Integer Basic same as on the Apple. (most of it created with a Z80 card on firmware card, a Z80 card, a 16K Finally, the BASIS has a speaker the Apple) ran without any problems Ramex RAM card and a 6809 Smart- which produces approximately the on the BASIS. same sound as the one on the Apple.

28 Call -AP.P.L.E. August 1982 Apple Pugetsound Program Library Exchange I Page 0032 of 0090 Call-A.P.P.L.E. Magazine • August 1982

3.7 Documentation, Software 1) The GET instruction supports This leads to full Apple ][ and System Setup the function keys. For in­ compatibility. At the time I wrote this review, stance the following state­ 2) Create with the ZAP diskette the documentation of the BASIS was ments display the number of a diskette with the 80 column not completely finished. I had at my the function key pressed: Applesoft plus monitor and disposal a preliminary draft of the GET A$: PRINT "FUNC­ boot this diskette if you want manual (in German) and a summary TION KEY" ;ASC(A$)-192 to use 80 columns. in English. The manual give a good 2) The parameters of statements 3) CPM expects that the 80 col­ explanation of most features of the related to the GR mode (i.e. umn monitor, delivered with BASIS. Furthermore, there is an ex­ PLOT, HUN etc.) may range the BASIS, is on the mother­ tensive description (with examples) from 0 - 79. This makes it board. The best way to cir­ of the 80 column monitor routines possible to use the larger cumvent this problem is to and commands. Most monitor com­ screen width of the BASIS. dump the 80 column monitor mands differ from those of the Apple However, one has to make in the upper RAM range of autostart monitor. For instance, in­ sure that the Y-parameter is bank 1 and to patch CPM stead of booting a diskette with 6 not set to a value larger than accordingly. For this purpose, Ctrl-P, you have to type 6P. On the 47, for otherwise the first a program DV.COM has been other hand, the entry points of the lines of the program will be developed. On entering the relevant monitor routines correspond destroyed. load-command DV, the to those of the autostart monitor, so 3) A change has been made in system switches to 80 column most existing software runs equally Applesoft's tokenization rou­ mode. well with the 80 column monitor. An tine. This has the effect that Currently under development is a exception is the software that ac­ keywords may be entered in small plug with sockets for two cesses the screen directly, such as the lower case as well as in monitors. By putting this plug in the Program Line Editor. Furthermore, capitals. Furthermore, blanks F8 socket, one can switch between the tape read/write routine is not in keywords are significant in the BASIS 108 monitor and the stan­ implemented In the 80 column the 80 column Applesoft. For dard Apple monitor (provided these monitor, so the BASIC instructions instance, the statement: IF A are installed on the print). SAVE, LOAD, STORE, RECALL THEN 100, will be executed and SHLOAD will not be available. without problems. It will thus 4. Conclusion The manual should be improved not be parsed as IF AT HEN Having now worked several on two points. First, some matters, 100, as the original weeks with the BASIS 108, I can such as keyboard interrupt and Applesoft does. On the other state that it is an excellent system. In keyboard status information, are only hand, if you enter: 100 particular on the European market, briefly mentioned. A more complete PRINT, the 80 col umn its price/performance ratio is very description with some examples Applesoft will not recognize good, as the BASIS has a compara­ would be appropriate. Second, noth­ the keyword PRINT. tively low price and many valuable ing is mentioned about incompatibil­ 4) Program listings are in ~U col­ feature (i.e. 80 column, Z80, 64K ities between the BASIS 108 and the umn format. RAM, professional keyboard, two Apple ][. Although there are only a 5) Blanks are generated to reach interfaces, heavy power supply). few incompatibilities and most (if not the appropriate (MOD 16) Over here, the (advertised) price of all) are covered by this review, atten­ screen position if a comma is the BASIS varies from fl 4200 (ex. tion should be paid to them in the encountered in a PRINT tax), for the machine as is, to fl 4995 manual. For example, an attempt statement. The original (ex. tax). In the latter price are in­ should be made to list the Apple Applesoft stores only the cal­ cluded the original Applesoft ROMS, interface cards that cannot be used culated position in the cursor the Apple Autostart Monitor (instal­ on the BASIS horizontal register, which has led by the BASIS dealer), and the Hi­ As I mentioned before, the BASIS the disadvantage that char­ Res switch. comes without (a complete set of) acters that were already on Furthermore, overall compatibility BASIC ROMS and software. So, the screen are not deleted. with the Apple ][ is close to 100%. potential buyers of a BASIS must be 6) FLASHING and INVERSE This has the important advantage prepared to buy the Applesoft or In­ characters cannot be dis­ that when buying a BASIS there is no teger Basic ROMS with the accom­ played together on the screen. need to wait for software developers panying manuals or Pascal from 7) The instructions related to the to start their work, as the whole Apple Inc. Also, if you want to use use of a tape recorder are not range of Apple ][ software is CPM, you have to buy the Z80 soft­ available. available. ware from Microsoft. Those readers who want to know The 80 column Applesoft that can Regarding system setup, there are more about the BASIS are referred be created with the ZAP diskette dif­ several possibilities. For a 128K to the following addresses: fers on several points from the original system, the following setup seems (for Applesoft. The differences are: the time being) the most attractive: BASIS Incorporated 23116 Summit Road 1) Put the original Applesoft Los Gatos, Ca 95030 ROMS and the Apple system Phone: (408) 353-1102 monitor in the ROM sockets.

Call -A.P.P.L.E. August 1982 29 Apple Pugetsound Program Library Exchange I Page 0033 of 0090 Call-A.P.P.L.E. Magazine • August 1982

BASIS 108 BASIS Microcomputer Friedrich Ebert Strasse 137 D-4400 Munster BY CASES, INC. Germany DESIGNED TO PROTEG YOUR COMPUTER Phone: 0251-77169 Finally, it must be stressed that buyers of a BASIS should make abso­ Features - lutely sure that they get the upgraded • Rigid Shell Made of Plywood A2 (or the A3) version of the mother­ Supported High Impact ABS. board, as there are some bugs in the • Shock Resistant Foam lining. older versions of the motherboard. • Heovy Duty Hardware Includes Key Locking Latches 5. Acknowledgements • Bound Metal Edges. I am grateful to several people who • Interlocking Tongus and have contributed to this review. First, I Groove Extrusion. Mating lid would like to express my gratitude to Mr. and Bottom. R.P. Vogel for putting the BASIS at my Apple II Plus 2 Drives $175.00 disposal. I also thank William Schouten, a well known Dutch Apple expert, for his valuable help in exploring the machine and developing some bank 1 resident software. OTHER I am also grateful to Heinz Schmitz for MODELS implementing the Hi-Res switch and AVAILABLE Diederik Gerth van Wijk for testing Pascal. Finally, my thanks to Hans Geilenkir­ chedn. who shares my office at the Univer­ CLUB AND DEALER DISCOUNTS AVAILABLE sity. Hans (a CBM [Petl user) first lived patiently through the invasion of people CASES. INC. P.O. Box 33820 Seattle. WA 98133 (206) 365-5210 who came to our office to see the BASIS. Enlightened by their enthusiasm, he very soon started participating in the testing. ~ TIRED OF COM PLICATIONS? MENTOR, for your Apple 11,][+ or /// computer, saves you time at the design bench by calculating a vast number of AC, DC, filter, communication, transistor & vacuum tube formulas - each in an instant. Quotients to these formulas are accompanied by HIRES graphics and tables whenever applicable. The user-friendly MENTOR program is completely menu-driven with single-letter commands which require no carriage return. Optional use of single-letter suffixes allows entry of values as milli, micro, meg, kilo & pico. The MENTOR manual includes listings of mathematical formulas, background information, required user input and more. *$124.95 + $6.25 shipping & handling. SLICK SWITCH is the 4O-to-80 column-mode toggle for Sup'R'Term owners. Change modes with just the flip of a switch - great for a quick change between Pascal text and graphic modes too. Installation is easy, requires no soldering and uses no I/O sockets. *$24.95 + $1.50 shipping. QUICK SLOPE makes it possible for the alphaSyntauri musician to change between linear and exponential envelope modes in approximately one second. With this speed, you can use both modes in the same tune without the delay you've had to endure before now. QUICK SLOPE appends to your alphaPlus software quickly and easily, eliminating the need for any disc swapping. *$34.95 + $1 .50 shipping.

Ask your local Apple Dealer to show you the MENTOR Demo Disc and for help in ordering any of our software/hardware line. *Direct sale terms are prepaid or C.O.D. - CA customers include 6% sales tax.

MENTOR, SLICK SWITCH & QUICK SLOPE - trademarks of Korsmeyer Electronic Design Apple - a trademark of Apple Computer, Inc. Sup'R'Term- a trademark of M & R Enterprises alphaSyntauri & alphaPlus - trademarks of Syntauri Corp.

KORSMEYER ELECTRONIC DESIGN • 16411 Del Mar • Huntington Beach, CA 92649

30 call -AP.P.LE. August 1982 Apple Pugetsound Program Library Exchange Page 0034 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A Call -A.P.P.L.E. REVIEW: Spelling Programs Ralph H. Swerdlow, MD.jCall -A'p.P.L.E. Staff Writer

UR Apples have ripened. powerful, easy to use and add a new The differences between them are They are no longer, if they dimension to our computers' capa­ not great. Some require more chang­ ever were, only toys. They bilities. ing of disks, are slightly faster or O have become powerful, essen­ In many ways all the Dictionary or slower, can or cannot add new words tial tools that make our daily tasks Spelling programs are similar. They to the dictionary disk, but they do easier and more productive. compare the spelling of the words in differ in the number of words they The metamorphosis has been a document against a list of words contain. accomplished partially by the intro­ that have been placed on a disk. If the According to the documentation duction of Word Processor programs word is not found, the program accompanying one of the programs, that now allow the APPLE user to makes the assumption that the word the average person has a vocabulary type, edit and then print their is misspelled. This would be the same of about 25,000 words, while the thoughts with minimal efforts! as if we listed all the words in our English language has approximately However, until relatively recently, document, then consulted a "real" 600,000 words. Consider for a mo­ there was still the need to refer to a dictionary and checked each and ment all the specialized words that printed dictionary for the correct every word for its correct spelling! are found in technical dictionaries! It spelling of the words used in the The APPLE can do this task very is obvious that it would be almost a documents prepared by the Word rapidly and very accurately, not only hopeless task to write a program that Processors. No longer is this true; we finding misspelled words, but typing would include all possible words, now have excellent software avail­ errors as well. tenses, and plurals, so the different able to us that will allow us to check the spelling of the words in our documents. These programs are very What

Ralph H Swerdlow, MD. is the would you give author of the popular Call-A.PPLE. series for beginners: "A is for Apple. " Dr. Swerdlow has a unique talent for to have writing in simplistic, understandable terms characterized by his clarity, flow unlimited UNITS of logic and sequencing. He is a physician at Kaiser­ on your Permanente Hospital in Sacramento, California. He is board-certified in in­ ternal medicine as well as an associate Apple II*? professor in that field at the University of California; an adjunct professor in the Department of Electrical Engineer­ ing at Cal State University, also in Sacramento. To add to his versatility, not only is he skilled in computer programming, but is a photographer, commercial pilot, FAA flight instructor and FAA physician-examiner. He recently ap­ peared on the Phil Donahue TV show in his role as physician. He has been writing for Call -A.PPL.E. for over a year and is preparing for possible publication next year an expansion of his "A is for Apple" series.

Call -AP.P.L.E. August 1982 31 Apple Pugetsound Program Library Exchange Page 0035 of 0090 Call-A.P.P.L.E. Magazine • August 1982 SPELLING PROGRAMS number of words in each package is rectly, which in many cases is true, The program comes with two of minor importance at the least, but Goodspell did not have that par­ disks, one called the "the program because no program can possibly con­ ticular word in its file. If the word is disk" and the other called, "word tain all of the words that may be used correctly spelled, hitting return will book." The program disk can not be by any author. continue the scan of the file. If the copied, but the "word book" disk Lets look at some of these pack­ user answered "yes" to the question, can, and the documentation urges the ages. (or just hits return) that word is not user to make a backup copy of the Goodspell was one of the first labeled as misspelled, but is added to "word book." The user is even in­ such programs, published late m a temporary dictionary and if found structed how to make this backup. 1980. It is part of the "Special again, will will not be identified as The "program" disk is first Delivery" series created by Apple misspelled. This is very convenient booted, which takes almost 45 Computer,Inc., and is priced at when your file contains scientific seconds, which bothers me some­ $60.00. It can be used only by Apple­ words or many proper names. what; this may not be a problem to writer, a word processing program However, these new words are only others though. The first thing to do is also by Apple computer,Inc., which added for that document. If another to configure the program to the word creates a binary file. Thus, its use is file is to be checked, this temporary processor you are using. This is done somewhat limited. There are now dictionary no longer exists. by removing the write protect tab software packages available that are If the user answers "no" the from the disk, and answering a few able to convert the text files created word in question will be print~d on questions. These questions indicate by other word processors to the the printer, so that the correct spell­ the type of word processor to be used, binary format used by Applewriter, ing can be found later, and corrected and then continue with system con­ so with an extra step this is not a in your word processor document. figuration, including number of major limitation, but does take a few The word is not marked in the file as drives, character to use to indicate seconds more to use with other word misspelled, as done with the other misspelled words, (which can be processors. spelling programs. The "hard copy" selected by the user) and the printer Its vocabulary is limited to 14,000 printout is more than sufficient to slot number. This information is saved words and it can check a document at enable the user to use the search and to the master disk, but can be changed the rate of about 3000 words per replace function of Applewriter to easily. After this step is completed, minute. This is equal to six or more later correct the document file, after the write protect tab is replaced, and pages per minute. the correct spelling is found in a "real the program is ready to do its job. The program requires only one dictionary" or the typing error is The program is very much con­ disk to use. The Master disk takes remedied. trolled by menu options, and after just a few seconds to boot. The user Goodspell is easy to use, relatively reading the documentation (which is is asked to identify the slot of the fast, does well with its small vocabu­ only 16 pages) once or twice, I was printer, and then the program's vo­ lary, and requires only one change of able to use the program without cabulary is loaded into the computer. disks. (None if you have a two drive referring to the printed material at This process takes 20-30 seconds. system). Its two biggest problems are all. Most, if not all of the options The disk with the Applewriter file is those of a small vocabulary, and its offered are selected by hitting the inserted into the active disk drive, inability to add new words perma­ Return key which selects the default and when asked, the user enters the nently. For those who use Apple­ option. The program prompts the name of the file he wishes checked writer, this is a very nice, but limited user when to change disks, and in for spelling. If desired, the disk con­ package. It does not contain many which drive to insert each disk. taining the file to be checked can be simple words that are used often. The first choice from the main inserted into an alternative drive, and The documentation accompanying menu is "DOCUMENT PROCES­ the file name has added to it the the program is very short and states SOR." You are asked for the name of appropriate slot and drive identifica­ that any dictionary is limited in size, the file you wish to check, but there is tion (,Sn,Dn). This is very convenient and commonly used words are not not a means of looking at the catalog when you wish to check several files misspelled too often, thus were not to obtain the file's exact spelling. which happen to be on different included. I have found this to be true. Next the words in the chosen file are disks. If no name is entered, a return compared with the words contained The DIC-TION-ARY is a two in the "word book." There are two will show the catalog of the disk, disk system by On-Line Systems of making it easy to find the exact spell­ options at this point; all the words Coarsegold, California, that contains that the program does not recognize ing and name of the file that you wish 25,000 words in its "wordbook" and to check. As your document is read, may be printed to your printer, giving can add another 1500 words to its you a hard copy, which you can view, whenever a word is found that is not permanent vocabulary. It is capable recognized by Goodspell, it is printed and later correct the misspellings, or of reading documents created by have words printed to the screen with to the screen with several of the Superscribe II as well as many other words preceding it, and several of the five to ten words immediately word processing programs which use preceding the word in question also words following also shown so the either standard Text files or binary word in question can be seen in the visible. In this manner the context of files. It can check the words of a ten your use of that word can be seen. context that it was used. The user is page document in approximately five then asked if the word is spelled cor- minutes.

32 Call -A.P.P.L.E. AUQust 1982 Apple Pugetsound Program Library Exchange I Page 0036 of 0090 Call-A.P.P.L.E. Magazine • August 1982

Now your options include ignoring change disks several times during with the package. Words may be the word, marking it as misspelled in anyone session depending on which added to either dictionary disk. your document, or adding the word to option is selected. This does require, This program is a delight to the dictionary. By indicating ignore, on some occasions to change back to use. The documentation that comes this word is added to a temporary dic­ the main program disk, and then rein­ with the package is easy to read, and tionary, and if found again in the serting the word book disk. Not a the program logically presents options document, will be treated as correctly major problem to this excellent addi­ with a menu. The booting process spelled. This makes it easy to check a tion to word processing. The docu­ takes a few seconds only, and then a file that has many unusual words or mentation is short and easy to read. "one time option" is presented to the proper names that are used quite Replacement for a blown master disk user, which allows the configuration often in that one document. This tem­ may be purchased for $10.00. of the program to the system in use. porary dictionary is transient for that The program does not enter the con­ file only! If "marking the misspelled The Sensible Speller is a product figuration data to the disk. This must words" is picked from the menu, of Sensible Software of West Bloom­ be entered each time the program is these words will be found in your field, MI and costs $125. Portions of first run. The process takes but a few document, with the last letter of each this review are based on an earlier seconds and is easily performed. word changed to whatever character version known as "Apple Speller," The Sensible Speller appears to you selected in the original configura­ and thus may not be entirely accurate. be much faster than the other two tion process. When you go back to The Sensible speller is a four programs. This may be only my opin­ the original word processor program, diskette package. The "program" ion, though the advertisements for the use of the "find and/or replace" disk and a back-up duplicate are this program state, "It can read 5000 function makes it a snap to find and copy protected. The remaining two words/minute and check words at the then correct these particular words! disks, which may be copied, are dic­ incredible rate of 50,000 words/ From the main menu, the second tionary disks based on the Random minute. This results in proof reading option is "single word maintenance," House Concise Dictionary. One disk a ten page document without errors which allows you to add words or is labeled "main dictionary" and con­ in one minute, or two minutes and 15 delete words from the permanent dic­ tains 45000 commonly used words; seconds with unlimited number of tionary one word at a time. the second is called "supplementary errors!" This speed rating is based on The third option is "file main­ dictionary" and contains about 40000 the earlier version, and significant tenance." This is used by creating a less frequently used words. A copy of improvements are claimed for the text file of the words that you want to the hard-bound dictionary comes Sensible Speller. add to the dictionary, and then use this new file as the document file for the program to read. This is done by using the word processor program of your choice, and merely typing in the What words, but it is important to realize that these words must be spelled ex­ would you give actly right, because they will become a part ofthe permanent "word book" disk. In this way you can create indi­ to have your vidualized "word book" disks, each for a specific purpose. As an exam­ Apple II ple, I have made several "word book" disks, one for writing about computers with the words that are able to configure used for this purpose, another for personal letter writing, with names of family members, and a third one to any which contains the words I use in my medical writing. This is easy to do, peripheral? because the original word book disk can be copied with no problem, and then modified as desired! The fourth option is "list diction­ ary", and if selected, will print to the screen or printer all the words con­ tained in the "word book" However there is no way to list selected words. This is an option that I have not used much. The package costs about $100.00, and is pleasant and easy to use. Its only disadvantage is the slowness (relative) of loading, and the need to

Call -A.P'p.L.E. August 1982 33

Apple Pugetsound Program Library Exchange Page 0037 of 0090 Call-A.P.P.L.E. Magazine • August 1982

[]'~kens []a1a Sys1erns~ YDUr graph'~s spe~'a~'s1s .. presen1s: The p rDfes s'Dna~ ~Y Dr'en1ed THE graph'~s pa~kage ©

S UPEAPlDT TEA version 2.2 For use with Appletm Computer Systems

_R LOADING - OOII£ERING· lJEPllRTI£HT XYZ C~. t£T It<:Ot£ IN MILLIONS OF OOlLARS The Superplotter is a highly versatile business. engineering. educational. math and graphics applications package featuring Pie Graphs Standard Bar Graphs Point and Line Graphs

1981 HOHTHS PRO..E:CT ~R R£OUIREt£HTS Graphics Display of any Mathematical Function General Purpose Plotting Visual Aid for Presentations Least Squares Polynomial OUTPUT U~LIJES Curvefit Generation lB8l£XP(SIH(X) )/(EXP(COS(X) >+COS(X» I - INPUT [II=1TI=I PT. 1[3 Keyboard Image Shape Tables and User Tutorial 712 Automatic Graphics Disk Storage and Recall Data File Editor

59 76 93 Automatic Disk Storage and -4'1-9 ----;;----;'13,----;109 -~-'---"-;->I I HPUT X U~LUES HERPT THRee RJlJlj:IE .~ PT. [lEG. 5 POLytiOHIRl CUF<'UEFIT Recall of Editor Data Files Statistical Data Analysis Forecasting Tool Overlay Modes Plot Anything

PIE HITHOUT FILLING Graphics Screen Text Editor PI' WITH FILLING

Data may be input directly or from previously generated data files. Compre­ henSive documentation is provided including printer dump instructions and directions for accessing data bases created by other programs. Requires Applesoft and one

DOS 3.3 disk drive. ARK. 14%

Decision Mcirst~ 1m' rLRSl!Irc!lNTR&1 C.O.D .. VISA. & Mastercard accepted. Extensive Overlay Capd)ilities Mail Orders Add S2.50 for shipping and handling Plot Keyboard Characters on Any (5500 outside the USA) Graphics Display Simply

Apple Pugetsound Program Library Exchange Page 0038 of 0090 Call-A.P.P.L.E. Magazine • August 1982

SPELLING What The "dictionary disk" is designed to be copied and the documentation would you give tells how to do it. The main program disk is copy protected. The user is to have able to choose the speed that the pro­ gram will print the words by using the game paddle. I have not used this TURTLEGRAPHICS, at all, as the program seems to run at about the speed that is comfortable with for me. For others though, this may or may not be important. If any key is pressed during the listing of words, automatic scaling, the program will halt until another key is pressed, so the user does not and really need the paddles to slow down the program. The first thing the program asks four graphic is "proof read a document ?" The default answer is yes, and when modes, answered, you are instructed to remove the program disk from drive one, insert the disk with the file you including wished checked into drive 1, and the dictionary disk into drive 2, assuming HIRES and LORES, you have a two drive system. If not, the program will prompt you where and when to insert each disk. Then, on your after hitting the return key, the catalog of your data disk is shown Apple II? and you make your selection of which file to check. All that is needed is the first few letters of the file's name, and the program will load that file! This saves lots of typing, and reduces the risk of typing a file name incor­ rectly. Next, the program will "read" the file that you selected, and present you with several options, listing all the words in your file, listing of only the misspelled words; a list of the misspelled is one that contains the words that the program does not recognize, even though they may be spelled quite correctly. The user is also given the option of verifying each word prior to its being marked, or the marking of each word judged to be misspelled by the program. This can make the checking of a document very, very rapid. As the program "reads" your file, the screen shows the number of words in the file, and the number of words on the "dictionary disk." This is sort of interesting to watch, and with this program, you can also print out all the words you used in your docu­ ment, and their relative frequency of usage. The misspelled words are marked by replacing the last letter by any character chosen by the user.

Call -A.P.P.L.E. August 1982 35 Apple Pugetsound Program Library Exchange Page 0039 of 0090 Call-A.P.P.L.E. Magazine • August 1982

MODEL GB75© VISION 80© Typewriter Interface Video Display Card

<~ , .•~~ ... '~> :',': ~'-- :. 0 Apple to IBM Electronic 50, 60, 75 Type­ 'lu, fi .~. ..,- "'l~ _ _ ~ writers Interface

• Reads IBM keyboard in parallel with ...... ~.,.~. ",.. - Apple keyboard • Supports the IBM code functions using an escape sequence • Types at about 13 characters per second • Full upper and lower case character • Prints from Integeror Applesoft programs ••e capability with 3 dot descenders • Supports the "Control I Number N" para­ • 9x10 dot matrix per line U.S. (9x11 llel line length mode sequence Europe) • Has switch selectable upper/lower case • 128 ASCII character set 110.60,66,78 continuous form feed page • BASIC, FORTRAN and Pascal languages lengths, 40+video, 80, 95, 132 character supported line lengths allllle: • Z80'· and CP/M'· compatible Suggested price $225.00 • Compatible with all standard Apple'· peripherals • Shift and lock for upper and lower case PROM DEVELOPMENT • Source switches between 40x24 and SYSTEM© 80x24 software and hardware • Rated #1 video card by Soflalk and Can ••• Apple lei Suggested price $395.00 V-l000 • Menu driven program development monitor • Programs 2708, 2716, 2532, 2732 and 48016 EPROMS a • Simulates PROM from RAM (4K) • Data and address interface for operator location and control • Complete user documentation Suggested price $495.00 wll.le Features: • Deluxe chassis with internal slide allows VISION 40© easy access • Storage capacity from 250 kilobytes to 2.5 megabytes .rlllaril • Accommodates both single-sided and of apple add-ons from double-sided drives Prices: Cabinet with (2) Single-sided drives COMPUTER w/power supply ...... $1795.00 Vlsta COMPANY, inc, Cabinet with (2) double-sided drives w/power supply ...... $2495.00 Softscreen programmable character/ 1317 East Edinger Cabinet w/power supply ...... $ 495.00 generator card for the Apple II computer • Allows use of DOS tool kit upper/lower Santa Ana, CA 92705 case character sets in Apple 40 column 714-953-0523 mode MODEL A800© • Permits creation of new alpha/numeric Available through your Double Density 8" Controller

and graphic characters under Aminatrix ...... -~ - • Ideal for non-English language applica­ local computer dealer. t'..-_ tions c COPYright 1981 Vista Computer Company, Inc , ' • Compatible with most popular word '''Apple Computer Company, Inc processing software packages '''Dlgllal Research, Inc c Designed by Burtronlx \ 1-.- Suggested price $195.00 -~-

MODEL l50© • High speed DMA transfer of data (1 Type Ahead Buffer micro-second/byte) • Documentation provided - includes theory of operation and diskettes • Uses all standard Apple DOS commands (OPEN, CATALOG, LOCK, DELETE, LOAD, ETC.) except for INIT which has Multi-function time utility for the APPLE III computer system. Contains the year of the been improved and enhanced in a Vista • up to 40 character type ahead capability century, the month. the date, the day of format routine • Enter- commands or data while your week, the hour, the minute, the second. • Compatible with Apple DOS 3.3, Pascal Apple is processing previous instructions • A countdown timer with a range of one 1.1 and CPM 2.2 (with the Z80 soft card by • Compatible with all Apple computers. millisecond to 999 hours, 59 minutes, Microsoft) keyboards and software 59 second, 999 milliseconds • 2K x 8 PROM contains Autoboot func­ • No cuts - no jumpers - no software • Selectable 12 or 24 hour time formats tions and all eight-inch floppy driver code patches required • Diagnostic error reporting allowing complete compatibility with • Includes complete instructions for quick • Fully compatible with the APPLE SOS and easy installation operating system Apple DOS 3.3 Suggested price $49.95 Suggested price $195.00 Suggested price $595.00

Apple Pugetsound Program Library Exchange Page 0040 of 0090 Call-A.P.P.L.E. Magazine • August 1982

SPELLING What Later the "search/replace" function of your word processor program is would you give used to find the character and correct the word. A list of misspelled words to develop programs can be printed to either the screen or your printer by selecting the slot that for the the list will be printed to. A few preceding and following words are also printed to give you the context in IBM PC, which the word in question was used. Other options include adding the TRS 80 Model II, word to the dictionary disk, ignoring the word, or deleting the word from the dictionary. T.I.99/4 If you select the option of adding words to the dictionary, a disk is in­ Home Computer, serted into drive 1, and all the words included in the "old dictionary disk" in drive 2, plus the words that you re­ and Xerox 820 quested to be added to the dictionary will be transferred to the disk in drive on your 1, leaving the contents of the dic­ tionary in drive 2 unchanged. The same process may be used to delete Apple II? words from the new dictionary. After the disk in drive 1 is finished, you will have two dictionary disks. In this way you can create as many disks with specialized words as desired. By writing a list of words you wish to add to the dictionary disk, using your word processor program, you can create multiple special purpose dic­ tionary disks, being careful to spell each word correctly. The Sensible Speller has an op­ tion that almost replaces a real dic­ tionary. The user can ask for a list of all the words contained on the "dic­ tionary disk." This enables the user to ask for all words that begin with one letter or a sequence of letters. Thus, if you do not know the exact spelling of a word, but do know the first few letters, you can find the cor­ rect spelling if that word is in the dic­ tionary disk. This saves looking up the word in a real dictionary. The Sensible speller works with Apple Writer I and II and most popular word processors, as well as in emulation mode on the Apple III and separate versions are available that support Super Text, Pascal, Word Star and other CP/M pro­ cessors that do not compress text.

Call -A.P.P.L.E. August 1982 37 Apple Pugetsound Program Library Exchange Page 0041 of 0090 Call-A.P.P.L.E. Magazine • August 1982 SPELLING PROGRAMS There are several important "the" is a proper word. Thus these Each has some aspects that I par­ things to remember when a spelling programs are a great time saver, but ticularly like, and each has a few program is used. They will indeed they do not substitute for careful minor things that I don't like. Of the find and call to the user's attention proof reading of important files or three programs, it is my opinion that words that they do not recognize, but documents. Their main use is to find The Sensible Speller is the best, with they can not read the mind of the misspellings or typos; they do not a larger original vocabulary, and the user. For example, if your cousin is correct either!! greater capacity to add permanent named Thadeus, and you write to I have found them to be a great words. It also has the ability of him, none of the programs is likely to time and paper saver, because they creating additional "dictionaries" at have this name present in its original will find not only misspelled words, will, and does seem to do its job form. Thus this name will be iden­ but typing errors also. Thus I can faster, as well as the ability to see the tified as being spelled incorrectly un­ write a story or letter, and let one of catalog of the files on your document til it is added to the dictionary. Most the spelling programs do the first disk. The printing of the selected important, is that no program can checking of my efforts. This seems to words from the dictionary words to identify a word that is spelled correct­ correct 90% of the errors that I make, check for spelling is also a very fine ly but is not used correctly. These and saves me one or two printings to option. words are called homonyms. For ex­ proof read a document. I am sure that the next few years ample if you meant to type "hear," The combination of any of the (or months) will see more spelling but instead typed "here," you would spelling programs discussed along programs, some which may well beat not be told that you goofed since with a newer word processing pro­ each of the three discussed in this ar­ "here" is a properly spelled word. gram, makes writing documents, let­ ticle. Now if only some one could Also many words start with the same ters or stories almost painless. Which come up with a program to do the sequence of letters, for example then, one do I use, and which one do I typing ... them, and they, and if you only typed prefer, you might ask. I use each of the first three letters, the computer the spelling programs discusssed. will assume you were correct because

A DATA BASE, WORD PROCESSOR AND REPORT GENERATO ALL COMBINED INTO ONE INTEGRATED SYSTEM. r------~ WORD PROCESSOR DATA BASE FEATURES REPORT GENERATOR • Menu Driven • Instantaneous Sort -Capitalization • Line Spacing instructions are visible on the screen IOrts through 1000 pieces of single, double, triple. etc shiftlock access, displayed In Inverse at all times information per second. forwards • Margin Spacing -Indentation • Up to 20 Fields per Record or backwards. alphl-numerically • tabulation • About 200 Records per File or by number value . • Fillers • 'nsert-Delete - Up to 9 Files per Diskette • Instantaneous Search dots. spaces, asterisks. etc characters 01 one or many _ Requires only One Disk Drive search a part or a whole fIle for a • Fill in Preprinted Forms - 48K Applesoft in ROM .Ingle charlcter, a single word or a -flight-Left Margin Justification - Create your own Forms from 30 to 130 characters per Ime .NO WRITE PROTECTION group of words Use as many diskettes as you wish: -Divide and Merge • Print Mailing Labels • Variable Line Spacing make back~up copies or make modi­ divide a large file mto two smaller address and print form letters -Endless Applications fications Within the program files or merge two smaller files into - Telephone Lists form letters. dIary. meetIng notes. etc - Works with most Printers one IIrg8 hie - Check Registers .Machine Language .Easy Update and Correction _Integrated with Report Generator - Shopping Lists allows many of the routines to run add, delete or rename files at any • Billing Statements • Works with most any Printer several times faster for instantaneous time; reorganize files or move In - Endless Applications response to commands while saving entire block of records within the file. • All Instructions Visible • Pre-Programmed Report Formats memory space. -Simple Mathematical Functions several to use at the puSh of 8 button instructions are displayed on the • Easy Entry of Records perform simple mathematical func­ Icreen at all times -Integrated with Data-Base and enter records at any time, In any order tions betwee.n fields such as payroll. • Word Processor • Instant ACCess to Records checkbook. sales projections. etc. call all. some or one record to the -Field Modification INCLUDES: • 39 pages of Documentation acreen instantly: move an entire add, de,ete, rename or reorganize $149.00* block of records eliewhere in the file • Table of Contents fields- at any time ~ith ease Mlchl".n R•• ldent, • ExtenSive Index .dd 4% ..Ie. t.x. • One Program Diskette New Dealer Prices Available • Instructions for setting up Checkbook Register and Telephone Directory

VISA .. MC 1 • 6 ,., x 9 inch Oxford Binder for handy c.n storage of master diskette and docu­ 517-337-7423 ~ mentihon 6443 COLEMAN RD .• E LANSING, MI 48823

38 Call -A.P.PLE. Auqust 1982 Apple Pugetsound Program Library Exchange Page 0042 of 0090 Call-A.P.P.L.E. Magazine • August 1982

Would• Uyou'recurrently you gIV~avrulableasanadd-on). using AfPle Pascal* on your And it provides support for Apple I , you're probably aware $ 2 9 dynamic memory man- of some noticeable limitations. agement and multi task· And you'd probably give a lot for ing, with a full arsenal an upgrade package, including of enhancements. And if the UCSD p·System; UCSD Pascal* that isn't enough, your and TURTLEGRAPHICS, that would get existing Apple Pascal your Apple* to do what it's capable of. programs are upward Upgrade to the UCSQ p-System compatible with the Version IV from SofTech Microsystems. p-System, and simply It's got all the features of Apple Pascal, have to be recompiled and then some. For instance, Apple Pascal's to execute. All your Apple UNITS must be linked in at each compilation, II needs is 64K of RAM the p-System's do not. And instead of being lim- and two disk drives. ited to 32 UNITS, like Apple Pascal, the p-System Last but not least, there's allows a virtually unlimited number. the price. Normally; you'd have How about peripheral support? The p-System to pay as much as $825 for such supports all the peripherals that a package. Apple Pascal does, plus a clock, But, for the next two months, and a lower case adapter. And, we're making this special upgrade we get more out of the periph - offer to Apple Pascal users for a erals you've already got- mere $295. That's a savings of shiftware modification on the over 60%. keyboard, alpha lock key; So just send in the coupon typeahead and characters below, with your proof of pur· not even on the Apple chase and check, money order keyboard. or Visa or MasterCard num- And when it ber, and you'll be on your way comes to gra~hics, our to getting more out of your TURTLEGRAPHICS Apple II than you ever dreamed has everything in Apple's of. But you'd better hurry. graphics, plus automatic Your two months have already scaling and four gra)lhic modes, started. including both HIRES and LORES. Then there's portability. The p-System lets you develop gen­ uinely portable, high-level applications for nearly any microcomputer around. It allows you to work in ~ rt==\)(f.[JO any combination of UCSD Pascal and BASIC ~19 ("C51tr==Jfl-J1 ~ ______L5~Ln..J

, Okay, SoITech Microsystems, here's my $295. I want rn.CROSYSTei i is my Apple II to have software it can really appreciate. Please send coupon to: Apple Upgrade Dept. P.O. Box 27179, San Diego, CA 92128 I . D My check IS enclosed (800) 225.0419 (800) 225.1592 in Calif. Please charge to my Acct. # ______~ I Visa 0 Master Charge 0 Expiration Date ___ Name on card ______I hereby certify that I am an Apple Pascal Owner. My proof of purchase is I Signature 0 invoice D receipt D disk label 0 other I Name ______~Tit1e Company Telephone Ext. I Address City State ____ Zip ____ I OFFER VALID JULY 1 to AUGUST 31, 1982 (California residents please add 6% sales tax [California Transit District-6.5%] Massachusetts residents please add 5% sales tax.) ...... "lJCSD p-System and LJCSD Pascal are trademarks of the Regents of the University of California. Apple, Apple II, and Apple Pascal are registered trademarks of Apple Computer, Inc. ~ ~------~ Apple Pugetsound Program Library Exchange Page 0043 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A Call -A.P.P.L.E. TECHNIOUE: EXECUTING DEFERRED COMMANDS FROM THE KEYBOARD C. Oarsman

AVING read the article the current line number. Next, the following the "&" where the pro­ "Applesoft Internal Struc­ stack is set up as if a BASIC gram was interrupted, and the pro­ ture" by C.K. Mesztenyi "GOSUB" had been encotmtered; gram will continue running as if it H (Call -A.PPL.E. Jan. 82), I the return address is pushed followed had never been stopped. implemented what could be called a by the return line number and the "&" could now be inserted in "deferred mode immediate mode token for GOSUB. Instead of branch­ several places in a program and used, statement executor" which can be ing to a subroutine, return is passed for example, as a very flexible debug­ used as extremely flexible BASIC back to BASIC immediate mode by ging aid. Run the following program debugging aid. exiting through $D43C. Any com­ to show how easy it is to use. The routine is linked to BASIC mand may now be entered from the 10 FOR I = 1 to 10000 via the" &" command. When & is en­ keyboard until the BASIC 20 PRINT 1*1, SQR(1) countered in a program, control is "RETURN" is entered, at which 30 K =PEEK(-16384): IF K = 137 passed to the routine which first time control passes back to the stored THEN POKE -16368,0:& prints "PAUSED IN" followed by program at the statement directly 40 NEXT Line 30 tests if a Ctrl-I has been :ASI'I pressed and if so return is passed to a**a*****a*a******************** BASIC. You may now type in com­ 2 mands such as: 3 * "Illmediate Commands" * 4 * by C Oorsman !Ii: PRINT I 5 * * PRINT K etc. 6 * Call -A.P.P.L.E. : Aug 1982 * Type the following to show that 7 *************.*************.***** * even the value of the loop counter 9 * may be changed if desired. 10 JKP EOU 54C I = 1000: RETURN 11 GOSUS EOU $ SO 12 TEXTPTR EOU SB8 Of course, you do not have to 13 CURRL IN EaU S 75 14 AI'IPVEC EaU S3F5 "RETURN" to the contolling pro­ 15 NESTCHK EOU S030' gram but may continue in BASIC. In 16 SASIC EaU S043C this case it is wise to tidy the stack by 17 INPRT EOU SE019 18 COUT EQU HOFO using the command "POP" from the 19 * keyboard. This will clear the return 20 ORG S300 addresses from the stack causing 21 12 * Set & Jump vector "RETURN WITHOUT GOSUB 23 * ERROR" if a RETURN is now at­ 0300 A9 4C 24 INIT LOA IJMP tempted. If, however, the & is en­ 0302 80 F5 03 25 STA AMPVEC 0305 A9 10 H LOA I(ENTRY countered within a subroutine and 0307 80 Ft. 03 27 STA AMPVEC+l RETURN is executed after a POP, 030A A9 03 l8 LOA I} ENTRY then control will pass back to the pro­ 030C 80 F7 03 19 STA AMPVEC+2 03 OF 60 30 RTS gram at the statement following the 31 * GOSUB to the subroutine where the 32 * Come here from BASIC "&" 33 & was found. 0310: A2 06 34 ENTRY* LOX 16 The code can be relocated to 0312 : BO 35 03 35 LOOP LOA MESSAGE,X reside in any free 60 bytes of memory 0315 : 20 FO FO 36 JSR COUT 0311 : CA 37 OEX as long as the & vector points to its 0319 : 10 F7 38 SPL LOOP ;PRINT "PAUSED" start and the address of the message 0318 : 20 19 ED 39 JSR INPRT ;"IN" line number in line 35 correctly points at the 031E: A9 03 40 LOA 13 0320 : 20 D6 D3 41 JSR NESTCHK ;Check nesting ASCII bytes in line 53. 0323 : A5 S9 42 LOA TEXTPTR+l ;level-maJ[. Nestin=25 0325 : 48 43 PHA 0326 : A5 B8 44 LOA TEXTPTR 0328: 48 45 PHA ;Push return address 0329 : AS 76 44 LOA CURRLIN+l 0328: 48 47 PHA onc: AS 75 48 LOA CURRL IN 032E: 48 49 PHA ;Push return line no. 03 2F: A9 BO SO LOA ICOSUB 0331 : 48 51 PHA ;Push "COSUS" token; "return without COSUS" check 0332 : 4C 3C 04 52 JMP BASIC ;EJ[ecute imm. command by returning to SASIC 0335 : C4 C5 D3 0338 : D5 Cl DO S3 MESSAGE ASe "DESUAP" ;"PAUSEO" backwards 0338 : 80 54 HEX 80 ;Carriage return --End assembly-- 60 bytes Errors: 0

40 Call -A.P.P.L.E. August 1982 • Apple Pugetsound Program Library Exchange I Page 0044 of 0090 Call-A.P.P.L.E. Magazine • August 1982 What would you do if you tnissed out on this offer?

You'd have missed out on a chance to You wouldn't have unlimited UNITS on upgrade from Apple Pascal to the software your APPLE II. that lets you write applications on your You wouldn't have SofTech Microsys­ Apple II that will run without recom­ terns' UCSD p-System. For only $295. pilation on virtually any microcom­ And you'd never again have the puter_ Period. chance to get it at that price. You'd have missed the chance Think about it. But don't to have your APPLE II think too long. Because configure to any peripheral. you've only got one month You wouldn't have left to take advantage of this TURTLEGRAPHICS, one-time- only offer. with automatic scaling And if you miss it this time, and four graphic modes, what will you do? including HIRES and LORES.

~,=ech='=,~my-==my Apple II to have software it can really appreciate. ~~~:J,C5~Please send coupon to: Apple Upgrade Dept. I M h k · I dO P.O. Box 27179, San Diego, CA 92128 Y c ec IS enc ose (800) 225.0419 (800) 225.1592 in Calif. Please charge to my Acct. # ______I Visa 0 Master Charge 0 Expiration Date: ___ Name on card ______I hereby certify that I am an Apple Pascal Owner. My proof of purchase is I Signature 0 invoice 0 receipt 0 disk label 0 other I Name Title ______Company Telephone Ext. I Address City State Zip ____ I OFFER VALID JULY 1 to AUGUST 31, 1982 (California residents please add 6% sales tax [California Transit District-6.5%1 Massachusetts residents please add 5% sales tax.) '-iISD•• t_ l"_'Of _ oft_ilYO_A P_I . a_~a_ re d_ Of A_ "te ,,,,

Apple Pugetsound Program Library Exchange Page 0045 of 0090 Call-A.P.P.L.E. Magazine • August 1982

Now, from the programming experts at S.o.S., elements in 90 seconds), and a number of an easy-te-use way of putting the POWER other often-needed routines as well (30 . and SPEED of machine language routines in routines in all). YOUR OWN APPLESOFT PROGRAMS! Additional library disks titled "Ampersoft Pro­ ROUTINE MACHINE does all the work for you - gram library" are already available. no knowledge of machine language pro­ gramming, Whatsoever, is required. Simply Some of the other routines in The Routine choose the routine you need from an ever­ Machine (piUS others not listed) are: growing library, and Routine Machine will effortlessly put them in your program, and SWAP: Swaps two string or numeric values. all done transparently! No need to be aware of or bother with BLOAD's, HIMEM:, etc. TEXT OUTPUT: Prints with no "word break" on screen. Best of all, with just this starter package, you'll STRING OUTPUT: Input any string, regardless of have the routines to put High Resolution commas, etc. graphics and sound in your programs im­ mediately! Also included is a versatile print ERR: Stack fix for Applesoft ONERR handling. using module to banish the "decimal point GOTO, GOSUB: Allows computed state­ demons" forever! To round out the package, ments. Example: GOTO X *50r GOSUB we've also included powerful search and X*5. sort routines (for single dimension arrays; Search: 1000 elements in 1 second, Sort: 1000 BLOAO: Load any binary file 5 times faster than normal. Hi-Res pictures load in ** ••• *************************************. under 2 seconds. • * : OUR GUARANTEE : RESET HANDLER: Treats RESET with ONERR: or * • : IF YOU DON'T SAVE MORE THAN THE PUR- : wi 11 RUN or reboot disk. : CHASE PRICE OF 'ROUTINE MACHINE' IN : HI·RES ASCII: Character set for mixing text : YOUR OWN PROGRAMMING TIME IN THE : Hi-Res graphics. : FIRST 30 DAYS YOU OWN IT, SIMPLY RE- : : TURN IT FOR A COMPLETE REFUND, NO : TURTLE GRAPHICS: Versatile Hi-Res graphics : QUESTIONS ASKED! : routines for easy drawing of Hi-Res •• ** •• ** •• *** •••••• ***.** •• *** •• **.**** •• ** figures.

soutnwesteRn data sYstems ™ p.o, BOX 582 • SANTEE, CALIFORNIA 92071 • TELEPHONE: 714/562-3670

Apple Pugetsound Program Library Exchange Page 0046 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A Call -A.P.P.L.E. TECH NOTE: BEWARE THE SCFxx

David Goss

Potential trap awaits Connecting an oscilloscope to the The cause of the problem is the designers of peripheral cards circuit lead to the discovery that the two LDA instructions at DF3F and which use the $C800-$CFFF 110 STROBE line on the bus was be­ DF44. These are machine language A expansion memory space. ing activated each time CHR$ was instructions which use absolute in­ The following article describes the executed. That indicated that CHR$ dexed addressing to load the 6502 problem and the way to avoid it. was generating an address in the accumulator. The adJress from System architecture of the Apple $C800 - $CFFF range, but why? which data is read to load the accum­ provides for 2K of expansion At that point I called Val Golding ulator is derived by adding the base memory in the address space $C800 on the Hotline and asked for help. Val address (e.g. CFDC) to the value of thru $CFFF. This space is often used referred me to Dave Lingwood in the Y register. For example, if Y = by Read Only Memory (ROM) on pe­ Seattle. Dave was not aware of the CE the indexed address becomes ripheral cards, and is also used as a problem, but quickly verified that it CFDC + CE = DOAA. RAM display buffer by some did exist and made some suggestions That address, as are all addresses 80-column cards. To make it possible on ways to isolate the cause. generated by these instructions, is in for more than one card to use this Following Dave's advice I tempo­ the Applesoft ROM. There is a quirk memory area, a protocol has been rarily wired the card so that the ROM in the operation of the 6502, defined by which a read or write to disable signal would activate the however, that causes a false read to $CFFF is to turn off the expansion Non-Maskable Interrupt on the bus. be generated during the process of memory on all cards. Control of the The interrupt vector was set to a executing an indexed instruction $C800 - $CFFF memory can there­ machine language BRK instruction which crosses a memory page bound­ fore be passed to a selected card by which caused the processor to halt ary. The false read is ignored by the allowing that card to output the whenever the ROM became disabled. 6502 and so normally causes no prob­ $CFFF address and then enable its One of the things that the 6502 lem, but its address is always in the own ROM or RAM. The protocol is does when it gets an interrupt is to base address page. In this case that is defined in the Reference Manual save the current contents of the pro­ our old friend CFxx, and that is what (p.84) and in the documentation for gram counter on the stack, before go­ was turning off the ROM. the Hobby/Prototype Card. The ing on to process the interrupt. It was manual also describes a shortcut therefore possible, by examining the method for decoding the turn-off stack after an interrupt, to discover A.P.P.L.E. Members Only command. Called CFxx decoding, the location in program memory this method ignores the least signifi­ where the interrupt occured. What AP. COOLKIT cant eight bits of the address and will that showed was that it was being respond to any address in the $CFOO generated by a series of instructions - $CFFF range. It simplifies the in Applesoft ROM as shown below: Now Available decode logic, but prohibits the user A.P.PLE. Members from accessing the last 256 bytes of DF3F- LDA $CFDC,Y expansion memory. DF42- STA $91 I recently designed and con­ DF44- LDA $CFDD,Y $22.50 structed a custom ROM circuit for DF47- STA $92 my own Apple ][. Since I did not need DF49- JSR $90 the last 256 bytes (and being lazy) I I do not know what function these Consisting of a T orin slow speed followed the manual's example and instructions are performing, but they used the CFxx decode. The circuit fan, line cord and mounting tape. appear to be common to a number of worked just fine - except that every (See Keep Your Cool, Call - Applesoft commands. These include time an Applesoft program was run A.P.PLE., May 1982) all of the string functions (CHR$, the ROM got turned off!!! A little STR$, RIGHT$, MID$, etc.), all of experimenting showed that certain A.P.P.L.E Orders the math functions (ABS, INT, RND, Applesoft comands (CHR$ for exam­ 304 Main Ave. S., Suite 300 etc.) plus several others including ple) would do it consistently in either Renton, WA 98055 PDL, PEEK, and POS. direct or deferred execution mode. (206) 271-4514 My first thought was that I had made a wiring error of some sort, but when Washington State Residents everything checked out, I got very add 6.5% sales tax curious as to what was going on. Sorry, not available to foreign or overseas members. Shipping WI. 16 oz.

Call -A.P.P.LE. August 1982 43 Apple Pugetsound Program Library Exchange I Page 0047 of 0090 Call-A.P.P.L.E. Magazine • August 1982

16K RAM EXPANSION BOARD FOR THE APPLE II * SI ZO.OO The Andromeda 16K RAM Expansion Board Now with One Year Warranty. allows your Apple to use RAM memory In place of the BASIC Language ROMs giving you up to 64K of programmable memory. Separate Applesoft* or Integer BASIC ROM cards are no longer needed The 16K RAM Expansion Board works with the Microsoft Z-80 card, Vislcalc. JWJf!~~g~ DOS 3-3, Pascal, Fortran, Pilot. and other 919852-1482 P.O. Box 19144 software. A sWitch on the card selects either Price for Andromeda 16K RAM the RAM language or the main board ROMs expansion board now only S12000 when you reset your Apple. Please add S5 for shipping and The Andromeda 16K RAM Expansion handling. North Carolina reSidents Board has a proven record for reliability with thousands of satisfied customers. add 4% sales tax. *OEALER INOUIRIES WELCOME

Apple Pugetsound Program Library Exchange Page 0048 of 0090 Call-A.P.P.L.E. Magazine • August 1982

BEWARE THE SCFXX What do The solution to the problem is, of ond method uses fewer parts, but course, to decode the full sixteen bits caution must be used when connect­ these of the address so that only $CFFF ing Schottky logic directly to the bus. will disable the ROM. Figure 1 shows It has a loading effect that is approxi­ Superior two methods of doing that. One uses mately five times greater than LS standard LS logic and the other uses logic, and so could exceed bus a 13-input Schottky gate. The sec- fan-out specifications. Programs have in common? Apple Graphics II Senior Analyst ~ Apple Computer Corp. f>..1 VersaForm Applied Software Techn ~ 3" 4 Cascade II A.. Cascade Graphics Corp. S' ~ Diff-E-Q ~ ~s 14LS?4 Sage Software ~ \ DSS/F If. "'7 Financial Modeling Addison Wesley Market Analyst 1tb STIU)£)£ Anidata AgePac Wisconsin Software ~ ~ C.t'fF Visischedule A~ 4 " VisiCorp Alo ~ I"\L~'(¢ Accounting Management Great Plains Job Control High Technology

":I.~K \lc.c THEY'RE EVEN MORE Ao VALUABLE WITH tlt., :3 t>-l- 4 THE PASCAL "''3 5 SPEEDUP SYSTEM! A<\ tD '1 IF YOU VALUE YOUR TIME, THE PSS Hard­ t..s q Ctf~ ware/Software package will pay for itself p.." 10 within a few weeks! h System includes THE MILL 6809 COPROCES­ '4~133 ~8 "I~ SOR BOARD + System software & Printer Spooler. ~ 13 "'0 \~ PLUG IT IN & GO! "For Apple Hobbyists: THE ASSEMBLER DE­ VELOPMENT KIT; Create 6502-6809 DOS 3.3 compatible programs 1/0 STROet

< •..• ...... •.. •... • ..!.••.• .•... r.. ION .~ . 'Jr~I1LTWO d~.4.'.· Figure 1. The Lobero Building 8 P.O. Box 2342 Santa Barbara, CA 93120 (805) 966-1140

Call -A.P.P.L.E. August 1982 45

Apple Pugetsound Program Library Exchange Page 0049 of 0090 Call-A.P.P.L.E. Magazine • August 1982 CATE! "The Professional" Series from 5DS NEW Apple" terminal software • Z-Term "The Professional"TM by Bill Blue, for Time Share Users Apple CP/M* Q. Are you tired of wasting time and money sending or • P-Term "The Professional"TM by Joel Kunin and receiving files with inadequate, poorly designed Bill Blue, for Apple Pascal* * software? Do you find yourself manually performing the same lengthy log·in procedures over and over • ASCII Express "The Professional"TM by Mark again? Would you like to automate these procedures Robbins and Bill Blue, for Apple DOS* * for yourself and others? A. "The Professionals" allow you to send files which Businessmen have been prepared in advance. They may then be Q. Do you have difficulty operating your printer when transferred at any time, as quickly as possible - connected to a time·sharing computer? Are files even to several different systems. No time is you're trying to download too large for your system wasted reviewing information while on line; data may buffer? Does your host computer lose data when you be captured by your computer or printer (or both) to send files to it? be evaluated. later at your convenience. These fea· tures assure minimum on·line time and therefore A. "The Professionals" incorporate printer ring bufferS minimum on·line cost. which allow slower printers to accept data at their own rates. Very large files are easily received .by "The Professionals" introduce macros that are more periodically saving the buffer to disk. Unlike some sophisticated than anything previously seen in com· software which can lose data during disk saves, munications software. These "hand·shaking" mac· "The Professionals" not only direct the host to stop, ros allow you to perform complete multi·stage log·on but actually wait for it to respond before performin.Q . sequences automatically; all you do is specify the the save. After a successful save, the host is system to be called. This eliminates sign·on errors automatically directed to continue. This process and greatly simplifies operation of the entire system, may be repeated indefinitely. Lost data during send not only for you, but for other less skilled operators. is virtually eliminated by the widest variety of send options available in any communications software. "The Professionals" ensure fast, reliable data trans· Bulletin Boards fer of any valuable business information. Q. Would you like to be able to take advantage of the in· formation featured on local bulletin boards and infor· mation services such as The Source, CompuServe, Authors Dow Jones, and others? Q. Does your line of work involve sending written material to others? Are you a program author who A. "The Professionals" open the world of modem com· would like to send work in progress to a partner or munication networks to you. There are already client and know that it arrived intact? What would thousands of these systems and networks in use na· the ability to instantly send material or programs to tionwide. "The Profe~sionals" provide an. ideal way anyone at any time be worth to you? of accessing these systems. All 80 column boards, external terminals (even the 40 column screen), and A. "The Professionals" provide the ideal way to send currently available communications devices are fully your articles, manuscripts, reports, programs and supported, including the Hayes Micromodem II and technical documents to another computer with Novation Apple CAT. All standard baud rates - 110, phone line access. Now you can work WHEREVER 300, 1200 and others - are fully supported; BAUDOT you want, and be assured that your data is sent to its too, If your computer is equipped with the Apple CAT destination quickly and error·free. ·In fact, compared modem. to the fastest mail services, "The Professionals" of· fer immediate delivery and will save you the pur· chase price in just a few uses. Clubs Q. Are there other Apple owners with whom you would like to exchange programs or files, but have been Students unable to do so because of limitations imposed by Q. Are you bothered by limited access to your school's the software you now use? existing terminals? Would you like to be able to do your school assignments at home at your own con· A. Any two Apples equipped with "The Professionals" venience? can transfer ANY type or size file with complete error checking and correction. All of "The Professional" A. "The Professionals" allow you to access virtually packages are fully conversant with each other and any dial·up school or college computer system over operate almost identically. For the first time ever, standard telephone lines. This means no more you can transfer compatible files to an operating waiting in line for an available terminal or hassles system different from yours - error free! with malfunctioning school equipment. You can even prepare term papers or reports while off·line "The Professional" Series - Excellence in Apple and send the completed work to the school com· Communications Software puter for final printing. Best of all, you can work from home at the times most convenient for you. soutnwesteRn data sYstems™ 'CP/M is a trademark of Digital Research. P.O. Box 582·C Santee, CA 92071 714·562·3670 .. Apple is a trademark of Apple Computers, Inc.

Apple Pugetsound Program Library Exchange Page 0050 of 0090 Call-A.P.P.L.E. Magazine • August 1982

ROASTING APPLESOFT PRESERVES

David G. Sparks

HAT Val Golding! He will do Assuming you entered the code It teaches a lesson similar to the anything to promote others' into the addresses given m the one they tell people who take flying learning about the Apple February '82 article, you will want to lessons: the pilot, not the machine, is Tcomputer! He reminds me of do one of two things. Either POKE responsible at all times for the safe the great hillbilly guitarist Chet 1013,76:POKE 1014,0:POKE 1015,3 operation of the flight. Atkins, who once astonished the or enter the monitor with CALL -151 What does this bug do? With 6 in audience of &ston Pops with his vir­ then type 3F5:4C 00 03 [return] the X-register, it updates a fourth tuoso performances of classical and 3DOG [return]. address, at $70. This address tells baroque literature on his instrument. You have just told Applesoft Applesoft where to put string data. After one particularly brilliant where to find your routine, in this Applesoft wants strings to go up piece, he drawled, "Most folks come case, at hex address $300. When above the other variables, but the bug to concerts hoping to hear the artist Applesoft encounters an "&" char­ has just told it to put them below the make a mistake. I threw a few in so acter, whether in a program or typed other variables. This may cause gar­ they wouldn't be disappointed." by you, it will think you typed CALL bage collection. It may do other I think that Val did this with his 768, and act accordingly. things. recent article, "Applesoft Preserves." So much for the ampersand. Now Why doesn't the bug wreck every­ He deliberately injected a few for the bug of instruction that Val put thing? Because the loop which starts mistakes just to keep our attention. in the program for us. Actually, two, at line 73 actually does go on to sub­ The sharp-eyed veterans out or three, depending on how you count. tract 2 from X, store the accumulator there no doubt glanced over the Bug number one is the worst. in the correct address, and continue source code, saw the error, and called Open the February issue to page 66. in this way until it is finished. The to chuckle at his little jest. On the Look at line number 73. It says, other variable pointers are properly other hand, we who take our machine "324: 95 6A 73 STEP STA VARPNT changed, and if you do not use string language listings on faith had to type + 1,X-2." It seems to be telling the variables, you should have no problems. it in, assemble, and sit puzzling at one 6502 to subtract 2 from the value in The fix? Easy. Change line 72 to or two intermittent bugs. the X-register, and use the result to load the X-register with a 4, instead Sometimes one or more string count from location $6A to the spot of a 6. The program will now leave variables would vanish. Applesoft where the accumulator's value should alone the address of the start of string could go off into garbage collection be stored. storage. prematurely. Worst of all, part of the Look at the line above. It's a clear­ You may want to tidy up the program might have been overwritten cut instruction to load the X-register source code at line 73, by removing by data! with 6. the "-2" from the operand. Sooner or later, a few of us might So line 73 wants the 6502 to sub­ Bug number 2 is in the macro, call on the hot line for help. That's tract 2, leaving 4 in the X-register, CKDATA. Again, it has to do with what Val waited for. then count from 0 to 4, starting at the value of the X-register. Defined "Yes, there's something wrong. $6A and store the value in the accu­ in line 49, and implemented at loca­ No, I haven't looked at it. Someone mulator at $6E. tions $33A and $34E, X receives told me that one or two of the What is $6E? According to the another 6. It should be 7. Here's why. pointers might be off the mark." Applesoft manual, it is part of the ad­ Unlike the initialization part of Then the sneak attack of the best dress of the top of numeric variable Applesoft Preserves, the &STORE kind of teacher, "Why don't you see storage, the last of three pointers to DATA and &RECALL DATA parts if you can fix it for me. I'd do it the variable storage area. The accu­ do need to deal with the start of myself, but I'm too busy. Why, you mulator contains a modification to string pointers. They must handle are caller number 10,087 since six that address, and two others, which both bytes of all four variable o'clock tonight, and I still have lots of are the keys to the successful func­ pointers. Since the 6502 always starts things to do. You can fix it, it's not tion of the program. counting from 0, handling eight bytes that difficult." Enter the monitor again, after requires counting down from 7 to O. Can I? Let's see .... BLOADing this program, and list the The way the program was pub­ The program has three parts. The actual code with the command 324L lished, it wasn't saving the high byte code is relocatable, so you can [return]. Look at the top line. It of the start of string pointers, again BLOAD it anywhere. It is intended to reads, "STA $6A,X." There is no introducing unpredictable results into use the ampersand (&), therfore you mention of subtracting 2 from the any program dealing with string must set up the so-called ampersand X-register at that point. Why? variables. vector. The 6502 microporcessor has no Fix the code by changing line 49 way to do that. How did the Big Mac to load X with 7, instead of 6. Delete assembler permit the funny operand the extraneous LDX instruction at in line 73 to go by without flagging an line 97. Then re-assemble, and let error? Good question. Mac take care of everything.

Call -A.P.P.LE. August 1982 47 Apple Pugetsound Program Library Exchange 1Page 0051 of 0090 Call-A.P.P.L.E. Magazine • August 1982

ATTENTION SOFTWARE AUTHORS ROASTING APPLESOFT Note again the attempt at And that'll do it! Good for another X-register arithmetic in lines 86, 87, 100,000 miles! 98, and 99. Take out offending "-I" Now to turn again to the subject characters if you wish. Big Mac will of Val Golding . Val knows all this apparently ignore them, and assemble stuff. He certainly knows that the a normal, indexed-by-X opcode 6502 has no facility for direct arith­ there. With a 7 in the X-register at metic manipulation of the X-register the start of the two loops, all four during an indexing operation. addresses will be preserved. There had to be a reason why he If you entered the code by hand, would deliberately publish a program here are all of the fixes discussed in with such sneaky bugs in it. I believe il: II the article thus far. Enter the monitor it was to force rookie types like me to Cortland Data Systems with CALL -151, then: learn by debugging. It was effective. That must be it. Let our team of professionals BLOAD Applesoft Preserves I mean, what other explanation design, package and distribute (Yes, you can use DOS while in could there be? your software creations. Royal­ the monitor. Don't worry about Editors note: Wouldn't you know - ties paid monthly. the funny bytes that show up on always someone to get us off the hook! If you have a quality software the screen when you do.) product, call or write us today 323:04 [return] fixes first bug. for a free authors kit or send us 33B:07 [return] fixes bug #2 in a machine readable copy of your the &STORE DATA part. work. All submitted programs 34F:07 EA EA [return] fixes bug will be reviewed in strictest con­ #2 in the &RECALL DATA fidence. part, and puts "do-nothing" code over the extra line. P.O. Box 14414 BSAVE Applesoft Preserves, Chicago, I L. 60614 A768,L 100 [return] Telephone: 312·929·7727

INTRODUCING THE THIRD GENERATION OF INVESTORS' SOFTWARE FOR THE ApPLE. THE INVESTOR'S TOOLKIT™

More complete than any other. DATA MANIPULATION TRADING SYSTEMS Easier to use than any other. And vou Send $5 (credited to your first pay only for the systems you neel You 1. Data File Management .$ 99.95 15. Wilders6Systems .... $129.95 purchase) for a demonstration disk 2. V-Comm...... 99.95 16. Relative Strength Index (if you don't have an Apple, any can later "upgrade" any program Trading System...... 49.95 package for just the price difference. dealer will run it for you). Mastercard TECHNICAL ANALYSIS TOOLS 17. Engineers System. . . .. 69.95 and Visa holders order toll-free, 18. Colver Method...... 39.95 3. Advanced Graphics One $199.95 19. Trend Master...... 99.95 1-800-835-2246. (Demo not PROGRAM PACKAGES 4. Graphic Charting 20. CSR 1: Moving Average available through 800 number.) (co"sult"g oftbe programs as willi Analysis...... 99.95 with % Price Band.. . .. 79.95 ,,"mbered 6elow) 5. Graphic Charting 21. CSR 2: Directional Chart Trader willi Analysis II ...... 149.95 Indicator...... 79.95 «(ontaIns #1, 4) ...... $149.00 6, Gaon Square of Nine .: 49.95 22. CSR 3: L-S-O Price Market Analyst 7. Swing Wave Day Counter 49.95 Channel...... 79.95 ~ (contaIns #1,4,15,16) ... 249.00 8. Fibonacci Projection.. 59.95 23. CSR 4: Range Quotient OMEGA MlCROWME, INC. Financial Trader System...... 79.95 «(ontaIns #1, 4, 5,6,9, TRADING SYSTEMS 24. CSR 5: M-I1 Price 222 SO. RIVERSIDE PLAZA 15, 16, 17, 18) ...... 499.00 WITH OPfIMIZATION Channel...... 79.95 CHICAGO, IL 60606 Professional Trader 25. CSR 6: Dual Moving 312-648-1904 (contaIns #1,3,4,5,6,8, 9. MovingAverage Average...... 79.95 9, 12, 14, 15, 16, 17, 18) ... 699.00 Crossover ...... $149.95 26. CSR 7: The Outside 10. Engineers System ..... 199.95 Price Channel...... 79.95 Chart Trader and Market Analvst also 11. Parabolic System. . . .. 99.95 available with Graphic Chartin~ with 27. CSR 8: Reference Software by 12. Directional Movement Analvsis II (#5) for $SO.OO addItional. Deviation System. . . .. 79.95 Orion Management, Inc. Packages listed above may be upgraded System...... 99.95 28. CSR 9: Trend- 13. Swing Index System. .. 99.95 for price difference only Countertrend Hybrid.. 79.95 © 1982 Omega MicroWirt.inc 14. Relative Strength 29. CSR 10: High-Low Moving Apple is a regislered trademark Index System...... 99.95 Average Breakout. . . .. 79.95 of Apple Computer. Inc

48 Call -A.P.P.LE. August 1982

Apple Pugetsound Program Library Exchange Page 0052 of 0090 Call-A.P.P.L.E. Magazine • August 1982 NOBODY, BUT NOBODY UNDERSELLS BORDER SOAWARE!

List Your List Your List Your Price Price Price Price Price Price

BEAGLE BROS. MICRO LAB (VISICORP)-PERSONAL SOFTWARE 29-0001 UTILITY CITY 29.50 21.95 07 -0001 DATA FACTORY 30000 224.95 09-0001 VISICALC 29-0002 ALPHA PLOT 39.50 250.00 189.95 29.95 07·0002 INVOICE FACTORY 200.00 149.95 09-0002 VISIDEX 25000 189.95 29-0003 DOS BOSS 24.00 17.95 07-0003 TAX MANAGER 150.00 109.95 09-0003 VISITREND PLOT 30000 29·0004 APPLE MECHANIC 29 00 224.95 21.95 07 -0004 SAT ENGLISH 3000 21.95 09-0004 VISIFILE 25000 189.95 29·0005 TIP DISK 2000 14.95 MICRO PRO PHOENIX SOFTWARE BRODERBUND SOFTWARE 05·0001 WORDSTAR 37500 269.95 18-0001 ZOOM GRAFIX 39 95 29.95 17·0001 STARBLAZER 3195 23.95 05-0002 SPELLSTAR 195 00 129.95 17·0002 APPLE 29.95 21.95 05·0003 DATASTAR QUALITY 295 00 219.95 20-0001 BAG-OF-TRICKS 17·0003 DAVIDS MDNGHT MAGIC 3495 25.95 05·0004 MAILMERGE 12500 89.95 3995 29.95 BUDGCO 05-0005 SUPERSORT 20000 149.95 SIRIUS SOFTWARE 08-0001 RASTER BLASTER 29.95 19.95 05-0006 CALCSTAR 19500 144.95 22-0001 GORGON 3995 29.95 22-0002 KABUL SPY CAVALIER COMPUTER MICROSOFT 34 95 25.95 23·0001 MICROWAVE 3495 25.95 24·0001 TYPING TUTOR 24.95 18.95 SIR- TECH SOFTWARE COMPUTERIZED MANAGEMENT SYSTEMS MUSE 27 -0001 WIZARDRY MAD OVRLORD 4995 37.95 27-0002 WZRDRY II KNT OF DMD 34.95 01·0001 FMS II W CW $ 5495 $ 44.95 06-0001 CASTLE WOLFENSTEIN 29 59 21.95 25.95 01·0002 FMS III $12000 $ 89.95 06·0002 SUPER TEXT 4080 175 00 134.95 SOFTWARE DIMENSIONS CONTINENTAL SOFTWARE 06·0003 FORM LETTER SUPR TXT 10000 74.95 14-0001 ACCNTNG· 2 GEN LEDGER 40000 287.59 06·0004 ADDRESS BOOK 14-0002 ACCNTNG + 2 ACCNTS PBL 40000 287.50 11·0001 HOME ACCOUNTANT 74.95 57.95 49.95 39.95 06-0005 ROBOT WAR 39 95 29.95 SOFTWARE PUBLISHING OATAMOST 06-0006 ABM 24.95 19.95 13-0001 PFS APPLE II 125 00 89.95 10·0001 THIEF 29.95 21.95 060007 U-DRAW II 39.95 29.95 13-0002 PFS REPORT 10-0002 SNACK ATTACK 95.00 69.95 29 95 21.95 06-0008 THE VOICE 39.95 29.95 13-0003 PFS GRAPH 125.00 89.95 10-0003 TAX BEATER 129.95 99.95 06-0009 BEST OF MUSE 39.95 29.95 10-0004 REAP 129 95 99.95 06-0010 DATA PLOT 5995 45.95 SOUTHEASTERN 25-0001 DATA CAPTURE 40 10-0005 SWASHBUCKLER 34.95 25.95 OMEGA 64 95 49.95 25-0002 DATA CAPTURE 40 80 8995 67.95 HAl. LABS 30-0001 THE INSPECTOR 5995 44.95 SOUTHWESTERN DATA SYSTEMS 21-0001 TAXMAN 25 00 18.75 ON-LINE SYSTEMS 28-0001 ASCII EXPRESS 79.95 54.95 HOWARD SOFTWARE 02-0001 ADV #0 MSSN ASTROID S 1995 $ 14.95 16·0001 TAX PREPARER 150.00 109.95 01-0002 ADV #1 MYSTERY HOUSE 24.95 18.95 SSR CORP. 16-0002 CREATIVE FINANCE 195 00 144.95 01-0003 ADV #2 WIZRD PRINCESS 32.95 24.95 12-0001 INFOTORY 39500 299.95 16-0003 REAL ESTATE ANALYZER 195.00 144.95 01-0004 ADV #3 CRANSTON MANOR 34.95 25.95 STONEWARE PRODUCTS KRElL 01-0005 ADV #4 ULYSSES 3495 25.95 15-0001 DB II 22900 169.95 04-0001 SAT 229 95 174.95 010006 LAFPAK 3495 25.95 15-0002 UTILITY I DB II 100.00 74.95 04-0002 TIME TRAVELER 24.95 18.95 01-0007 CROSSFIRE 29.95 21.95 15-0003 UTILITY II DB II 95.00 75.95 04-0003 SWORD OF ZEDEK 24 95 18.95 01-0008 TIME ZONE 9995 74.95 SUBLOGIC 04-0004 MICRO· DEUTSCH 179.95 134.95 01-0009 GENERAL MANAGER 14995 109.95 31-0001 PINBALLA2-PBl NT MSN 01-0010 SCREENWRITER II 12995 29.95 21.95 LIGHTENING 95.95 31-0002 GRPH PKG A2-3Dl SATN 11985 99.95 01-0011 DICTIONARY 99.95 74.95 190001 MASTER TYPE 39 95 29.95 01·0012 CANNONBALL BLITZ 3495 25.95 SYNERGISTIC SOFTWARE 01-0013 MOUSATTACK 34.95 25.95 03-0001 MAIL LIST DATA BASE 50.00 39.95 01-0014 JAWBREAKER 29.95 21.95 03-0002 THE DATA REPORTER 22000 169.95 01-0015 ULTIMA II 5495 41.95 03-0003 PLE 65.00 49.95 01-0016 SABATOGE 2495 18.95 01-0017 FROGGER 3495 25.95 010018 LISA 25 79.95 59.95

USE TOLL FREE NUMBERS TO ORDER In California: CALL 800-722-7702 800-982-1311 Remember to call between 9:00AM-5:00PM Pacific Time. California residents add 6% to order price. BORDER SOFTWARE 330 Oxford Street Suite 112 Chula Vista, CA 92011

PRICES SUBJECT TO CHANGE WITHOUT NOTICE

Apple Pugetsound Program Library Exchange Page 0053 of 0090 Call-A.P.P.L.E. Magazine • August 1982

DISCOUNT DATA PRODUCTS FOR THE BEST SERVICE AND PRICE YOUR $ CAN BUY 30% DISCOUNT * MONTHLY SPECIALS GAMES * UTILITIES * BUSINESS LIST OUR LIST OUR LIST OUR APPLE PRICE PRICE PRICE PRICE PRICE PRICE * ADVENTURE INTERNATIONAL * INNOVATIVE DESIGN SOFTWARE * SIERRA SOFTWARE * APPLIED SOFTWARE INFOCOM SIRIUS SOFTWARE ASTAR INTERNATIONAL COMPANY Zork I ...... • • ...... 0 39.95 31.95 Audex ...... 0 29.95 23.95 * Zork II ...... 0 39.95 33.95 Sneakers ...... 0 29.95 23.95 * ASHTON TATE Deadline ...... 0 49.95 39.95 Borg ...... •...... 0 29.95 23.95 Joyport ...... A 74.95 59.95 ARTSCI I.S.M. Gorgon ...... 0 39.95 Magic Window ...... 0 99.95 79.95 Mathemagic ...... • ...... 0 89.95 71.95 27.15* Magic Mailer ...... •• • ...... 0 69.95 SIR-TECH SOFTWARE INSOFT ARTICI Wizardy ...... 0 49.95 39.95 Graforth II ...... 0 79.95 55.95 Magic Window ...... • • .... 0 99.95 79.95 Knight of Diamonds ...... 0 34.95 27.95 Magic Mailer ...... 0 69.95 55.95 ISA IUS LIS * LINK Magic Words ...... 0 69.95 4... 5* * * * * SOFTAPE * SOFTWARE EMPORIUM * LJK ENTERPRISES AUTOMATED SIMULATIONS SOFTWARE PUBLISHING CORP. * MICRO LAB PFS ...... 0 125.00 99.95 * AVALON HILL GAME COMPANY Peeping Tom ...... 0 34.95 27.95 PFS Report ...... 0 95.00 71.95 AVANT-GARDE CREATIONS Data Factory 5.0 ...... 0 300.00 239.95 PFS: Graph ...... 0 125.00 99.95 Hi-Res Secrets ...... 0 125.95 87.15* * MICRO PRO INTERNATIONAL SOUTHEASTERN Hi-Res Golf...... 0 29.95 23.95 MICROSOFT Data Capture...... 0 64.95 52.95 BEAGLE BROTHERS TASC Compiler ...... 0 175.00 122.50* Data Capture 80 Col...... 0 90.00 69.95 DOS Boss...... 0 24.00 19.95 A.L.O.S ...... 0 125.00 99.95 Spacify: Videx Smarterm Superterm Utility City ...... 0 29.50 23.10* Olympic Decathlon ...... 0 29.95 23.95 SOUTHWESTERN DATA SYSTEMS Apple Mechanic ....•...... 0 29.95 23.95 Typing Tutor II ...... 0 24.95 19.95 Ascii Pro...... 0 129.95 103.95 * BEZ MUSE Ooubletime Printer ...... 0 149.95 119.95 Voice ...... 0 39.95 31.95 Printographer ...... 0 49.95 39.95 BRODERBUND SOFTWARE Correspondent ...... 0 59.95 47.95 Star Blazor ...... 0 31.95 Castle Wolfenstein. . . 0 29.95 23.95 22.31* Merlin ...... 0 64.95 51.95 Oavid's Midnight MagiC 0 34.95 27.95 ON-LINE SYSTEMS The Routine Machine ...... 0 64.95 51.95 Arcade Machine ..... 0 44.95 35.95 Ultima II ...... 0 59.95 47.95 Z-Term "The Pro" ...... 0 150.00 119.95 27.95 Choplifler ...... 0 34.95 Frogger ...... 0 34.95 27.95 P-Term ...... 0 129.95 103.95 BUDGECO H2 Wizard & Princess ...... 0 32.95 26.35 Norad...... 0 39.95 27.15* Raster Blaster ...... 0 29.95 23.95 H3 Cranston Manor ...... 0 34.95 27.95 Munch-A-Bug . . . 0 49.95 39.95 H4 Ulysess & Golden Fleece. 0 39.95 27.95 CALIFORNIA PACIFIC Screen Writer II ...... 0 129.95 99.95 STONEWARE PRODUCTS 3D Graphics .0 39.95 31.95 Expeditor II AppleSoft Com. 0 99.95 79.95 O.B. Master ...... 0 229.00 182.95 Ultima ..... o 39.95 31.95 Jawbreaker ...... 0 29.95 23.95 O.B. Mas. Utly. Pak I ...... 0 99.00 79.95 CAVALIER COMPUTER Marauder ...... 0 34.95 27.95 0.13. Mas. Utly. Pak 2 ...... 0 99.00 78.95 Bug Attack ...... 0 29.95 23.95 Time Zone ...... 0 99.95 79.95 O.B. Master Stat Pak ...... 0 99.00 78.95 Micro Wave ...... 0 34.95 27.95 Threshold ...... 0 39.95 31.95 * STRATEGIC SIMULATIONS * STC Cannonball Blitz ...... 0 34.95 27.95 SUBLOGIC * CONTEXT * C.P.U. Softport Adv. (X-Rated) ..... 0 29.95 23.95 CONTINENTAL SOFTWARE Mouseattack ...... 0 39.95 31.95 Pinball ...... 0 29.95 25.95 Graph. Combo Pkg. . .. 0 119.85 99.95 Home Accountant ...... 0 74.95 59.95 PENGUIN SOFTWARE 1st Class Mail ...... 0 74.95 59.95 Complete Graphics System II * SOFTECH * SORCIM * COMPUTER STATION (Joystick-paddles) ...... 0 69.95 55.95 * SYNERGISTIC SOFTWARE Special Effects DANKIN 5/LEVEL 10 TG PRODUCTS (Joystick-paddles) ...... 0 39.95 31.95 Programming Aids...... 0 90.00 71.95 Graphics Magician ...... 0 59.95 47.95 Game Paddles ...... A 39.95 27.15* DATAMOST Joystick ...... A 59.95 47.95 PERSONAL BUSINESS SYSTEM County Fair ...... 0 29.95 20.15* Select A Port...... A 59.95 47.95 Exec. Secretary ...... 0 250.00 199.95 Thief ...... 0 29.95 23.95 TURNKEY SOFTWARE Casino ...... 0 39.95 31.95 PICCADILLY * Swashbuckler ...... 0 34.95 27.95 Falcons ...... 0 29.95 23.95 VISICORP Snack Attack ...... 0 29.95 23.95 Visit rend/Plot ...... 0 300.00 229.95 * PROFESSIONAL SOFTWARE Visicalc ...... 0 250.00 187.50 * DATASOFT * DELTA SOFTWARE * PROGRAM DESIGN Visifile ...... 0 250.00 199.95 DENVER SOFTWARE Vi.iterm ...... 0 100.00 79.95 PHOENIX SOFTWARE Pascal Tutor ...... 0 125.00 99.95 * Visiplot ...... 0 200.00 159.95 Pascal Programmer ...... 0 125.00 99.95 QUALITY SOFTWARE * * VERSA COMPUTING RIVERBANK SOFTWARE * EDU-WARE * * UNITED SOFTWARE OF AMERICA GEBELLI SOFTWARE SENSIBLE SOFTWARE VIDEX INC. VOYAGER SOFTWARE Horizon V ...... 0 34.95 27.95 Multi Disk c~ta III ...... 0 25.00 19.95 * * Russki Duck ...... 0 34.95 27.95 Disk Recovery ...... 0 30.00 23.95 Zenith ...... 0 34.95 27.95 Applesoft-Plus ...... • .... 0 25.00 19.95 Applesofl Pro. Opt ...... 0 20.00 15.95 LARGE SELECTION OF HAYDEN SOFTWARE Disk Org. II ...... 0 30.00 Sargon II ...... 0 34.95 27.95 20.10* Quickloader ...... 0 25.00 19.95 ATARIAND * HIGHLANDS COMPUTER SERVICES Sensible spaller (NEW) ..... 0 125.95 99.95 Image Printer (specify) . 40.00 31.95 TRS 80 SOFTWARE * HOWARD SOFTWARE CALL TOLL FREE 1·800·854-2914 (~OURT~~~~~A

Mastercharge - Visa add 3~. and include expir.tlon dale on card California ReSidents Add 6-" Sales Tax Prices Sublect to Change Without Notice Plelle Add $250 lor ShiPPing Price. Valid Through ThIS Month's Issue DIICOUII"J' DATA PRODUCTS. P.O. BOX 19674-AH • SAN DIEGO. CALIFORNIA 92119

Apple Pugetsound Program Library Exchange Page 0054 of 0090 Call-A.P.P.L.E. Magazine • August 1982

PRINT TO DISK

Vince Giambalvo

AVE you ever wanted to get disk, perhaps as PRINT TO DISK When ready to "print," you will be the output of your word proc­ and PRINT TO DISK (MAC). The prompted for a file name with the essor or assembler listing on­ use of each version wi 11 be descri bed prompt "WRITE." A text file will be H. to a disk file instead of your separately. created with that name. For multiple printer? If not, take a moment to con- To store an assembly listing to drive systems, the last accessed drive sider the possibilities: editing for disk, first BRUN Big Mac, then do a will be used. The D, S, and V page breaks, adding page numbers, catalog and BRUN PRINT TO DISK parameters on the filename are sup­ printing in multiple columns, and (MAC). This will set up Mac's USER ported. If no name is entered, ie., just more. entry, which is Applesoft's & vector. a carriage return, the disk file will not Many operating systems have the Then load your favorite source file. be created, but the printout will go to ability to redirect output, and the Ap­ From the editor enter USER. The the screen. ple does also - via the PR# command. disk will spin, and you will be return­ The operation of PRINT TO Unfortunately this cannot be used to ed to the editor. Then enter ASM and DISK is relatively straightforward. direct output to a disk file, since PR#: answer N to the EDIT SOURCE The code from lines 60 to 92 is ex­ "filename" doesn't work. If you are prompt. The source listing will be ecuted the first time a character is writing a BASIC program the prob­ displayed on the screen while it is be­ sent. The file name is obtained, either lem is easy to solve. But many corp­ ing written to a disk textfile with the from Mac or from the keyboard, the mercial programs, including Big Ma,c, name "fn.L," where fn is the name of file is opened, and the output vector the marvelous macro assembler from your source file. When assembly is is set to point to PSO - the real print A.P.P.L.E. and most word processors finished, the file is closed and will be routine. On subsequent CALLs to the do not have this capability. What is ready for other uses. print routine, the characters are needed is a driver routine to divert displayed on the screen and set to the output from the printer to a DOS Notes: DOS until ENDCHR is detected. textfile. 1. The P AG statement should not Then the file is closed, DOS is discon­ PRINT TO DISK is a program to be used. It will cause the disk nected, and PRINT TO DISK discon­ do this. It was originally developed to file to be closed prematurely, nects itself. If ENDCHR is received take the assembly listing from Big as PRINT TO DISK (Mac) prematurely, the disk file is closed, Mac and store it on a disk so it could uses a formfeed (CTRL L) as a and the rest of the printout goes be printed in double columns. It was terminating character. This is directly to the screen. then adapted for use with other pro­ automatically sent by Big Mac Modifications of PRINT TO grams. The requirements on the pro­ at the end of assembly. DISK are easy, because of the condi­ gram to be used with PRINT TO 2. If you have not loaded a source tional assembly flags. In addition to DISK are simple. First, it must allow file, Mac will not have a name ]Mac there are two others -]TAB a RAM print driver (usually at $300). and PRINT TO DISK will do and ]GFN. ]T AB enables tab (Poke Second, it must not access the disk nothing. 36) when set to one and ]GFN set to during the print. Third, it must be 3. The slot, drive, and volume one requests the filename from the able to send a unique character at the parameters are not supported. keyboard. If both ]GFN and ]TAB end to terminate the print and close Use the D command in Mac's are set to one, the program will not fit the file. These requirements are exec mode to switch drives. in the space at $300 and the origin satisfied by Big Mac and by Pro­ must be changed. It may be difficult gramma's Apple Pie text processor To use PRINT TO DISK with to find a suitable origin however. FORMAT. PRINT TO DISK also re­ another program, first make sure Since there is not much space quires a 48K Apple and DOS 3.3., but that the last character to be sent to available, the POKES mentioned can be used on other systems by the "printer" is a Ctrl W. Then load above could be incorporated into the changing a few equates. both your program and PRINT TO program. The source code in listing 1 is for DISK, let the program know that With minor modifications it the Big Mac assembler. The condi­ your print driver is at $300 and run. should be possible to use PRINT TO tional assembly feature of Big Mac You may change the data at $34E DISK with many programs, thereby allows two programs to be contained (846 decimal) if you· wish to use an increasing their flexibility and thus in one source file, controlled by the alternate end character. With FOR­ avoiding one of the limitations of Ap­ switch ]MAC in line 12. Changing MAT, after inserting a Ctrl Was the ple DOS. ~ line 12 to ]MAC EQU 1 will set up the last character of the file to be code to work wi th Big Mac. The "printed," the sequence of com­ switch is set to zero so that readers mands would be: who do not yet have Big Mac can just type in the machine code. Those BLOAD FORMAT with Mac will want to assemble BLOAD PRINT TO DISK POKE 2052,3 both versions, and save them to CALL 2048

Call-A.P.P.LE August 1982 51 Apple Pugetsound Program Library Exchange I Page 0055 of 0090 Call-A.P.P.L.E. Magazine • August 1982

PRINT TO DISK *************"*********"******,,* 2 Po J " Print to Disk "1< " 4 " 5 " by Vince Giambalvo " 6 " " 7 Ca II -A P.P.L.E. : Aug. 1982 " 8 " **~"*~k"~*****,,****"*******,,"***" 1 0 11 " 1 2 "JMAC Eau 0 13 00 ]MAC 14 lGFN Eau 0 15 nAB EClU 1 16 ENDCHR EOU S8C ;rormfeed 17 ELSE 18 JGFN EOU 1 19 JTAB EaU 0 20 ENDCHR EaU 597 iCtrl-1J 21 FIN 22 * 23 FNBUF EaU s tAO ;Space for filename 24 25 " Monitor equates 26 27 CH* EaU $24 ;For tabs 28 COUT EQU HDED iNormal outout 29 COUTI EQU HOrO ;Screen output 30 CROUT EaU HD8E ;Output C/R 31 SETVID EaU HE93 ;PRli 0 3Z SETKEY EaU HE89 ; lNI 0 33 NXTCHR EaU H075 ;Keyboard input 34 * 35 DOS 3.3 48K Equates 36 " 37 CONNECT* EGU $lEA ;Reconnect DOS 38 IJRTCODE Eau $A91 F ;lJrite parameters 39 YSAVE EaU SAA5B ;Save area 40 OOSBUF EaU HA5C 41 OOSIJRT EaU $A613 ;005 IJrite byte 42 43 * ORG S300 44 45 * 46 * Set ampersand (&) vector i f MAC 47 " 48 * DO JMAC 49 LOA II(TOoISK ;Set up Mac's 50 STA 53F6 USER vector 51 LOA I)TODlSK 52 STA S3F7 53 RTS 54 TODISK LOA FNBUF Check for filename 55 CMP 1$8D ;Carriage return 56 BNE SETUP ; I f none, quit 57 RTS 58 r IN 59 0300: 8E 78 03 60 SETUP* STX XSAVE 61 DO JGFN 0303: 20 89 FE 62 GETF ILE JSR SETKEY ;Disconnect DOS 0306: 20 93 FE 63 JSR SETVID 0309: A2 02 64 LDX lI2 030B: 20 79 03 65 JSR DOSCALL :Get filename 030E: A2 00 66 LOX !to 0310: 20 75 FO 67 JSR NXTCHR : I f no name, do nothing 0313: EO 00 68 CPX to 0315: FO 2F 69 BEG OUTH 0317: BD 00 02 70 MVFN LOA $ZOO.X 031A: 90 AO 01 7 I STA FNBUF,X 0310 : CA 7Z oEX 031E: 10 F7 73 BPL MVFN 74 FIN 75 0320 : 20 EA 03 76 * JSR CONNECT ;Reconnect DOS

S2 Calf -A.P.P.l.E. August 1982 • Apple Pugetsound Program Library Exchange I Page 0056 of 0090 Call-A.P.P.L.E. Magazine • August 1982

0323 CE 1 F A9 77 DEC IJRTCODE ;Al10'

Call -A.P.P.L.E. August 1982 53 • Apple Pugetsound Program Library Exchange I Page 0057 of 0090 Call-A.P.P.L.E. Magazine • August 1982

·UPTOOO'f • ~-IIJRE 11WI74.000 BmIES MIl 1.1110 PUS • AIITlIOIlIWM lHEtB ~ ~- Il rN CONCISE ~I EDITION

• NUMEIlOUS USAGE LABELS ANO NOTES • A BASIC __ Of STYLE • EFFECTM CO\IEIIAGf Of 5T_ YOCA8UlARY IHCtlOlCl CUlllENT BUSINESS. SClENTFIC ANO TECItNICAl. TERMS

You get 85,000 • The Super Tezt 1M version works THE SENSIBLE SPELLER package words on disk with with Super Text, Super Text II, and includes: the new 80-column version of Super • an easy to read instruction manual THE SENSIBLE SPELLER Text. • two copies of THE SENSIBLE SPELLER program and a Random House • The CP/M 1M version works with dictionary to boot! WordStar, ED, Magic Wand, Type • a main dictionary diskette, containing Master, and any other word processor 45,000 of the most commonly used that does not compact text. English language words (there is room THE SENSIBLE SPELLER 1M is the first to add approximately 10,000 of your COMPLETE spelling verification pro­ • The Pascal 1M version works with the own words) gram for the Apple Computer. NO other Pascal Editor, and Prose. • a supplementary dictionary diskette, spelling program includes as many op­ containing the remaining 40,000 tions, or has a dictionary (on diskette) as Numerous options are provided throughout the program to enable you words in the CONCISE EDITION of the large as ours, and includes a well known RANDOM HOUSE DICTIONARY dictionary, too. THE SENSIBLE to completely control all activities of THE SENSIBLE SPELLER. These in­ • the hard cover RANDOM HOUSE SPELLER now features the complete DICTIONARY, CONCISE EDITION CONCISE EDITION of the RANDOM clude the ability to ignore both format­ HOUSE'" DICTIONARY. If you question ting commands and control codes, THE SENSIBLE SPELLER requires an the definition, pronunciation, or spelling multiple options for the action taken Apple 1M III Apple 1M II + equipped with of any word, you can simply look it up with each misspelled word, and the use 48K, DOS 3.3, and 1 or 2 disk drives. in the supplied hardcover dictionary. of multiple dictionaries. An alphabetical Two disk drives are required to delete or listing of misspelled, unknown, and/or Four versions of THE SENSIBLE add words to the dictionary. The price is all words in your document along with only $125.00. SPELLER are available. There is no need usage frequencies may be listed. A to MUFFIN or transfer your files from verification mode is provided to allow one operating system to another. you to examine and dispense with • The DOS 3.3 version works with misspelled words while viewing them in Applewriter (I or II), Apple Pie, The the actual context in which they ap­ 4[9]. ~nsible Software Correspondent, Executive Secretary, peared in your file. When you encounter ,Letter Perfect. Magic Window, Screen­ an unknown word, you can even search 6619 Perham Drive. Dept. C writer (formerly Superscribe), Text the dictionary for the correct spelling West Bloomfield. Michigan 48033 (313) 399-8877 Editor, TXT/ED, Write-On, Word (using wildcards). In the near future, Visa and Mastercard Welcome. Power, or any other word processor, Sensible Software will be releasing well Add $1.25 postage and handling per program. editor, or program that generates stan­ known legal and medical dictionaries to For a complete catalog. send dard DOS 3.3 TEXT or BINARY files. complete this professional package. $1.00, refundable with your first purchase. -APPLE is a registered trademark of APPLE Computer Company-CP/M is a registered trademark of Digital Research Corp.- -SUPER TEXT is a registered trademark of Muse Software-APPLE PASCAL is a registered trademark of U.C.S.D.- RANDOM HOUSE and the House design are registered trademarks of Random House, Inc. Copyright 1982 Random House, Inc.

Apple Pugetsound Program Library Exchange Page 0058 of 0090 Call-A.P.P.L.E. Magazine • August 1982

1 Mhz - 1 2 Bit AID PRINT TO DISK for your Apple II Computer The APPLESCOPE-H R12 analog to digital converter uses 0381 . £8 157 INX a high stability buried zener voltage reference and a flash 0382 DO f5 158 BNE DOSCH L A/D to give 12 bit accuracy With a 14 bit dynamic range. 0384 60 159 MSGEND HTS • DC to 1 Mhz Programmable Sample Rate 160 • 2048 Sample Buffer Memory 16 1 • Send f i 1 en·ame to DOS • Pretrigger Viewing 162 • Continuous or Smgle Sweep • 4 Channel Software Support 0385 . A2 00 163 PFN LDX liD Irequires additional power supply) 0387 BD AO 01 1 cO 4 PFNl tDll. FNBUE .X • External Trigger Input 03 SA . C9 80 165 #:i8D CMP The standard software provided With each APPLESCOPE­ o HC' FO 06 166 BEG GOTeR HR 12 includes all of the lunctions necessary to turn your 03H. 20 ED FD 167 JSR (OUT Apple II computer into a high quality digital storage 0391 E8 168 INX oscilloscope. In addition all of the SCOPE DRIVER options 0392 . DO f3 169 nNE PFNl : Allt/ays t"ken are being up-graded to handle the higher resolution data 1 ? 0 COTCR ECtU Price per cnannei $695 171 DO JMAC 172 The anginal APPLESCOPE still provides the optimum 173 price/performance trade 011 for those users requiring 8 bit Append a " L" to filename for Ma c converter resolution 174 175 LDA #" APPLESCOPEINTERFACE 1 7 6 J3R COUT 177 LDA #"L" 178 JSR COUT 179 FIN 180 0394' Z 0 8E FD 1 81 JSR CROUT 0397 : 60 182 RTS 183 0398 SD 84 184 MSG HEX 808~ :C/R and C t r 1 - D 039A O? D2 C'i 0390 D4 C5 185 Ase "'"'RITE" 039F 00 SO 94 186 HEX 008D84 03 A2 . C3 CC CF • DC to 3.5 Mhz sample rate 03AS: 03 C5 187 ASe "C LOSE" • 1024 byte buffer memory 03A7' 00 1 a 8 HEX 00 • Pretrigger VieWing • Programmable Scale Select --End assembly-- 168 bytes Errors' • Continuous and Single Sweep Modes • Smgle or Dual Channel Trace Price for the two board Applescope system IS $595 EXTERNAL TRIGGER ADAPTER $29

TAKE CONTROL SCOPE DRIVER Advanced software forthe APPLESCOPE OF YOUR APPLE® DISKS analog to digital converters makes full use 01 the computing YOU CAN NOW HAVE UNEQUALLED power of the Apple II to create a total data acqUisition ACCESS AND CONTROL OF YOUR system. Available options include DISKS WITH THE ULTIMATE • Signal Averaging-Acquires 1 to 999 Signal sweeps and DISK UTILITY PACKAGE displays the averaged result • Digital Volt Meter- Allows use as real time DVM or use to measure points on an acquired sweep • Disk Storage - Allows automatic storage and recover of DISKOVERYTM acquired data on floppy disks. n n • Spectrum Analyzer-Calculates and displays frequency UTILITIES INCLUDED: spectrum of acqUired data TRACKISECTOR EDITOR DRIVE SPEED TEST The mOlt VERSATILE and USEFUL sector editor available' High accuracy disk drive speed testing program. Displays Among the more than 70 commands (with mOre on the way!) are: drive rotation speed with an accuracy of + /- 20 microseconds. o Simultaneous operation in both 13 and 16 sector formats. CATALOG MANAGEMENT TOOLS o Compatible with 35.40.70. and 80 track drives. Alphabetize the catalog by file names or by file names within o Compatible with CP / M~ and PASCAlTM file types. o 128 sector holding area with fully automatic index. Purge all deleted files from catalog. o Automatic index keeps track of all 128 holding blocks' origin Patch DOS to show deleted files during a catalog command. Information Including slot. drive. track, and sector. Undelete a liIe in the catalog - checks for file integrity. .n "'l_ ,,,. vcn I/UIV o Search for a string of up to 255 characters within a file or rRA(~f _, B 1'~lt~I~~k A MISCELLANEOUS UTILITIES T I MF , ...... _ ._.~,,,, • >< ><) I.' I "';f-"l ''>Y sequentially by selected tracks. Initialize disk without DOS. Increases usable disk space. l:e'MI"1'''NI) ~ o Reconstruct a VTOC (Volume Table Of Contents). Erase disks to a totally unformatted state. o Reconstruct catalog sectors. BUS RIDER DOS patches to allow BRUN or EXEC execution of boot liIe. o Verify all used sectors on a disk. Setup program to allow use of lowercase adapters and disk LOGIC ANALYZER for the APPLE" o Initialize anyone track or range of tracks. drives other than APPLE DISK II. The BUS RIDER circuit card Silently rides the Apple II o load or Save up to 8 tracks at one time. peripheral bus and allows real time tracking 01 program o load or Save flies of up to 128 sectors long at one time. ExtenSive manual packed with lots of valuable information. o Compare any held sector or range of sectors to any other Oisk supplied comes unprotected to allow easy customizing flow. Soltware provided allows set up of trace parameters sector or range of sectors. for special user applications and user patches. from the keyboard and read back of disassembled code o Edit sectors in Hex or ASCII. When in ASCII. characters may Program updates GUARANTEED FOR 5 YEARS. Planned alter a program has been tracked be entered as inverse. flashing. control, or normal. updates include macros for the editor. rename DOS commands. • 32 bit by 512 sample memory bulfer text liIe editor for sequential and random liIes. and many more. o 3 Hardcopy formats with 3 selectable line lengths. Any printer • Monitors Data and Address bus plus 8 external inputs initialization string can be sent to output slot. • Trigger on any 32 bit word or external trigger o locate all track / sector lists on a disk. INTRODUCTORY OFFER o Ability to override checksum check to read bad sectors. • Pretrigger viewing o Ability to mask display to show inverse and flashing as normal $59.95 The BUS RIDER IS an Invaluable development tool for mode characters. Micro Mantic Computer anyone working With Apple II or Apple 11+ computers. Constant on screen Indication of active slot and drive. tracks coo. Check, or Money Order Price $395 on the disk, disk volume II. present track and sector, mask z. 541 NE McWilliams Rd Requires Apple II/II + with condition. DOS type in use. last hold block used. and number 48K and disk drive. Bremerton, WA 98310 RC ELECTRONICS INC_ of hold blocks currently not being used for storage. Call now (206) 373-9231 7265 Tuolumne Dr., Goleta, CA 93117 APPLE is a registered trademark of Apple Computer, Inc CP/M is a registered trademark of Digital Research. Inc PASCAL is a trademark of U.C,S,D. Regents Z (805)968-6614 •

Call -AP.P.L.E. August 1982 55

Apple Pugetsound Program Library Exchange Page 0059 of 0090 Call-A.P.P.L.E. Magazine • August 1982

Power input through SYSTEM SAVER. Line surge SYSTEM SAVER provides suppression protects programs SYSTEM SAVER contains two correct cooling. Fresh air is Convenient front mounted heavy­ and data by smoothing out switched power outlets. You can drawn across the mother board, duty power switch with pilot light. dangerous power surges control your printer and monitor over the power supply and out Switch controls SYSTEM SAVER, and spikes. from the front mounted switch. the ventilation slots. Apple II, and both rear outlets.

$8995 at your local dealer Kensington Microware Ltd. When ordering by mail include payment of or order direct by 300 East 54 Street $89.95 plus $2.50 for handling. New York phone or mail from: Suite 3L State residents add 5%% sales tax. New York, NY 10022 By phone payment can be charged to (212) 486-2802 VISA or MASTERCARD. Dealer inquiries invited.

3 PRODUCTS TO ADD A 4TH DIMENSION OF POWER TO YOUR APPLE.

~16''' The one 16-K memory 45-sector disk-drive emulator. At your local (Look Ma, no straps') expansion card for dealer or direct for just $34.95. your Apple that requires no unnecessary surgery. THE

This board just plugs in with no strap or additional 1M connections. In spite ofits quality, the Ramex-16™ - FOR ~LC If you use VisiCalc TM, costs just $139.95, complete with a one year then you must have limited warranty. THE CONSOUDATOR. It will save you hours of keyboard time, by allowing Acomplete turnkey you to manipulate totals of separate files without memory management reentering them. Easy to use, invaluable to system on a disk - own. Just $49.95 at your dealer or direct. using either one or two .tIl three of these together help make your Apple 16K cards. HIDOS™ loads DOS onto one RAM 1'1: a more complete business system - giving card and with the second card loads an you expanded memory, extra convenience, alternate language onto another. sure control. MasterCard SOUDOS™ turns a 16K and Visa holders order card into a fast, toll-free, 1-800-835-2246.

OMEGA MlCROWARE, INC. T.M. 222 SO, RIVERSIDE PLAZA CHICAGO,IL 60606 312-648-4844

56 Call -A.PP.L.E. August 1982

Apple Pugetsound Program Library Exchange Page 0060 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A Call -A.P.P.L.E. TECH NOTE: SQUASHING A NASTY DOS BUG

Art Schumer

ERE'S another bug in DOS up so that the next Write command size of the file should have increased. that has been around since will place data over the original End Instead it remained the same, signify­ its conception back in 1978 Of Data mark, and will add a new ing to us that something happened H with DOS 3.0 and has been EOD mark to indicate the end of this with our last group of lines. Our bug carried through to the present version, longer file. came out of hiding! DOS 3.3. It rarely surfaces due, in This bug is in the Calculate Posi­ LISTING 1 part, to mostly recent use of extremely tion routine, and on record numbers lOREN large text files in data base programs. greater than 32767, it will not posi­ Program to create APPEND err The bug arises when a program tion on the EOD mark, but one byte 60 DS = CHR$ (4) uses the APPEND command on a se­ past. In effect, whatever new data is 70 Ii = 999 quential file, where the relative appended to that file will never be 80 TEXT HOME record number is larger than 32767 able to be accessed, as it is actually 90 PRiNT DS"OPEN ATEST;> ($7FFF in hex). This is distinct from written after, not over the EOD mark! 100 FOR J = 1 TO 5 11 0 PR I NT "P ASS "; ,j the term record, defined as a group of The program in listing 1 - using 1 2 0 P R I NT D$ "AP FE NDATE 5 T " characters terminated by a carriage the APPEND command to create a 130 PRINT DS ; "\JRITE ATEST" return. With the sequential file, the large sequential file - will cause this 140 FOR I = 1 TO loDe user most of the time is not concerned problem. It first Opens the file and 150 N = N + 1 with the particular record number, 160 PRINT "NEW LINE - ";N then performs five APPENDs to 170 NEXT I but DOS keeps track of it internally. write out 5000 lines of text in 1000 ! 8 0 P R I NT D$ ; " C L(I 5 EAT EST" When this number becomes greater line groups. Since each line (or 190 PRINT DS;"CATALOG"· PRI than 32767, and DOS is required to record, if you prefer) is 16 bytes long, 200 NEXT ,J END do an automatic POSITION, it per­ the program creates a text file with After its creation, a scan of the file forms the calculation incorrectly. 80,000 characters in it (approximately with a disk access utility program will During the execution of the AP­ 316 sectors in length). After each of yield the 189th ($BD hex) sector of PEND function, DOS will open the the five APPENDs, you will be the file showing the problem (see the file for access and read each consecu­ presented with a Catalog of the disk sector dump in listing 2). Note that tive byte of the file (an extremely to see the progression in the size of byte 128 ($80 hex) is an EOD mark (a slow and inefficient method!) until it the text file. You may observe that "0") and that our data follows this encounters an End of Data (EOD) the size of the file increases from 64 mark. Any program trying to read null, a hex "0." It will then jump to to 127, to 190, to 254 and then to data past that EOD mark will give an the POSITION routine to set things 254?? During the fifth APPEND, the "END OF DATA" error. LISTING 2 ------DISKFIXER ------DISKFlXER ------­ TRACK $lF/SECTOR $01/VOLUME $00/BYTE $00 TRACK $lF/SECTOR $01/VOLUME $00/BYTE $00 ------$00 CEC5D7A0CCC9CEC5A0ADA0B3B9B9B28D $00 )N(E W LIN E - 399 2 - $10 CEC5D7A0CCC9CEC5A0A~0B3B9B9B38D $10 NEW LIN E - 3 9 9 3 - $20 CEC5D7A0CCC9CEC5A0ADA0B3B9B9B48D $20 NEW LIN E - 3 9 9 4 - $30 CEC5D7A0CCC9CEC5A0ADA0B3B9B9B58D $30 NEW LIN E - 3 995 - $40 CEC5D7A0CCC9CEC5A0ADA0B3B9B9B~8D $40 NEW LIN E - 3 996 $50 CEC5D7A0CCC9CEC5A0ADA0B3B989B78D $50 NEW LIN E - 3 9 9 7 - $60 CEC5D7A0CCC9CEC5A0ADA0B3B9B9B88D $60 NEW LIN E - 3 9 9 8 - $70 CEC5D7A0CCC9CEC5A0ADA0B3B9B9B98D $70 NEW LIN E - 3 9 9 9 - $80 ~EC5D7A0CCC9CEC5A0ADA0B4B0B0B0 $80 - NEW LIN E - 4 0 " '0 $90 8DCEC5D7A0CCC9CEC5A0A~0B4B0B0B1 $90 - N EW LIN E - 4 001 $A0 8DCEC5D7A0CCC9CEC5A0ADA0B480B0B2 $A0 - NEW LIN E - 4 002 $B0 8DCEC5D7A0CCC9CEC5A0ADA0B4B0B0B3 $B0 - NEW LIN E - 4 003 $C0 8DCEC5D7A0CCC9CEC5A0ADA084B0B0B4 $C0 - N EW LIN E - 4 0 0 4 $D0 8DCEC5D7A0CCC9CEC5A0A~0B4B0B0B5 $D0 - NEW LIN E - 400 5 $E0 8DCEC5D7A0CCC9CEC5A0ADA0B4B0B0B6 $E0 - NEW LIN E - 4 0 0 6 $F0 8DCEC5D7A0CCC9CEC5A0ADA0B4B0B0B7 $F0 NEW LIN E - 4 007 ------B0/ATEST AT $42 B0/ATEST AT $42 ( 16-SECTOR/L) FILTER ON ( 16-SECTOR/L) FILTER ON -)P # -)P #

Call -A.P.P.LEAugust 1982 57 • Apple Pugetsound Program Library Exchange I Page 0061 of 0090 Call-A.P.P.L.E. Magazine • August 1982

SQUASHING A NASTY DOS BUG Now that we've seen the problem, carry flag clear after a multiplication Position routine. Erv takes the 33 let's analyze the POSITION routine of a record number less than 32767 bytes of codes which start at $B33E, to see why it won't calculate correctly and the carry flag set after a record inserts a CLC to correct the problem, on large files with record numbers number greater than 32767. This ex­ then re-arranges the remaining code. greater than 32767. plains the incorrect calculation on Listing 6A shows that portion of the The Calculate Position routine larger files and not on smaller ones. original code starting at $B33E, while resides in the DOS File Manager The addition code following the three listing 6B shows the complete Calcu­ from location $B300 through $B35E. byte multiply code will use the carry late Position Routine from $B300 Its job is to calculate the offset into flag in its calculation - and on large through B35E. the current data sector and for the records, will add one to the final By again running the same pro­ next data Read or Write. It accom­ resultant file offset. gram used earlier to create an plishes this by doing a three byte To illustrate why one needs to APPEND error and dumping out the multiply of the record number clear the carry flag before any addi­ same sector, we can verify that we (located at $B5EA-$B5EB) with the tion is performed, look at the follow­ are now writing over the EOD mark record length (located at $B5E8- ing simple example. correctly and that the sector count is $B5E9), and storing the result in the 23' -- a carry before the addition increasing correctly from 64 to 127, three byte file position offset (located ~. begins to 190, to 253, and finally to 60?? It at $B5E4-$B5E6). The value left at 42 __ instead of 41 now seems that the sector count has $B5E6 is picked up by the next Read We can see that if we have a carry dropped during the last APPEND. or Write command and used to index before we even start the addition, the Another possible error? Not really. that information in the data sector for result will be one too many. It is By examination of the sector count of storage or retrieval. therefore imperative that we start all our file in the directory with a disk I disassembled the Calculate Posi­ additions with the carry cleared. access utility program, one can see tion routine in the Apple DOS File By inserting a CLC instruction that the value stored there is $13C Manager and used it in a test pro­ into my sample program, and running (316 decimal). Why, then, doesn't a gram to help me find the error. By the test over again, I got the results Catalog show this correctly? supplying sample record numbers, shown in listing 4. A correct calcula­ Apparently the original designers subsequently calling the Calculate tion finally! of DOS never expected to have files Position routine, and printing out the LISTING 4 larger than 255 sectors, and the record number and offset into the :MGO START Decimal Convert routine in DOS sector, I was able to verify that the OFFSET - RECORD NUMBER (located at $A1D6) will only work up error occurred when the record to that limit. It drops the high byte of number changed from $7FFF to $FD $7FFD the sector count and just uses the low $8000. In listing 3, the results are $FE $7FFE byte in its conversion. The low byte printed out. You can see that the $FF $7FFF hex value $3C translates into 60 position offset next to record $8000 is $00 $8000 decimal and there's our answer! This $01 $8001 $01 and it should be $00. $02 $8002 is another problem to fix, but not as $03 $8003 easy as the one just made. The entire LISTING 3 Decimal Convert routine would have :MGO START OFFSET - RECORD NUMBER to be re-written. Perhaps this could The fix, therefore, is to add a CLC be the basis for a future article. $FD $7FFD instruction prior to the addition code. A copy of this article has been $FE $7FFE I had originally written a patch that sent to Apple Computer Inc. so that $FF $7FFF would go in the $B600 area where hopefully future issues of DOS will $01 $8000 there already exists three APPEND incorporate this patch. $02 $8001 routine and a Verify routine patch. With the length of time taken for $03 $8002 However, in the interim, Val Golding this bug to show up, one has to $04 $8003 forwarded to mea patch by Erv wonder how many more are out there Edge, to whom I am grateful, and it just waiting to be discovered! ~ After a brief examination of the fit nicely in the original Calculate code, I was able to spot the error. One of the Golden Rules in assembly LISTING SA BEFORE 833£ AD BF B5 29 LOA $BSBF language programming is to always B341 80 EC 85 30 STA $BSEC clear the carry flag before addition is 8344 6D E6 B5 3 I ADC saSE6 performed. In my test program (not 8347 80 £6 B5 3Z STA $BSE6 listed), a series of additions are to be B34A AD CO BS 33 LDA $B5CO performed and no CLC instruction B34D 80 ED as 34 STA $B5ED 8350 6D E4 as 35 AOC $85E4 executed prior! Before this addition 8353 80 E4 B5 36 STA $8SE4 code is the three byte multiply code, 8356 A9 00 37 LDA lI$ 00 and simply stated - without getting 8358 6D E5 B5 38 ADC $B5£5 into how a three byte multiply works 8358 80 E5 85 39 STA $85E5 B35E 60 40 RTS - this routine in DOS will leave the 41

58 Call -APP.L.E. August 1982 Apple Pugetsound Program Library Exchange I Page 0062 of 0090 Call-A.P.P.L.E. Magazine • August 1982

LISTING 58 AFTER 1 ORG >B 3 0 0 SUPERRAMII Inc. 8300 AD BD B5 tDA HSBD 16K Language Card R. H. Electronics 8303 8D £6 85 3 5TA $85E6 $ With ROM SOCKET COPYRIGHT © 1981 - PATENTS PENDING 8306· 8D EA B5 4 STA H5EP. 125 2Yr.Warranty 566 Irelan, Bin CA B3 09. AD BE B5 LOA SBSSE o Buellton, CA 93427 830C 8D rq B5 5TA $ B5E4 COMPUTER PRODUCTS (805) 688- 204 7 . B30r· 8D EB 85 5TA $B5EB DESIGNING #$00 MANUFACTURING SUPER FAN II 831/:· A9 00 LDA ELECTRONIC ENGINEERING B314. 8D £5 85 9 STA SBS E5 FOR YOUR APPLE II COMPUTER' 8317. AO 10 10 LDY ,*HO B3 19 . AA 11 LB31 q TAX $74.95 831A. AD £6 BS 1 Z LDA $BS £6 B31D. 4A 13 LSR 831£. 80 03 14 Bes LB323 8320· 8A 15 TXA Bn! 90 DE 16 Bee LB331 B3 23 . 18 17 LB323 C'r'... ~ 832 4. AD £5 85 1 8 LOA $B~·E5 8327 6D £3 85 19 ADC $B5 E 8 B32A 80 E5 85 20 sn, ~85E5 832D 8A 2 ! TXA B3 ZE. 6D Elf 85 22 ADC ~'B5E9 B3 31 • bA 23 LB331 ROR 24 $ 8SE 5 • CLIPS ON-NO HOLES OR SCREWS. REPLACEABLE SWITCH 8332. 6E ES 85 ROR • AVAILABLE IN 120V OR 240V AND 50/60HZ • DURABLE MOTOR 8335 . bE E4 85 2S nOR $85E4 • REDUCES HEAT CAUSED BY EXTRA PLUG·IN CARDS 8338. 6E E6 85 26 ROR $ 85E6 • INCREASED RELIABILITY-SAVES DOWN TIME AND REPAIR CHARGES 833 B . 88 Z7 DEY • TAN OR BLACK COLOR • LOW NOISE DUE TO DRAWING EFFECT OF AIR THROUGH YOUR 833C. DO D8 28 BNE LE319 COMPUTER AND SPECIAL FAN AND MOTOR DESIGN B3 3£ • 18 29 eLC • "QUIETEST FAN ON THE MARKEr 833F AD 8F 85 30 LDA ~ 85 BF • EXTRA 120V OUTLET FOR MONITOR OR ACCESSORIES TURNS ON WHEN YOU TURN ON YOUR FAN (NOT AVAILABLE ON 240V MODELl B3 II Z . 8D EC 85 3 1 STA $B5fC • SOLD WORLD WIDE. UNIQUE 1 YEAR WARRANTY B34S 6D E6 85 32 ADC $BSE6 COPYRIGHT © 1981 - PATENTS PENDING 83 II 8 • 80 E6 B5 33 STA HIS E6 HOW TO HOOK IT UP: II Clip it on you< APPLE 21 Unplug your 120V cable (you won't need it). 3) Plug short 120V cable from Super Fan II to the back of your computer. 4) Plug the 8H8. AD CO 85 34 LDA $85CO supply cable from Super Fan II to your 120V power source. 5) Turn on the rocker switch anc1 834E • 8D ED 85 35 STA $BSED a built-in. red, ready light comes on. 6) You are all set to "COOL IT.' This switch also turns 8351. 6D E4 85 36 ADC $85 E4 your computer ··oW and '·on .. 0 eo Ie r In qui re 5 I nv i ted :;TA $B5E4 8354. 8D E4 85 37 • Plus 6% California Sales Tax and $2.50 shipping charge per item 8357. 90 03 38 8ce LB35C B3 59 • EE E5 85 39 INC $B5E5 835C. 60 40 LB35C RTS 41 Supercharge Your APPLE 11*

• Plug-in compatibility

• 320K bytes of RAM (200NS) memory designed to function like two 35 track floppy disk drives

• Compatible with Apple DOS 3.3 and Apple Pascal 1.1

• Same size as the Apple Disk 11* Drive

• Invisible memory refresh - even with the Apple turned off

• Rechargeable battery system built-in to pro­ The Axlon RAMDISK™ 320K Memory System for vide 3 hours of auxiliary power the Apple II and Apple II Plus" provides access speeds never before available. The Axlon memory • Slot independent interface board - draws no system is designed to interact with Apple DOS power from your Apple 3.3" and Apple Pascal 1.1" like two standard flop­ py disk drives while delivering the lightning fast • All firmware is in static RAM on the interface access speeds of RAM memory. This also leaves board 32K of RAM for advanced programming techni­ ques. The interface board is slot independent and • Includes software for diagnostic, fast load and draws no power from your Apple. The copy routines, and business applications rechargeable battery system built into the unit provides three hours of backup in the event of a power loss. Drop by your local Apple dealer or 170 N. Wolfe Road, contact Axlon, Inc. for more information. Sunnyvale, CA 94086 • Trademark of Apple Computer. Inc • Pascal is a Trademark of U.C.S.D. Regents N(LON (408) 730·0216

Call -AP.P.LE. August 1982 59 Apple Pugetsound Program Library Exchange Page 0063 of 0090 Call-A.P.P.L.E. Magazine • August 1982

APPLE ADD-ONS are products by BIT 3 Computer Corporation to in- ~i ct.. crease the capability of your APPLE II or APPLE II PLUS. Make it an 80-column word processor with the FULL-VIEW 80 ... or a full- I fledged terminal with the DUAL-COMM PLUS ... or increase its memory with the MEMORY PLUS. a -ons The FULL-VIEW 80 provides an 80 x 24 display yet retains the standard APPLE display too. You can switch between 80 and 40 column mode via keyboard or pro­ gram. An 8 x 10 cell size character set provides DUAL-COMM PLUS quality characters, full descenders, adds two fully independent serial I/O and line-drawing graphics. The interfaces to your APPLE II. Terminal mode firmware converts an APPLE in­ FUL~VIEW80 to a full or half duplex computer ter­ is compatible with APPLE peri­ minal. With a modem such as the pheral cards, Basic, Pascal and NOVATION CAT™ or the HAYES several word processing systems. SMART-MODEMTM connected to one All for $295.00 - no extras needed. serial port and a printer connected to the other port you can use the APPLE as a re­ All BIT 3 products feature easy plug-in mote terminal with online printer. 16 baud installation and are designed with you, the rates are available from 50 to 19200 baud. user in mind. Contact your local APPLE Price: $239.00 dealer or our offices for more information. The MEMORY PLUS adds 16K of RAM memory for your 48K APPLE II or APPLE II PLUS. The addition of the MEMORY PLUS represents a

, 33% capacity increase in RAM memory and 40% more available COMPUTER CORPORATION RAM for disk users since APPLE DOS occupies almost 11K of memory. It is compatible with Integer Basic, Applesoft Basic, 8120 PENN AVENUE SOUTH, SUITE 548 Pascal, Z80 Softcard, Fortran and other products such as Lisa MINNEAPOLIS, MN 55431 2.0 and Visicalc 3.3. Price: $149.00 (612) 881.e955

Apple II is a registered trademark of Apple Computer, Inc.; 280 Softcard is a registered trademark of Microsoft Consumer Products. D.C. Hayes Smart-Modem is a trademark of D.C. Hayes, Associates, Inc.; Novation CAT is a registered trademark of Novation, Inc. TWO PROGRAMS TO ACCENT YOUR APPLE. ACeU-SHAPES The One-of-a-Kind, Ultimate Shape Builder • Create shapes in lo-res with magnified detail • View them in hi-res and color • Transfer them back to lo-res for further editing • "Page" through a table as if thumbing through a book • Add, delete, combine shapes from several tables to form new tables For the advanced programmer or the beginner, to de­ sign a library of character sets, special graphic symbols and shapes for animation. Fast Assembly Language, 48k ROM Applesoft, DOS3.3 $49.95 SOn-STEP The easy-to-use debugger for your Applesoft BASIC pro­ grams. Helps experts find bugs and beginners learn BASIC. • Single-step through your BASIC program • Set breakpoint at any line • List the next line to be executed • Trace all or only chosen lines • Examine values of variables & memory • Define values of variables & memory All of this and more, without modifying your source code! Uses only 2. 8k. Requires 32k, DOS 3.3 Fast Assembly Language $49.95

ACCENT software 3750 Wright Place Palo Alto, CA. 94306 (415) 856-6505

60 Call-A.P.P.LE. August 1982 Apple Pugetsound Program Library Exchange Page 0064 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A Call -A.P.P.L.E. TECHNIOUE: DOING THE SPLITS

Roy Myers

was recently developing a This way the program effectively In this way, CHARGET steps its rather long Applesoft program relocated itself. way through the program. For a which used high resolution The program increased in length. technical explanation of Applesoft's I graphics. When the program It also supported several large arrays. CHARGET routine, see Call became too large to fit below page 1 Despite the use of all the space­ -A.P.PLE., March, 1982. If a of high resolution graphics, I changed saving tricks I knew, I still needed GOSUB is encountered, the current all of my HGR statements to HGR2, additional space. I looked longingly at value of TXTPTR is saved on the and continued. Eventually the pro­ the 6100 bytes of memory between stack, and TXTPTR is given a new gram would not fit below page 2 of $800 and $2000. This area is usually value, causing it to point to the begin­ graphics. Then I relocated the pro­ used for Applesoft programs, but was ning of the subroutine. When a gram. This can be done by using currently going unused. I had read of RETURN is encountered, TXTPTR memory locations 103 and 104 ($67 techniques which allowed a program takes back the value that had been and $68). Applesoft uses these loca­ to be split into two parts, with one stored on the stack, and control is tions as a pointer (usually referred to part on either side of the graphics returned to the main program. as TEXTTAB) to the beginning of page. While considering the use of When looking for the program the Applesoft program. Location 104 one of those methods, I developed an line which is the object of a GOSUB, contains the high byte and location alternative. Applesoft has two ways of searching. 103 contains the low byte of the In this article I will explain an If the high order byte of the line address. Usually location 103 con­ easy way to store large program number which is the object of the tains a 1 and location 104 contains an blocks as subroutines, placing them GOSUB is smaller than or equal to 8. TEXTTAB then points at $801 on the opposite side of the graphics the high order byte of the number of (decimal 2049). The byte just before page from the main program. the line which calls the subroutine, the beginning of the program (loca­ The key to the technique lies in then Applesoft uses TEXTTAB as a tion 2048), must contain 0, which is the use of TEXTTAB and a second base reference when seeking the sub­ used as a beginning-of-program pointer, called TXTPTR, which is in routine. This means that the search code. locations 184, 185 ($B8, $B9). As it begins at the beginning of the pro­ We can use TEXTTAB to identify works through a program, the Apple­ gram, since this is where TEXTTAB the memory location at which we soft routine CHARGET reads the is usually pointing. By changing the want an Applesoft program to begin. character or token pointed to by value of TEXTTAB, we can direct For example, we can arrange for a TXTPTR, interprets it and takes the the search to a specific area of program to begin above high resolu­ indicated action, then increases the memory. tion graphics page 1. Since 64 has contents of TXTPTR by one in order If the high order byte of the line hex value $40, if we type: to read the next character or token. number of the subroutine is larger For example, suppose that mem­ than the high order byte of the POKE 103,1: POKE 104,64 ory locations $810 and $811 contain number of the line which calls the the numbers 145 ($91) and 58 ($3A) subroutine, then the search does not we change TEXTTAB so that it respectively. When 184 contains $10 begin at the location identified by points at $4001. Then we must set and 185 contains $08, then TXTPTR TEXTTAB, but rather at the current $4000 to 0 (the beginning-of-program is pointing at $810. CHARGET will program line. In this case a change in code), which is done by read the contents of $810, obtaining TEXTTAB is of no avail. 145 ($91), interpret this as the token To illustrate, let's say that we POKE 16384,0 for the keyword "HGR" (see Apple­ have the following line in a program. soft BASIC Reference Manual, (16384 is the decimal representation p.121), and take the appropriate 280 GOSU B 450 of $4000.) If we now type NEW, then actions. Next the contents of TX­ type in an Applesoft program, or load TPTR are incremented by one. 184 The line number of the calling pro­ it from disk, the program will be will contain $11 and 185 will contain gram line (280) has hex value $0118, located above high resolution $08, so that TXTPTR is pointing at and the destination line number (450) graphics page 1. $811. CHARGET reads the contents has hex value $01C2. Since the high Back to my program. Since it had of $811, obtaining 58 ($3A), and order bytes agree, the search for the to run at location $4001, I arranged to interprets this as ":" (see Applesoft subroutine will begin at the beginning have the first line of the program Basic Reference Manual, p. 138). of the program, as identified by handle the bookkeeping: The process continues. TEXTTAB. 1 IF PEEK (103) < > 1 OR PEEK (104) < > 64 OR PEEK (16384) < > 0 THEN POKE 103,1: POKE 104,64: POKE 16384,0: PRINT CHR$ (4);"RUN PROGRAM"

Call -AP.P.L.E. August 1982 61 Apple Pugetsound Program Library Exchange I Page 0065 of 0090 Call-A.P.P.L.E. Magazine • August 1982 DOING THE SPLITS

For comparison, consider the 10 PRINT "IN MAIN PROGRAM Note 2: Notice that no difficulty following example. NOW" is created if line num­ 20 POKE 104,8: GOSUB 10 bers of SUBROUTINE 280 GOSUB 840 30 PRINT "BACK IN MAIN" duplicate those of MAIN, so long as In this case the destination line If you want to see that everything is TEXTTAB is reset. number (840) has hex value $0348. in place, type POKE 104,8; then Since the high order byte ($03) is LIST, to see the SUBROUTINE pro­ USAGE larger than the high order byte ($01) gram (LIST uses TEXTTAB too!). To make all of this transparent to of the calling line number, the search Next type POKE 104,64; then the user of your program, you could: for line 840 will begin at the present LIST to see the MAIN program. line. 1. With memory locations 103 As a consequence of the way 5. With memory location 104 and 104 containing 1 and 8 Applesoft searches for subroutines, containing 64 and memory respectively (normal contents) we can use a subroutine which is location 103 containing 1 type in the SUBROUTINE stored on the opposite side of a high (TEXTT AB pointing at program, or load it from disk. resolution graphics page from the $4001), RUN the MAIN pro­ 2. Save the SUBROUTINE pro­ main program if we: gram. When line 10 is exe­ gram as a binary file. To do cuted and Applesoft comes to this, calculate the length of the a) always GOSUB to a lower line line 20, the contents of mem~ file using the fact that memory number, and ory location 104 are changed locations 175 and 176 contain b) use TEXTTAB to control the to 8 (now TEXTTAB points a pointer to the end of the location at which subroutine to $0801). The GOSUB causes Applesoft program. The deci­ searches begin. a search for line 10. Since the mal value of the length of the subroutine line number is program can be obtained by the As an illustration, try the following: smaller than the lirie number immediate execution command of the calling line, the search is 1. Turn on your Apple. Type FP, started at the reference loca­ PRINT PEEK(175) + 256* PEEK(176) then NEW. At this point, tion provided by TEXTTAB .2048 TEXTTAB should be point­ ($801). The search ends quickly. For SUBROUTINE as de­ ing at $801. If you want to After line 10 of SUB­ confirm this, type ROUTINE is executed, line fined above, I find the length to be 47. We can then: PRINT PEEK(104),PEEK(103) 20 will change the contents of 104 to 64 ($40), causing BSAVE SUBROUTINE, A2048,L47 The response should be: TEXTTAB to point to $4001. The RETURN then returns 3. Have MAIN relocate itself in 8 1 control to the MAIN program, the second graphics page. which continues with the ex­ Simply add program line one 2. Type the short SUB­ ecution of line 30. as defined earlier in this article. ROUTINE program. The method described above is 4. Have MAIN load the SUB­ easily adapted to allow placement of ROUTINE: 10 PRINT "ARRIVED IN SUB· program and subroutine wherever ROUTINE" you like. 20 POKE 104,64: RETURN 2 P~INT CHR$(4); "BLOAD SUB· ROUTINE" Note 1. To return to the MAIN pro­ 3. Next, in preparation for enter­ gram, all we really need is As an alternative to the above, ing a MAIN program in page RETURN. Applesoft will two of high resolution you could have an EXEC file handle then load TXTPTR from the the bookkeeping. graphics, type: stack, and continue from the point the GOSUB was found. POKE 104,64:POKE 16384,0 Note 3: If SUBROUTINE is to However, any GOSUB's (or be BLOADed as sug­ GOTO's) encountered later With memory locations 103 and 104 gested above, it is in the program may cause containing 1 and 64 ($01 and $40), re­ necessary that it be Applesoft to seek line num­ spectively, TEXTTAB is now point­ BSAVEd from the area bers within SUBROUTINE ing at $4001 (decimal 16385). of memory in which it rather than MAIN. POKE will be used. 104,64 will reset TEXT­ Note 4: We change only TEXT­ 4. Next, type NEW, and enter TAB to the beginning of the following MAIN program. TAB. Variable, array, MAIN. and string storage are not affected.

62 Call -A.P.P.L.E. August 1982 Apple Pugetsound Program Library Exchange I Page 0066 of 0090 Call-A.P.P.L.E. Magazine • August 1982

Cool·Mark II Fan Unit KEEP YOUR APPLE* cool as a cuculUber

How? ... with a Cool·Mark II fan unit.

a Protects against overheating caused by plug-in boards and prolonged use. a Saves down time and repair due to overheating. a Mounts easily INSIDE your Apple "* in seconds, with- out hardware. a High performance airflow and low noise level. a Precision ball bearings = long service life. a One year warranty.

See Your Authorized Apple Dealer or Order Direct How To Order: Send money order or check for $34.95, plus $2 for UPS surface shipping any­ where in continental USA. California residents add 6% sales tax.

Send money order for PROMPT delivery. Personal checks must clear before shipment. Dealer inquiries invited.

Call Collect To:(213) 287-9945, COD orders accepted. Mark Four Imports

• Apple is a registered' trademark of Apple Computer Inc. P.O. Box A • San Gabriel, Ca. 91776 • (213) 287-9945

S&H Software enables Apple ][TM users to .. ~ll--~ increase speed and productiv as much as 500%.

Universal Boot Initializer 4.0 Amper-Sort/Merge (A-S/M) works up to 500% faster than works up' to 500% faster than even standard Apple DOS 3.3 ... 569.95 VisiCorp s VisiFile™ program ...552.95 UBI 4.0, with The DOS Enhancer,'· allows execution of BASIC The fastest "file clerk" you've ever met. Of all the sort utilities and Binary programs up to 500% faster, depending on file length, developed to manage Apple 1[ data files, none does the job nearly and is completely compatible with standard Apple DOS 3.3 so fast as A-S/M. programs. For improved file management a new "FREE" A-S/M can sort/merge from one to five unsorted files into a command in DOS determines free space on disks. single file of up to 125K per disk. UBI 4.0 breaks the language and time barriers between Apple 1[ Because sort routines can take up to 50% of computer running hardware and software by loading the RAM card with FPBASICI time in many business applications, you'll reap continuing bene­ INTBASIC (or your own program) in 1.7 seconds and by providing fits having the A-S/M "invisible speed demon" on your Apple 1[ one-stage booting with DOS 3.3 or DOS 3.2.1 PROMS. team - saving 20 - 30 minutes a day of a human clerk's time spent The UBI 4.0 package includes: training, utility, support and "waiting" needlessly. demo disks with complete documentation. The A-S/M "speed demon" package includes: training disk and System requirements: 48K Apple ][ or ][i', ROMIRAM card, utility disks with complete documentation. DOS 3.3/DOS 3.2.1 and or more disk drives. System requirements: 48K Apple 1[, ROM or RAM card, DOS 3.3 and one or more disk drives or 48K Apple ][i', DOS 3.3 and one or more disk drives. Available from your dealer Mail Order: Send check to S&H Software. Box 5, Manvel, NO 58256. Credit Card.: Phone Cybertronics International Clearinghouse at 212-532-3089. (Overseas Airmail. Add $3.00 postage and handling.)

Box 5 Manvel ND 582af; (7011 696·2574 S&H Software f-{

Call -AP.P.l.E. August 1982 63 Apple Pugetsound Program Library Exchange Page 0067 of 0090 Call-A.P.P.L.E. Magazine • August 1982

201838-9027 Naf THE TACKLER'" LOGO DUAL • MODE PARALLEL INTERFACE FOR THE APPLE· © M.I.T. 2 BOARDS IN ONE FOR NO MORE COMPAnBILITY PROBLEMSI An intelligent board to provide easy control of your ~~:~r':t !~~ Ri~t~?t~a~Jtl~~.~ S~~~:~r~~~:"~: compatibility with essentially all'software for the APPLE-, Hires printing with simple keyboard commands that replace hard to use software routines. No disks to load. Special features include ~~~~r~o~~~,bl1:at~~~;O-:~:8ag~:P~~~~~~~ ~:~~ keyboard or software commands. Il'ssimple to print HIRES graphics from an APPLE computer with The Tackler from TYMAC. This is the first truly universal parallel interfacel Plus the ROM for your specific printer. Sophisticated intelligence when you need it, total compability that never lets you down. ChaO%8 prlnters - no need to bag another board, Just PIU~ in one of our S~~~ta ~~~t~~~::v!litl:~~ ~~:n.' available for Epson, C. toh, NEC, and You' •••aked ualo m.k.lh. TACKLER ~br Ihen did. UPGRADEABLE PARALLEL PRINTER CARD A Universal Centronics type parallel printer board complete with cable and connector. This unique board allows you to turn on and off the high bit so that you can access additional features in many printers. Easily upgradeable to a fully intelligent printer board with graphics and text dumps. Use with EPSON, C. tTOH , ANADEJ<, STAR· WRITER, NEe. OKI and others with standard Centronics

The Data Communication Handler ROM Emulatessyntaxof an other popular Apple Modem product with improvements. Plugs directly on Apple CAT II Board. Supports Videxand Smarterm eo column cards, touch tone and rotary dial, remote terminal, voice toggkt, easy printer access and much more. Introd Price DOUBLE DOS PIU8 A ptggy-back board that plugs into the dlsk-controller card so that you can switch select between DOS 3.2 and DOS 3.3. DOUBLE DOS

NIBBLES AWAY II AGAINI Ahead of all others. • AUTO-LOAD PARAMETERS •• • Free's the user from having to Manually Key in Param values used with the more popular software • Ex'Pi'N~eEDv~~~R fMX'N~rt I~ • new Tutorials for I I for 'where do I begin' to

1111.. Krell Sof~are .Corp • ::E The Slate of the Art In EducatIOnal Computing" 1320 STONY BROOK ROAD I STONY BROOK NY I t 790 I (J t 6) 751 .J 139 Krell Software Corp. has no ofRcial lin wilh Ihp ColI~ Enlrannt Examination Board or Ihtl Educ"ational Tf'Sl'iro9 s.f\lire. Krell is, ~. a supplit'T of produc:'b 10 Ihe E.T.S. N.V.S. rniMnes add salf's lax PROGRAMS AVAILABLE FOR THE TRS80. APPLE It. PET & ATARt . 'Trade-marks of Apple Comp Corp .. Tandy Corp .. Commodorf' Corp .. Atari Corp.

64 Call -AP.P.L.E. August 1982

Apple Pugetsound Program Library Exchange Page 0068 of 0090 Call-A.P.P.L.E. Magazine • August 1982

DOING THE SPLITS

Note 5: We have here an alter­ To see why PRGEND is important When executing the SAVE, DOS native to CHAINing. If to us at this time, consider the follow­ tried to save all the memory contents chained programs have ing scenario: You have entered SUB­ from the beginning of MAIN (iden­ large blocks of common ROUTINE, then MAIN using the tified by TEXTTAB) upward, as far code, the dissimilar procedure described above. Then you as PRGEND indicates. Surprise! portions can be consec­ decide to add the following program PRGEND is not pointing above utively BLOADed and line to SUBROUTINE: TEXTTAB, but below. called as subroutines (as we did with SUB­ 15 PRINT "GOING BACK TO Moral: While some problems can arise ROUTINE). MAIN" when writing programs on both Note 6: It is, of course, possible sides of the graphics pages, you to have MAIN begin at To do so, you type POKE 104,8, then can avoid them (or at least ex­ $801, with SUBROU­ list the subroutine. Enter the new plain them) if you keep track of TINE starting at line, then list again to see that your PRGEND. $4001; and other loca­ typing is correct. Next type POKE tions can be used as 104,64 and LIST, to see MAIN ... well. The configuration nothing but garbage! Why? Because About Roy Myers . .. of memory is up to the PRGEND was pointing to the end of program designer. MAIN, which along with a lot of Roy Myers is Associate Professor of other memory contents, was moved Mathematics at Penn State, and uses So far I have focused on methods upward to make room for the new Apple graphics to enhance his calculus of controlling the effects of two program line. The beginning of class. He is the author of Microcomputer ponters: TEXTTAB and TXTPTR. MAIN is no longer at $4001. Graphics, recently published by Addison­ There is one other pointer with which Of course you can retype MAIN, Wesley. The book provides an intro­ you should become familiar. It is or load it from disk (don't forget to duction to the methods of computer PRGEND, which points to the end of POKE 16384,0). The problem is easily graphics, using the Apple Jf for all the current Applesoft program. dealt with if you see what is happening. examples. This is his first, but we hope Another pointer, named V ARTAB, Let's consider another scenario. not last, contribution to Call-A.P.P.L.E. usually points to the same address as First enter MAIN, starting at loca­ PRGEND. (The name V ARTAB tion $4001: comes from the fact that the variable Type: FUTRACO. table usually comes right after the GONE FISHING SALE! Applesoft program.) If VARTAB is POKE 104,64:POKE 103,1:POKE changed with the LOMEM command, 16384,0 Who Needs a Baked Apple? PRGEND continues to point to the Stay Cool With a KenSington Fan. end of the program. PRGEND is in Then type NEW and enter the pro­ $74.00 List $89.00 locations 175 and 176 and VARTAB gram. Videl Videoterm S219.95 in locations 105 and 106. PRGEND Electronic Switch $25.00 wNideoterm purch. was used earlier in describing how to Now enter SUBROUTINE: First Keyboard Enhancer $109.00 wNideoterm purch. save SUBROUTINE as a binary file. Microsoft 1-80 SOHcard S269.00 When you type NEW to enter a POKE 104,8:POKE 2048,0 CP/M User's Guide FREE w/Softcard purch. new program, the value of PRGEND 16K Ramcard $119.00 w/Softcard purch. is set to TEXTTAB + 3. As new pro­ Then NEW, and type the subroutine New! Commodore 64 SCali program. Now back to MAIN: gram lines are added, PRGEND is in­ Mail Order creased so that it always points to the FUTRA COMPANY end of the program. When the Apple­ POKE 104,64. P.O. BOX 4380-C soft line input routine processes a Torrance, CA 90510 LIST to be sure all is well. Entering new or edited line it will (among other Order Line: the subroutine didn't affect MAIN, (800) 421-5006 activities) make room for this line. since PRGEND was pointing to the (213) 328-8951 After the proper memory position end of the SUBROUTINE (NEW did Retail has been determined (the line number that), and not to the end of MAIN. OMC determines the position relative to all 20695 S. Western #124 RUN the program. It works as ex­ other program lines), the part of the Torrance, CA 90505 pected, so you can save it on disk. Retail: program beyond this point must be You type: moved upward in memory to leave (213) 328-1760 space for the new line. This "moving Tenns: Shipping add 3% for product shipped wrthin continental SAVE MAIN U.S.A. (AK & HI excluded) via UPS surface. (minimum $6.00)." upward" applies to all program code the order placed Is prepaid with U.S. funds In lorm 01 check or money order, a total charge 01 $6.00 Is all you PlY within the from the intended memory location continental U.S.A. via UPS surface. Allow 14 working days lor What happens? Hint: PRGEND is personal and company checks to clear. Credrt card charges limrted of the new line all the way to the end still pointing at the end of SUBROU­ to $1000 maximum. We cannot accept COD orders. FPO. APO or of the program, as identified by orders outside continental U.S.A. (including AK & HI) call or TINE, which is at a lower memory write for shipping charges or add 20% to purchase price (any PRGEND. difference will be relunded). CA residents add 6% sales tax. All address than the beginning of MAIN. offers subject to change or withdrawal without notice.

Call -A'p.P.L.E. Auqust 1982 65 Apple Pugetsound Program Library Exchange I Page 0069 of 0090 Call-A.P.P.L.E. Magazine • August 1982 DON'T BLOW YOUR BUCKS OR Locked-Up Software! Beagle Bros Apple Utilities are Listable, Backup-able Customizable and Compatible with Normal Apple DOS. DOS BOSS DISK COMMAND EDITOR by Bert Kersey & Jack Cassidy A classic Apple utility you will ENJOY! Rename DOS commands ICATALOG can be "Cat". etc.J. PROTECT PROGRAMS; any unauthorized save­ :Cer. auempt produces a "Not Copyable" message. Also LIST· PREVENTION & 1-key program-Iun (rom Most Apple Dealers carry catalog. Custom catalogs: Change Disk Volume our software. If your dealer Apple message to your title: Omit/alter file codes. Re­ write error messages: Syntax Error can be

Alpha Plot .=':1iB MAn" Hi-Res Graphics/Text Utility :. RUSH! The ctisk packages checked below .. ' Plus the Tip Book & PEEKS/POKES CHART. by Bert Kersey & Jack CasSidy ~ o Alpha Plot 0 Do8 Boaa 0 Tip Dtak Here are a few of AJpha Plot's useful features. Compare with others on tlle market- ~ 0 Apple Mechanic 0 UtWty City '$ (Add n 50 StuPPlng, any Size order Callforma.. add 6C1b t.a.;c; .) HI-RES DRAWING: Create hi' res pictures & charts with text. on both pages; all APPENDABLE ~ I .AKB'=__ ~ ______TO YOUR PROGRAMS. Optional Xdraw cursor ~ I ADDBf= ______(see lines before drawing). Mix colors & Reverse ffi l Crrrt= ______(~ckground opposite). Circles. Boxes. Ellipses: filled or outlined. COMPRESS HI·RES TO 113 DISK SPACE. Re locate any portion of an image ~ I ZIPI- ______==== __ anywhere on either page. Superimpose too & oon­ vert hi-res to lo-res for colorful abstracts! ~ I~~~ HI-RES TEXT; Beautiful upper!lower case ~ I ...... &bplr8&__ ~ with descenders (no hardware required). Color & reverse characters positionable anywhere (no tab i I Ma.1l U.S. check, money order or Vlsa./MC nos. limits). Professional-tooking PROPORTIONAL SPACING: adjustable character height & letter ~ I to; BUOLJI BJlO8, Dept.. spacing. Multi-directional typing for graphs! .318 S1erra VlRa I 111m D1., Ca dlOS OltLT 0 Alpha Plot on Dis k (48K min.) 4318 Sierra Vista, San Diego, Ca 92103 '39800Beagle Bros Apple Tip Book '4 I All Orders Shipped ImmeoUateq o Peeks. Pokes & Pointers Chart 714-296-6400 "APPLE" is a registered trade mark of Apple Computer Inc. "BEAGLE BROS" belongs to us. I cb~~:: ~df~8~J~~U::.~~~

Apple Pugetsound Program Library Exchange Page 0070 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A Call -A.P.P.L.E. CONTEST... SO WHAT DID YOU EXPECT?

o doubt our readers have program with some humorous aspects All So What Did You Expects . become aware of the increas­ and which embodies some element of published in 1982 issues will be con­ ing number of contributions "trickery," although neither is a re­ sidered. First prize will be $100 cash N published in our "So What quirement. Potential submitters can and, if a member, a bonus of $100 Did You Expect" department, so we get the best idea of what we are look­ credit towards A.P.P.L.E. software thought: what better than to award a ing for by researching those items or publications. Programs by prize for the best. The So What items previously published. A.P.P.L.E. employees or directors we have published to date have been Formal rules for the contest will will be judged, but prizes will be popular and have spurred many addi­ be announced later in the year; a awarded instead to the next non­ tional contributions, thus we would scoring system will be established, employee/director winner. All appli­ like to acquaint submitters with the based on originality, uniqueness of cations for judging and all submissions So What concept and also familiarize application and humorous result. The for the contest should be directed to them with the requirements. highest scoring proviso will be the the editorial office as listed on page 2. The underlying raison d'etre, as extent to which it causes a reader to Get your thinking caps on and with much of what we publish, is to stop and think about what makes it come up with a new way to do some­ make the reader think, to turn the tick. thing. It need not be practical, but it mind to productive programming A panel of judges will be selected must be unique, and as long as it directions by analyzing what the prQ­ from among our members only. Five serves to put our readers brains in gram does, and how it does it. Effec­ judges will be chosen from among the gear and force them to think of alter­ tive with the August Call-A.PPL.E., ten earliest applications, based on native strategies, it will be considered. we will pay $10 for each published postmark. Upon completion of voting, contribution to the So What Did You each judge will receive hislher choice Expect Department. We anticipate a of one diskette of A.P.P.L.E. software as a measure of thanks from the club.

Gf1ELEPHONE SOFtARE ,: hIST CONNE~ REM So What Did You Expect Dept Paul SandorftlVai J Golding Call -A P.P.LI:. 10 HOME :SOWHT$ = ,;" : PL PEEK ( 1 75) - 27.PH PEEK ( 176 ) 15 VL = PEEK (105) + 2:VH = 256 PEEK ( 1 06) + VL: POKE VH,26 * POKE VH + 1, PL: POKE VH + 2. PH 20 FOR I = 2 TO 36 STEP 2 30 X¥. = ( 8 + 12 .. SIN ( I I 10) ) 40 VUE X%: HTAB I I 2: PRINT SO WHTS 50 FOR PAUSE = 1 TO INT ( 100 f I ) : NEXT PAUSE 60 VTU Xtt.: HTAB 1 : CALL 868 70 NEXT I - 80 POKE 37,20 alilllJ_ 90 GOTO 20 100 - REM SO 'WHAT DID YOU EXPECT? DaD---- II 1-213-516-9432 P.O. BOX 6548 - TORRANCE, CA 90504 01981 TELEPHONE SOFTWARE CONNECTION, INC.

Call -AP'p.L.E. August 1982 67

Apple Pugetsound Program Library Exchange Page 0071 of 0090 Call-A.P.P.L.E. Magazine • August 1982

MPUTER ONSULTING 1822 DREW STREET, SUITE 3 ERVICES TRUST ACCOUNT MANAGEMENT SYSTEM CLEARWATER, FL. 33515 (813) 446-2643 ~ (813) 441 -3490 The people that brought you the Professional Timekeeping System are proud to announce the introduction of another valuable, time-saving office System Functions: management tool, , .the C.C.S. Trust Account Management System. Designed - Open a new trust account with consultation from bankers and legal office managers, this System incor­ - Enter deposits and withdrawals porates all of the principles of basic trust account management into a simple, - Print withdrawal checks - Print account transactions yet powerful office accounting tool. It expands on these basic principles to give - Print check/deposit registers the user instant access to often-requested data such as client trust balances - Void entries and audit trails for individual client accounts or entire trust accounts. - Analyze an entire trust account - Analyze a client's account As an additional feature, C.C.S. has provided a function in this system - Reconcile monthly bank statement which will automatically transfer funds from any Trust System account into a - Purge an existing account client account in the Professional Timekeeping System, making this System a - Directory assistance perfect complement to that already powerful legal office management system. - Edit account information - Change System parameters As is our tradition, this system was designed for professionals by profes­ - Change System password sionals. See your local Apple dealer for details. Capacities: One trust account per disk. The System will accommodate any number of accounts. Specific capacities are dependent on the number of client Hardware Requirements: APPLE II PLUS (48K), DOS 3.3 accounts within the trust account. Dual Disk Drives, Printer Typical configuration: 200 clients 1600 accounts entries C.C.S. also produces a PROFESSIONAL TIMEKEEPING SYSTEM 8 entries per client, average which simplifies and optimizes the timekeeping and billing process, (These figures are for active account entries. and provides a professional firm with valuable management infor­ Records from client accounts with zero balances are mation. Call or write us for information. periodically removed with the Purge function.)

TAKE CHARGE LLECTION OF

e A professional ~tabase, dedicated to your disk catalog! e Consolidates up to 1.200 catalog entries into a single fHe! elnstantly retrieves any file nome. sorfS in 4 seconds! • Produces well organized reporfS of all your programs. nicely formatted to your printer for easy insertion Into a notebook. etc! eReviewed by InfoWorid as Excellent In Performance and Ease of Use. and " .•• delivers on all its claims ... an elegant system ... well worth it,"

68 Call -AP'p.L.E. August 1982 Apple Pugetsound Program Library Exchange Page 0072 of 0090 Call-A.P.P.L.E. Magazine • August 1982

TOMORROW'S APPLES TODAY

Kevin O. Donohoe/Editor

VERSAFORM ANNOUNCED FOR functions he wants his program to perform. "The Programmer" uses these selections to write lines of BASIC APPLE III code which execute those specific functions. The end result is Applied Software Technology, an independent software a program stored on disk which can also be copied onto other vendor providing microcomputer programs for business and disks. professional applications, announced today it's Apple III Among its countless other uses, "The Programmer" can be version of the VersaForm Business Form Processor. This new used to develop a mailing list, generate graphics or, with the version, which supports the Apple III ProFile and Corvus Hard IBM version, create music. With 'The Programmer" Disk Subsystems, joins the already popular Apple II version of programs can be chained, the user can write to any RAM VersaForm. address, or create sort routines with minimal effort. VersaForm, generically identified as a Business Form Branching, whether on error, specified keystroke, menu Processor, is a powerful and flexible set of user-friendly pro­ selection or a time delay is handled by single menu selection. cedures which allow a non-programmer to set-up business "The Programmer" is available for the IBM personal forms on the Apple computer, to store them as files, and to computer with 64K RAM, Monochrome Display, Mono­ generate analyses and management reports from their data. A chrome Display/Printer Card, 2 disk drives and IBM DOS rich set of automatic filing, data entry checking, and with Advanced BASIC. calculation options may be chosen to enhance accuracy and The Apple version requires an Apple II with Microsoft Z80 speed input. A data base reporting system produces detail card, 80 Column Card, and 48K RAM. Scheduled to be summaries of any data items contained within a file of forms. released soon is the Apple II version with Applesoft or Apple II A unique feature of VersaForm, one that bridges the tradi­ Plus. tional gap between old paper-based business forms and new Price: $495.00 through computer retail outlets. "The video-based forms, is an ability to format printed output to Programmer" 200 page documentation is available for $29.95. match a pre-printed form as though it were manually type­ Advanced Operating Systems, 450 St. John Road, Michigan written. Thus, a first-time user can get full value from an City, IN 46360. automated business system without having to incur the cost of the designing of new paper forms. Furthermore, the user can enjoy the familarity of accepted business forms, yet achieve the BIBLE NOW AVAILABLE ON economies and efficiencies available through modern micro­ FLOPPY DISKS data processing. Common applications of VersaForm include invoicing/ Bible Research Systems (BRS) of Austin, Texas recently accounts receivable, purchase order generation/operations unveiled its first product: "THE WORD processor" which management; professional time and billing; estimating/job contains the entire King James version of the Bible on floppy costing, and personnel records/benefit accrual reporting. disks. Designed for students of theology, pastors, and the The hard disk versions of VersaForm, which now include personal computer market in general, THE WORD processor both Apple II and Apple III, allow file sizes of up to 4 Mbytes. consists of eight floppy disks replete with an easy-to-use This ability to create large files without tedious and complex instruction manual. According to BRS, the package is "volume swapping" has been requested by a large number of currently operable on Apple computers and will soon be users of many Apple II programs with hard disk subsystems available for the TRS-80. running Apple DOS 3.X. VersaForm may be installed on Apple Incorporating text processing and data management systems using ProFile, Corvus, and other hard disks sup­ software with micro-processor technology, THE WORD porting the Pascal operating system. processor is a unique achievement in that it makes a 4.5 VersaForm Apple III versions share all the important user megabyte data base (the Bible text) accessible by floppy-based interface features of the Apple II versions, insuring that user personal computers such as the Apple. Because the Bible text migration from an Apple II to an Apple III is a snap. Both Apple is accompanied by a special word processing program, the II and Apple III versions share the ability to have 8O-column small computer can scan the text, looking for any screen formats, allowing both systems to have identical combination of words or phrases, and inform the user where "forms" on the screen. Not only are the Apple II and III 80- and how often the word or phrase occurs. The user can scroll column screens identical, so is the user interface, command through the text at any speed he chooses and branch to structure, reporting procedures, and file maintenance. Data specific verses of interest. Any verses or references of special disks may be interchanged between Apple II and Apple II interest can be printed on request. systems, allowing users to add Apple Ill's to their existing THE WORD processor allows the user to keep libraries of Apple II networks without having to cope with data incom­ indexes containing references to all verses relevant to a patibilities and conversions. Price: $495.00. Applied Software specific topical study or word search. These indexes to the Technology, 14125 Capri Drive, Los Gatos, CA 95030, (408) Bible text provide a permanent file of resource materials. 370-2662. Future studies by the user can refer back to existing indexes for comparison of verses or expansion to a broader scope of study. These indexes are created dynamically by THE WORD processor and can be modified by the user. Each I'THE PROGRAMMER" user's library of Bible study resources will grow as he invests hours of personal study. Advanced Operating Systems has begun issuing "The THE WORD processor is priced at $159.95 (plus $2.50 for Programmer", a program generator for the IBM and Apple II postage and handling) and is available directly from Bible personal computers. Research Systems at 8804 Wildridge Drive, Austin, Texas Through a series of menus the user can define what 78759.

Call -AP.P.L.E. August 1982 69

Apple Pugetsound Program Library Exchange Page 0073 of 0090 Call-A.P.P.L.E. Magazine • August 1982

TOMORROW'S APPLES TODAY

THE AUTOMANIAC SYSTEM LOGO and EDUCA TIONAL COMPUTING JOURNAL invites all educators and computer professionals to report The AUTOMANIAC SYSTEM comes complete with two research and findings. The L&ECj will serve as a forum for sub·systems. When the AUTOMANIAC SYSTEM is used debate on the newest methods in computer assisted with the EXECUMANIAC SYSTEM, and the GSW INTROL instruction. PROGRAM, you Apple will run itself! At last, a computer that Charter subscriptions are available for $20.00 a year. works for you! LOGO and EDUCATIONAL COMPUTER JOURNAL, The AUTOMANIAC SYSTEM continually checks the suite 219, 1320 Stony Brook Road, Stony Brook, New York time and date from an on board clock. When the pre· 11790. programmed time arrives, the A UTOMANIAC SYSTEM will execute either a program or a series of commands that you have scheduled. You can run programs that require keyboard input, and this keyboard input will come from special com· mand list you have created with the EXECUMANIAC SYSTEM. With the GSW INTROL PROGRAM and a HARDWARE: Mountain Hardware IntroIlX·I0™ controller card, you can control electrical devices in the Apple's environment on a scheduled basis. IDS INmODUCES NEW If you are going to be a serious user of your Apple and still MICROPRISM PRINTERTM maintain a large data base of information, then you need a lot of computing time. THE AUTOMANIAC SYSTEM can The new Microprism dot·matrix printer from Integral increae you Apple's computing power by running 24 hours a Data Systems, Inc. offers print quality approaching that of a day! daisy-wheel printer at a lower price than has previously been During the night on Mondays, Wednesdays, and Fridays, available. It is positioned to fill a need in the marketplace for you can schedule the program that sorts your accounts higher quality output without extra printer features. receivable data. On the 15th of every month you can schedule a series of programs that will turn your printer on at 7:00 P.M., print out the bills at 7:05 P.M., and after all the printing is finished, the printer is turned off. During the day your computer won't be bogged down doing file maintenance, but instead will be free to access all that valuable information. The AUTOMANIAC SYSTEM comes packaged with GSW notebook, a 34-page easy-to·use operating manual, and a 3.3 D.O.S. diskette. Price: $100.00. Thediskcan be copied for backup. It runson hard disk systems. The AUTOMANIAC SYSTEM requires: 32K or 48K Apple II Plus, 3.3D.O.S., 80 co\. printer (optional), Mountain Hardware IntrollX-lO card (optional). The AUTOMANIAC SYSTEM is compatible with anyone of the following clocks: Applied Engineering Time II Clock TM, CCS Calendar Clock™, Computime Compuwatch™, Super­ clock IpM, Mountain Hardware Apple Clock™, Mountain Hardware CPS Card™, Thunderware Thunderclock™, and Prometheus Versacard™. The Geegery Software Works, P.O. Box 8028, Des Moines, Standard Microprism printer features: Dotplot ™graphics. Iowa 50301. serial RS232 and Centronics-compatible parallel interface, automatic line buffering with 1400 bytes standard, 75 cps in correspondence-quality and 110 cps in high-speed data mode. plus MAISEY and many more of Integral Data Systems' THE LOGO and EDUCAnONAL innovations arid standard in the Microprism printer. Integral Data Systems, Inc., with more than 60,000 COMPUTING JOURNAL printers shipped worldwide since its founding in 1977. Integral Data Systems is an innovative leader in the dot­ A major new publication, The LOGO and EDUCA TIONAL matrix printer industry. It has successfully met the require­ COMPUTING JOURNAL,has been announced by the Inter­ mehts of a wide range of end-users and OEM applications active Education Foundation, a non·prollt research organiza­ including commercial, scientific and professional work· tion in Stony Brook, New York. station uses. For more information on the Microprism The L&ECj is aimed at teachers currently using micro­ Printer and Maisey printing techniques, contact Integral computers in the classroom, professional educators engaged Data Systems, Inc., Milford, NH 03055. (603) 673·9100, (800) in creating and using educational software and both parents 258-1386, Telex: 953032. Price: $799.00. and children seriously committed to the use of educational computer products in the home. The editors of The L&ECj are Prof. Ludwig Braun, (Suny SLOT SWAPPERS at Stony Brook) and Prof. joseph Raben, (Queens College, Cuny). Interchange disk controller cards or printer cards with the Special editorial attention will be devoted to reporting flip of a switch. No special software required, no wiring - classroom experience with all versions of the Logo Language just plugs in, easy access to switches, installs in minutes, and and the latest instructional software. no clips needed.

70 Call -A.P.P.L.E. August 1982 Apple Pugetsound Program Library Exchange Page 0074 of 0090 Call-A.P.P.L.E. Magazine • August 1982

Your SLOT SWAPPER switch gets you around the problem of trying to run software that will only work from a APPLE III CARRYING CASE floppy drive with a controller card in slot #6 when you must The growing family of fiberbilt computer cases has just have something other than a floppy in that slot (such as a received a new addition ..... The Apple III carrying case. Like Corvus interface card). Many commercial programs have it's brother, the Apple II case, the Apple III case features a copy protection schemes that only let them work from slot #6. foam padded cover and base, a removable locking cover that These include several accounting packages, copy programs allows for cables to exit the case with the cover closed and and disk utilities. The Apple BASICS diskette will only work locked, non·metalic hold down strap, rubber no·slip bumpers, from a floppy in slot #6. To run programs like these you sturdy ABS plastic end·cap construction and is stocked in would have to physically remove both cards then put them brown. back in opposite slots. Doing this often enough will soon damage those slots. Worse than that, if just once you forget to power off the Apple when you're swapping cards, you can burn out chips on those cards and on others as well as the Apple motherboard. With SLOT SWAPPERS installed, you just flip the switches and slot #6 can be any slot you choose (except slot #0). The standard slots the SLOT SWAPPERS will swap are 6 & 7, assuming a floppy in #7 and a Corvus in #6, although SLOT SWAPPERS can be ordered for any other 2 slots. Price: $79.95. Johnson Associates, Inc., 6525 W. Villa Theresa, Glendale, AZ 85308, (602) 979·4554.

3 INCH MICRO-FLOPPYDISK DRIVE AND CARTRIDGE SYSTEM The new Amdek Micro·Floppydisk daul·disk drive, just The Apple III case is available for $100.00 and the Apple II introduced by Amdek Corporation, Arlington Heights, case for $64.00 (UPS delivery included for both cases) from Illinois, offers 1 Megabyte capacity and is plug compatible FIBERBIL T, 601 West 26th Street, New York, NY 10001· with standard 5 inch f10ppydisk drives. The new drive has a 1199. built-in power supply and accomodates two new 3inch Micro· Floppydisk cartridges. 16 TRACK RECORDER FOR THE ALPHASYNTAURI DIGITAL SYNTHESIZER

Syntauri Corporation announces METATRAKTM, a 16- track digital synthesizer recording system which goes beyond conventional recording methods. Now, at an affordable price musicians, composers and synthesists have the power, flexibility and control of an all-digital synthesizer/ recorder. Syntauri even offers a 17th track: the METATRAK recording system uses the alphaSyntauri™ keyboard, which is alway live and separately controlled. METATRAK is available only for the STUDIO PRO five octave alphaSyntauri synthesizer, a fully programmable 8- voice synthesizer with a velocity sensing keyboard, user­ definable keyboard splits and banks of 10 immediately available preset sounds. To record, a musician simply plays the Syntauri keyboard: all notes played are exactly captured on each of the sixteen tracks for storage and later recall and Only .179" x 3.15" x 3.94", the new Micro·Floppydisk playback. cartridge features a flip-type, hinged head cover that protects METATRAK expands a musician/composer's horizons the 3 inch disk from dust, scratches or fingerprints. The with a combination of features unique to the Syntauri hinged cover automatically flips open when inserted in the system, including: (1) standard multi-track recording drive unit. features. Pre-track Playback, Record, Erase and Volume The single-side recording capacity is 125 K Bytes or 250 K controls let you operate and record with METATRAKjustas Bytes for both sides with double-density (500 K Byte) you would a conventional tape deck. (2) a powerful sequencer. capability. A "write protect" mechanism is available to From one to all 16 tracks can be sequenced together for assure "read only" status for data recorded on the Micro­ repeating bass lines or background rhythm patterns. (3) Floppydisk. The sturdy cartridge also provides amply room independent per track control over volume, instrument, and for magnetic-sheet or bar-coded indicia for automatic vibrato on/off. Expansion possibilities for additional per­ retrieval from large volume stock shelves. track timbre controls are built into METATRAK. (4) a built­ Price: $899.00. Amdek Corporation, Marketing Dept., 2420 in click track. METATRAK's standard metronome, from one E. Oakton St., Suite E, Arlington Heights, IL 60005. Phone: to 280 beats/min during both play and record, also provides (312) 364-1180, TLX 25-4786. multiple outputs - audio, visual, and control line.

Call -AP.P.L.E. August 1982 71

Apple Pugetsound Program Library Exchange Page 0075 of 0090 Call-A.P.P.L.E. Magazine • August 1982

TOMORROW'S APPLES TODAY

For a composer/arranger, the alphaSyntauri keyboard synthesizer with METATRAK is a very flexible, easy to use ECONOMICAL X-V FOUR-COLOR scratchpad for trying out new musical ideas, saving patches, PLOTTER FROM AMDEK and refining pieces prior to final recording. Orchestrating is quickly accomplished - all the instruments may be re­ A new, low cost Model DXY four-color Plotter designed for defined per track, and custom timbres designed using the use with personal or business computers has just been Syntauri sounds creation software. introduced by Amdek Corporation, Arlington Height, Illinois. For a performing musician, METATRAK lets the The Model DXY Plotter has a 1O"xI4" effective plotting range alphaSyntauri synthesizer become an orchestral accom­ and figures may be easily drawn using the "Control panist for on-stage as well as in-studio use. Now, a solo Command" or "Basic Command". The Plotter's functions may performer can team up with pre-recorded METATRAK be expanded by adding additional ROM. patches, the live Syntauri keyboard, another live instrument, plus a rhythm unit and become an entire orchestra. Why does the alphaSyntauri synthesizer use a computer? Syntauri designes synthesizers to be modular, fully program­ mable, and expandable. With its built-in general purpose Apple II micorcomputer system, the alphaSyntauri synthe­ sizer provides musicians the same programmability options enjoyed by Syntauri's designers. Most important, a musician can keep at the state-of-the-art because upgrades and added features (such as METATRAK) are available in software at nominal cost. Price $1995.00.

CHIPS OFF THE 6502 Maximum plotting speed is 2.73" per second and step size is Some interesting developments in the 650x series of micro­ .003"/step. A Centronics interface is furnished to permit easy processors have been uncovered for us by Roger Knights. The connection to a computer. CMOS 65C02, with a maximum clock speed of 2Mhz is cur­ The Model DXY is furnished complete with 4 pens, pen rently being debugged. Most notable difference is the repair of holders and chart hold-downs. Price is $949.00. It is available the ]MP (xxFF) bug (see Call -A.PPL.E., May, 1982). No for October I, 1982 delivery. new instructions have been added, but all "illegal" opcodes For further information, write or call: Amdek Corp., have been NOPed and instruction decoding is by microcode, Marketing Dept., 2420 E. Oakton Street, Suite E, Arlington taking the same number of cycles as the 6502. Heights, IL 60005. Phone: (312) 364-1180. A 16-bit chip of new design is scheduled for release within the next year; an emulation mode will enable it to run curre~t 6502 programs. No decision has yet been made whether thiS product will be released as a high-cost, high performance ver­ 80 X 24 HIGH RESOLUnON sion, or as a less expensive and more modest one. This, coupled COLOR GRAPHICS with the uncertain release date is largely a result of the pre­ occupation of the parent company (Commodore) with other The new Digital-Video-Multiplexor (DVM) just introduced new products. The chip may be second-sourced by Rocl~well. by Amdek Corp., Arlington Heights, Illinois, provides a low In addition, CMOS versions of the Rockwell 6500/xx senes of cost interface for Apple II personal computers to obtain high single-chip microcomputers are expected to be announced at resolution color graphics and a 80 x 24 character display. any time. The Amdek DVM consists of two, four and two chip The R65C02, a CMOS 6502, will be offered with four differ­ daughter printed circuit boards which are conveniently ent clock rates, ranging up to 4Mhz, with the possibility of 5 or plugged into the microcomputer's 110 bus. The interface does 6Mhz being available later. The R65CI02 is a variant version not interfere with the normal operation of the Apple II meant for new designs. It has the disadvantage of minor pin in­ computer, nor does it affect its software compatability. compatibilities and the advantage of greatly reducing syst~ms The Amdek DVM is software programmable to allow costs by operating at 4Mhz with far slower (and less expensive) transparent operation and is parallel with existing Apple text memory chips. Both will either be officially second-sourced or and graphic modes. It's basically a 4-channel multiplexor. supplied as functionally identical products by MaS Technology. Three channels are to multiplex the existing Apple II text, The R65C02/102 chips add 59 new opcodes. Of these, 14 low resolution and high resolution graphics. The 4th channel are new addressing modes for existing mnemonics, including allows the use of an 80 character line video board. indirect (absolute) for ORA, AND, EaR, ADC, STA, LDA, The new DVM is also color channel software program­ CMP and SBC, and two implied (accumulator) modes for INC mable. The three color channels can be turned on or off by and DEC. Brand new instructions include a BRanch Always, software control. The DVM board may occupy any slot in the push and pull for the X and Y index registers, four modes of Apple II. It further features low power consumption and low STore Zero and numerous modes of testing and branching on power Schottky logic. bits or bytes set or clear. Price: $199. For further information on the Digital Video A fuller treatment of the instruction sets, along with an op­ Multiplexor and Amdek's family of professional Video code map will appear in a future Call -A.PPLE. Monitors for microcomputer systems, contact: Amdek Corp., 2420 E. Oakton St., Suite E, Arlington Heights, Illinois 60005. Telephone: (312) 364-1180, TLX 25-4786. ~

72 Call -AP.P.L.E. August 1982

Apple Pugetsound Program Library Exchange Page 0076 of 0090 Call-A.P.P.L.E. Magazine • August 1982

B.E.S.T. Our original Applesoft Optimizer (AOPT) has now been en­ APLUS. The original Structured Basic enhancement for Applesoft hanced to bring to the Applesoft programmer the most comprehen­ Basic. APLUS provides the tools that will increase your efficiency, sive set of software tools available today-BEST The BASIC simplify program rewriting, and make your program flow more ENHANCED SOFTWARE TOOLS is a machine language program to understandable. No longer do you have to remember the line aid in writing, analyzing, and debugging Applesoft Basic programs. numbers of subroutines and procedures; instead, just "DO BEST will certainly increase programmer efficiency for improved GRAPHIT" and APLUS does the rest APLUS adds the following productivity. BEST offers: 1) Variable Cross-Reference, 2) Line structured programming commands to Applesoft basic' number Cross-Reference, 3) A Complete Cross-Reference, 4) Opti­ WHEN .. ELSE .. FIN, UNTIL, WHILE, CASE, SELECT, and OTHER­ mize variable names with recognition of both short (two character/ WISE. Multi-line IF .. FIN statements are also supported APLUS Applesoft standard) and long labels, 5) REM Optimizer-with an includes functions to output indented listings to clarify logic flow and option to "protect" specified REM statements, 6) Line Optimizer to converting source code to standard Applesoft commands. join short instruction lines of specified length, 7) Merging two pro­ grams, 8) Automatic line numbering, and 9) A powerful, yet easy to Requires Applesoft, 32K of RAM, and DOS 3.3 . Only $25.00. use Renumber function. Implementation of BEST can reduce EDIT·SOFT. A powerful, yet affordable, line editor for Applesoft. Us­ memory requirements by up to 50% and increase execution speed of ing EDIT-SOFT, you can drastically cut your programming time. EDIT­ Applesoft programs by up to 100 %. BEST is a low cost alternative SOFT not only contains the standard line editor features like inserting to an Applesoft compiler or deleting characters, moving to a specific character, entry of lower B.E.ST requires a 48K Apple 11111 +, Applesoft in ROM or Language case letters, going to the beginning or end of a line, and displaying card, and DOS 3.3. $40.00 control characters, but it also has the advanced features that will prove indispensable: BUILD USING. Do you have trouble printing charts, reports, or for­ matting numbers on the screen? If you do, BUILD USING can solve • AUTO LINE NUMBERING your problems BUILD USING is a powerful Applesoft utility which • SPLICING two lines together provides a "print-using" type routine for numbers and strings. By • AUTOMATIC CHARACTER COUNTER for quoted strings creating simple "formats", you tell BUILD USING how to format the makes screen formatting a snap output The output from BUILD USING are strings which may be • EDITING LINES as they are being TYPED printed, written to disk, saved for later usage, or even reformatted. • A STATUS LINE keeps you constantly aware of which With BUILD USING, you can choose how many digits should be options are currently being used displayed to the left and right of the decimal pOint, and even fill the • Up to TWENTY MACROS available at any time leading positions with the character of your choice. For example, you • MACRO EDITING AT ANY TIME can print the number '157.23' and '157.2' or '000157.230', of • HELP PAGES available when needed ' •••• $157. AND 23/100 DOLLARS', or hundreds or other ways Compare the features of EDIT-SOFT to other line editors, then com­ (including exponential formats). Working with strings is just as easy. pare the price. No other line editor has so many features at such a Also included are three levels of error trapping, so you can correct reasonable price I numbers that cannot fit into your specified format. EDIT-SOFT requires 48K of RAM, Applesoft in ROM (language and Utilities like BUILD USING are usually difficult to use because they RAM expansion cards are fine), and DOS 3.3. ONLY $30.00 must be located in one memory location (usually between DOS and the DOS file buffers), they cannot be used with your favorite editor or other special routines. BUILD USING does not have this limitation, as it can be easily located in many different memory locations: 1) the "standard" between DOS and DOS file buffers, 2) at HIMEM, 3) 4191. ~~~~,~t~"SD~!~'t'are APPENDED to your Applesoft program, or 4) anywhere else in West Bloomfield, Michigan 48033 memory. Appending BUILD USING to your program is as simple as (313) 399-8877 EXECing a TEXT file. BUILD USING uses the "CALL" command thereby leaving the ampersand vector free for your own use. Please specify program desired BUILD USING requires Applesoft in ROM (Language cards are fine), Visa and Mastercard Welcome. Add $1.25 postage and handling per diskette DOS 3.3 and a minimum of 32K ... Only $30.00 Copyright 1982- Sensible Software Inc. • Applesott is a registered trademark of APPLE Computer Company.

Apple Pugetsound Program Library Exchange Page 0077 of 0090 Call-A.P.P.L.E. Magazine • August 1982 ,...---antroducing low cost, Apple 1--, compatible disk drives 40-track drive with half-tracking for only $375.00

Easy to install Eight colors to choose from Simple plug-in with no additional wiring or The drive cabinet is available in a standard power supply required. Apple offwhite, lime green, dark green, bright orange, computer blue, brilliant yellow, black Complete Apple II compatibility or chrome. 40-track, 51/4 inch drive that runs 3.3 DOS, PASCAL or CP/M (Apple disk controller Complete Disk Drive System required). For only $375, you get the 51/4 inch disk drive, color coordi­ Full Warranty and nated cabinet, and cable. Or, Service there's a two drive system that gO-day warranty plus serv­ includes two 40-track disk ice center for out-of-warranty drives, cabinets, Apple disk service. controller, and cables for only $850.00. For further information, or to order the Apple II compatible disk drives, call or write: 2 INTERFACE, INC. Dealer and quantity discounts available upon request 7630 Alabama Ave., Unit 3 MasterCard, VISA or COD orders accepted. Apple and Apple II Canoga Park, CA 91304 I are registered trademarks of Apple Computer, Inc. (213) 341-7914

A.P.P.L.E. Members Only You've Seen the Rest Now Get the Best GLOBAL Program Line Editor MASTER Global PLE has all these fine new features to OF YOUR DISKETTES further ease your editing tasks: with "the most versatile and • Global edit, search and replacement user - friendly disk editing utility." * • Compatible with 80 column cards DISKEDIT review in • Typeahead buffer HARDCORE Computing • 1152 bytes of Escape functions definable from keyboard and nestable REVIVE CRASHED DISKS! • Page list mode RECOVER DELETED FILES! • Completely tra.nsparent to user Insert or remove illegal characters. Write flashing and inverse titles. • Loads in regular RAM or Language card. Hide or disguise file names. Plus all of the powerful standard PLE Customize the CATALOG commands and features Source Code and 50 Fully-Commented Listing $38. included on disk. A.P.P.L.E. Orders ONLY 304 Main Ave. 5., Suite 300 DEPT 222 Renton, WA 98055 (206) 271-4514 Washington state residents add 6.5"" sales tax All foreign orders (including Canada) will require additional postage and shipping. Overseas shipping wI. 3.0 oz.

74 Call -A.P.P.L.E. August 1982 Apple Pugetsound Program Library Exchange Page 0078 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A.P.P.l.E. DOCTOR

George Spe/vin

NCOMPATIBILITY in The way I see it, you have about For the TYPE field: peripherals is a problem that , three choices. None of them are E = Entry point becomes increasingly evident. exactly the perfect solution, but any .B = Block 80 column cards, printers, one will keep you from stumbling in # = length in bytes RAM cards, etc. As more and more the dark. L = Label products hit the market it becomes 1) When you power up, you can F = Flag difficult to write software that will type C058 and hit return. This "work" with everything. This will be will switch the state of the Question seen in the answer to the first annunciator and enable video. After I've had my printer on, DOS question. 2) You can leave the switch on seems to have gone bye-bye and I can't Question the Integer card in the down do any disk commands. Am I doing I have a 48K Apple jf Plus with an In­ position; this will select the something wrong? teger ROM card in slot zero, and a main board (Autostart) moni­ Answer Videx Videoterm card in slot 3. When I tor. You're not alone. A lot of people power up with the Integer card selected 3) You can replace the (old) have the same problem. It's probably monitor ROM on the Integer (switch up), I get a blank screen, no because you haven't h.~rned your prompt, no cursor, nothing. If I turn card with an Autostart ROM. printer on and/or off with a PRINT the switch off, everything works fine, Question D$ "PR# 1". If your program reads and I boot up to Applesoft. I have also I recently bought "What's Where something like: fried another Integer Firmware card in in the Apple" from you, and it's a great 300 PR#O my machine and the same thing hap­ source of information, but I can't find This resets all the character input/ pens. Can you provide any help? any expanation of the "\ USE­ output "hooks" and turns DOS off in Answer TYPE \" code fields. Am I missing the process. If you actually need to Videx customer support to the something? tum DOS off, then you can do a rescue. Although you didn't mention Answer CALL 1002 to tum it back on. I hear it, you probably have the Videx Soft­ No, you're not missing anything, Ralph Swerdlow is going to write switch. If this is the case, when you the book is. I wondered about that someting on this in a little more power up, the Videoterm board is ex­ one for a long time, too. I'm not real detail. pecting to find an Autostart ROM, sure about the accuracy, but this which turns you video display on. should help. For the USE field: This is actually done with a toggle, or S = Subroutine access to Annunciator 0 on the game P = Parameter paddle port. B = Buffer H = Hardware

INTRODUCING THE AUTOMANIAC SYSTEM • It runs your Apple 24 hours a day! • It runs programs and series of commands that you schedule! • It brings Apple's Exec facilities to the Programmer and Non-Programmer! • It can control electrical devices in the Apple's environment on a scheduled basis! Why not run some of those routine programs at night when the computer is free, so that during the day it is free for you! FOR EXAMPLE: During the night, on Mondays, Wednesdays, and Fridays, you can schedule the program that sorts your Accounts Receivable data. On the 15th of every month you can schedule a series of programs that will twn your printer on at 7:00 P.M., print out the bills at 7:05 P.M., and after all the ,printing is finished, the printer is turned off. During the day, your computer won't be bogged down doing file maintenance but insteCjd will be free to access information. The AUTOMANIAC SYSTEM is compatible with anyone of the following clocks: • Appi'ied Engineering Time 11* • Mountain Hardware Apple Clock' • Mountain Hardware CPS card' • Superclock II' • CCS Calendar Clock* • Computime Compuwatch* • Thunderware Thunderclock' • Prometheus Versacard' 'Trademarks The system requires: 32K or 48K Apple II Plus*, 3.30.0.5., An SO col. printer and Mountain Hardware Introl/X-lO card' are optional. PRICE $100.00 - Order now and become an AUTOMANIAC! You'll get a GSW notebook, a 34-page easy-to-use operating manual, and a 3.30.0.5. diskette. Call (515) 280-7916 to order by Mastercard or VISA. Send check or money orders to: ...----- GSUJ THEGEEGERYSOFTWAREWORKS P.O. BOX 8028 DES MOINES, IOWA 50301

Call -A.P.P.L.E.August 1982 75

Apple Pugetsound Program Library Exchange Page 0079 of 0090 Call-A.P.P.L.E. Magazine • August 1982

SPECTACULAR QCOM OFFERS A leading developer of software OKIDATA for major publishers, announces WITH FRICTION AND TI\ACTO~ FEED • BI-DIRECTlONAL· 120 CPS • Parallel and Serial 1/0 for the Apple' - Five disks at • 9x9 M::ltrix

Reset lock: program continues if Parr No reset key hit, data in tact' Screen OKIDAT62A OKIDAT6JA Dump: print text to screen, then choose to send it to printer' Input and store comma/colon/etc ' Timed input with edit of response: controls keyboard ' Build alpha­ index name files (no need to sort) , Crunch numbers: store in $, save space, speed up 1/0 ' Plus more! 2 - General Utility Pack Crunch data: store up to 220,000 characters per disk ' Binary hello prevents control-c interrupt in load Applesoft hello' Toggle 1/2 track within your program ' Disable di­ rect commands for 'run only' , Microsecond timer ' De-muffin ' Plus more! 3 - Gran Prix Math Hi-res race track and cars. Race against computer car and clock by answering math problems, grades 1-6, add-sub-mult-div, select levels difficulty, response time; file holds user records/stats.

4 - Multi-Drive Copy Program AP.P.L.E. Members Only Runs 1 to 14 drives; 1 minute per copy; includes techniques to mod­ Ap.LCASE 2* ify DOS for turnkey systems. by Paul Brown 5 - Keyboard Enhancer Redefine any or all keys, even as The lower case video multi-words (c = text/home/ display Chip for A.P.P.L.E. catalog); makes files for use in members, featuring true any program with toggle standard/ enhanced keyboards; examples descenders (Dvorak, programmer aid) in­ cluded. 527.50 Plugs in in minutes Each disk has full documentation/ examples. Each is $19.00 or all 5 A.P.P.L.E. ORDERS for $76.00. Wash. residents add 304 Main Ave. S., Suite 300 6.3% sales tax. Send check or Renton, WA 98055 money order to: OCOM PO Box 5053 * Fits only REV 7 or Vancouver, WA 98668 later Write for info about our copy ser­ Ap.LCase 1 (for older ApplesJ '38.50 vice. A REV 7 or later can be identified by the absence of the three 16K RAM strapping 'Apple and Applesoft are registered blocks. trademarks of Apple Computer, Inc. All foreign orders lincluding Canada) will require additional postage and Shipping. Wash. State residents add 6.5% sales tax. '" Overseas shipping wt: 4 oz.

76 Call -AP.P.L.E. August 1982 Apple Pugetsound Program Library Exchange Page 0080 of 0090 Call-A.P.P.L.E. Magazine • August 1982

A.P.P.L.E. MEETING MINUTES

David A. Ungwood/Secretary

]lUle 15, 1982 have an arrangement with Softalk to pro­ Speaker A.P.P.L.E. Offices, Renton vide members with subscriptions to this Dr. Allister Holden, Prof. of Electrical magazine for $15 per year. The club is Engineering at the Univ. of Washington, RESIDENT Dick Hubert called trying to stock fans for the Apple; these discussed the progress and problems of the throng to order at 7:32PM. will list for $22.50 for the kit. voice recognition and synthesis. The goal There were 62 members and Dick Hubert annolUlced our arrange­ is to speed computer VO by use of more Pguests present. ment with The Source, through which natural commlUlication channels than members may purchase Source access for human finger tips on a keyboard, or eyes Old Business: none. $75. We will set up a closed user group glued to a CRT. Spoken output is difficult with its own menu, and recent Call to produce, given the "prosodic" features Committee Reports: -A.PPL.E.; programs will be kept of human intonation, yet output is easier Mike Thyng reported on the Apple online. We will also conduct an online than input. Chips exist which can give Festival at Seattle Center. There were at Hotline. Dick also mentioned that we have 99% reliability in understanding sOlUlds least 35 club member participants who a supply of CDC diskettes at $1.97 each. and speakers to which they have been demonstrated what Apples can do during The meeting was adjourned at trained. the two days. There were an estimated 7:55PM. Recognition of continuous prose is a 3.000 vistors. hot R&D area, even given the relative Q&A failures of early optimistic language New Business: This popular, if frantic, feature fielded translation, etc. projects. Strong syntac­ Mike Lane suggested a swap meet. questions on commlUlications, graphics, tical checking is important for reliability. After discussion it was decided to do this 80 column cards, etc. Noteworthy at the Factors affecting reliability and tech­ in August, at our regular meeting. We time, but nothing worldshaking. niques for signal processing were also covered.

Pig out on fun with . PIG PEN (for the Apple 11* and the IBM-PC!) Here's the newest and freshest idea in dot-maze games. You'll go hog-wild at the way Pig Pen's clever switches make this the most intriguing game you ever got hooked on! With Pig Pen you run the maze leaving dots wherever you go! And the 4 beady eyed pigs are out to stop you. Take a potent, pulsing pig pill and you can zap the pigs, turning them into delicious ham hocks! Why be 'boared' with the old-fashioned versions. Get the freshest - have the most fun of all! Oink, $29.95 in Apple or IBM versions. At your computer store, or from:

Call -AP.P.L.E. August 1982 77 Apple Pugetsound Program Library Exchange Page 0081 of 0090 Call-A.P.P.L.E. Magazine • August 1982

WRITE -A.P.P.L.E.

The Readers

Dear Val, The "PROGRAM TOO LARGE" they incredibly fast, but I can buy six error encountered on a SAVE attempt can refills for the price of one new cartridge Leighton Paul's article "Vandal be changed to "UNABLE TO SAVE" by here in the Seattle area. Foiler" in the February, 1982 Call entering: AAIB: 55 4E 4142 4C 452054 I will surely do business with Data -A.PPL.E., uses a POKE 214,255 com­ 4F 20 53 41 56456120 AO. Systems again, and heartily recommend mand to limit BASIC and DOS commands After the DOS changes have been them to anyone else contemplating "roll­ to the user. POKE 214,255 disables: made, SAVE the hew DOS on a blank ing their own" Epson ribbon refills. Good LIST, NEW, insert a line, delete a line, disk by typing PROT (formerly INIT) luck to you, Data Systems! POKEs, CALLs and the DOS command with the following as a suggested HELLO SAVE. The result of any of these com­ program. Oiution: do. not run HELLO Teny Owen Pennenter mands (except SAVE) is to run the current before initializing the disk. 702 2nd Ave. W. #104 prograin in memory. A SAVE command Seattle;WA 98119 prirtts the error "PROGRAM TOO 10 0$ = CHR$(4) LARGE". 20 POKE 214,255 Dear Val, The following DOS commands still 30 PRINT O$;"CATALOG" work: INIT, DELETE and RENAME. I have found the text file reader, To foil the vandal, these comands can be If Disk Zap is available, other disks TREAD, on the A.P.P.L.E. Apfile disk given new names. Reboot a disk with may be updated without transferring files extremely useful. Unfortunately often standard DOS that you want to modify. by reading track 1, sector 7 and track 1, when I have been using it, it has been Enter the monitor. sector 9 of a Vandal Foiler disk and because one of my text files is messed up writing them onto the new disk. HELLO and I am in a hurry to inspect its contents. To change INIT to PROT enter: program names must remain the same When TREAD demands that I remove A884: 50 52 4F D4 and POKE 214,255 must be in the the Apfile disk, insert into the same To disable the DELETE command, HELLO program. drive the disk on which the file in question enter: A898: 58 Whenever the Vandal Foiler DOS is in resides, I am inconvenienced. It is a To disable the RENAME command, the computer, even reboots of that disk bother to a person in distress! enter: A8CC: 58 will not allow a user to initialize, delete or Solution: Have TREAD ask which (DELETE becomes XELETE, make other changes. drive the diskette is to be read in. Should RENAME becomes XENAME) be simple enough. It isn't, however, Dan Yeager because the machine. language subrou­ 3154 South 10th East tines appended to TREAD are referenced A.P.P.L.E. Members Only Salt Lake City, UT 84106 in line 10 to the beginning of the program. Now Available Therefore, any changes to the program Dear vai, will cause it to bomb. If, however, those The Power of routines are referenced to the end of the Unfortunately, our itidustry seems to program, changes can be made to the pro­ VISICALC be a seller's market - rumost anyone can gram and it will still work properly. See VOL. II set up a small business, and stay afloat the listing. Lines 10,18,30, and 193 are lortg enough to lure several of us (often modified. Line 100 is added. I think this Member Price mote than a few!) into sending money to makes use of TREAD with a two-drive order a product "mail-'brder." All of us system much more convenient. $8. 50 have heard what can happen. to that money - it might disappear entirely, or, Stephen E. Bach A training manual consisting of a series of at best, take weeks or months before the exercises based on Visicalc version 3.3. Rt. 2 Box product is received. Service, support, and Scottsville, VA 24590 quality seem to be words (and concepts) A.P.P.L.E. VISICALC SPECIAL forgotten by altogether too marly of the lLlST Visicalc Vol I $8.50 compailies we do business with. 10 RIITS = PEtit (175) + PEEK <11 Visicalc Vol II $8.50 Because of this dim record, I q,lmost 6) t 256 - 64 . DPNT = RIITS + Reg. $17.00 always buy from a local dealer, whom I 14 : LPNT . = RIITS + J I can deal with "face to face" if I have any 18 HOME PRINT PRINT SPCt 9) Vol I & II questions or problems. Recently, though, i"" TEXT FILE READER U": PRINT A.P.P.L.E. Sp,ecial Price $13.00 I departed from this rule of thuinb to pur­ (;OTO 100 • Must be phone ordered or postmarked by chase ribbon cartridge refills for my 3Q PRINT DS i "OPEN "i NI1$" ,D" DR 9/30/82 Epson MX-80 printer. As the company 100 PRINT PRINT INPUT "ENTER A.P.P.L.E. Orders that I ordered from, Data Systems, Box ilR 1VE • ) "i DR: I F DR ( ) 1 AND DR ( ) 2 THEN VTU PEEl 304 Main Ave. 5., Suite 300 99, Fern Park, Florida, 32730, is about as (37): CALL 65338: CALL - 86 Renton, WA 98055 far away from my Washington state ad­ 8:VTAB PEEK (37) - I: GOTO (206) 271·4514 dress as you can get within the U.S., I ex­ iO 0 Washington state residents add 6.5'Yo sales tax. pected a long wait for crisp, dark listings. 193 COSUB 28: VTAB (24): PRINT· All foreign orders (including Canada) will require Amazingly, I received my order eight READ ANOTHER FILE'" i: POKE - additional postage & shipping. days after I mailed it! This company is 16368,0: GET GS: PRINT IF Overseas shipping wI. Visicalc Vol II - 8.5 oz. truly a gem - if only the larger companies (;$ = "Y· THEN HOKE GOTO 1 A.P.P.L.E. Visicalc Special - 17. oz. would foilow their example! Not only are 00

78 Call -A.P.P.L.E. August 1982

Apple Pugetsound Program Library Exchange Page 0082 of 0090 Call-A.P.P.L.E. Magazine • August 1982

Dear Clardy & Killion, block below me, which we saved as "G" (Line 360), and THEN step I suggest you use a ]SR $D683 onto the block below (Line 370)." (STKINI -clear stack) in your On Reset GOTO program from Call-A.PPL.E., in In the original, this single sentence Depth 1. This seems to correct the was really two sentences, part of which memory full error that otherwise occurs was left out. The original read: and also does not seem to cause a problem with a GET statement. "Change the plotting color again, Robert Neuhauser this time to the former color of the 31581 Lamar Drive block below me, which we saved as Farmington, MI 48024 "G" (Line 350). Now plot the block I'm standing on in the color "G" 0300 20 EA C3 JSR SOHA (Line 360), and THEN step onto the 03 C3 • 20 FB DA JSR $DAFS block below (Line 370)." 0306. 20 83 D6 JSR 10683 030v. A9 00 LDA tHO I have italicized the portion that was Q30 S 85 51 STA : 5 : omitted. As you will appreciate, it is this 0100. 1.9 6 ~ LJA Hb4 omitted part that completes the "ex­ 030£ . 85 5C STA S5 G change" portion of the sort. Small matter, 03,1 ~ a 41 D9 JSR $Oi 41 but it might confuse some of your readers. 0314 . 4C DZ 07 JI'IP SD7DZ Scott Simpson Dear Val, 905 Applewood Road Fort VVayne, IN 46825 After entering Dice 82, in Call -A.PPL.E., April 1982, I found it worked Dear Val: very well except for one small annoyance. "Computer crime IS becoming a Several of the programs that I wanted common term, but we have recently been to use it with employ the escape key for victims of a rather unusual form of it. A various functions. As the escape key is remarkably sophisticated and specialized used as a shift key or shift lock in Dice 82, burglar broke into our house; to the great it wasn't available for use by me in any of surprise of the police, the only thing he my programs. took was the 128K Saturn RAM board A call to Dan Paymar resolved the which I had recently installed in my problem and I thought others might Apple II. Nothing else (except one benefit from his solution. unrelated diskette) was taken or dis­ 1. Boot system turbed. This is certainly a step beyond 2. Insert Dice 82 disk and type piracy of programs, although I suspect UNLOCK DICE2 (c/r) that people who try to achieve a reason­ 3. BLOAD DICE2 (c/r) able income developing and selling 4. CALL ·151 (c/r) programs might not agree. 5. 37B5: A9 9B 60 (c/r) I had been thinking of submitting a 6. 3DOG or CTRL·C (c/r) review of the RAM board to Call - 7. BSAVE DICE2,A$3500,L$387 A.P.P.L.E., and the thief seems to have (c/r) given it a remarkably favorable review. This completes the patch. Typing During the brief time I had it, I too was CONTROL F now is the same as typing quite impressed by the Saturn card, and I ESCAPE. agree with the burglar that it was most valuable single thing in my Apple. Dennis King Apparently the thief didn't recognize the 352 Merrilee Place Danville, CA 94526 value of the manual and diskettes; he failed to take any of them. Unless he is a remarkably sophisticated programmer, Dear Val, the card will be useless to him without these items - I find that fact somewhat Many thanks for selecting my article consoling. "HexaDecaColor Double Bubble Sort" as This leads to the point of this letter. I the 1st prize winner in Tom Crawford's would be greatful if any readers of Call­ "So What Did You Expect?" contest! I A.P.P.L.E. who have Saturn cards would have gotten many nice comments and regard with great suspicion any requests compliments since it appeared in the to copy their diskettes or manuals, and March issue. It was quite an honor, and I let me have the name and address of truly appreciate it. anyone making such a request. Please Upon proofing the article against my call me at (315) 423-2510 or write to: original manuscript, I discovered a small but significant error of omission which James R. FIorini, Ph.D. might have confused some of your Professor of Biochemistry readers. In the second paragraph on page Dept. of Biology 54, the last sentence was printed as: Syracuse University 108 College Place "Change the plotting color again, Syracuse, N.Y. 13210 this time to the former color of the ~ Cal/-A.P.P.L.E. August J 982 79

Apple Pugetsound Program Library Exchange Page 0083 of 0090 Call-A.P.P.L.E. Magazine • August 1982

No matter how you slice it, the only way you're going to know if a data handling program is right for you is by running it on your computer, solving your problems, your way. And the only database management sys­ tem (DBMS) that lets you do that is dBASE I[rM A DBMS like the mainframers have. Conceptually, dBASE II is a relational database management system, like the system IBM introduced on their mainframes last year. Practically, dBASE II is the most powerful DBMS made for a micro. It handles multiple databases on a single drive and simplifies every­ thing from accounting to project management to monitoring rainfall on the Upper Volta. With a word or two, you CREATE data­ bases, APPEND new data instantly, UPDATE, MODIFY and REPLACE fields, records and entire databases. Organize months worth of data in minutes with the built-in REPORT. Do sub­ field and multi-field searches, then DISPLAY some or all of the data for any conditions you And you can use dBASE II interactively want to apply. for instant answers. Or save your instructions And you've just begun to tap the power and automate your data handling with two words: of dBASE II. DO Finances, DO Rainfall, DO whatever has to be done. Easy to look at, easy to use. Input screens and output forms couldn't Use dBASE II to help make your choice: be easier-just "paint" your format on the CRT Instead of asking you to pore over a and what you see is what you'll get. manual, we'll let you try dBASE II free for 30 days. You can do automatic calculations on Send us $400 and we'll send you a copy fields, records and databases, accurate to 10 digits. of dBASE II that you can run on a 48k Apple with Apple Pugetsound Program Library Exchange Page 0084 of 0090 Call-A.P.P.L.E. Magazine • August 1982

CP/M ($700 for expanded hard-disk version). Put it through its paces. Then after 30 days, send it back and we'll return your money, no questions asked. Ashton~ate But we don't get many back, because dBASE II is the one database management system that can really cut it. Call (213) 204-5570 today or drop by your local computer store for the rest of the story. Ashton-Tate, 9929 Jefferson Blvd., ©1982 Ashton-Tate Culver City, CA 90230. CP/M is a registered trademark of Digital Research Apple Pugetsound Program Library Exchange Page 0085 of 0090 Call-A.P.P.L.E. Magazine • August 1982

DON'T WASTE TIME AND MONEY SIMPLY BECAUSE YOUR APPLE .

. . . IS TIED UP PRINTINGI

S.D.S. INVITES YOU TO FREE YOURSELF & YOUR COMPUTERI

IT'S LIKE GETTING ANOTHER APPLE FOR ONLY $1501 Stop losing time and money while you or your stoff wait for the printer. Doubletime Printer uses special interrupt driven software to print files INDEPENDENTLY of the program currently being run. Unlike some buffered printer interface cords, Doubletime Printer is on integrated hardware/ software package that offers more than just a limit~d print buffer. With Doubletime Printer, you can print multiple copies, prioritize printing schedules, do formatting of listings and text, all independently of the program being run in your Apple at the time. Doubletime Printer uses your diskette as a buffer, and as such has a much greater capacity than any PJWI buffer cord. To find out more about Doubletime Printer, see your local Apple dealer, or call or write Soutwestern Data SYstems for a free catalog which includes a complete description of Daubletime Printer and over 20 other programs for the Apple. e#MiJUimHl P.O. BOX 582 • SANTEE, CA 92071 TELEPHONE: 714/562-:)670

Apple Pugetsound Program Library Exchange Page 0086 of 0090 Call-A.P.P.L.E. Magazine • August 1982

For A.P.P.L.E. Members Only AD INDEX

AP.P.L.E ...... 11.43. 74. 78. 83. 84 Accent Software...... • ...... 60 Amdek Corp...... 4 WORDWEAVER III Andromeda. Inc ...... 44 by Bob Huelsdonk Appleware. Inc...... 12 Ashton· Tate ...... • . . . . . 80. 81 An Easy To Use Sophisticated and Axlon ...... 59 8eagle 8rothers ...... 66 Comprehensive Word Processor For The Apple ///* 8it 3 Computer Corp...... 60 Sorder Software ...... 49 • Edit Commands Based on Program Line ~ditor 8usinessmaster ...... 38 Bytes & Pieces ...... 27 • Global Find and Replace Cases. Inc...... 30 • Up to 253 Character Lines Computer Case Co ...... • ...... 18 Computer Consulting SelVices ...... • ...... 68 • Imbedded Printer Controls Allowed Connecticut Information Systems...... 14 Cortland Data Systems ...... 48 Datamost. Inc. . 18e. 77 MEMBER PRICE: $75. 00 Datec. Inc...... • ...... 76 Dickens Data Systems ...... 34 A.P.P.L.E. Orders Discount Data Products...... 50 Expotek Corp...... 76 304 Main Ave. S., Suite 300 Fourth Dimension Systems .. I Renton, WA98055 Futra Company ...... 65 (206) 271-4514 The Geegery Software Works...... 75 High Order Micro Elearomcs. . . • • . . . . • . . . 79 Overseas shipping weight: 3 oz. VISA" Interface. Inc...... • ...... 74 Kensington Microware ...... •...... 56 No other orders in the same envelope. Korsmeyer Elearonic Design...... 30 Washington state residents add 6.5% sales tax. Krell Software ...... • • ...... 64 All foreign orders (including Canada) require additional postage & shipping. Leading Edge Products ...... IFC. BC Mark Four Imports...... 63 'Apple III is a registered trademark of Apple Computer. Inc. Micro Control Systems...... 21 Micro Mantic Computer ...... 55 Microware Distributing. Inc. . . .. 64 New Vision 1982 ...... 6 Omega Microware. Inc...... 26. 48. 56 Orange Micro...... J3 Ocom ...... 76 R.C. Elearonics. Inc.. . . . • ...... 7. 55 R. H. Electronics...... 59 Sensible Software ...... 54. 73 S & H Software ...... 63 Softech Microsystems ...... 31. 33. 35. 37. 39. 41 Soft Key Publishing...... 74 A.P.P.LE. OROER~ Southeastern Software ...... 22 ~04 Main Ave. S.. Suite 300 Southwestern Data Systems. . . . lB. 42. 68. 82 SSM Microcomputer Corp...... 20 Renton, iliA 98055 Stellatlon Two ...... 45 /2061 271·4514 Strobe. Inc...... 8 Sympathetic Software ...... 12 Telephone Software Connection . . . . . 67 Vista Computer Company. Inc. . . . . 36 I am enclosing my check/MO for $ ______Wesperm/Cro Systems...... 82

My membership number is: ------______exp. date Members Only Please send me the following: NOW AVAILABLE PASCAL ANTHOLOGY '81 Contains Pascal program text files

Name: published in Call -A'p.P.LE. in 1981. Address: ______PRICE: City: ------____ State: _____ Zip Code: ______$12.50 Phone: ______AP.P.L.E. Orders 304 Main Ave. S.. Suite 300 ace II ______Renton, WA 98055 1206) 271-4514

Washington state residents add 6.5% sales tax. eI ace II ______expo date ____ All foreign orders (including Canada) will require additional postage and handling. Washington state residents must add 6.5% state sales tax. CNerseas Shipping wt.. 05 oz. All foreign orders will require Shipping and handling charges (including Canada).

Apple Pugetsound Program Library Exchange I Page 0087 of 0090 Call-A.P.P.L.E. Magazine • August 1982 UNCLASSIFIEDS - A.P.P.L.E. ORDERS

CALL -A.P.P.L.E. lunlClasslfleds REOUEST FOR CHANGE OF ADDRESS Members Non-commerical rate .05/lI\.Qrd TElETYPE FOR 5Alf: Model 43 KSR terminal. RS232 like new, manuals, etc Best. most reliable 110/300 baud termInal Dear A.P.PLE., Members commerical rate .25/lI\.Qrd available. Dot matr;;'", 132 column, pin feed. S1200 value for All others: 1.00/lI\.Qrd, S25 minimum S49S. or best offer. Might consider reasonable trade of I am moving and my present address is: hardware or software. Call 1206) 643-6014, or write Ian Send ad copy with payment to editorial office PRESENT: Wallace, 5412 126thPlace S.E.. Bellevue, WA 98006. NAME PEACHY WRITER - New! A simple, easy to use tt'xt editor at a DISCOUNT PRICES - Muse, Si rius Software, Datamost Edu- price you CClnaHordl S24.95 HAPPY' FACE - 4 hi-resg - 61 fea[Ures las Cruces NM 88005, 15051 523-0602 nine educational, entertaining activities designed to tecl ch CITY basic skills and help children feel good clbout computers 00 YOU KNOW WHERE TO FIND ALL OF YOUR PROGRAMS? Presents numbers, letters, counting, adding, subtracting. STATE ZIP CODE Sort and Merge up to 10 Disks (500 files/ onto a MASTER cl lph",oer. names, discrimination. Children draw, save, ",nd printout {MX-80GXI. EClSY to use Applesoh program. Mclny retrieve colorful pictures! NO ADULT .ASSISTANCE MEMBERSHIP NUMBER extra features. Price 525 .00 ask for OK.'vS. Te

MULnPLE FACTOR ANAlYSIS program, newly created fo r APPLE /1+ 148KI, Write for description, price, ordering information. Dealer inquines invIted. Department CA-I MATHEMATICAL PRODUCTS NOW AVAILABLE TO AP,P.LE, MEMBERS SOFTWARE Co. Box 12349, EI CaJOn, CA 92022

MUST SEll APPLE II EOUIPMENT WORKING: 48K M otherboard call -AP.P.L.E. Speclals A.P.P.LE. HARDWARE 5450. Integer or Applesoft ROM Board SilO. Comrnunica- rions Board 5110. Disk II Analog Board 5l10. Add on SA400 \-1sicalc Special ' SI3.00 ApController S95 .00 drive for f\pple 5325. SA400 analog board converted for Ap.Coolkit S22.50 Apple use S65. 16K RAM Boclrd S95. Replacement Keyboard A.P.P.L.E. UBRARY APDRIVE S345.00 S150. Drive case S39. Inreger ROM set w ith aid #! 535. A.P. Drive Technical Manual S30.00 Applesoft ROM set w ith autostart 54 5. MC multifunction APDRIVE with Controller S425.00 S2.50 card with software/manual 5140. Eurapple " motherboard. ·'Apple Orchard·· No. I Imagazinel Ap L Case I S30.00 S13.00 no nL, RAM. ROM S225 . Much, Much, More! NON- Apple USers Guide Ap L Case 2 I Lower case chip I S27.50 WORKING: Mountain Computer fMC) Music System Assembly Lines: The Book SI6.50 (boards only) 595 . MC A/D-D/A convener 595. MC bare Disk Banks 2 for S15.00 Beneath the Apple DOS SI7.00 expansion bOard S95. NON-WORKING NO-m : Apple /I motherboard S2 50 Sen"'l. Parallel, Communication, "Best of Cider Press·· language, ROM. or Disk Clnalog board 54 5. ANY THREE IS.F. Newsletter Annuall Vol I S4.50 APoJeWl!lry 1120. ALL SIX 1200. NO REASONABLE OFFER REFUSED. IS.F. Newsletter Annuall Vol II S9.50 Llpel pin RICHARD SMITH, 2961 S. L3s Palmas, J\Aesa ,AZ 85202 {b021 13.00 Call -A.P.P.L.E. annuals 820-0082 Apple Prestige Product linE 197B S7.50 10 to 40% OFF products for Apple, 16K Ramcard 569. Z-80 card 1979 SIO.OO APfile - Text file utility SIB.SO w/o software 5117, STB- 128K card w/disk emulator S379, 1980 SI5.00 Applesoft Carpenter SIB.50 free catalog, MICRO MART, POB 12021. Dallas. TX 75225. 1981 SIB.50 Aptest SIB.50 Call -A.P.P.L.E. in Depth No. I S7.00 Big Mac Macro-Assembler(Ted S22.50 Inside Washington Apple Pi S7.00 Big Mac.LC S28.50 Power of VisiCalc vol I or II. each 58.50 Big Mac X-Ref S7.50 Global Program Line Editor S38.50 For A ,P.P,L.E Members Only USing 6502 Assembly Llnguage SI7.00 lXIhafs lXIhere in the Apple S12.50 Higher Fonts I SI3.00 $16.50 woz Talks IIIHS Video cassettel S27.50 Higher Text Plus S27.50 DISKPAK 12 - Program Global Editor SI8 .50 AS IS SOFTWARE Newly Revised for Apple 11+" Program line Editor S20.00 Public domain diskettes IDOS 3.2·11 ea. S4.00 Soft Seventy S22.00 A collection of 40 Applesoft programs ISend 37¢ SASE for list of titlesl Symbol Symon S20.00 including games, B color demos, etc. Diskettes supplied on DOS 3.3 except as noted. WordWeaver III S75.00 A.P.P.L.E. Orders A,P.P,LE. DISKPAKS ' Must be postmarked or phone ordered by 9/30/B2 304 Main Ave. 5., Suite 300 Call -A.P.P.L.E. Anthology Vols I-VII, incl. ea. S12.50 'S7 .50 With Ap L Case I DICE 82' S12.50 Renton, WA 98055 SIO.OO With Ap L Case 2 (206) 271-4514 Diskpak 12 SI6.50 Diskpak 34A SI3.00 Visa, M/C welcome NOTICE TO FOREIGN MEMBERS: Diskpak 5 SI3.00 Washington State residents add 6.5% tax. A.P.P.LE. Hardware products not available OIeneas Shipping WI 1 OZ Diskpak 68 IDOS 3.2 disk utilityl SI8.50 to overseas or foreign members. This includes All foreign orders In!. canadal Diskpak 68-16 IDOS 3.3 disk utilityl SIB.50 will requlfe additlQrlal pos~ and Sh",lIl9. ApDrive & Ap Cool Kit. Diskpak 7 SI7.50 'Apple 1/+ is registered trademark of Diskpak 8 SI3.00 Apple Computer Inc. In Depth I Diskette SI6.50 Pascal Anthology ·81 S12.50 ORDER FORM ON REVERSE

84 Call-A.P.P.l.E. August 1982 • Apple Pugetsound Program Library Exchange I Page 0088 of 0090 Call-A.P.P.L.E. Magazine • August 1982

List off your favorite card games your lay-offs, rearrange your cards and you' ll agree not one has the at will , even take back a bad dis­ fun and enjoyment offered by Gin card before it's fully in play. Makes all Rummy provided you 're up Once you start playing Computer against a tough opponent. Gin Rummy you'll find all other other card Good Gin players have always card games seem dull and boring, been agonizingly hard to find, because none give you such a great ones almost impossible . . smart competitor. Now for some games seem especially at the times you 're in extra good news. Along with GIN the mood. Until Now. Now you RUMMY, you also get KNOCK have Computer Gin Rummy! - RUMMY and ONE-MELD RUMMY boring ... the perfect opponent who's ready so you can relax with a change of to play whenever you are. for as pace. long as you want I Get your copy now and let's DEAL! Computer Gin Rummy is no sim­ Only $29.95 for the apple II; at ple "Go Fish" type of competitor . your computer store, or from : but a master tactician who plays like a pro. who has all the strategy, knows all the moves to give you a []] DATAMOS'l terrifiC battle every time l He knocks 9748 Cozycroft Avenue when you least expect it, holds out Chatsworth, California 91311 to undercut you - he discards the (213) 709-1202 right cards (which are wrong for you I) . and suddenly lays down his VISA/MASTERCHARGE accepted. hand . as if to say, "name of the $1.00 shipping/handling charge. game: and ginsl This is real Gin (California residents add 6% sales tax. ) Rummy where you can change • Apple II as a Irademark of Apple Computer. Inc.

Apple Pugetsound Program Library Exchange Page 0089 of 0090 Call-A.P.P.L.E. Magazine • August 1982 •

MORE THAI JUST AlOTHER PREm FACE. Says who? Says ANSI. make life miserable for everyone in the disk-making Specifically, subcommittee X3B8 of the American business. National Standards Institute (ANSI) says so. The fact How? By gathering together periodically (often, is all Elephant™ floppies meet or exceed the specs one suspects, under the full moon) to concoct more required to meet or exceed all their standards. and more rules to increase the quality of flexible But just who is •subcommittee X3B8" to issue such disks. Their most recent rule book runs over 20 single­ pronouncements? spaced pages-listing, and insisting upon-hundreds They're a group of people representing a large, upon hundreds of standards a disk must meet in well-balanced cross section of disciplines-from order to be blessed by ANSI. (And thereby be taken academia, government agencies, and the computer seriously by people who take disks seriously.) industry. People from places like IBM, Hewlett-Packard, In fact, if you'd like a copy of this formidable docu­ 3M, Lawrence livermore Labs, The U.S. Department ment, for free, just let us know and we'll send you of Defense, Honeywell and The Association of Com­ one. Because once you know what it takes to make puter Programmers and Analysts. In short, it's a bunch an Elephant for ANSI ... of high-caliber nitpickers whose mission, it seems, in We think you'll want us to make some Elephants order to make better disks for consumers, is also to for you. ELEPHAlT~M HEAVY DUTY DISKS. For a free poster-size portrait of our powerful pachyderm, please write us. Distributed Exclusively by Leading Edge Products, Inc., 225 Turnpike Street, Canton, Massachusetts 02021 Call: toll-free 1-800-343-6833; or in Massachusetts call collect (617) 828-8150. Telex 951-624. Apple Pugetsound Program Library Exchange Page 0090 of 0090