← More Apple Secrets

More Apple Secrets

From the originals

13 scans

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

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

Image 1

more Apple Secrets

more Apple® Secrets For the Apple II Series The Best Tips and Techniques From nibble The Key to Hidden Apple Treasures

A book cover with a red keyhole-shaped window framing an Apple IIe computer with a tan case and a gray Apple IIc-style computer below, showing green text on monitor screens, with a red diagonal banner in the top right corner.

Reading notes: The word 'more' is written in stylized blue script and may be read as a separate lead-in to the red 'Apple Secrets' headline. The red diagonal banner text 'For the Apple II Series' is in yellow and was read from a rotated layout. Small label text on the computer hardware and screen contents is not legible and was not transcribed.

Printed product names
Apple II Series · nibble
Languages
English
PDF page 1

more Apple Secrets

more Apple® Secrets The Best Tips and Techniques From nibble For the Apple II Series The Key to Hidden Apple Treasures

A book cover with a red keyhole-shaped window framing two vintage Apple computers with green-text monitors, one beige Apple IIe and one light gray Apple II, on a cream background with a red diagonal banner in the upper right corner.

Reading notes: The word 'more' is in a stylized blue script and the headline reads 'more Apple Secrets' with 'more' possibly a separate script element. The small text on the beige computer reads 'Apple IIe' and is partly legible at image scale. The keyboard and monitor screen text inside the keyhole are not legible and were not transcribed.

Printed product names
Apple II Series · nibble
Languages
English
PDF page 2

More Apple Secrets Edited by David Szetela Nibble Publications MicroSPARC, Inc. Concord, MA

A title page with a large serif headline 'More Apple Secrets' centered between horizontal rules, with the editor credit below and the publisher block near the lower middle on a off-white background, with faint small copyright and fine print visible but too light to read reliably.

Reading notes: Faint small print in the middle and lower sections (copyright notice and front-matter paragraphs) is too light to transcribe reliably and is omitted rather than guessed. Fine print lines between the editor credit and publisher block appear as ghosted text and were not transcribed.

Printed product names
Apple
Languages
English
PDF page 3

Editorial Direction: David Szetela Technical Direction: David A. Krathwohl Copy Editors: Mary Locke, Charlotte A. Szetela Technical Editors: Rich Williams, Owen Linzmayer Cover: Paul J. Gagnon Printed and bound by CSA Press, Hudson, MA Copyright © 1986 by MicroSPARC, Inc., 45 Winthrop Street, Concord, MA 01742, (617) 371-1660. All rights reserved. No part of this book may be reprinted, reproduced, or utilized in any form or by any electronic, mechanical or other means, now known or hereafter invented, including photocopying and recording, or in any information storage and retrieval system, without permission in writing from the Publisher. MicroSP ARC, Inc. Limited License for the Use of the Programs in this Book: MicroSP ARC, Inc. is the owner of all rights in the computer programs printed in this book. To allow for their use by the purchaser of this book, MicroSPARC, Inc. grants to such purchaser, only, the Limited License: (1) to enter these programs into the purchaser's computer, and (2) to place such computer programs on a diskette for personal use. Any other use, sale, distribution or copying of these computer programs without the written consent of MicroSP ARC, Inc., or obtaining, or purchasing copies of these computer programs other than from MicroSP ARC, Inc. or its authorized distributors is in violation of this Limited License and is expressly prohibited. ISBN 0-912341-24-8 Library of Congress Number 86-063016 Printed in the United States of America 1 2 3 4 5 6 7 8 9 86 87 88 89 90 91 92 Apple is a trademark of Apple Computer, Inc.

Reading notes: Primary heading is absent; copyright page contains no headline

Printed product names
Apple
Printed dates
1986 · 86-063016 · 86 87 88 89 90 91 92
Languages
English
PDF page 4

TABLE OF CONTENTS

