← Enhancing Your Apple II Vol. 1 1982

Enhancing Your Apple II Vol. 1 1982

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

ENHANCING YOUR APPLE II® VOL. 1 BY DON LANCASTER 21846 ENHANCEMENTS INSIDE • Two Glompers • Software Color Killer • Tearing Into Machine Language • Field Sync • Fun With Mixed Fields • 121 Lores Colors • The Glitch Stomper • Gentle Scroll • Fast Backgrounder

A book cover showing a red apple with a rainbow-striped leaf and a rainbow-striped pencil in front of several white apples, with a bold red title above and a bulleted list of enhancements at the bottom right.

Reading notes: The 'II' in the title is followed by a small registered-trademark symbol, rendered here as ®. The number 21846 in the upper right corner is a catalog or page number and is included as printed.

Printed product names
Apple II
Languages
English
PDF page 1

ENHANCING YOUR APP

ENHANCING YOUR APP E 11 8 VOL.1 ~~~ DON LANCASTER ENHANCEMENTS INSIDE • Two Glompers • Software Color Killer • Tearing Into Machine Language • Field Sync • Fun With Mixed Fields • 121 Lores Colors • The Glitch Stomper • Gentle Scroll • Fast Backgrounder 21846

Reading notes: The header line 'ENHANCING YOUR APP E 11 8' is ambiguous: 'E 11 8' could be an issue or code and is not clearly a date. The number '21846' at the end is unlabeled and its meaning is uncertain. 'VOL.1' and '~~~' are decorative or uncertain marks in the header. The listed items are article or enhancement titles rather than clearly advertised products, so productNames is left empty. Layout and reading order are inferred from the supplied extracted text rather than verified from the image.

Languages
English
PDF page 2

The image is a entirely blank white page with no visible artwork, layout, or text.

Reading notes: No visible text or graphics were found in the image, so all printed fields are empty.

PDF page 3

DON LANCASTER heads Synergetics, a new-age design and consulting firm involved in microcomputer applications and electronic design. He is well known as the author of the classic CMOS and TTL Cookbooks. His many other books and hundreds of articles on personal computing and electronic applications have set new standards as understandable, useful, and exciting technical writing. Don's other interests include ecological studies, firefighting, cave exploration, bicycling, and tinaja questing. Other SAMS books by Don include Active Filter Cookbook CMOS Cookbook TTL Cookbook Cheap Video Cookbook Son of Cheap Video, TV Typewriter Cookbook The Hexadecimal Chronicles, Don Lancaster's Micro Cookbook, and The Incredible Secret Money Machine.

Printed product names
Active Filter Cookbook · CMOS Cookbook · TTL Cookbook · Cheap Video Cookbook · Son of Cheap Video · TV Typewriter Cookbook · The Hexadecimal Chronicles · Don Lancaster's Micro Cookbook · The Incredible Secret Money Machine
Languages
English
PDF page 4

The image is a entirely blank white page with no visible artwork, layout, or markings.

Reading notes: No visible text found; the page appears blank white.

PDF page 5

*Apple and Apple II are registered trademarks of Apple Computer Inc., Cuper- tino, CA. Copyright @ 1982 by Howard W. Sams & Co., Inc. Indianapolis, IN 46268 FIRST EDITION SECOND PRINTING-1983 All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. While every precaution has been taken in the preparation of this book, the publisher assumes no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained herein. International Standard Book Number: 0-672-21846-1 Library of Congress Catalog Card Number: 82-50013 Edited by: Frank N. Speights Illustrated by: T. R. Emrick Printed in the United States of America.

Reading notes: Line-break hyphenation in 'Cuper-tino' and 'Copyright' lines may affect reading order

Printed product names
Apple II
Printed dates
1982 · 1983
Languages
English
PDF page 6

