ief explanation of the theory behind the program. The basic concept is to economize on the storageof often-repeated information.Nearly every collection of data involves a significant amount of repetition. For instance, the letter eappears very frequently in wordprocessing documents, most graphics screens contain substantialamounts of blank space, and soforth. File Compressor saves spaceby storing the most frequently repeated data values in less spacethan usual. To understand how thisis done, you'll need to know a littleabout how the computer usuallystoresinformation.The 64 ordinarily stores alldata as a series of byte-lengthcodes. A byte consists of eight bits,and each bit is a binary digit (either1 or 0). The binary number00000000 equals 0, and the binarynumber 11111111 equals decimal255, so a byte can store a number inthe range 0-255. Since every bytecontains eight bits, the computersimply counts bits to determinewhere one code ends and the nextbegins. When it reaches the eighthbit, it knows that the following bit isthe first bit of the next code.(Keep in mind that the meaning of a code depends entirely onthe context in which it's used. Forword processing, a code of 65 mayrepresent the ASCII value for thecharacter a. But for a sprite shape orhi-res graphics screen, the samecode represents a pattern of dots. Ina machine language program, 65represents an EOR instruction, andsoon.)File Compressor saves spaceby storing the most often-usedcodes in fewer than eight bits. Toillustrate, say that you wish to savea word processing document incompressed form. Before it savesthe file, File Compressor scans thedocument to determine which sevencharacters appear most frequently.Let's say that those characters are e,a, d, t, r, n, and /. The programwould create this coding table:CodeCharacter1e2a3dThe decoding table is stored at4t5r6n71the beginning of the disk file as wellas in memory. Note that the mostfrequently used character (e, in thisexample) is stored in one bit ratherthan the usual eight. Throughoutthe saving process, File Compressorsubstitutes these short codes inplace of the usual eight-bit codes.To reload the compressed data, theprogram reads the decoding tablefrom disk and stores it, then decodes the file bit by bit.Decoding the compressed fileis somewhat trickier than compressing it. Because the file containscodes of varying sizes (anywherefrom one to eight bits in length), it'snecessary to use a special methodfor detecting the end of one codeand the beginning of the next. FileCompressor does this by using a 0bit as an end-of-code marker. As itreads in each bit from disk, theprogram increments a counter tokeep track of how many 1 bits it hasread. When it finds a 0, it uses thecounter value as an index to thedecoding table. In this example, forinstance, the decoding table indicatesthat six 1 bits stand for the ASCIILearnandUnderstandInsideA book for all GEOS users, from thebeginner to the programmer.Starts out with a introductionto GEOS and its applicationsto creating your own GEOSapplications, GEOS fileformats and internalworkings of GEOS.A must for everyone thatwants to learn and understanGEOS inside and out.and OutAvailableNOW$19.95Abacus Phone 616/241-5510P.O. Box 7219 Dept.C2 Grand Rapids, MI 49510Telex 709-101 • Fax 616S41 -5021Call now for the name of the dealer nearest you. Or orderdirectly using your MC, Visa or Amex card. Add $4.00per order for shipping. Foreign orders add $10.00 peritem. Call today or write for your free catalog. Dealerinquires welcome-over 1500 nationwide.ENTERTHE FINALFRONTIEROFMAN-TO-MACHINECOMMUNICATIONSThere is nothing else likeit. Voice Master givesboth speech outputand voice recognition with this single hardware product! Your voicecontrols programs, or home appliances, robots, and more with spokencommands. Verbal response back gives status, verifies, or requests yourreply! Speech output and recognition patterns are recorded in with yourvoice. Or use the voice of your friend, boss, teacher mothe-.. even thefamily pet! Programming Is simple with new commands added to BASIC.A music bonus program lets you write and compose musical scoressimply by humming the tune. Unlimited applications for fun, education,and commercial use. Design your own programs for profit. Sr.neech andrecognition quqlity unsurpassed by even the most sophisticatedmachines. Only Covox provides this high-tech marvel at a price less thanmost common peripherals.The Covox Voice Master comes complete with all hardwareand softwarefor only $89.95. (Add S4 shipping and handling for USA. S6 Conoda S1Doverseas.) Available for Commodore M/128, Apple II. II*. lie. lie. Atari <strong>80</strong>0,<strong>80</strong>0XL 130 XE. Specify when ordering. Visa. MasterCard phone ordersaccepted.Call or write for FREE Voice Master Infopakand special combination package' offers.COVOXiNC, DEPT.C!675-D Conget Street • Eugene. Oregon 97432 • USAAreaCode(503)342-1271 • Telex 7O6O17(Av Alarm UP)54 COMPUTE! February 1987
character n. Whenever File Compressor reads six 1bits in a row, it stores that character in memory. Thenit sets the counter back to zero and begins countingbits again. Fhree consecutive 1 bits stand for theletter d, anc so on.Since File Compressor crunches only the mostoften repeated codes, every compressed file alsocontains many normal eight-bit codes. A sequence oftwo consecutive ( bits indicates that the programshould i ead the next eight oits as an ordinary bytevalue. Thus , the C bit both marks the end of eachcompressed code and distinguishes between comuncompressedcodes.pressed ancOne general consequence of this storage schemeis that the more repetition your data contains, themore you stancPOKE 50599, 9File Compressorto gain by compressing it. File Com-pressor assumes that r'our disk drive is device 8, butyou can change it toilsedevice 9 if necessary. LoadFile Compressor into memory, then enter this lineand press RETURN:Please refer to the 'ML> " article in this Issuebefore entering the following listing.C200:A5C208:A0C210:D0C218:90C220I02C2 28:FDC230:85C238:01C240J01C248iA4C250:FBC258:FCC260:FCC268:FBC270:C5C278:14C2<strong>80</strong>:85C288:60C290:A4C298:00C2A0:FCC2A8:A8C2B0:C8C2B8:A8C2C0:D0C2C8:30C2D0:00C2D8:FEC2E0:FCC2E8:FBC2F0:C3C2F8:FEC300:C8C308:2EC310:D6C318:2AC320:14C328:CBC330:BDC3 38 : CAC340:A9C348:00C350:66C358:14C360:67C368:14C370:60C378:C2C3<strong>80</strong>:1FC388:A92B0002F08526FE9091028520E885FEC5FDA097851891C099F7FA00A9A984A5A5D090A50620C2D2100160FFC6C320A220C40285BlE6C4FDFEA00BFD60FD67D014B0FDA50099FC69FB0700A060020008D7029702DC1514D2D0C2EC858568FEA5D202002020FBFBFC2DA9A500C888A985C2F5C<strong>80</strong>1B01584CB06C0C8D0C0060006858520D020E6C4F0C6FF0CE848FEFDD0C6FEFF20C2D9C3A520A59000FEBlBlA900FEC8A5Bl60018597C2FB8591D69999000EFB1525094AFC2D0F1560A9E8A968A4F915D0A9C920C2FF2CIFFCEC8518FDFD00A8A9D0FFFBD060FE208526FCFB6000CB00IEA5A4C3A9C3A5F0A9D0A2<strong>80</strong>860085FE06D0EF08FF8920AD85C2C560FE69181891AAC002608507A5864BFBFCA9A4A9ClC2003E2C2B2008A4FCD<strong>80</strong>0F<strong>80</strong>685FE859746FF03608520C2CCABFCC82E8406C06969FD8585E6Bl15A514FFC2A9AS009700C88<strong>80</strong>07E85Bl4A85D7C5903<strong>80</strong>5DD026002A9FD2620A515B620FF02799F060B7C5C6B6F61C4F2FlB7F9B82D83450C97575044IE2B31DAF4EB4D93DE0D2275088B7DFlA5AF2437F9DDE958629AB5BestsellingC-128 INTERNALSDetailed guide on the 128soperating system, Explainsgraphic chips^ MemoryMan ago mant unii, Input andoutput, <strong>80</strong> column graphicsand luIly-commerited ROMlistings, more. SOCpp $19.95C-12BTRICKS&T1PSFilled with fascinating andpractical Info on the C-126.Create multiple screens, <strong>80</strong>column hires graphics, learnbank switching. 300 pages ofuseful information for everyone. Si 9.95from a nameyou can count onC-126 BASJC Training CSuldaYour essential introduction to programming In BASIC on your C-128. Chapterquizzes to test your knowledge on whatyour learning. Discusses problemanalysis; descriptions ol all BASICcommands with many examples; monitorcommands; utilities; much mote. S16.951571 INTERNALSVital Insiders' guide.Sequential, relative tills, anOdirect access commands.Describes DOS routines.Discusses the various diskformats. Fully-commentedROM listings. 450pp 319.95C-128 CP/M User's GuideTake a revealing look intoCP/M on your '128. Essenlialguide with a simpleexplanation of the operatingsystem, memory usage,CP/M utility programs,submit flos. 300pp $19.95C-128 5ASIC7.0 InternalsGel all the inside informationon BASIC 7.0. Thisexhaustive handbook iscomplete with fully commented BASIC 7.0 ROMlistings, processor control,programs, more. S24.95C-12B PEEKS* POKESPresents dozens of programming quick-hitters, facinatingand useful techniqueson tne operating system,stacks, zero page, pointers,!he BASIC interpreter, andmore. 240pp $16.95128/64 <strong>Computer</strong> Aided DesignLearn the fundamentals of CAD whiledeveloping your own system on the 128or '."■■■. with Simon's Base Create objectson-screen to dump to a printer. 3D techniques, mirroring and duplicating images,hatching. All the information you need tocreate a mini-CAD system. 300pp $19.95I wdCaroiDooie 12B *etfittemaiKsd CanroOoicUi.For the most complete series of C-128 or C-64 books available,call for the name of your nearest bookstore or dealer. Or orderdirect by calling 616/241-5510. Add $4.00 per order for S&H.Foreign add $10.00 per book. Call or write for your freecatalog of books and software. Dealers inquires welcome.Over 1500 dealers nationwide.Phone (616)241-5510AbacusIWMIIIIIITelex 709-101 • Fax 616/241-5021P.O. Box 7219 DeptC2 Grand Rapids, Ml 49510
- Page 2 and 3:
We just did something only the best
- Page 4 and 5:
icate Maker!Because accomplishments
- Page 6 and 7: Editor'sNotesThis is the 81st issue
- Page 8 and 9: PublisherFounder/Editor in ChlelSen
- Page 10 and 11: Selby BatemanFeatures Editor....
- Page 12 and 13: , ■■-■■'■ ;-.-..■■■
- Page 14 and 15: The new Compaq Deskpro 386 is among
- Page 16 and 17: Selby Bateman, Features Editoricrop
- Page 18 and 19: 68030 chip, which should be readyfo
- Page 20 and 21: computer are often called proprieta
- Page 22 and 23: Tom R. Halfhill, Staff Editorore By
- Page 24 and 25: Selby Bateman, Features Editorasers
- Page 26 and 27: MicroscopeSheldonLeemonThe new Appl
- Page 29 and 30: Fly to Florida!Scenery Disk # 7 cov
- Page 31 and 32: contains twice as many vertical pix
- Page 33 and 34: And you don't even have toleave you
- Page 35 and 36: Increase your knowledge about all a
- Page 37 and 38: BEST SERVICE IN THE USA • ONEDAY
- Page 39 and 40: BATTERIES Sg? INCLUDEDTHE FOUR LETT
- Page 41 and 42: LYCOCOMPUTERMARKETING & CONSULTANTS
- Page 43 and 44: ATARIJKLYCOCOMPUTERMARKETING & CONS
- Page 45 and 46: QuickProDOSCatalog For AppleLarrySh
- Page 47 and 48: Behaved Batch FilesCOPY CON: YESNO.
- Page 49 and 50: ASC II ExpressBalance of PowerBally
- Page 51 and 52: END**Beap:*SOUND 800,1,100,0:SOUND
- Page 53 and 54: COMMODOREAPPLEC64 COMPUTER C-128COM
- Page 55: FileCompressorChrisRogersThis Commo
- Page 59 and 60: \Make Your ChoiceC-64 or C-128BASIC
- Page 61 and 62: RP0A71i4C0A79:1B0A81:0A0A89:1F0A91i
- Page 63 and 64: ACCOLADEHardball 24.95Mean 18 31.95
- Page 65 and 66: Ibefore a move is made. Each compar
- Page 67 and 68: PH 1390 IF P$="C" AND T0>=7 THEN .1
- Page 69 and 70: 5D 2310 DATA 30,34,34,30,2,2,2,0FE
- Page 71 and 72: I10 630 P$="C"BC 640 REM tt PICK BE
- Page 73 and 74: ,——■———U-J>G>Player■p
- Page 75 and 76: INSIGHT:AtariBillWilkinsonNumber-Ba
- Page 77 and 78: EMPX,TEMPY,MASKBH 9140 TEMPX-X1TEMP
- Page 79 and 80: AmigaViewSheldonLeemonThe Latest Am
- Page 81 and 82: Computers and SocietyDavid D. Thorn
- Page 83 and 84: RUSH POSTAGE-PAID CARDFOR YOUR FREE
- Page 85 and 86: Train with NRI for a high payingcar
- Page 87 and 88: PersonalComputingDonald B. irivette
- Page 89 and 90: 3M DiskettesICEI has an outstanding
- Page 91 and 92: key (Atari logo key on 400/800 mode
- Page 93 and 94: MLXMachine Language Entry ProgramFo
- Page 95 and 96: THEN PRINT IN?iPRINTM{UP][5 RIGHT}"
- Page 97 and 98: When you want to talk price.AmdekMO
- Page 99 and 100: THE LOWESTTHE BESTPRICESSERVICEELEC
- Page 101 and 102: fNOWAVAILABLE AT24$O>!00The Mew Car
- Page 103 and 104: COMPUTERSFREE Reader Information Se
- Page 105 and 106: STARGLIDERJJtarglider — is an all