TABLE OF CONTENTS Introduction ... ...................... .. . .......... . .. .. .. .............. . .......................... .v Disk Head Cleaner by Art Mena .................... ... ........ ................. ... .. ......... .1 DOS 3.3 Fast Load Enhancement by Thomas N. Burt ..... ..... ... ... . .................... 5 RAM-PAD by Sandy Mossberg ............................................................. 13 TAB XY by S. Scott Zimmerman ......... .... ............ . ..... ... ... ..... .... . ............ .21 Verify and Lock by Doug Denby ........................................ .............. . .. ... 24 Apple Ile Cast of Characters by Sandy Mossberg . .......... .. ....... ..................... 26 Applesoft Tricks by Craig Peterson .. . ...... .. .......... . ...... . .... ... ... ... ...... .. . .... . . .31 DOS Catalog Dater by Art Mena ........... .. ........ ..... ........ ........................... 36 DOS Error Message and Command Changer by Donald Miller ...................... ... .44 Practical Sort for Beginners by JoAnn Miner .......... . ..... .. ... . . ...... .. .. . . ..... ...... 47 Apple Slot Finder by Steven Weyhrich .. ................................ ...... ...... .. .... . .50 Exec Mini-Assembler by Bill Parker ........................................................ 54 Visi-Sort Plus by Andre Samson ................ .... .................... ... ............ ..... 58 Binary Dump by Tim Damon .. .... ... .... . ......................... ..........................61 Hypercounter by Ron Macken and Bill Consoli ............... .......................... .. 65 Custom Catalog by Mas on Jones . ... ........ . ....... ...... .. .. .. .... . .. .... .. .. ..... .. ... .. . 67 80-Column Magic by G. Mark Fabbi ............... .........................................71 Eleven Free Sectors by Les Stewart ......... .. .... . ........................................ . 75 Fancy Hi-Res Picture Loading by Art Arizpe .. ..... ........... ............................ 77 Double Hi-Res Graphics for the Apple II Plus by A lg is J. Matyckas ....... . ..... ... ... 84 Additional Hi-Res Colors by Matthew M. Storm ............ ... ... ... ... ............ ...... 90 The Discourager by Mark Allen .. ......................... ............. ........ ........ ...... 92 Command Handler by Gary Bond.. ....................... . ... ........ ........ .............. 94 FID Plus by Joe Humphrey ...... ........... .......................... ....................... 97 Label Printer by Robert C. Brock.. ...... . ................ .. .......... ....... ............... . 99 Break Processor by John J. Broderick .... ............................ .... .... ..... ...... . .101 Decision Maker by Beirne L. Konarksi ... .. ........................................... . ... 103 Print Using TAB by Clay Carr ............ ... ... . .... .... . . ....... . ..................... . .. 105 Applesoft Variable Dump by Tom Gabriele ............ .... .. ...... .. . .. . ..... .... . .. ..... 109 Flashing Cursor by Cecil Fretwell ............. .... ............... ... .. .................... .113 Auto Date by Clay Carr .................................... .................................. 120 Free Sector Chart by Donald Jessop .............................................. . ........ 122 Pro DOS RESET Trap by Eric Seiden ... ... ........... . ..... .. ..... ... ..... .. ..... .... ... .. 124 Shades and Textures by Ted Huntington .. ........................ .................... .. .. 126 Auto Case Convert by Bruce E. Howell ................................ ... ... .. . ... ... .... 128 Software Volume Control by Phil Goetz ........ ... ... . ... .... ....................... . .... 130 80-Column Catalog by Robert C. Meltzer ............. ......... .......................... 133 Hi-Res Characters by Vinay, Vivek and Vijay Pai.. .... . ....... ........ .... ..... .... . .. . 138 Applesoft Windows by Michael A. Seeds .. ..... ..... .................................... 143 80-Column Screen Dump by A.R. Clayton ... ... ................ ..... .... ........ .. ...... 148 Catalog Plus by Bryan Costales .......... ... ..................... .......... ... ..... .. .... .. 15 1 /RAM-- A Free RAM Disk for ProDOS Users by Aaron Messing ............... ..... 159 LUCK -- A Lower to Uppercase Converter by Kirk Paterson .............. .......... .. 161 Mini-Assembler Switch by Charles Gilbert.. ............................................. 166 Text Ups and Downs by Chester H. Page .. ............................... ... ...... . ..... .167 Applewriter Ile by Steven Meuse ..... ... . ................................................. . 174 lll