CONTENTS INTRODUCTION •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• ? ENHANCEMENT 1 Two GLOMPERS •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• 11 Two methods to eliminate hassles over rf changeover switches. ENHANCEMENT 2 PROGRAMMABLE CoLoR KILLER ...................................................... 17 Simple modification that eliminates color fringes on HIRES text displays under software control. ENHANCEMENT 3 TEARING INTO MACHINE-LANGUAGE CoDE •••••••••••••••••••••••••••••••••••••• 29 An astonishingly fast and simple way to tear apart someone else's machine-language program. ENHANCEMENT 4 fiELD SYNC •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• 89 One wire add-on for stunning new animation, game, video, and control possibilities.

Reading notes: Several OCR-style characters such as '?' and '•' appear in the table of contents; page numbers may be misread.

Printed product names
GLOMPERS
Languages
English
PDF page 7

ENHANCEMENT 5 FuN WITH MIXED fiELDs •••••••••••••••••••••••••••••••••••••••••••••••••••••••••• 11 7 Mix or match text, HIRES, and LORES any place on the screen, fast and flicker-free. Also reveals the secret of the 121 LORES colors. Or does it? ENHANCEMENT 6 GLITCH STOMPER •••••••.•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• 159 Add-on adaptor that further improves field sync and mixed field switching. ENHANCEMENT 7 GENTLE ScRoLL •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• 171 Easy to use program gives you gentle or crawling scrolls that are easily read while in motion. ENHANCEMENT 8 fAST 8ACKGROUNDER •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• 201 Utility program that gives you hundreds of HIRES colors or zillions of background patterns. INDEX •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• 229

Reading notes: OCR-style spacing and character irregularities such as 'fiELDs', 'ScRoLL', '8ACKGROUNDER' and '.•••' leaders may distort spelling Heading for Enhancement 5 is 'FuN WITH MIXED fiELDs' and page numbers are printed inline, so the primary heading is ambiguous

Printed product names
GLITCH STOMPER · GENTLE SCROLL
Languages
English
PDF page 8

INTRODUCTION If you use your Apple II personal computer often enough, long enough, and late enough, eventually your Apple may decide to reveal "IT" to you. "IT" is a series of revelations on where we came from, where we are, and where we are heading. Most often, your Apple will reveai"IT" to you very early on some morning in your second or third year of Apple use. The "IT" revelation is for real. Just ask anyone who has worked with an Apple long enough. The wry smile and knowing nod tells all. If my Apple will forgive me, I'd like to reveal some of the present "IT" messages to you, for they say a lot . . . - ... - The Apple II is far and away the single most powerful tool ever put in the hands of many individuals on an uncontrolled and unregulated basis. The new personal freedoms and the potential opportunities that result from this are almost beyond belief. It's now a whole new ball game, a jump into hyperspace from where we are. The Apple II is far more significant and it will have a vastly greater impact than such short term frivolities as the automobile and television-and, possibly, even more than the printed word itself. Even time may eventually be measured as "BA" and "AA," split at that magic date in the spring of 1977. - ... - The Apple experien~e is absolutely and totally unique. There is no other product available anywhere, at any price, that adapts itself as easily, as well, and as conveniently to whole new worlds of strongly user-oriented applications. The unbridled potential of Apple's sixteen 1/0 sockets is utterly awesome. - ... - Future historians will recognize the Apple II as the DC-3 of the microcomputer revolution. - ... - There are several reasons for Apple's success. The first is simply being in the right place at the right time. The second is blind luck. But, the third and most important reason is that Apple has lacked "us-versus-them." 7

Reading notes: Source text contains OCR-style artifacts such as 'reveai' and 'ball' spacing; interpretation of '1/0' as I/O is uncertain.

Printed product names
Apple II
Printed dates
spring of 1977
Languages
English
PDF page 9