Reading notes: Some OCR spacing irregularities in author names and page numbers, e.g. 'Mas on Jones', 'A lg is J. Matyckas', 'Konarksi'

Printed product names
Applewriter Ile · Apple Slot Finder · Visi-Sort Plus · Catalog Plus · Hypercounter · Custom Catalog · Verify and Lock · Free Sector Chart · Exec Mini-Assembler · Mini-Assembler Switch · FID Plus · Label Printer · Decision Maker · Break Processor · Command Handler · Shades and Textures · Auto Case Convert · Software Volume Control · 80-Column Catalog · 80-Column Screen Dump · 80-Column Magic · Hi-Res Characters · Applesoft Windows · Applesoft Tricks · Applesoft Variable Dump · Flashing Cursor · Auto Date · Pro DOS RESET Trap · DOS Catalog Dater · DOS Error Message and Command Changer · DOS 3.3 Fast Load Enhancement · Disk Head Cleaner · RAM-PAD · TAB XY · Apple Ile Cast of Characters · Practical Sort for Beginners · Binary Dump · Eleven Free Sectors · Fancy Hi-Res Picture Loading · Double Hi-Res Graphics for the Apple II Plus · Additional Hi-Res Colors · The Discourager · Print Using TAB · RAM Disk for ProDOS Users · LUCK -- A Lower to Uppercase Converter · Text Ups and Downs
Languages
English
PDF page 5

Beep Customizer by John Baumbach .. ............. ...... ... ...................... ....... . 177 Status Seeker by Paul Raymer ... ... .. .. .......... ...... ..... ... . ...... ... .. . ........... .. . . 182 Vigilant FID by Donald W . Miller, Jr ..... . ............. ... .. .... ..... .... . ........ .. ... ... 184 Eye Openers by Iver P . Cooper ... ... . ........ ......... .... .. .... ... ... .... .... ............ 190 Imagewriter Screen Dump by Gerald Blalock.. .......................................... .195 Appendix A: Entering More Apple Secrets Program Listings .. ............. .. .......... 198 iv

Reading notes: Table of contents entries contain irregular spacing and dot leaders; author names and page numbers may need verification.

Languages
English
PDF page 6

INTRODUCTION The Apple II Plus, Ile, Ile and Hos are full of hidden treasures -- discover them for yourself in this exciting collection of articles and programs. More Apple Secrets is packed with over 50 of the best Apple Tips and Techniques from Nibble Magazine. Nibble's experts teach you their tricks for creating text windows like those on the Macintosh, automatically converting lower-case letters to upper-case, compressing Hi- Resolution graphics files so that they take up less disk space, and speeding up programs enough to even hear the difference! Or perhaps you want to know how to add dozens of new colors to your Hi-Resolution palette, or enhance your programs with two-voice music and sound effects. Easy! These programming treasures and many more can be discovered in More Apple Secrets. If you are new to Apple computing, you'll appreciate the step-by-step instructions for entering and saving programs. It's just like a cookbook for Apple users. (See Appendix A.) Each Apple Secret is a tested, foolproof method for streamlining your Applesoft and machine language programs, ranging from special programming tips to specific techniques. Whether you're new to computing or a seasoned programmer, this book will provide programs and tips you can use. Most articles include subroutines you can use in your own programs. The authors give detailed, line-by-line explanations of the programs so you can understand the programming logic. And the demonstration programs show you how to use the techniques. You'll find programs that let you: • Print Hi-Resolution text • Create text windows like the Apple Macintosh •Print custom labels • Explore your Apple's memory • Customize your favorite DOS command • Modify Applewriter to work on the Uc •Learn how the computer sorts information ... and much more. More Apple Secrets programs are also available on diskette; see the bound-in ordering card for details. v

Reading notes: Possible OCR spacing artifacts in several words (e.g., 'Ile, Ile and Hos' likely refers to Apple IIe, IIc, and IIgs; 'Uc' likely a truncation of 'IIc'). Bullet list items appear to have irregular reading order in the extracted copy.

Printed product names
Apple II Plus · Apple Macintosh · Applewriter · Applesoft · DOS · Nibble Magazine · More Apple Secrets
Languages
English
PDF page 7

Disk Head Cleaner

Disk Head Cleaner Prevent the loss of important programs or data by keeping your 5 .25" disk drive heads clean. This DOS 3.3 program makes sure your cleaning kit covers the entire surface. by ArtMena To paraphrase a line by Jack Webb in the movie The DJ., "Your disk drive is your friend. If you take care of it, it will take care of you. But if you ever let it down, it will certainly let you down." Your disk drive is about the most essential part of your system. Yet, it might be the cause of many headaches. It has moving parts that wear, and more important, they get dirty. Using a disk drive cleaning kit and the Head Cleaner program, you can keep your drives clean and healthy. DISK DIRT If you don't abuse your drive, mechanical wear may never be a problem. However, dirt can cause annoying I/O errors and even destroy the data on your disk. The dirt comes from several sources. One source is dust in the air. However, the disk drive opening is very small and unless your Apple is in a very dirty environment, very little dust enters the drive. The major source of dirt is the disks themselves. When you insert a disk and close the door to the drive, the disk is pressed against the read/write head by a felt pad. While the disk is rotating, friction between the disk, read/write head and felt pad cause particles of the disk surface to flake off and contaminate the head. Even if you use a high-quality disk, it will still lose its surface over a long period of use. Hard disk drives do not allow the head to touch the disk surface and consequently the surface does not wear. Because all floppy disks will wear, you should always keep backup copies of all of your important programs and data files. CLEANING KITS AND TIPS To keep my Apple clean, I always cover it when it's not in use. In addition, I leave the disk drive doors open. If you close the door with no disk in the drive, the felt pad touches the head and may contaminate it. However, in spite of all these precautions, the head will still get dirty. One of the most important accessories you can have is a disk head cleaning kit The kit I have contains two cleaning disks and a bottle of cleaning fluid. The cleaning disks are similar to regular disks, except that the magnetic disk has been replaced by a cellulose disk. The fluid is usually isopropyl alcohol, which dissolves the dirt from the head and evaporates entirely, leaving the disk read/write heads clean. USING A CLEANING KIT Using a cleaning kit is easy. Squirt some fluid onto a cleaning disk, place the disk in the drive and run the read/write head across the felt pad. I first did this by typing CATALOG. This worked, but only a small portion of the cleaning disk was being used, i.e., the track that DOS thought should contain the directory. Since the cleaning kit is not cheap, I decided to write a program that would run the head between the inner and outer tracks of the cleaning disk in order to use as much of the cleaning surface as possible. USING THE HEAD CLEANING PROGRAM The Head Cleaner program (Listing 1) starts by asking you which disk drive head.you want to clean. You should specify 1 or 2. Pressing 0 will end the program. The Head Cleaner program will run the head back and forth from track $0 to $22 (0-34) four times. This takes about 30 seconds and should be sufficient to clean the head surface. 1

Languages
English
PDF page 8