8 Introduction Apple has always treated its users like they were friends and not the enemy. They didn't seal the works up, or keep you out of the system monitor, or hide their documentation under an armadillo somewhere, or try to prevent you from doing easy add-ons, enhancements, or expansions. Apple didn't force software people to buy an expensive development system. Instead, the Apple II itself is its own superb development tool. There's no fancy modules or other restraints that keep anyone from getting into the Apple support business. In fact, the widest possible number of Apple hardware and software suppliers was encouraged from the start. And the "our engineering department not only knows best, but they are God" attitude of other manufacturers is simply not there with Apple. - .. ·- The garbage-to-good ratio of Apple software is skyrocketing. The quantity of truly astoundingly atrocious Apple software is now running at least a thousand times ahead of the useful and reasonable stuff. And, it's getting worse. Garbage software fails to use the unique Apple resources to the utmost. This type of software may be as snotty as most of the dino stuff. It may use fancy packaging and I or expensive promotion to try and make up for sloppy and poorly thought-out coding. Garbage software is usually locked, so that the user cannot back up or modify the program to suit his own needs. It is usually slow and awkward to boot. Garbage software also usually demands oddball codings and disk formats that guarantee incompatibility with everything else. Garbage software is caused by people who are greedy, sloppy, dumb, inex- perienced, in a hurry, or all five. Garbage software is not user oriented. It is overpriced. It has miserable error recovery. It tries to solve some small specific problem, rather than being a generalistic tool that can handle a broad class of problems. Garbage software steals the ideas of others, but can only come up with a second-rate result at best. It attacks problems that not only do not need solving, but which shouldn't be solved at all with a computer. Please, if you are going to write this sort of trash, go get yourself a different brand of personal computer. We don't need you and we definitely don't want you. - .. ·- Any attempt whatsoever at copy protection will hack off and inconvenience your legitimate users and it will dramatically increase the number of bootleg copies of your program in circulation. It will also price your program out of the market. A user of software demands the absolute right to make backup copies of everything he buys, and must have the right to examine and modify all coding in that software so he can meet his own needs. These are mandates. The big thing about copy protection is that it doesn't. A year's effort by a crackerjack military cryptography team can usually be undone in fifteen minutes, between klingon zappings, by your average fourteen-year-old. And, morality and economics aside, one fact stands out .... Undoing copy protection is fun! Not only is it fun, but cracking the uncopyable is about the most challenging and most rewarding thing that you can possibly do with your Apple. And, the things you learn along the way are exactly the skills that you will need to become a really great programmer. So, I guess we should all be thankful for the copy- protection people since they are giving us all this fascinating entertainment and superb training at an unbeatable price.

Reading notes: Page number '8' precedes the heading and is not part of the headline Line-break and hyphenation artifacts in the body text, such as 'inex-perienced', may affect exact reading

Printed product names
Apple II
Languages
English
PDF page 10

Introduction 9 - ... - Today's best and brightest Apple programmers are stumbling around in the dark. Proof of this is that a program with a Peelings rating of 11 AA" today barely earns a "B" next year, and drops to a "D" or unfit-for-use "F" the next. Surely, by now, the message is in: it is absolutely impossible to write a great program in BASIC. Pascal, of course, is so bad that it is beyond the pale. Great programs must be written either wholly or in part in machine language so they can use Apple's resources to the utmost, at the fastest possible speed. Check Softtalk's top thirty. At this writing, thirty out of thirty are either written totally in machine language or make extensive use of machine-language sequences. It's scary to think of what a really good programmer, who truly understands his Apple, will be able to do with this machine. It hasn't happened yet, but watch out. It is only a matter of time. - ... - We are only now beginning to find out about some secrets of the Apple that everybody should have known about way back in 1977. For instance, we know now that we can have many different fonts of upper- and lower-case characters without using special hardware. We know that we can easily do an SO-character line with zero additional hardware, and that lines above a hundred characters are possible. We know that it is easy to quadruple the HIRES virtual resolution of the Apple. We know, of course, that there are hundreds of colors available either in HIRES (high resolution) or LORES (low resolution). We also know that we can mix and match HIRES, LORES, and text anyway that we like-anywhere on the screen. We know that we can do an exact, jitter-free, software lock to video timing for video wipes and precision light pens. Once again, these require no special hardware. And, of course, we know we can gently and legibly scroll the characters up the screen. We know that the early graphics mappings were much slower than necessary. And, we know our Apple can directly interface robotics and appliance controls-again, without special hardware. The big question is: "How much don't we know that we should have known back in 1977?" ••••• This Enhancing Your Apple II® series is intending to try and bring everybody up to 1977. We want to try and understand what we really have in the Apple II, and what its real capabilities and limits are. Each enhancement is designed to show you something about some small corner of your Apple. While a typical enhancement will combine some simple new hardware with a machine-language driver or two, just about anything at all is likely to crop up. We have tried to mix simple and advanced enhancements together, so there will be something here for you, regardless of how much Apple experience and expertise you now have. We also have "unbundled" everything for your convenience and cost savings. Each enhancement is in four pieces. The first part of an enhancement is the complete story and listings here in this volume. Secondly, there is a companion diskette you can order using one of the cards in the back of the book. This diskette includes copies of all the code used in this volume and more. Machine- language codings include full source documentation under both EDASM and the S-assembler while BASIC Programs include full documentation. Naturally, you are free to copy, adapt, and modify this standard DOS 3.3 diskettetoyourheart's content, so long as you do so only for your own use.