If you're an average user, you should clean your disk drive's head about once a month to avoid any dirt buildup. This simple act will probably save you much aggravation and may prevent the loss of important programs or data. ENTERING THE PROGRAM Type in the Applesoft program shown in Listing l, and save it with the command: SA VE HEAD.CLEANER HOW IT WORKS The program uses the DOS 3.3 RWTS (Read or Write a Track or Sector) routine to move the read/write head across the disk. The RWTS is a set of subroutines that DOS uses to read or write sectors on the disk. However, I do not want to read or write anything, so I use it to find or "seek" the disk tracks. In order to use the RWTS, I had to set up a table of numbers called the IOCB (Input Output Control Block). This table contains the specific instructions for the routine. The IOCB is contained in the DATA statements in lines 800-810. It is stored in memory using the POKE statements immediately following the DATA statements. Since we do not want to read or write anything, we will use the zero (or null) command code to cause the head to go to the desired tracks. LISTING 1: HEAD.CLEANER 10 REM ********************** 11 REM * HEAD.CLEANER * 12 REM * BY ART MENA * 13 REM * COPYRIGHT (C) 1983 * 14 REM * BY MICROSPARC, INC * 15 REM * CONCORD, MA. 01742 * 16 REM ********************** 100 REM 110 REM 120 REM USE THIS PROGRAM WITH 130 REM A DISK DRIVE HEAD 140 REM CLEANING KIT TO KEEP 150 REM YOUR DRIVES CLEAN. 160 REM 170 REM JUST ENTER "RUN" AND 180 REM FOLLOW THE DIRECTIONS . 190 REM 200 REM 210 B$ = CHR$ (7) + CHR$ (7) + CHR$ (7) 220 GOSUB 820 230 REM 240 REM GET THE DRIVE NUMBER 250 REM 260 TEXT : HOME : POKE - 16368,0 270 VTAB 3: HTAB 12: INVERSE : PRINT " HEAD CLEANER "· NORMAL 280 PRINT : PRINT TAB( 13)"BY ART MENA" 290 PRINT CHR$ (7) 300 PRINT : PRINT " ENTER THE DISK DRIVE NUMBER THAT" 310 PRINT "YOU WANT TO CLEAN (1 / 2,0=END) ?" 320 PRINT"===>";: GET DR$ 2

Reading notes: Source text contains spacing irregularities in words such as 'SA VE' and 'DOS', which may reflect OCR artifacts. Line 270 has a stray character ('·') that may be a damaged symbol.

Printed product names
DOS 3.3 · Applesoft · RWTS · IOCB · HEAD.CLEANER · MICROSPARC, INC
Printed dates
1983
Languages
English
PDF page 9

330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 480 4 90 500 510 520 530 540 550 560 570 580 590 600 610 620 630 640 650 660 670 680 690 700 710 720 730 740 750 760 770 780 790 800 DR = VAL (DR$) IF DR$ = "0" THEN TEXT : HOME : IF DR < > 1 AND DR < > 2 THEN PRINT "INCORRECT DISK DRIVE";B$: 1000: NEXT I: GOTO 260 PRINT DR$: PRINT REM REM PRINT DIRECTIONS REM END PRINT : PRINT : FLASH NORMAL : FOR I = 1 TO PRINT B$: PRINT " PUT SOME CLEANING FLUID ON A 5 1/4" PRINT "INCH CLEANING DISKETTE AND PLACE IT" PRINT "IN DRIVE NUMBER "DR$". PRESS ";: INVERSE : PRINT " RETURN ": NORMAL PRINT "WHEN YOU ARE FINSIHED." REM POKE - 16368,0 IF PEEK ( - 16384) < > 13 AND PEEK ( - 16384) < > 141 THEN GOTO 460 POKE - 16368,0 REM POKE 818 ,DR POKE 34,10: HOME PRINT : PRINT CHR$ (7)" RUNNING THE HEAD BACK AND FORTH" PRINT II 4 TIMES. PRESS II; : INVERSE : PRINT II ESC II; : NORMAL : PRINT " TO STOP" PRINT REM REM REM REM REM USE THE RWTS "SEEK" COMMAND TO RUN THE HEAD ACROSS THE DISK FOR CNT = 1 TO 4 VTAB 15: PRINT "COUNT ==> "; CNT FOR TRACK = 0 TO 34 GOSUB 710 NEXT TRACK FOR TRACK = 34 TO GOSUB 710 NEXT TRACK NEXT CNT STEP PRINT PRINT "ALL DONE 1 " - 1. FOR I = 1 TO 1500: NEXT I: GOTO 260 REM REM HEAD SEEK SUBROUTINE REM IF PEEK ( - 16384) = 27 OR PEEK ( - 16384) = 155 THEN POP : GOTO 260 VTAB 17 PRINT "SEEKING TRACK==> ";TRACK;" II POKE 820,TRACK CALL 837: REM CALL RWTS RETURN REM IOCB FOR RWTS DATA 1,96,l,0,0,0,65,3,0,128,0,0,0,0,0,96 3