Reading notes: Introduction heading and running header are not clearly a primary headline; headline set to null. Some hyphenated line breaks and OCR-style spacing (e.g., 'Peelings', 'SO-character') may reflect damaged or irregular characters.

Printed product names
Apple · Apple II · Softtalk · EDASM · S-assembler · DOS 3.3
Printed dates
1977
Languages
English
PDF page 11

10 Introduction Thirdly, there is a parts kit you can order that includes everything you will need to make all of the hardware modifications involving all the enhancements in the entire book. Lastly, and most important, there is also a feedback card. This card is needed for your participation in some of the enhancements. It also registers your name for updates and corrections, and it "closes the loop" so we can offer the best possible Apple enhancements in future volumes. Should you be interested, we will add an on-line update and bulletin board service to this feedback process. Let us know if you have a modem and want to participate. Taking a quick look at this volume, we start out with a pair of simple glompers that anyone can build. These solve completely the video changeover-switch hassles that you might have when using an rf modulator. Enhancement 2 is a software color killer. A plug-in reversible hardware mod lets you eliminate all color fringes from black and white high resolution (HIRES) displays under soft- ware control. You can now combine color and black and white displays in the same program without any set adjustments. The real heavy of this volume is Enhancement 3. Here we find a method for tearing apart someone else's machine-language program that is astonishingly fast and super easy. It may take you years to fully explore and fully comprehend the implications of this single enhancement. Another heavy appears in Enhancement 4. We add a lone wire here to give you a way to exactly lock your programs to video timing. And, we mean exact. The locking is done jitter free, which opens up bunches of new applications, such as video wipes and precision hardware-free light pens. Want to mix and match HIRES, LORES, and text anywhere on your Apple screen? This is trivially easy once you master Enhancement 5. We also see how to tap the hundreds of available LORES colors in this enhancement. A compan- ion hardware mod called a glitch stamper appears as Enhancement 6. This one makes displays that switch modes on screen operate even better. How about a gentle scroll where the characters move smoothly up the screen rather than jumping up illegibly like they do now? This one's done in Enhance- ment 7. It's super smooth, and completely glitch free. The final enhancement in this volume shows us how to pick up hundreds of different HIRES background colors, and how to put them down seven times faster than you might think possible. That's about it for Volume 1. But, we have some really great stuff on tap for future volumes. A sneak preview appears at the end of this volume. This series is open-ended. As long as there are new things to learn about your Apple® and new ways to do them, we will try and show you how to do them. Oh, yes. Some legal beagle somewhere will probably get bent out of shape if I don't tell you that Apple is a registered trademark of some outfit in California whose name I don't recall just now, and that everything here is pretty much my own doing, and is done without Apple's knowledge or consent. This book is dedicated to "IT" DoN LANCASTER Summer 1982

Reading notes: The headline is not clearly identified in the supplied copy, so it is set to null. The copyright-style legal note mentions Apple as a trademark, and the product mention list includes it as printed.

Printed product names
Apple · Apple® · HIRES · LORES
Printed dates
1982
Languages
English