Reading notes: Source is BASIC program listing with line numbers and OCR-style spacing rather than advertising copy; headline and product fields left empty. Some characters appear damaged or misread, e.g. 'FINSIHED' and 'II' quote marks. Reading order of the listing is fragmented across line-number gaps.

Languages
English
PDF page 10

810 DATA 1,0,0,239,219,160,48,169,3,32,217,3,96 820 RESTORE 830 FOR I = 816 TO 844 840 READ D: POKE I,D 850 NEXT I 860 RETURN 4

Reading notes: Source appears to be BASIC program code with DATA, POKE and RESTORE statements rather than advertising copy; no headline, products, prices or dates are explicitly printed.

Languages
English
PDF page 11

DOS 3.3 Fast Load Enhancement

DOS 3.3 Fast Load Enhancement Fast Load Enhancement replaces the standard DOS 3 3 WADS with a high efficiency Load function that is two to five times the speed of LOAD times. by Thomas N. Burt I spend a lot of time doing assembly language and BASIC programming, so I get a little weary waiting for DOS 3.3 to load long programs. Nine months ago, I got a hard disk drive with the intent of "killing the problem with hardware." I was naturally expecting fantastic performance gains. To my dismay, the hard drive was barely twice as fast as the floppy disk drive. Obviously, something was amiss inside of DOS 3.3 itself. Armed with a copy of Beneath Apple DOS by Don Worth and Pieter Lechner, the Apple DOS Reference Manual, a good disassembler, and specifications for the Apple Disk II drive, I undertook to resolve the problem. First I'll explain DOS 3.3 110 performance, why DOS 3.3 is slow and how to speed it up. The program Fast Load Enhancement is a simple modification that you can install as a permanent part of DOS 3.3. The program can speed up the LOAD, BLOAD, RUN and BRUN commands by up to five times over their native DOS 3.3 performance. For example, the time to LOAD a 93-sector BASIC program with standard DOS 3.3 is 23 seconds, versus 5.5 seconds with the Fast Load Enhancement. DOS 3.3 ORGANIZATION A Disk II disk has 35 tracks of 16 sectors each. A sector is the smallest unit of information on a disk that can be accessed separately. Each sector holds 256 bytes of data plus an address header that identifies the track, sector number and volume number. Each track corresponds to a discrete position to which the read/write head of the disk drive can be positioned. As the disk drive turns, each sector on the track rotates under the head and can be read from or written to. Sectors are numbered consecutively around the track from 0-15, in the order of rotation under the read/write heads. Over this physical sector numbering, DOS 3.3 superimposes a logical numbering as shown in Figure 1 (values are decimal; hexadecimal equivalents are shown in parentheses). FIGURE 1: DOS 33 Logical Sector Numbering logical 15 ($F) 14 ($E) 13 ($D) 12 ($C) 11 ($B) 10 ($A) 9 ($9) 8 ($8) track physical 15 ($F) 2 ($2) 4 ($4) 6 ($6) 8 ($8) 10 ($A) 12 ($C) 14 ($ E) track logical physical 7 ($7) 1 ($1) 6 ($6) 3 ($3) 5 ($5) 5 ($5) 4 ($4) 7 ($7) 3 ($3) 9 ($9) 2 ($2) 11 ($B) 1 ($1) 13 ($D) 0 ($0) 0 ($0) Essentially, the logical sector order is descending from 15-0 with the logical sectors on every other physical sector. Sectors 0 and 15 are handled specially so that their physical and logical numbers agree. Two and 1116 complete turns of the disk are required for all 16 logical sectors to pass under the read/write heads in consecutive order. This descending order logical 5

Reading notes: Repeated 'DOS 3.3' and 'Apple DOS' spans appear with inconsistent OCR-style spacing, so exact spelling of these terms may be uncertain. Figure 1 sector table is garbled and its column order is unclear. Trailing page number and sentence fragments may be out of reading order.

Printed product names
Apple DOS · Apple Disk II · Beneath Apple DOS · Apple DOS Reference Manual
Languages
English