You are on page 1of 148

� �� A WAY NE GREEN PUBLICATION

.
.
June 1983 USA $2.95

THE M\GAZINE FORTRS-80 CoLOR CoMPUTER AND TOP-too USERS

Build a .Voice Box for Your CoCo


A 4K Text Processorl PREMIERE ISSUE
Program Generator

Cure Your
CLOADing Woes

A "Real" Keyboard
For the CoCo.

Plus: FLEX,
Basic for Beginners,
And Graphics Applications

Contour Graphics-See p. 94

r
06

7 I "... 00",' OOM""'" ' " ". ....� .


. "�.,, 0' ''''0 �"'" , """'0' om,,, 00 ..,

Lucifer's Realm goes beyond nightmare for a dramatic


confrontation with the most evil mortals of all tlmc

ScreenPlay's new software. SpeCial games fo� a special computer

And for speCial people

Screen PI
creen P1a-X™
p.o. Box 3558
lKID1f oCo
ilC
ARTICLES
Auto-Color Writer------ __
28
Tired of writing screen-formatting code?
This program will do it for you.
John Nicoleltos

Serial-to-Parallel Interface---- __ 32 Tape Index System ------ 78


Keep track of all your tape-based programs.
This interface will let you use non-Radio
Jerry Hogan
Shack printers with your CoCo.
Don LeRoi Draw Poker_-'--- ______
_- 82
CoCo Word Processor ------- 36 With this casino-style draw-poker game
all you have to lose is your pride.
This Basic WP is great for correspondence and file merging.
Duane Rouch
Ken Knecht

Cavehunt --------- _ 44 Phycolor . 90


_

You can teach the physics of light in the classroom or at home.


Can you make it past wizards and monsters
James Wood
and find your way out of the cave?
Charles Levinski 3-D Graphics -----_
94
Tape Reliability ------- 52 Use these algorithms and techniques
to print out contour graphics.
Bad tape loads and saves are always a bummer.
Delmar Searls
Learn how to avoid them.
Ralph Tenny Demystifying System RAM ----- I08
Doculist/C ---- 58 Tour through the CoCo with your guides POKE and
PEEK. Some useful utilities are also included.
Program listings are often hard to follow.
Rusty L eBlang
So, list them in a readable format.
James Barbarello
- 14
Merge Maneuvers Made Easy ----1
Print That Trace ------- 64 It's not hard to merge Basic programs. lust try these methods.
Follow the program flow on paper, not Robert P. Bussell
on the screen.
Norman Manchevsky
Microline 82A Meets CoCo -----
118
Don't want to pay $30 for a cable? You can build one
Speech for the Color Compute r---- 66 at a fraction of that cost.
L eigh H. French
Build a plug-in voice box that will give you a
large vocabulary (without voiding your warranty). Color Backgammon for Two -----
120
William C. Clements
You'll never lose pieces to this game.
John P. Koch

EPARTMENTS
Digressions Graphically Speaking
12 126
What's in a name? Use graphics in business or scienti fic
applications.
Reviews -
16 Delmar Searls
TC-8C, Micronix keyboard, Donkey
Product News
King, Tennis, two books. 134
Edited by Barbara Jatkola Edited by Mark E. Reynolds

Off Color The Basic Beat


__---____
6 24 Re: FLEX 140
Why should you read HOT CoCo? Learn Basic painlessly, and have Read this before you choose which
See what the publisher has to say. fun, too. FLEX you buy.
Wayne Green James Wood David Wasler

ThiI month's cover by Coni Poner

Vol. 1. No 1 . June 1983 Canada MSV 2AS. Foreign subscriptions (surface mail), $44.97-one year only. U.S. funds
drawn on a U.S. bank. Foreign subscriptions (air mail), please inquire. In Soulh Afric a contacl
HOT CoCo (ISSN pending) is published 12 limes a year by Wayne Green Inc.• 80 Pine St.. HOT CoCo. P.O. Box 782815. Sandton, South Africa 2146. All subscription co ....pond....
Peterbor ough, NH 03458. Phone: 603·924·9471. Second-class postage pending al Peterboro should be addressed 10 HOT CoCo. Subscripllon Department, P.O. Bo:.. 975, Farminedale,
ought NH, and additional mailing offices. Subscription rates in U.S. are $25 for one year, $38 NY 11737. Please include your addreH label with any correspoRdence. Postmaster: Send ad·
for two years, and SSJ for three years. In Canada and Mexico, S27.97-one year only. U.S. dress chan&es 10 HOT CoCo, Subscriplion Services, P .0, Box 97S. Farmingdale, NY 11737.
funds. Canadian distributor: Micron Distributing, 409 Queen SI. West, Toronto, Ontario, Entire contents copyri&hl 1983 by Wayne Green loc.

4 HOT CoCo Jun� 1983


THE

COLOR
r------
__ Off Co)or----'--_--,
S ince a major part of the value­
of the fun-of a computer WHO ARE WE grams, send 'em along so more of us
can use them and enjoy them. What
depends on how much you know about programs? Just about anything, in­
it, you want to get all the information
you can This holds particularly true
.
WHO ARE cluding games, scientific applications,
business, home, education . . . I can't
for the TRS-80 Color Computer, think of anything that will fall on
which is one of the biggest sleepers in
the industry. Indeed, many insiders of DOINOTHIS? blind eyes. Music isn't very popular
with computers yet, but that may be
the field believe that even the mo­ more because we're short of good in­
guls at Radio Shack were not aware of formation and equipment for it.
By WAYNE GREEN
the power of this innocent looking Submitting articles and letters to
gadget that Radio Shack is selling HOT CoCo is easy. Please type them
mostly as a toy. double-spaced and leave generous
Well, toys come in all price ranges margins so our editors can correct
and powers, as any Maserati owner spelling and grammatical errors. Try
will admit. In this case you have your to think in terms of illustration to make
choice: one hell of a plaything, a nice reading easier-photographs or what­
little (and inexpensive) business com­ ever-and the bigger and sharper, the
puter of almost unlimited use, or any­ better with photos. If you are doing
thing else you want in a computer. your work on a CoCo with a word
Even at its list price, this is one of the processor you might send in a disk
best values in small computers there is. copy of the article, too. We're gearing
Since the real power of the CoCo, up to typeset directly from disks even­
as it has come to be called, hasn't yet tually. We do pay for articles, of
gotten to be widely understood, the course.
chances are that you lucked into some­ How long should an article be? Tell
thing far beyond what you bargained the whole story and don't worry about
for when you bought yours. Well, it's the length. Oh, don't start padding it,
nice to luck out now and then. Usual­ just tell the readers what they need to
ly, particularly in computers, ,luck know, remembering that most of us
runs the other way. will appreciate your making it as sim­
Now, in case you are not an old­ business to send in a letter or article so ple as you can. Show us what a great
time reader of 73 Magazine, a ham you can help others over the same teacher you are, not how smart.
magazine I 've been publishing for rough spot. Rank beginners to the CoCo would
over 20 years, or are a newcomer to Articles-you bet we're looking for do well to keep notes on the frustrat­
computers and thus missed my start­ them. I chuckle when someone asks ing route to understanding. If you'll
ing Byte in 1975, Kilobaud Microcom­ what we want articles on. That's so take the time to write some of this
puting in 1976, 80 Micro in 1980, obvious I feel silly writing it. The down you can, through HOT CoCo,
Desktop in 1981 and inCider (for the readers want to know the same things make life a lot easier for the next cou­
Apple) a few months ago, let me ex­ you do. So if you find an interesting ple of hundred-thousand CoCo
plain that I've been around ever since use for your CoCo, tell us about it. If owners.
the first microcomputer was put on you manage to interface something to The value of any computer is made
the market, so I have a fair perspective it, let us know how you did it. And re­ up of the quality of the hardware, the
for you on the whole field. member that most of us are dummies software, and the information on how
Best, for you, I 've been able to at­ when it comes to computers and elec­ to use the system. I got in a new com­
tract a fantastic bunch of people to my tronics, so we appreciate all the help puter to test the other day. The hard­
minipublishing empire-a group able and ideas we can get. ware is first rate, a marvel. The pro­
to put out truly professional maga­ We all want to know how a new grams for it are really great. But when
zines, yet keep each of them personal piece of equipment works. We want to [ sat down to use the contraption, I
in a way. The aim is to publish a good­ know what you thought of a new pro­ was totally lost in the inch-thick in­
looking, interesting magazine, yet gram . If it's fantastic, do the program struction manual. After a couple of
keep it more like a club newsletter in publisher a favor and pass along your hours of being unable to get anything
personal approach . If you come up experience. If it is a bummer, do the to run, I gave up. Why in hell should I
against a problem with your CoCo rest of us a favor and let us know have to go out and take a course just
and surmount it, please make it your about that. If you're into writing pro- to start up a computer? That system is

b HOT COCO Jun� 1983


FAST, EFFICIENT
MACH:INE LANGUAGE

NIEW ARCADE GAMES


GLAXXONS / EL BANDITO / COSMIC CLONES

ARCADE GAMES
HAYWIRE / ASTRO BLAST / CAVE HUNTER / SPACE RAIDERS
ARCADE GAMES, CASSETTES 24.95-REQUIRE 1'6K / DISC 29.95-REQUIRES 34K

ADVENTURE GAMES
CALIXICO ISLAND / THE BLACK SANCTUM
ADVENTURE GAME CASSETTES 19.95-REQUIRES 16K

BUY FROM YOUR FAVORITE DEALER OR DIRECT FROM


MARK DATA PRODUCTS
24001 ALICIA PKWY., NO. 226, MISSION VIEJO, CA 92691 • (714) 768-1551
We pay shipping on a l l orders in the continental U.S. a nd Canada. Overseas add $3.00. Ca lifornia resid ents, please add 6%
sales tax. We accept MasterCard and VISA. We are always looking for qua lity machine language programs. Contact us
for details. .

IJ Mark Data Products


,... 2 41

... See List of Advertisers on page 138 HOT CoCo June 1983 7
OffColo( _____________ ---.

PUBLISHER/EDITOR not supported by a magazine, so the corner Radio Shack store. The nice
Wayne Green chances of my getting much help from folks at Tandy blew a gasket when I
EXECUTIVE VICE PRESIDENT anywhere is small. At least, when mentioned this in a subscription ad for
Sherry Smythe-Green there is a magazine, you are getting the the magazine, but it's all true, whether
ASSISTANT TO PRESIDENT energies of thousands of people to­ they want you to know about it or not.
Matt Smith gether for the good of all involved. Which brings me to the status of
GENERAL MANAGER The ads, which some people gripe Wayne Green versus Tandy. My basic
Debra Wetherbee about, are another important resource rule is to tell it like it is and not try to
ASSISTANT PUBLISHER for you. Think about this for a mo­ help cover up things that have gone
Jeff DeTray ment. Without a system-specific mag­ wrong. The chaps at Tandy are not in
CORPORATE CONTROLLER azine, how can a small entrepreneur sympathy with this and seem to feel
Roger Murphy get started in business with a product that we should act more as a division
ASSISTANT TO CONTROLLER for the system? If you want a real of Tandy, sticking to the coinpany
Dominique Smith scare, look at the ad rates for Byte. line. They feel strongly enough about
CIRCULATION MANAGER Heh, heh. Few small firms can afford this to be amazingly petty. They even
603-924-947 1 that kind of start-up cost. And re­ refuse to send us new-product infor­
Patricia Ferrante
member that only a tiny percentage of mation or ask us to showings of their
BULK & NEWSSTAND the readers of a big magazine like that products. Such pressures won't affect
SALES MANAGER
will even ,be interested in a product for our integrity. I far prefer to be friends,
Ginnie Boudrieau
one specific system . but not at the expense of being a
ADVERTISING, 603-924-7 138
By bringing you ads for products lackey.
Advertising Manager: David Schissler
that you in particular will want to From your viewpoint this means
Sales: Penny Brooks, Mary Hartwell
Ad Coordinator: Kim lJabbe
know about, the manufacturer is able that we're on your side and not mak­
New England to reach you at the lowest possible ing excuses for Radio Shack where
Advertising Representatives: cost. You win because then he can they have screwed up . If you are get­
John A. Garland, Frank Surace, charge less for the product. A maga­ ting any other TRS magazines , you
Garland Associates, Inc., Box 3 14 SHS, zine like HOT CoCo is thus able to might just think about that, particu­
Duxbury, MA 02332 617-934-6464 bring you ads on brand-new products larly if you see any Radio Shack ads
at the lowest possible prices. being run. We tried that with 80 and
PRODUCTION
One more thing. Since the CoCo is found that the price asked for running
Manager: Nancy Salmon
sold almost exclusively through Radio their ads was to be their toady. No
Assistant: Michael Murphy
Shack stores, the firms making add­ way . . .not for a bit of silver.
Frances Benton, Michael Ford,
Phil Geraci, Donna Hartwell, ons, programs, and information for Getting back to uses for the
Kimberly Nadeau, Lynn Parsons, the CoCo are unable to reach you any CoCo . . . and articles. These are nice­
Anne Rocchio, Deborah Stone, way but via mail order ... through ads looking computers, so we should be
Theresa Verville, in magazines such as this. Apple sup­ seeing them used more often in busi­
Robert M. Villeneuve, porters have a thousand computer ness. Programs that allow network­
Karen Wozmak; stores anxious to carry Apple-oriented ing, so several CoCos can be hooked
Ad Coordinators: David Wozmak, products. Computer stores, for the together in an office and talk with
Mary Seaver; each other is one way to introduce
most part, flatly refuse to touch any­
Assistant: Paula Ramsey;
thing to do with Radio Shack or their them to business. We're also looking
Advertising Production: Fiona Davies,
computers. It's an emotional thing, for programs to permit several to ac-
Bruce Hedin, Scott Philbrick, I
Jane Preston
complete with sneering references to cess a hard-disk data base.
the Trash-80. Another use that is getting more
PHOTOGRAPHY
Supervisor: Thomas Villeneuve; One more important benefit for you popular and needs a lot more experi­
Katherine Coker, Sandra Dukette, yet-and that has to do with discount menting is in amateur radio. I assume
Laurie Jennison, Irene Vail mail-order selling. Now I'm not a fan you're aware that it is not at all diffi­
TYPESETTING of this at all, for in many cases it is per­ cult to get in touch with people almost
Supervisor: Sara Bedell; nicious and eventually does in the anywhere in the world and make con- I
Darlene Bailey, Marie Barker, whole marketing system for a manu­ tact via voice, or computer to com- !
Melody Bedell, Michele DesRochers, facturer. But I'm a realist too, so as puter. We do need to see interfaces
Prem Gongaju, Lynn Haines, long as Radio Shack encourages the designed for this, frequencies and
Debbie Nutting, Lindy Palmisano, discount mail-order selling of their times set up for networks of users, and
Susan Weller so on. If you enj oy getting on one of
equipment, who am I to tell them they
DESIGN are screwing up? No, I say read the ads the telephone nets and talking with
Supervisor: Joyce Pillarella; others for around $5 an hour, think
and find your bargains where you.can,
Susan Donohoe, Denzel Dyer,
this magazine will have 'em. how much fun you'd have if you could
Howard Happ, Laurie MacMillan,
We did a study of the discount be doing that with people all over the
Dion Owens, Dianne Ritson,
Susan Stevens, Donna Wohlfarth
prices on the Model III and found that world and at almost $0 per hour.
a prudent buyer through 80 Micro On a recent trip I found radio ama­
CREATIVE DIRECTOR
Jonathan Graves
could easily save almost a thousand teurs getting geared up for this all
dollars on a system by patronizing around Asia. A good friend in Hong
DESIGN DIRECTOR
Christine Destrempes
mail-order discounters instead of the Kong is on, one in Marilla, a few hun-

8 HOT CoCo Jun� 11)83


From Computer Plus to YOU • . .

PLUS after PLUS after lPLUS

- .
".
-I

Model 12 Color Computer 16K $235 Model III 16K $699


1 Drive $ 2699 wl16K Ext. Basic $305 Model III 48K
2 Drive $3375 w/32K Ext. Basic $420
2 Disk at RS232 c $1549

I�___P:'.,
-

Okidata 80 $320
Okidata 82A $399 Color Computer Disk Drive Smith Corona TPI
Okldata 92 $510 Drive 0 $470 Drive 1 $299 Daisy Wheel $555

BUY DIRECT Here are just a few of our fine offers ...
call TOLL FREE for full information.

COMPUTERS R.S. Acoustic Coupler AC-3 129 DISK DRIVES


Model12 64K1 Drive $2699 R.S. Modem ID.C. 129 R.S. Model III �ST-Drlve 650
Model 12 64K2 Drive 3375 R.S. Modem IID.C. 199 Tandon 40 Track MI 289
Model III 16K 699 PRINTERS Color ComputerDrive 1 299
Model lll48K 764 Daisy Wheel II 1715 Color ComputerDrive 0 470
Modellll48K DWP-410 1320 Primary Hard Disk Mil 3099
2 Disk & RS232 c 1549 Smith Corona TPIDaisy Wheel 555 Primary Hard Disk Mill 2199
Color Computer 16K 235 Epson MX80 Call ETC.
Color Computer 16K Epson FX80 Call CCR-81 recorder 52
w/extended basic 305 Epson MX100 Call C. C Joysticks 22
tColor Computer32K-64K CGP-115 199 16K RAM N.E.C. 200 N.S. chips 25
w/extended basic 420 DMP-100 315 64K Ram Chips 75
Pocket Computer2 165 DMP-200 599 Coco FHL FlexD.O.S. 69 .95
Model 16 1DR 128K 4199 DMP-400 1010 32K Mlcrobuffer Inllne 229
Model 16 2DR 128K 4799 DMP-SOO 1539 SOFTWARE
DT-1 Data Terminal 599 DMP-2100 1779 Brand Name Software •
PT-21O Portable Termina'i 779 Okldata80 320 Send for listing.
MODEMS Okidata 82 A 399 R.S. Software 10% off list
LynxDirect Connect MIIMIII 235 Okldata83 A 655 Parallel Printer Cables are
Hayes Smart Modem II 235 Okidata 84 Parallel 999 available for most computers.
Hayes Smart Modem 1200 565 Okidata92 510 IColor Compuler 64K requires
Novation Smartcat 1200 459 Okidata93 859 Disk a and 0.0.5.
Novation J- CAT 125 P.C. Plo"er Printer 180
TOLL ,FREE
Since 1973- 1-800-545-8124
We have the lowest possible
F ully Warranteed Prices AND
a full complement of Radio Shack
Software.

'Prl'ces subject to change without n otice.


Not responsible for typographical errors.
TRS-80 Is a registered trademark of Tandy Corp.

.- See List 01 Advertisers on page 138 HOT CoCo Jun( 1983 9


If you like color. . you're going The material is always up-to-date and useful. Hardware,

to love HOT CoCo magazine.


software, books... what's new ... what's best ... what
works. And for a limited time only, you can take advantage
of our Charter Subscription rates, 12 issues for only $19.97.
The exciting new monthly devoted exclusively to the A 13th issue is yours FREE with pre-payment (check or
TRS-80 Color Computer.· It's from the publisher of 80 credit card). Use the attached order form, the coupon
Micro. below, or call toll free 1-800-258-5473. "Subscribe today!
r----------------------
Let HOT COCO color your system with:

YE S
- Feat ure articles on color graphic techniques
-Computer art ,please sign me up for one year
- of Hot CoCo at $19.97.
-Carnes
-Specific color applications in home, education, OMC DVISA DAE OCHECK/MO DBILL ME
business and hobbies
PLUS Card#______ Exp. Date ____ _

- Ideas on patching, adding and trouble shooting


-Buyer's guides Signature Interbank # _____

-Product and book reviews Name ___________________________�-------

-Hardware interfacing and enhancing


Address ______________ _
-Programming techniques and tutorials
City ___________ State ___ Zip,_---
Best of all, HOT COCO is written by users just like you.
COllada & Ml!xi{'" S22.9i I �Jr. (m/y. US F(II,ti'i
Ffm:iJ.!,lI surface 83,9.97 J yr. fIIl/y. US Fu"d.. dra lnl 011 US hank
PIca.\;{' al/ou: 6-8 wl'l'b Jor delivery.

HOT CoCo-PO Box 975-Farmingdale NY 11737 336C4


erRS-80 Color Computer if a t.rademark oj Radio Shack. a division oj Tandy Corp.

10 HOT CoCo Jun� 1983


OffColo( __------------------ ----,

dred (maybe thousands) in Japan, do for us, eh? The economics of pub­
Bangkok, and so on. They'd love to be lishing today make it so that maga­
H• • • though we try to
in touch with you if you get your ham zines have to run about 50150 articles
ticket and get on the air. I'd like to see put out first-class and advertising if they are going to be
articles on using the CoCo for ham­ in the black, so the more advertisers
magazines, we don't sit you encourage and patronize, the
ming. Indeed, if we see some action
with this, I can run a short course on around taking ourselves more room we'll have for articles and
getting a ham license. Having been in programs.
hamming for over 40 years, I have an too seriously. We
Why HOT CoCo?
edge with that. wanted to get across
That brings up Wayne Green. The Any reader of my magazines knows
chances are you already know plenty that idea in the title. " by now that though we .try to put out
I' about me, but if you are new to my !I first-class magazines, we don't sit
publications let me explain that I got around taking ourselves too seriously.
into publishing over 30 years ago via Now a few personal things about We wanted to get across that idea in
amateur radio. Found I liked it better me-yes, I'm a person too. I like the title. A magazine should be fun to
than anything else I'd been doing, cooking (gourmet), traveling (108 read. I find that the magazines that I
such as radio (engineer and an­ countries so far), hamming, and ski­ really look forward to each month are
nouncer), televjsion (engineer, direc­ ing; I aways have dozens of projects those with a light approach, such as
tor), or hi-fi manufacturer Ooud speak­ going. You'll have to read the editori­ Car and Driver.
er cabinets, pretty successful, too). als in all my magazines to keep up with The light touch doesn't mean that
You can see that I'm an entrepre­ everything, and that is almost as much there is any short-changing on solid in­
neur, and this is to your advantage if a full-time job as writing them all. formation, only that we are aiming to
you have even a shred of interest in We're growing as publishers and make it more fun to learn about your
getting rich. I am a firm believer in as need enthusiastic, talented career peo­ computer system. And that's the key
many people taking advantage of ple to live with us up here in New to learning, right? If computers
technology as possible to get wealthy. Hampshire, one of the finest places in weren't fun, you wouldn't even be
It's never been easier, so you'll see my the whole world to live. Sure, we need reading this .•
editorials angled III this direction technicians and programmers, but we
much of the time. also need writers, editors, graphic-art
The key is simple. First you want to people, photographers, people to
learn the ropes, which you should do work with circulation, and so on. It is
at someone else's expense. Find a amazing how many people -it takes to
small firm and work for them at first keep a magazine good looking and We Sell
until you know everything you need to interesting. Oh yes, we also need peo­
for success. Remember that 80 percent ple to help with marketing, ad sales, CHALLENGES
of small businesses fail because the en­ promotions, advertising ... it seems
Wargames / Strategy Games
trepreneurs haven't taken the time to endless. for your CoCo
know the basics of their business, such The people who are working here
KAMIKAZE 24.95
as advertising, marketing, purchasing, are our best testimonials. They are a Fight off 1ak1l lro Onishi's Kamikazes, find and destroy hiS
contracts, personnel management, fantastic group and love what they are l1eet before It finds you HI/res graphiCS include lighter vs
fighter, torpedo and divebomber vs ship, Kamikaze altacks,
banking, accounting, and so on. doing. We are loose enough so people ship vs ship and more. 4 levels. 32K Casselle

Once you understand the business can move around pretty much at will KAMIKAZE-1 6 1 9.95
Not as extensive as tiS big brother but With enough
end of things, all you need is a product to do different work, developing their 'boardgame' strategy to make it more than another
shoot-em-up. Using 12 ships and! 68 fighters,
or two and you are off and running. careers. But they work together, too. search out and destroy Kamikazes. Play levels.
16K Cassette, Extended BASIC.
Just lOOK at how many products are Since we're still growing rapidly, there ACROSS THE RUBICON 1 9.95
needed to go with the CoCo comput­ are plenty of opportunities for talent­ The popular WWII wargame. Break Ihrough Ihe Huengen
Forest uSing mfantry, paratroops, tanks, air and artillery
er! We need inexpensive fail-safe pow­ ed hard workers to get into the man­ stnkes. ReqUiring 1104 hours to play, variatIOns In terrain and
German reaction make each run different 16K Casselle. does
er sources, memory expansions, disk agement end of things, but you do have NOT need Exlendeo BASIC.

units, networking systems, modems, to work for it. I don't think anyone is MISSION:EMPIREI 1 9.95
I desks, carrying cases, interconnecting going to find a better place to work. A strategic wargame/strategy game. Starling witf� one
g e t re ce

cables, conversions of programs from ��"�����f��: '��f�� �� a:����' ��5 ��� ;�J��
So there you are, with a new maga­ DIFFERENT EVERY TlM(! All verSIOns oifer a game save
opl!On SpeC!1y 32K D!sk, 32K Cassette or 16K Cassette. The
other systems, and so on. zine that I sure hope you are going to 16K version does NOT require Extended 32K Cassette or 16K
Cassette. The 16K verSion does NOT reqUire BASIC. Too diSk


How about developing expansion enjoy, and the chances to start up a verSion IS shipped on tape. If you want it on disk add $3.
boards to give us better graphics, bet­ small business at home and catch the ROM PAC BACKUP 1 5 .95
Can', run your ROMPACS With your disk If1 or Just want
ter word-processing functions, or con­ golden ring as it goes by. I ask you in backups? ThiS program makes It easy ReqUires 64K
trol of machinery? You might even particular to make sure that every Shipped on tape

want to take the Radio Shack software CoCo owner you know gets to see the
and upgrade it so it will be better, and magazine. Remember that the more STRICTLY
COLOR
sell the upgrades. You have a great lit­ paid readers we have, the more ads SOFTWARE
tle computer sold at a reasonable price we'll have and the more articles we'll P.D.Box 382, West Point. PA 19486
with which to work, so what's holding be able to pubU,sh for you. If you be­ SpeCify game and version desired. Price Includes shlppmg. PA
you back? long to a CoCo club, see what you can resldenls add 6% sates tax. MASTERCARDIVISA welcome
Include card #. exptrallOn date and SIGN order ....... 434

..- See List 01 Advertisers on page 738 HOT CoCo June 1983 II
MANAGING EDITOR
Michael E. Nadeau
REVIEW EDITOR
Barbara Jatkola
DIGRESSIONS
NEW PRODUCTS EDITOR
Mark E. Reynolds
PRODUCTION EDITOR
Susan Gross
LA YOUT EDITORS IT ISN'T EASY that the magazine will publish infor-
Joan Ahern, Bob Dukette, I
mation to help you get the most from
Sue Hays, Laura Landy,
Judy Oliver,
CHOOSING your Color Computer, yet also be fun
to read. It's an easy name to remem­
Anne Vadeboncoeur
PROOFREADERS
A TITLE ber, too.

Peter Bjornsen, Reader Comments


Harold Bjornsen, Since we are new, we are eager to
Robin Florence, hear what you think of HOT CoCo.
Ellen Hardsog, Louis Marini �OT CoCo? It sounds like a Are we covering your favorite topics?
EDITORIAL I7.. dirty magazine." I heard that Are our articles easily understood?
ADMINISTRATION comment so many times during the What are your particular likes and
Celeste Wrenn past few months that I was sure there dislikes? Give us a call (603-924-
was a conspiracy afoot. HOT CoCo is 947 1) or drop us a line and give us
not your typical title for a computer your comments. Just be careful not to
magazine. It isn't techie sounding, like snicker when we answer the phone
Subscriptions:
Digital Design, and it doesn't have the "HOT CoCo."
Problems with Subscriptions: Send a air of authority that Business Com­
puter Systems has. But HOT CoCo Coming Next Month
description of the problem and your current
and/or most recent address to: HOT CoCo, does have some qualities of its own. If you are a confirmed hardware
Subscription Department, P.O. Box 981, We plan to provide the best possible hacker, you'll like our July issue. Mar­
Farmingdale, NY 1 1 737. coverage of the Color Computer, in­ tin Goodman tells you how to build a
Change oj Address: Send old label or copy cluding the latest programming tech­ monochrome monitor driver that will
of old address and new address to: HOT niques and hardware innovations. give you super legible characters for
CoCo, P.O. Box 98 1 , Farmingdale, NY
Yet, we want to attract the thousands word-processing or other text-han­
1 1 737. Please give eight weeks advance
of new CoCo owners who are not yet dling needs.
notice.
Dealers: Contact Ginnie Boudrieau, Bulk serious programmers. The name HOT There's something for the begin­
Sales Manager, HOT CoCo, Pine St., CoCo conveys our editorial intent ning hacker, too. J.J. Barbarello will
Peterborough, NH 03458. (800) 343-0728 . quite nicely. show you how to make etching your
This makes it sound like the Wayne own printed circuit boards as easy
Green brain trust sat down and care­ as programming. Howard Bassen
fully, painfully thought out the ideal will provide some cures for video
title. But it didn't happen that way. rfi. And Dennis Martin will show
The left bracket, I, replaces the up arrow We started with several lists of poten­ you how to get great high-resolution
used by Radio Shack to indicate exponen· tial titles. The 80 M icro staff included graphics in Basic.
tiation on our printouts. When entering HOT CoCo on their list as a joke. We'll also premiere two columns.
programs published in HOT CoCo, you
(They also included such gems as Col­ Richard Ramella begins Elmer's Ar­
should make this change.
or Hallucineighty, CoCo Puffs, and cade. You see, Elmer's this guy with
HOT CoCo formats its program listings
to run 64 characters wide. This accounts for
Colorado Potato Beetle it falls be­
- an old-fashioned arcade parlor (you
the occasional wrap-around you wiU notice tween "colorable" and "coloration" know, the kind with pinball machines
in our program listings. Don't let it throw in the dictionary.) and mechanical baseball games). Rich­
you, particularly when ent�ring assembly When we sat down to choose one, ard will adapt one of Elmer's games to
listings. no one knew what he wanted, only the CoCo each month.
Article submissions from our readers are what he didn't want. Some wanted to We'll also be running a tech-tips
welcomed and encouraged . Inquiries should avoid using "computer" in the title; column. This column is written by
be addressed to: HOT CoCo Submissions others didn't want "80," and some you, our readers, and it gives informa­
Editor, 80 Pine Street, Peterborough, NH
didn't want to play too much on the tion on overcoming small problems or
03458. Include an SASE for a copy of our
color theme. incorporating new techniques in your
writer's guidelines. Payment for accepted ar­
After eliminating nearly every progFams. By the way, if you have a
ticles is made at a rate of approximately $50
per printed page; all rights are purchased. choice, someone said, "The only title I technical tip you would like to share
Authors of reviews should contact the HOT really like is HOT CoCo." When the with your fellow readers, send it in.
CoCo Review Editor, 80 Pine Street, Peter­ chuckles subsided, the rest of us real­ We will pay $25 for each tip if we use
borough, NH 03458. ized that we agreed. it. Try to keep each tip to one type­
The title HOT CoCo tells you written page in length.-M.N.•

12 HOT CoCo Jun( Iq83


• SPECIAL OF THE MONTH: We have added approlimately $400,000.100 •
• worth of brand new business and game •
• NEW "Star Gemini" Printer software. •
Dot Matrix With Graphics, 100 CPS
• Model 10 - Reg. Retail $4 9 9.00 Sale $3&9.90 •
sa�e" on our most popular items! •
• Model 15 - Reg. Retail $6 9 9.00 Sale $525.00

4· NEW STYLE Smoked Plastic File 801 -
• "C-Itoh FlO Starwriter" Printer •
Holds 75 Diskettes Reg. Retail $4 9.95 Sale $24.95
• Uses "Diablo" Printwheels & Ribbons, 40 CPS •
• •
Only $1595.00 "Perfect Data" Head Cleaning Kit Only $19.95
• Forms Tractor Sale $199.95 Drive Numberin g Tabs, pkg. 0- 3 (reg. $4.50) now $ 3.95

• Flip-N-File 5'1.' (reg. $3 9.95) now $19.95 •
Flip-N-File 8" (reg. $54.95) now $23.95
• "Brother" HR1 DaiSYWheel Printer •
• Affordable/Letter Quality/ ffCPS •
Serial - New Low Pr,ice $799.00 ,BeautifullFunctional Custom Computer •
• Parallel - New Low Price $745.00
• 'Furniture From "Atlantic" & Toor" •
CALL FOR PRICES •
• SAVE on an "Arrick Quick Switch"
Changes a "TRS-80" printer port or a peripheral between compu­
• ters instantly and 6asily. Available for "RS-232" and "Centron­ without
. Reg. Trademarks ·l,m,led Time Offer/limited auanlilies • PJlces subleCilo change

• ics." Plugs included.
nollce· Prices do flot Include state laxes

• Now from $99.95. Gables from $31.95. •
• "PAGEMATE" Typing Easels

-
$14.95 VISA
1 (BOO) 527·3475 _I :
• Anti-Static Mats - Colors: Russett, Blue & Gold, Natural, •
We
• Brown, & Golden Brown. Order by phone or by mall.

accept Visa. MasterCard. cashier's checks. certified checks, and

3' x 5' - Reg. $ 75.60 Sale: $ 57.00 money orders. With personal checks. allow additional time for bank dearance Your bankcard Will
be Sl.000.
• 4' x 6' - Reg,. $�20.90 Sale: $ 91.00
not
Insura"",!:
and
charged unlil your order is shipped. On orders over
5300
.please add

we pay Irelghl (surlace only)

• 4' x 8' - Reg. $161.30 Sale: $122.00 Sl.00000


. .
orders under

• •
----------------------- e
• "PERCOM DATA" Hard Disk Drives
o Please send me aFREE catalog. I'm not ready to order at this time.
• Plug-
Better Accuracy
• Quicker Response


• in compatible Sealed to Stop Contamination

• Up to 4 drives can be added per system •


.... ... . ..
• Name ________�________________

PLUS E!3.ll SOFTWARE' 5 MB .... ........ .. $1465.00 •


• •

10 MB .... . . . .. $1695.00
COmpanyName _____

Md�
• _____

City State Zip
• MEDIA FOR LESS � •
_______ _____ _____

�oreNum�r( � ____ ____________________

• Quantity Item Unit Price Subtotal •


• IIEW! 5'/1' SOFT SECTOR DISKETTES WIHub Ring I I I I .
• BASF 5'/4' Single Sided Double Density I�---+I------+I------+-----�l •
• Lifetime Limited Warranty. reg. $44.95 now $24.90 bx of 10 Check ore: State Sales Tax (Texas residents only) 1--- --II •
'I
__ � __

o payment enclosed handling charge f----------l .


• ATHANA complete with hub rings & one year limited warranty.

o Visa 0 MasterCard' Total I •
Single sided Single density 5 '/4'
• Single sided Double density 5'/4' $19.90 bx of 10 I I I I I I I I I I I I I I I •
$22.80 bx of 10
• Double sided Single density 5'/4' $29.90 bx of 10
$33.50 bx of 10
��� � �
: � name: I I I I 'I'
' tion
,&�!�
OJ - OJ •
• Double sided Double density 5'/4' •
• VERBATIM Single
Single Sided Double Density $30.90 bx of 10 Authorized signature, if charged •
Sided Single Density $26.90 bx of 10
• •


• HOT OFF THE PRESSES : ACCESS UNLIMITED •
IISJDE PEIISIIUL COMPUTER DISK STORAGE SYSTEMS
• •
THE Necessary Basic Book, DEPT. M1/401 N. Central Expwy. #600/Richardson, Texas 75080
• N EW From "Pelcom"- Only $5.95 Tel. 1-800/527-3475 2141340-5366 •
214/690-0207 - Sat. and Evenings Only .... 26
• •
• ••••••••••••••••••••••••••••••••• • •
.... See List 01 Advertisers on pege 138 HOT CoCo Jum '1983 13
REVIEWS

REVIEW CONTENTS

CC Professional Keyboard CC Professional dard typewriter keyboards. The keys


Mic ronix Systems Keyboard 16 on my unit are a bit stiffer than I like,
If7 Gibralt ar S quare TC-8C Cassette Interface 18 but unlike those on the standard
St. Ch arles, MO 63301 CoCo unit, they don't have to be bot­
Color Computer, Revision E
Donkey King 19
tomed to make contact. As a result, I
or earUer motherbo ard Tennis 20 can type at a considerably higher
$79.95 TRS-80 Color speed than ever before.
The positions of a few of the punc­
Computer Graphics 21
by Scott L. Nonnan tuation marks and function keys have
TRS-80 Color Basic 22 been changed, necessitating some user
reeducation. Clear has been relocated
t's here-a direct-replacement to the left of the space bar. The enter
I keyboard for your favorite ma­ Edited by Barbara Jatkola I key no longer appears just to the right
chine, with honest-to-goodness key­ of the semicolon, but has been moved
switches for improved typing speed to the extreme right of the second row
and reliability. small steps, applying pressure first to ,instead. It has also been relabeled "re­
The Micronix 57-key keyboard one end and then the other. It's worth turn." The right shift key has been
plugs into the CoCo's motherboard the extra effort to avoid bending one moved one position further to the
and mounts inside the case, just like of the pins. right, out of easy reach of my little
the stock keyboard. The only differ­ One word of warning: Only moth­ finger.
ence is the smoother operation provid­ erboards with serial numbers ending in These changes have been made in
ed by the new keyswitches. the letters B through E (those sold order to make room for four new
The Micronix product is a profes­ before late 1982) use plug-in key­ keys, labeled FI-F4, that occupy pre­
sional affair, with full-size, two-color boards. On new series-F computers, viously unfilled spots in th.e Color
key caps. The alphanumeric charac­ including the independently marketed Computer's keyboard matrix. These
ters, punctuation marks, space bar, TDP-l()(), the cable is soldered to the keys don't do anything useful at the
and clear keys use gray caps, while motherboard. Consult Micronix con­ moment, but Micronix has promised
everything else is in black. Legends are cerning the availability of a com­ to make a software driver available to
white and molded into the sculptured patible replacement. permit their use as programmable
tops of the keys. A metal bezel fin­ The installation is complete once function keys.
ished in flat black completes the the new keyboard is plugged in and The only detrimental factor is the
package. seated on the locating pins, but heavy inability of the Micronix keyboard (or
Installation is simple if you are not users might want to make one further any full-size keyboard, for that mat­
reluctant to open up the computer's modification. Since pressure exerted ter) to accept the overlay sheets used
case. Begin by removing the six or on the keys is transmitted directly to by programs that redefine key func­
seven screws holding the top and bot­ the Micronix printed-circuit board, tions. Examples include Master Con­
tom of the case together, and lift off there is a possibility of mechanical trol and other programs that permit
.
the top. damage to the traces and connections single-keystroke entry of common Ba- t

You'll find the keyboard attached due to continued flexing. sic commands. The simplest solution
, to the computer's motherboard by a I slipped a thin piece of balsa wood is to use decals or dry transfer letters
short piece of 16-conductor cable that between the PC board and the short to label the front faces of the rede­
plugs into a connector just forward of support post that is molded into the fined keys.
the RF (radio-frequency) shield. Un­ case beneath the middle of the key­ These are all rather specialized
plug the cable, lift the keyboard off its board area. This modification, sug­ points. The Micronix keyboard is a
four locating pins, and set it aside. gested by Frank Hogg of Frank Hogg boon to Color Computer users who do
Then you can install the Micronix key­ Laboratory, provides a solid founda­ significant amounts of word process- I
board by reversing the procedure. tion for the new assembly. ing, especially people with any apti­
Those 16-pin cable connectors fit In operation, the Micronix key­ tude for touch typing. If you are in
tightly, so work slowly. It's easiest to board is very smooth. Key spacing that category, you will want to check
coax the connectors off and on in seems to be about the same as on stan- out this long-awaited product .•

16 HOT CoCo Jun� 11)83


Whether for reasons of feel, appearance, or reliability,
you, like most Color Computer owners, would probably
prefer a better keyboard.
Now, you can have one.
$89 . 95

The
Co lor Computer
Professiona l Keyboard, with
fu l l stroke, positive action l"Ieyswitches,
provides a fee l norma l ll1y associated with more
expensive microcomputers and terminals. The finely
text u red keycaps, g ray and blacl"l with white letteri ng, n i cely
complement the Color Comp uter s sleel"l appearance. And, the keyboard' s high qual ity constru ction
assu res yea rs of re liable operation. A 90- day l i mited warranty is provided. The fou r function l"Ieys,
occupying the extra positions in the l"Ieyboard matrix. are an added bonus. Whether with your own
software, or with that from vendors who have specially ada pted theirs, (such as Fran'l"I Hogg
Laboratories' FLEX), the function :keys enha nce the keyboard's uti lity. [3A5IC programming examp les
and asse mbly lang uage driver l istings are incl uded. The l"Ieyboard is custom made for the Color
Co mputer by Macrotron, an expe riE:nced man ufacturer of computer components and periphera ls.
Conseq uently, i nstal lation is a si mple pl ug- in operation, req uiring no soldering or cutting
whatsoever. The i nsta ll ation proced ure is detailed in an illustrated users manual. whi ch is i ncluded
but also avai lable separately for $2.00 ( refu nd able with purchase). Two versi ons of the II"Ieyboard
are available, one for revision E and earner Color Computers and the other for the revision F (also
l"Inown as A or E1) Color and TDP- 1 00 computers. Pl ease specify which version you have when
orderi ng, 'if possible. Otherwise, i ncl ude the comp lete catalog number and serial number.

M i cro n ix Syste m s Corporat i o n ..-20 3

#7 G i bral tar Sq uare


St. Charles, MO 63301
(31 4) 44 1 - 1 694
Terms: Prepaid check or money order, Mastercard or Visa.
S h i pping C h arges: U.S. $2.00, Canada $4.00, COO $3.50 ( N o COD's to Canada).

,., See List 01 Advertisers on page 138 HOT CoCo June 11)83 17
REVI EWS'-- _______________�__ ___,

TC-8C Cassette Interface The interface offers a slight im­ demands them more insistently than it
JPC Products Co. provement in command structure. demands the file name itself. So far as
12021 Paisano Court NE Most of its commands differ little I can determine, the file name of a
Albuquerque, NM 87112 from Basic: @SAVEM for CSAVEM, data file cannot be input during run
Color Computer for instance, or @ LOADM for time by way of a string variable .
$129.95 CLOADM. The Basic SKIPF is accu­ Error codes are clear and distin­
rately represented by @DIR, and EX­ guishable at a glance from Basic by the
by R. W. Odlin EC by @GO. Ubiquitous @ prefix.
The command @VERIFY adds @ LOAD and @ D I R can be
something I have sorely missed , and aborted with the break key if the tape
PC Products has introduced a to have the facility extended to ma­ is running. This is handy for anyone I
Jversion of the Poor Man 's Floppy chine-language programs through who has ever entered the wrong file
on a ROMpak for the Color Comput­ @VERIFYM is far more than I might name or misspelled the right one .
er. The unit is designed to accommo­ have hoped for. Auto-run is available There is a possibility of using the in­
date two independently addressable for both Basic and machine language terface with the clock speed-up some
cassette decks . In fact, the original with @RUN and @RUNM. Coiol Computer s allow. There are
cassette port is also fully functional patches for this, but the explanation is
under this system. MisceUaneous Features a little less than satisfactory . Possibly
The relays installed in the ROMpak The 110 error is a thing of the past . JPC feels that this use is stretching the
appear to be a good deal stouter than The TC-8C may be dropped into the system, and even the most trustworthy
Radio Shack's. You can use non­ tape anywhere, and it waits contented­ tape, farther than the benefits derived
Shack decks with no fear of power ly to read a leader block. can justify .
surges burning out the relays or After an @SAVE, the computer is Files addressed from machine-lan­
damaging the U9 chip . returned to command mode as with guage programs must be accessed via
The multiplication of cassette ports CLOAD in Color Basic. This means the original cassette port, unless you
can significantly ease the merging and that mUltiple saves within a loop are have the source code to patch them or
updating of data files. Also, the actual no longer practical . patches from the authors. Addresses
pulse code the system uses noticeably Do not omit the closing quotation must be in hex digits, and exactly four
reduces the error rate. marks in the file name. This system are needed .

� - - - -, - - - - - - -PARENTS!
- - - - - - - - - - - - - - - - - - - - - - - - - � - - - - - - - - ,. . I

I
Want to stimulate your child' s learning?

Let T C E
. . . show you how!
P R O G R AMS E N H ANCE I MAG I NA T I V E T H I N K I NG A N D E NCOU RAG E L EA R N I NG

---

G
I
PAR E N T'S T EAC H I N G TOO L TAP E DISK
A B C 's I N CO LO R $1 9.95 $24.95

BASIC M A T H 1 4.95 1 9.95


[j] 1II :m�
SEE A N D SPE L L 1 9.95 24.95

TEAC H IN G CLOCK 1 9. 9 5 2 4 . !:} 5

Sh ipping TEAC H I N G MAP 34 9 5

prepaid F R A CT I O N S 24.9 5 Dealer


on all orders VO CA B U LA R Y 24.95 inquln�
except C.O. D . P LA C E V A LU ES 24 .9 5 i n V i ted
Ed ucational Software aVd i l a b l e fur Color Computer , T P D 1 00,
®
Atari • Apple ® , Co mmodore 64 , and V Ie 20 Ii .
,
REVI
No source code is included in the program JBug (cassette $29.95) for
otherwise excellent documentation . this socket, but I cannot.
However, the table of key variables The monitor is sound enough, of­
and addresses should meet the needs fering such features as break-point
of most users. trapping and register dump. However,
The system is supposed to be rela­ the buffer is only SO characters; the as­
tively impervious to variations in vol­ sembler cannot support any sort of
ume level . This appears true. How­ symbol table, so all branches must be
ever, sensitivity to other factors is so calculated by hand . Also, the disas­
extreme that unless your cassette deck sembler prints out all numerical source
can handle the rather high and critical in signed hexadecimal form and can­
frequencies used , you might as we'll not indicate forced direct addressing.
resign yourself to @CS. or checksum, The memory spent on such facilities
errors. might have gone into beefing up the
A series of inexplicable and infuri­ monitor to provide single-stepping ca­
ating failures ended when I finally in­ pacity, for instance. Also, in a market
corporated a good c;tereo cassette deck that contains Eigen Systems' CCEAD
into th e system . The h a rgai n-coun ter at $6.95, the program is grossly over­
special that had been perfectly service ­ priced . H oweve r , i t s man ual is
fireball pursues Mario as he tries to
able in dealing with CoCo's native fre­ good-it includes all the Motorola
quenciec; proved ah solu t ely helpless 6S09 data sheets as an appendix-and rescue the captive maiden crying
t he convenience of having all this co­
"Help ! " at the top of the screen. He
wi t h the TC-SC
Routine maintenance of the tape resident means you will use it when it finally reaches the top of the first
heads is n ecessa ry ; JPC suggests that would not have occurred to you ramp screen and jumps up on the plat­
daily is not too often. Also. you might before . form, only to have Kong grab the girl
need a better grade of tape. JPC rec ­ Buy the TC -SC J n t erface to triple and haul her up to the next level.
ommendc; DuPont Crolyn a nd Agfa your c:\ssette ports, prolong the life of The next screen is also almost iden­
PE-61 I . This can mean invisible ex­ your 1 4529 chip, red uce the error rate tical to the arcade game. Mario is at
pense<; ed gi n g you upward toward the in Yf)Ur files, and speed up the loading the bottom of a tower of girders held
di<;k price hracket. of programs. but pass up THug. There together with pins. He must pull each
a re many better usps for that EPROM of the pins while eluding four fireballs.
Failings !'ocket . • He has two hammers to use in case of
The TC -RC's d r a wbac k s in I Idp the emergency or for extra points.
use of fJ()() byt es from high memory . Mario may ,pick up different objects
That i�;n 't much o m p a r ed to the 2K to increase the score, and he gathers
necessary for Disk Basic, and you ('an the bonus points left on the timer
have it back instantly by typif1g Ponkey King whenever he reaches the top of the '
@KILL. which disables the interface . Tom Mix Software screen . With each additional 20,000
The computer powers up in Basic, and Grand Rapids. MI 49505 points, you acquire a free man.
you access the new facilities with EX­ 32K. Color Computer After Mario pulls the final pin,
EC &H DOOO , or in Color Basic w i th $�.C)5 ca<;s�Ue. $27.Q5 disk Kong rotates and falls on his head.
E X C S3?AS . Mario moves up to the platform with
The ,yntax of th e data-fi l e state­ hy Philip N. Wilcox the maiden while the Color Computer
men t s is less straightforward t h a n it plays a love song for the reunited
looks. Oft.en a space is n eedecl to make onkey Ki ng is a perfect game couple.
a command work. D for Kong fa ns. It loads in roughly Their joy is short-lived because
N o program identification is given t wo mint'te and uses about 20K for Mario is soon standing at the bottom
until a IOild is c0mpletp; in ca<;e of fa il ­ the mac-hine-Ianguage program . The of the second ramp screen, the tough­
ure t o load, you know nothing at all r maining memory is for graphics, est in the game. The barrels arrive fast
Since the unit draws its power from and the graphics are good ! Fine detail and furious, often two, three, or four
the com pu ter s power supply. you
' . is in every creen. at a time.
might fi nd the w h ol e system heating You <;tart th e game in the lower left The program lets you opt for a reg­
up more . This ap pl i es particularly to corner n('ar an oil drum. Kong drops a ular game, in which a high score will
those with home-hrew, piggyhack. 32K b:ure1 thM crashes into the oil drum to place your name on the scoreboard, or
modifications . I h o pe future ver<;ion<; start a fire. and Mario is off to the first a practice game that gives you twelve
offer the o pt io n of a sepa rate p0 w er ladder. At the top of the ladder is the men but no chance to be recorded in
supply. familiar hammer. the hall of fame. At first, only the
Donkey K i ng works just the same as practice feature will get you past this
JBug the arcade version. It's all there, in­ screen.
The ROMpak incl udes a spare cluding the barrels rolling down. They The next screen is bouncing jacks,
EPROM socket , switch-selectahle for descend a ladder, fall off the end of complete with elevator. Mario has to
27 16 or 2732 chips . J PC recommends the ramp, or are hurled in a zigzag pat­ jump from platform to platform, and
the EPROM version of its monitor tern hy your foe at the top. The on and off the elevator. Timing is criti-
-.•-� .. --- . -____________________ ...J
HOT CoCo Jun� 1983 19
REVIEW"-'---- ___�_______ ____l

cal, as he dodges fireballs, makes split­ cleared so that you must enter EXEC
second jumps, and hops past the fall­ 1 2803 .
ing jacks. A fire that can sense his Donkey King does require joy­
presence also impedes his progress sticks, and it does not have a rou­
toward the ladder that leads to Kong's tine to save a data file with the score­
platform. board. However, the worst prob­
The second time Mario faces the lem with the game is its popUlarity;
girders, he must contend with five fire­ there's too much competition for a
balls as he attempts to pull all the pins. . chance to play , •
Upon completion of this feat, he faces
a relatively easy inclined-ramp screen.
The final screen in the game re­ from the space invaders hordes and
quires the use of conveyors to get to Tennis alien attacks. You can play tennis
the ladders. The conveyors can be Tandy/Radio Sh ack against the computer using the left
moving in either direction and can Fort Worth, TX 76102 joystick or against another player with
switch direction periodically. Mario Color Computer both joysticks. The screen graphics are
must also jump the cars that travel $29.95 ROM cartri dge realistic; the players do look like
along them. If you succeed in this final players with liUle white squares with
screen, the game repeats itself in the by Carlo s Calle handles for rackets, and their move­
same manner as the arcade version. ments can be controlled fairly well in
The program is not flawless. On ex­ 1-f you are tired of shooting down
: spite of the imprecision of the Radio
ecution, you must push reset until the aliens, sinking submarines, and Shack joysticks.
screen is red, or your gorilla will be evading Pac-Man and ghost gobblers, The beginner level is slow paced and
blue . Sometimes you must push reset say no more , How about a nice, relax­ allows you to build up your coordi­
repeatedly before the color appears ing game of tennis with your friendly nation to try the faster paced expert
correctly. Also, the keyboard locks oc­ Color Computer? level. When you play against another
casionally. When you reset, the start­ This entertaining game from Radio human, each of you can select your
ing address for the program has been Shack present s a nice change of pace own level.

ext . 460
new 24 hour 1011-
1 -800-633-2252 'ree order line!
VISA - M ASTER C A R D- C . O . D . - C H EC K
9 Sou t h m oor C i rcle, Kettering , Ohio 45429
[ 5 1 3 ] 294-3383 '1 1 2-6 p . m . ] dealers & more i n fo
Quality programs for the 1 6k Model 1, 3 & C% r Computer
ThiS all MIL Program will copy BASIC or MIL prog rams

,amester Software
Including most Auto Start Programs. It will supply the
beginning, ending and offset add resses and a l low you to
__ v379 change the load add ress for MIL programs. '11 0 errors a re
ignored so that bad tapes can be corrected. Programs can

1 6 K COLOR CO M,PUTER
be renamed and the motorlaudio functions are controlled
from the keyboard.
CAT NO. DM004 1 6 K Ext $1 2.95
Ex tended Basic [TAPE]
Not Required
ARCADE GAMES S 1 9.9S
DATA MAIL
P A C D R O I D S i s absolutely t h e best g a m e avaitable f o r t h e Color Computer. The ultimate cassette based m a i l i n g l i s t p r o g r a m for h o m e
I ! is a combination 01 two very-popular arcade games' Sound and high o r bUSiness use. Fu lly customized data collection .screen
qualily graphics give enjoyment for all ages'
a l l ows you to set your own field lengths and field titles. Fast
machine language sort by any column in any field. Save all or
S P I D E R i s " last-aclion graphic arcade game that is ?ri!li llal! This was
any block of files for latter rea d i ng by OATAMAIL or your
written by J i m Nunke ( t he genius who wrote the offiCial color computer
version 01 F roggerl ' Sound! Excellent reviews i n major publications!
own letter program. Merge two or more lists. search by
record number or .ey word in any column. One key
Extended
Basic Req. ADVENTURE GAMES S 1 9.9S [TAPE] commands for Input, K i l l, Change. Print s i n g l e records or
any block of files, 1 , 2, 3, or 4 across. 32 K holds a b o u t 300
DRAGONOU EST is a challenging saga of adventure & f u n ' fi les.
DM003 1 6 K Ext $14.95
CAT NO.
T O W E R O F F E A R is a classic journey into adventure.
BLAN K KEYBOARD OVERLAYS 9ge EACH
T H U N D E R ROAD i s a !!!.!! adventure for all a es!

We are d.. ...... for the following fine cDm�ni••: -


Extended Basic
Not Required
M ISADVENTURE SER IES
Nl MADAM
- ARK ROYAL GAMES - MARK DATA PROQUCTS
ROSA'S MASSAGE P A R L O R Is the game t h a t everyone is • COMPUTER ISLAND • NELSON SOFTWARE
talking abou t ! Sl i ghlly 'ribald and risque' • great for parties! Your mission . 0 5 L COMPUTER SYSTEMS

is to penetrate the old-time speakeasy and escape with the photos that PRODUCTS RAINBOW C O N N E CTION

were taken of the politician's beautilu I daughter and the local footba l l • DYNAMIC ELECTRONICS SOFTWARE

t e a m ! T r y to escape without needing any injec1ions 01 penicillin! Beware



• FRANK HOGG SPEECH SYSTEMS
LABORATORIES - SUGAR SOFTWARE
the Bouncer! Why did the old man die with a smile on his face? Good • HOME8ASE COMPUTER • THE PROGRAMMERS
luck! SYSTEMS GUILD
• • TOM MIX SOFTWARE
N2 W E T T-SHIRT CONTEST features all 01 the fun 0 1 a real wet t-shlrt
HOME RUN COMPUTER
PRODUCTS

ye
- WEST BAY COMPANY
confest! Wet and wild f u n ! I n fact, :tQ!! actuall nter l'1e contest If you • LITTLE BITS COMPUTING

aresUccessful In your m i sadventure! Special movement-graphics


SERVICES

enhance this game!

n3 SEWERS O F MOSCOW! Solve fhe secrets 01 the soviet


survive!

20 HOT CoCo Jun� 1983


REVIEWS, ___________________ ----,

In the beginner levei you must posi­ (AD OUT). Even advantage (deuce) is The subject is well covered in 10
tion the player behind the bouncing shown as D on the screen. After each chapters and five appendices. Each
ball on the back court on top of the game the screen shows the total scores. chapter contains periodic exercises to
screen and press the fire button. After Tennis is an entertaining and relax­ gauge your grasp of the material.
the opponent's player returns the ball, ing game. The $29.95 price is higher A test with answers to half the ques­
all you have to do is place your player than what you pay for most games of­ tions is included at the end of each
behind the incoming ball and it will be fered by independent vendors, but it chapter. The unanswered questions
returned. In the expert level you must does come in a ROM pack, which is are teasers; however, the author does
also press the fire button at the same more convenient than loading a tape, provide his address so you can write
time that the ball strikes your player's even at 1 ,500 baud .• for the answers if you get stumped.
racket. Don Inman crams a wealth of infor­
If the player is running to the right mation into his book and he corrects
when returning the ball, it will be re­ TRS-80 Color Computer Graphics some oversights in Radio Shack's Go­
turned to the left side of the opponent's by Don Inman ing A head with Extended Color Basic.
court. To make the game more realistic Reston Publishing Co. Inc. If you've already read Radio Shack's
and help you determine the height of Prentice-Hall book, you will at least want to see
the tennis ball, a shadow is always seen $14.95 what TRS-80 Color Computer Graph­
beneath the ball. You can hear the ball Softcover ics has to say about creating arcs with
each time it hits the rackets or the 301 pp. the Circle statement and about the G
court, and there are sound effects for option of the Get statement.
the spectators' applause whenever by Stephen G. Stone, m There is a good illustration of
either player scores. how to draw a diagonal line at
The game is scored according to the N.ow that you've decided to start a heading of other than 45, 135,
standard rules of tennis and appears at producing some serious graphics 225, or 315 degrees . A very bl!lsy pic­
both sides of the screen on each on your Color Computer, TRS-80 ture that will make your head spin is
player's edge of the court. "Advan­ Color Computer Graphics will have shown using the PCOPY statement.
tage" is abbreviated AD. The server's you writing sophisticated graphics This is the best demonstration I have
advantage is shown as I (AD IN); the sooner than you'd have thought seen of the degree of animation possi­
opponent's advantage appears as 0 possible. ble with PCOPY.

'I I I

Pirate Treasure
ESCAh
... e 9 ""''0"
FLI P P E R

TWO PLAYE R ACTION 3·0 ADV E N T U R E BOARD GAM E ADV E N T U R E


1 6K Bas i c w/joyst i c ks 1 6K Basic 1 6K Ext. Bas i c 1 6K E x t . Bas i c
$1 2.95 $1 8.95 $1 6.95 $1 3.95
I N C LU D E $2.25 H A N D L I N G PER O R D E R

-'1
....-
.. "

B RA N T EX, I N C.
Color Software Services D i v T E L E P H O N E O R D E RS
P.O. B o x 1 708, Dept. H (2 1 4) 454·3674
G reenvi l l e, TX 75401 .-74 V I SA/M ASTERCARD

OVER 50 COLO RSO FTTM PROG RAMS AVAI LA BLE


W R I T E FOR FREE CATALOG

.- See List of Advertisers on page 138 HOT COCO Jun� 1983 21


REVI EWS <--
_ _�____'_
_ _ __��-- __i
�'TRS-80 Color
The strings necessary to produce Considering the vast amount of
text while in the graphics modes are graphics knowledge presented, the Computer Graphics is
provided in Chapter 8. The graphics
modes in the Color Computer don't
$ 1 4 . 9 5 price tag is more than
justified . •
well written and covers
support the use of text unless each its subject matter
character is laboriously hand-drawn.
These strings will save you consider­ TRS-80 Color Basic
admirably. The games
able time. by Bob Albrecht presented as examples
TRS-80 Color Computer Graphics John Wiley & Sons
occasionally diverges from a strictly $9.95
are better than some I
graphics orientation. Fully 1 5 pages Softcover have purchased . . . "
are devoted to an explanation of joy­ 378 pp.
sticks . Several pointers and ideas for
use of the Timer function are also ex­ but it does cover some points not han­
plored. The author devotes a good by Ste p hen G. Stone, III dled in the two Radio Shack books.
section to an explanation of the USR Through 13 chapters and I I appen­
function and to an easy-to-understand RS-8O Color Basic offers a dif­ dices, the book discusses almost every­
introduction to machine language. T ferent slant on the explanations thing from setting up your computer
I have only two complaints about of various Basic functions. It can be to subscripted variables. TRS-80 Col­
the book . There is no glossary of Basic valuable if you have questions on any or .Basic does not attempt to discuss
statements for quick reference, and no of the points discussed in the books Extended Color Basic.
grid sheets are provided for laying out that came with the CoCo. Each chapter has a good test at the
your graphics masterpieces . You already have one, or if you end, with the answers to most of the
TRS-80 Color Computer Graphics have Extended Color Basic, two, Ba­ questions. Some are left unanswered
is well written and covers its subject sic language books, so why buy an­ for you to ponder.
matter admirably. The games present­ other? There isn't a book in print that The book is organized in the pro­
ed as examples are better than some I can tell you all you want to know grammed-instruction format. Each
have purchased at my local computer about Color Basic and your machine. new idea is presented in a series of
store. TRS-80 Color Basic doesn't either, numbered paragraphs called frames.

* * * N EW* * * Color Computer Enhancements from Micro Technical Products

FO R T H E TRS·80 * "LCA-"7- Lower Case Adapter "ROML-ROM PAK Loader Program

COLOR COM 'PUTER


· Smarl Improvement! InnovatIVe'
• Compatible With All Color Computer • Save your ROM PAKS on disk and fun
Sollware WITHOUT remo'lmg diSk conlfotler (reQuues

MORSE CODE
� Bnghl characlers on a cJark baCkground 6" RAMI
• lower Case wnh true Clescenders · load and lun ANY maciline language
· ComprehenSive User's Manual program
Here's a way t o t u r n your Color Computer i n to a complete CW · Easy S'mln InstallatIOn · FREE program Included 10 copy mJchlne
no Culling. no solderrng language programs Irom lape 10 disk
Morse Code terminal. NO system memory
Tape . . . $25.'00 Disk . . . $29.00
Uses
1 year wall3nlyl

- KA9Fsa CW MODEM Interfaces the computer to your Assembled & Tested . . . . . . $75.00 "ROMKIL-BASIC ROM Disabler
Disables OISk BASIC ROM or Extended
transceiver via the ROM·PAC slot. "PP·16-EPROM Programmer
· 5 'olt EPROMs 2516 2 7 1 6 & 2758
BASIC ROM
Cartridge: $50.00 •
data. Verrly erased
. Frees up eXira RAM.
• Read . Program. Verily · Syslem slays In selected fevel of BASIC

-Three CW programs to choose from. Auto verrfy alter programming.
6�2. 6800.
even if Rese!
• Software available lor:
6809. 8080. 8085. & lao (Spec,ly on"
· CYCling power restores all ROMs

- KA9FSa TRANSLATOR (Machine language) Nole User must provide I11lerlace 10 computer
Tape . . . $15.00 Disk . . . $19.00
TX programmable from 5·60 WPM , RX to 60 WPM. Features Bare PC Board & "P LUS32-64k RAM Enabler
split screen operation, a 255 character keyboard buffer, and Documentation . . . . . . . . $25.00 Runs BASIC Irom RAM where you can

Complete Kit. . . . . . . . . . . . $45.00 rttodily II


automatic CO using your own call letters. AllowS you 10 load machine language

Cassette: $24.95 "PAK ATTACK- programs above BASIC


• ReqUites good 64k RAM system
From Computerware
-W9AV TRAN SLATOR (Extended Color Basic) • Great lun 101 all .. kidS" WithOut Ihe quar1ers Tape . . . $1 5.00 Disk . . . $19.00
• Fast action. brllhant colors
TX programmable 5-50 WPM, RX to 30 WPM. I ncl udes 9 " BANNER- Mo vin g Marquee
Tape ..... . . .. . . . . ... . $24.95
message memories, and a CW practice mode which sounds Program
DIsplay any message In GIAN1
over your TV. "Super ' Color' Writer 11-
Cassette: $1 4.95 m_o_v_i_ n_.g lellers
From Nelson • & speed
10ps All word processors lor 1he
You choose colors

Tape . . Disk . . .

-W9AV aso ROBOT (Extended Color Basic) Cotor Compulerl
. $1 9 .00 $23.00
TX programmable 5-50 WPM, RX to 30 WPM. Use the keyboard • More features
• Supports ANY "ne p,,,'er "SPECIAL SAvtNGS-$25.00 Oil
or Auto Mode. Makes complete CW OSO's without human in­ • ComprehenSIve documentahon when you purChase Super Color Writer II and

tervention i n c l ud i ng exchange of calls, RST, OTH, and names. ROM PAK. . $74.95 Dis k . . $99. 95 an LCA·'7 logelher'

Also keeps a log. Cass ette: $19 . 95 1--- - - ORDER NOW - ------1
Micro Tech nical Products, Inc.
For additional i n formation & programming, write to: 1 23 N . Sirrine, Suite 1 06·H ..-- 1 9 1
....231
Mike Rice KA9FSO Mesa. AZ 85201 (602) 834·0283

I' MITRON IX I 5953 N. Teutonia Ave.


M i l waukee WI 53209 ..
Add 5% for
Overseas t o % ,
shippi ng. minimum $2 .00.
min. $4.00. ArIZona. add
.....
• Trademark Tandy Corp. please include 5% postage .•• , .. INC. 5% tax. Visa & MasterCard welcome .

22 HOT CoCo Jun� 1983


REVIEWS, ________��__ __I
Most of the frames ask fill-in-the­ Chapter I3 contains what every
HThe material is
blank or multiple-choice questions to programmer, novice or expert, needs: presented in a light­
ensure that you are absorbing the ma­ a Basic glossary. Each Basic keyword
terial. The answers to the chapter tests is given a short, clear explanation and hearted, easy-to­
are keyed to the appropriate frame one or more. examples . understand manner . . . .
number so you can review easily. Many subjects are discussed in
The material is presented in a light­ more depth than in Radio Shack 's Strategically placed
hearted, easy-to-understand manner Getting Started with Color Basic in­ cartoons and
that will not grate on an adult, but can cluding the fact that you can solicit
be understood by a l O-year-old . Stra­ two or more variables in a single Input illustrations clarify . . .
tegically placed cartoons and illustra­
tions clarify and emphasize important
statement.
Bob Albrecht goes to great lengths
important points. "
points . The author even furnishes his to demonstrate how to achieve a ran­
address and asks that you write to him dom number in any range, such as a lack of even a rudimentary memory
with your experiences and questions. random 1 or -I , or a random number map is also a disappointment. Occa­
The whole book is suited to the between 89 and 176. He demonstrates sional misprints occur, most of which
computer novice, but the discussion of how to use set graphics without caus­ are easily recognizable even by a
RAM and ROM in Chapter 1 is of ing the screen to scroll, and how to use novice programmer. Most of them
particular interest . The author makes sound as clues in a guessing game. seem to be in the chapter on string
several comments on program flow There are appendices on the order variables, so be alert when you read
, and programming style that are of of precedence in arithmetic, scientific that chapter.
value to the beginner. I wish the book notation, and floating-point notation. TRS-80 Color Basic is a great book
I learned Basic from had had such a The appendix on joysticks goes well from which to learn Basic. It will not
good discussion of conditional state­ beyond Getting Started with Color discourage the beginning program­
ments and program flow . Basic. mer, nor will it put off the more ex­
Much attention is given to two of The book suffers only a few draw­ perienced user by oversimplifying. [t is
the most important concepts in Basic: backs. Chief among them is the omis­ a reasonably priced, outstanding com­
string and numeric variables. One sion of any discussion of file handling panion to Getting Started With Color
\
chapter is devoted to each. or cassette 110 (input/output). The Basic. .

C O O S O L COMP UTER P R O D U CTS


O K I DATA PRI NTERS E P S O N P R INTERS SANYO C O M P UTER

• OKI DATA 82A. 83A. 84A . . . . . . . . . . . . . . CALL o E PSON F X�IO . .. N E W ... C A L I. • S A N Y O M B C · l 000 S I 599
• O K I DATA 92A. 93A. & OTHERS . . . CALL o E PSON MX-80 FIT l.RAF TI<AX PLUS . C Al L • SANYO MBC·2000 S2699
• 82A TRACTOR S5500KI DATA 80 o E PSON MX-l00 G I<M TRAX P L U S •
C AL L
v
. $325 SANYO MBC·3000 S4999
• Abo e wilh CP/M . BASIC. and ot her software
OTH ER PRINTERS
N E C PC-8023A-C MODEMS • SANYO ACCESSORIES & SOFTWARE CALL
CALL
NEC 3550 OTHER COMPUTERS
• HAYES S M A R T M O O E M (300 BAUO)
CAL L
NEC 35 1 0. 35 1 5. 3530 S229
• H A Y E S SMART MODEM (300 & 1 200 BAUOi
CAL t
NEC 771 O. 7 7 1 5. 7730. 7720, 7725 S595 • COLUMBIA Computer System, CALL
• RS-232C COMPATIBLE
CALL
C I T OH 851 0AP CALL " 851 0ACD CALL • ADDS Com puler Syslems CAll
• • NEC PC-800 I A. PC-801 2A. PC·803 1 A. and
C. ITOH 1550 A P CALLo 1550ACD . .
FULL and H A L F ·DUPLEX OPERAT ION
CALL
W I T H BOT H
C ITOH F I 0 · 4 0 P U & F I 0·40AU CALL J B - 1 201 ( N E C SYSTEM) Wllh CP/M
• TOUCH T O N E and PULSE OIALOG
C I T OH F 1 0·55PU & F I 0-55AU and BASIC S21 49
• AUTO-ANSWEA/ D I A L / R E P E A T
CALL
STAR·GEMINI·10 CALL • NEC Olher CPU'S and Software CALL
TALLY MT H)(ll. I • COMPL E T E L Y PROGRAMMABLE • OYNABYTE 5605 -6- 1 S5999
CALL
• BUILT-IN AUTO MONI TOR • OYNABYTE O T H E R SYST E MS CALL
TALLY MT 1 602 MT 1 605 SI 495
• STATUS AT A GLANCE • X E R OX 820 SYST EM wI5 1 1 4" DRIVES S2499
T A L L Y M T 1 802 MT 1 805
• OlRECT -CONNECT O E S I G N
S I 795
DIABLO 630 and 620 S E R I E S • X E R OX 820 S Y S T E M w/8- DRIVES S2995

CALL

r-----I
HAYES CH RONOGRAPH
OUME S PR I N T 5 45IRO.KSR & 55/AO.KSR CALL S209 SOFTWARE FOR THE ABOVE CALL
ANADEX AI'lX ·9500·P. ADX-9501 ·P • NOVATION AUTO-CAT AUTO ANS S219
S I 295
• S I G N A L M A N MARK 1 (300 BAUDI S89
C O M R E X CA · I ·S. CA - I -C. CR· I ·O CALL
• U D S I 03 OALP (300 BAUDI S 1 75 COOSOL SPECIAL DISCOUNTS
S M I T H -CORONA T P - I CALL
• U D S 1 03 JLP 1300 BAUDI S 1 99
BRO T H E R H R · l CALL
DAISY W R I TERS • U D S 202 SLP ( 1 200 BAUDI S249 APPLE SOFTWARE • • • • • • • • • • • • • CALL
CALL
IBM SOFTWARE • • • • • • • • • • • • • • • • CALL
COOSOL, I NC. P.O. BOX 2642, COSTA MESA, CA. 92626-2642 D R PH O N E 7 DAYS Calil. (71 4) 545·2216
(800) 854·8498
CO M P UTER BARO N 301 7B·HARBOR B LVD COSTA M ESA , CA 92626 •
(7 14) 979·2488

". See Lisr 01 Advertisers on page 138 HOT CoCo Jun� Iq83 23
���---
The Basic Beat �---------------------.

T his column will introduce you


to the commands available on THE
ing the letters CLS followed by a num­
ber between zero and eight inclusive.
Color Basic for the TRS-SO Color
Computer. The material I present will FIRST STEPS (Don't forget to enter .) Pretty, isn't it?
Each number displays a different col­
work on any configuration of the
TRS-80 Color Computer. I plan to To BASIC or screen. If you're like me, you had to
try CLS9, and then ran out of colors.
teach several commands each month,
following the tentative schedule in
PROGRAMMING Don't get upset if you start typing
green letters on a black background.
Table 1 . You can change the printing back to
There will be sample programs to normal by holding down the shift key
demonstrate the use of new com­ BY JAMES W. WOOD and typing zero. Shift 0 will change the
mands. The programs may not be use­ letters back and forth from green on
ful for any purpose other than black to black on green . If you try
teaching a command , but they will be Do not use small L for a number 1 ; it CLS with green letters on black , it
short enough to type in quickly. May­ just won't work. doesn't work. Most commands will
be I 'll even give a few pop quizzes . OK, students, get out your CoCo. I not work unless the typing is black let­
Basic is the language that is built in­ will assume that you can connect the ters on a green background.
to your computer. Other languages computer to the television and know Another problem is typing an incor­
available include Logo, Pascal, As­ the location of the power switch and rect letter. Suppose you typed CLD in­
sembly, and Pilot. To program in channel selector. If you have trouble, stead of CLS. If you have not hit en­
these languages, you must tell the pretend you are going to use a pro­ ter, simply push the white left-arrow
computer how to use them. The lan­ gram pak-but do not insert one. key to back up one space. If the shift
guage must be transferred into the Turning on the computer should re­
computer's memory from a program sult in a green screen with black letters.
pak, a disk, or a tape. Basic, on the
other hand , is ready to program as ( The letters say something about Tan­
dy or Microsoft. Pushing the clear key 10 NU = 9

\
soon as you turn on the computer. will clear the screen. Another way to 20 PRINT NU;
When typing in programs, be care­ clear the screen is to type the letters 30 NU = NU + I
ful not to confuse the letters D or 0 CLS and then push the enter key. The 40 GOT0 2O
with the number O. They are not inter­ second way leaves an "OK" on the
Program Listing 4
changeable. This will drive many typ­ screen.
ists nuts. Two other characters that Notice the small area on the screen
might give you trouble are the tetter I that is constantly changing color. That
and the number 1 . They look similar is your cursor-no dirty language, just
on some listings. The computer key­ a marker to show where your next 10 A=7
board has numbers zero through nine. character typed will appear . Try typ- 20 B = 29
30 PRINT A;
40
50
PRINT B;
A=A+4
I
60 B=B+3 It
I
10 CLS 70 GOT0 30
20 PRINT "WELCOME TO COMPUTER CLASS" Program Listing 5
30 GOT0 2O

Program Listing I

10 INPUT "WITH WHAT NUMBER

I SHALL I START COUNTING" ;A


20 PRINT A;
10 PRINT "YOUR NAME " ; 30 A = A + I
10 ?"LAZY TYPER'S DELIGHT"
20 GOTO 1 0 40 GOT0 20

Program Listing 2 Program Listing 3 Program Listing 6

24 HOT CoCo Jun.: 1983


1
The Baslc Beat _____________________ ---.

key is down when the left arrow is 30, type RUN and enter. The screen "STAY TUNED NEXT MONTH"
pressed, the cursor will move back to should fill with the welcome message. to Listing 1 . Line numbers are usually
the beginning of your typing, erasing The computer executes a program multiples of 10 because of the visual
everything in its path. Had you pus�ed one line at a time. Line 10 cleared the appeal and the need for space to insert
enter , you would have gotten a syntax screen. Line 20 printed the message ex­ other lines.
error and an OK prompt. You just actly as it appeared in the quotation Add line 27 REM PRINT "THIS
would have had to type CLS again. marks. Line 30 told the computer to LINE WILL NOT PRINT" and run
Type PRINT MEM and enter. go to line 20. The message is printed the program. Everything after a REM
Most commands require pressing the again. After executing line 20, the or an apostrophe in a line is ignored by
enter key. A number between 2,343 computer proceeds to the next higher the computer. It is a re;nark. I use
and 32,5 5 1 will be displayed. This re­ line number. Line 30 sends the ma­ them at the beginning of a program to
fers to how many bytes of memory are chine back to line 20 again. You are in record in what issue of what magazine
available. Each byte will hold one let­ a continuous loop. that program was published. When I
ter in the computer's memory. To Push the red break key if you're not can't remember how to use the pro­
store information in the memory, you afraid of red switches. Type LIST and gram, I have no trouble finding its ac­
must write a program. enter. Your program is listed on the companying article. You can use
Type in Program Listing 1 . Notice screen. Try typing a new line 20 with remarks for any kind of note within a
that each line starts with a line num­ some other message inside the quota­ program.
ber. At the end of each line, press tion marks. (You can edit the line with It's time to move on to Program
enter. Don't worry that line 20 is too an Extended Color Basic computer, Listing 2. Type NEW and enter. Type
long; it will wrap around to the left but this column is for beginners and LIST and enter. The program is
side of your screen. After entering line for all versions of the CoCo.) The new erased from memory and cannot be
line 20 will replace the original line 20. listed. Type Listing 2 and run the pro­
List the program to become a be­ gram. The semicolon tells the comput­
liever. If you are stii1 not a believer, try er that whatever is next to be printed
Table I. Tentative Schedule
typing the programs in backwards. should immediately follow what is
Month I
Type in the highest numbered line printed. Your name will be placed
line numbers
first, the lowest numbered line last. across the screen instead of being
variables
SHIFT left arrow Then list the program to see if the printed each time on the next line.
PRINT (comma, quotes, semicolon) computer can rearrange the lines to Experiment with different numbers
INPUT the correct order. of spaces between your name and the
LIST Line numbers don't have to be mul­ second quotation mark. To pause the
GOTO tiples of 10. Add line 25 PRINT printing, or any other Basic program
CLS operation, hold down the shift key
REM or ' and type @ . Touching any other key
RUN will then let the computer proceed.
SHIFT 0 Month 4
SHIFT @ nested for loop
NEW PRINT@
MEM INT Month 7 .
+ ABS Audio
ON . . . GOTO Motor
Month 2 ON . . . GOSUB CHR$
colon GOSUB LEFT$
scientific notation Return LEN
string variables And RIGHT$
CLOAD Or MID$
CSAVE Not
If. . . Then . . . Else Month 8
< , > , '" Month 5 EOF
Clear Read Close
- , ., / Data PRINTI/ - I
End Restore INPUTI/ - I
CONT ASC Open
Stop POKE
PEEK (keyboard)
PEEK (video display)
Month 3 Print Tab Month 9
calculator mode EXEC
parenthesis Month 6 USR
For . . . To . . . Step . . . Next arrays CSAVEM
RND INKEY$ CLOADM
Sound VAL change Assembly listing to Basic
Set DIM converting Model I, I I I to color
Reset SGN SIN
Point JOYSTK how to find a square root

HOT CoCo Jun� 1983 25


The Baslc Beat ____________________ --,

There is one last punctuation mark gram. Notice that this results in an SN line 30 upset your algebraic thinking?
to learn. Rewrite line 10 of Listing 2 to (syntax) error. The two-letter combi­ Think of line 30 as meaning that NU
end with a comma instead of a semico­ nation TO cannot be used as a variable equals what NU used to equal plus
lon. Also, leave out the spaces after because TO is one of the commands one. Each time through line 30, the
your name and before the second quo­ used in Basic. Now, change Listing 4 value of NU increases by I .
tation mark. If your name is fewer Line 40 loops back to line 20 to keep
than 1 6 characters long, the resulting printing the value of NU . Line 30 con­
printout is two columns of your name. tinues to increase the value of NU by
A comma spaces printing into two col­ I . Do you remember how to break out
umns, each 16 characters wide. "My computer school of a loop? Could you momentarily
When programming, you will find has several advantages. freeze the display without pushing
it's faster to use a question mark for a break (shift @)? Experiment with
Print command. Erase the program in Leaving your homework Listing 4 by changing the value of NU
memory. (If you don't remember in line 10, or the number added to NU
at home won 't get you
how, just think of getting ready for a in line 30.
NEW program.) into trouble or lo wer Study Program Listing 5. Pretend
Type Program Listing 3. That you're the computer and go through
didn't take long. Now list the pro­
your grade. " the program with pencil and paper.
gram. By magic, the question mark Write down the first six numbers that
changed to the word Print. will be printed . Then type in and run
It's math time, so type in Program Listing 5 to see if you are correct.
Listing 4 and run the program. It as­ Our last topic for this month is In­
signs the value of 9 to the variable NU. back to its original form and it will run put. This command will allow you to
Any one letter, two letters, or one let­ correctly. program the computer to ask a ques­
ter followed by a single numerical digit In line 20, notice that NU is not in tion. Run Program Listing 6. Notice
can represent a unique number. It's quotation marks. This will allow the that a question mark is printed by the
like having a calculator with several computer to print the value of NU. input statement. Many times, a pro­
hundred memories. Change line 10 in Since NU 9, printing the value of
= gram must ask you for information.
Listing 4 to 10 TO 9 and run the pro-
= NU results in a 9 being printed. Does The Input command is usually used
L...-_________________________--, for this purpose.
If you answer the question with a
number containing more than nine
digits to the left of the decimal point, it
results in some weird numbers. The
printout has numbers with an E in
them that are in scientific notation.
Unfortunately, scientific notation is
one of next month 's commands. You
win have to wait until then to learn the

'
secret of E .

'Basic Aid Colorcom/E


Try t o find a number too large for
this program. Any number too large
for the computer will result i n an OV
"An excellent program "Out of thousa'nds of programs, (overflow) error. There is another way
and fine utility. " this program . . . SUPER !" to type an input statement. Line 10 of
Rainbow Review - Aug. 82 80 ' US Review - Nov. 82 Listing 6 could be replaced by these
A smart communications package. two lines:
Single control key input of
BASI,C commands. $ 34.95 !Disk or Rompack $ 49. 95

Spect rum Sflck CoCo/EAOI


10 PRINT "WITH WHAT NUMBER
SHALL I START COUNTING"
15 INPUT A
"!More like arcade joysticks Color Computer Editor,
than anything we've yet Assembler and Debugger $6.95 My computer school has several ad­

Spectrum Padd:le
vantages. Leaving your homework at
-encounte red." home won't get you into trouble or
Rainbow Review- Oct. 82 lower your grade. It's stiU a good idea
'Response and control put the joy For quicker side·to·side action to familiarize yourself with this
back in color computing. $3 9. 95 and hi g her scores. $ 19.95 material to prepare for next month's
lesson . •
CA L L NOW SEND TO
212·44 1 ' 2 8 0 7 DEPT. C2 93 -15 86TH DRIVE Write James Wood c/o HOT
FOR FAST DE L I VERY WOODHAVEN, N.Y. 1 1421 CoCo, Pine St., Peterborough, NH
All orders p tus $2 shipping NY residents add sales tax .... 525 03458.

26 HOT CoCo Jun� 1983


Time was when you could pull any computer magazine Send in the attached card today, use the coupon below
off the rack and it would suit your purpose.
Not anymore. Today, you need a magazine that is tailor­ or call toll free 1-800-258-5473 ,
made for your system , a magazine designed to fit your com­
puting needs, a magazine that lets you move freely to ex­ Stop buying those ill-fitting computer magazines off the
pand your knowledge of computing and to use your com­ rack. Subscribe to 80 MICRO and get the magazine that's
puter to its fullest capacity. tailor-made for you .
For users of Radio Shack computers, that magazine is 80 r - - - - -----�-------
MICRO. No other computer magazine in the world pro­
vides more useful information on the TRS-80 · than 80 MI­ I want the magazine that's tailor-made for me.
CRO. In 1982 alone, 80 MICRO published over 5000 pages Send me 1 2 issues of 80 MICRO for only $24.97.
containing informative articles; useable programs and
D CHECK DMC D VISA D AE D BILL ME
helpful tips; hardware, software, and book reviews; new I
product announcements; science, business, and home-use CARDH __�_____________________________

applications; Color Computer · information; tutorials; util­ EXP. DATE_______ INTERBANK_____________

ities; and games.


80 MICRO is the largest single source of information for SIGNATURE________________________________

your TRS-80. No one else even comes close-not even NAME


Radio Shack. Because 80 MICRO is not affiliated with the
manufacturer, you get unbiased, independent reporting on
ADDRE§ _________________________________

the latest h appenings and innovations . CITY______ STAT..,..,


E__ __�ZIP_______

If you use a TRS-80, Color Computer or 111 16, you should


subscribe to 80 MICRO. And if you order now be­ 80 MICRO Subscription Department
fore the price goes up you will get 12 monthly issues for only PO Box 981 , Farmingdale, NY 1 1737 33684
$24. 97. The first issue could save you that much in pro­ Canada and Mexico $27.97. I year only. US lunds. Foreign Surface $44.97. I year only. US
grams alone. lunds drawn on US bank. Foreign air. please inquire. Please allow 6-8 week., Inr delivery.

'TRS.BOa,uI TRS-BO Color Compute< are trad"marks of Radio Shack. a dioLrion of Tandy Corp.
UTILITY

BY JOHN NICOLETTOS

AUTO-COLOR WRITER

A uto-Color Writer is a simple text


processor with a built-in Basic
With this handy text pro� The input character (1$) is checked in
line 460 to see if it is a command code.
program generator. Auto-Color Writer cessor , you can leave There are five possible command codes:
takes up about 4K of memory; how­ writing the screen-format­ the left arrow (CHR 8), right arrow
ever, the essence of the program takes (CHR 9), down arrow (CHR 10), clear
only 2K. By eliminating the remarks ting code to the computer. (CHR 12), and enter (CHR 1 3 ) keys . A
and the text portions of the program, conditional GOTO statement is used, in
you can use it with the 4K model of the lieu of several If . . . Then statements, to
Color Computer . Lines 1 90-220 provide for the addi­ simplify the program and minimize the
I have tried to maintain compatibility tion of a footer to the bottom of the text time delay of the command-decode
with standard Basic by not using Ex­ page. The Basic statement for the footer function.
tended Basic instructions. Auto-Color is stored in LN$(l5). The line counter . Lines 490-5 10 are executed when the
Writer is written for cassette-based sys­ (LN) is augmented to reflect the addi­ input character is not a command code.
tems, but it should be fairly simple to tion of the heading and footer. Line 240 These lines will test to see if the input
modify for a disk-based system . provides the means to start the comput­ character is a blank. If so, its position
er-generated Basic program at any ini­ will be stored in (E) for use by the over­
Program Descrip tion tial line number (ST). flow section (lines 540-570).
Auto-Color Writer has three major Lines 25�3 50 are the change-of­ Next, the current character position
sections: the format menu (lines parameters section. This section allows (CP) is checked . If it is within 10 char­
1 0-370), the text processor (lines you to change the text processor's right acters of the end of the text page (CS), a
38�700), and the Basic program gener­ and left margins or tab value. The video warning beep will sound. The input
ator (lines 71�1090). screen is prepared for the text processor character is then printed on the video
The format-menu section establishes in lines 360-375. screen and stored in the current text-line
the format for the other sections (mar­ The text processor starts with line variable (LN$).
gins, tabs, and program line incre­ 4 10, which calculates the location of the After incrementing the character
ments). Lines 5� 180 a1low you to enter last character on the page (CS), and the counter (CN), the program will return
a heading, a�tomatically center it, variables storing the spaces for the left to the input section (lines 420-460).
change it to lowercase, and underline it. margin (LM$) and for the tab (TB$). When the number of characters entered
The centered heading is stored in the Lin� 420 adds the appropriate number exceeds the right margin (RM), the pro­
text-line variable LN$(O). The underline of spaces to the current text-line vari­ gram will execute the overflow routine.
statement is stored in LN$( l). able (LN$(LN» and augments the char­ The overflow section (lines 5�570)
acter counter (CN). will first produce an end-of-line beep.
Line 430 calculates the current char­ The input character will then be tested
acter position (CP) and tests to see if it to see if it is a blank . When the input
has exceeded the page size (either CS or character is a blank, the line counter
System Requirements 5 10). I f the page is filled, the program is (LN) is incremented and the program
directed to the Basic program-generator returns to the input section.
16K Col.or Basic section (lines 740-900). The cursor is If the input character is not a blank,
developed and the keyboard scanned in all the characters to the right of the
line 440. Line 450 provides the repeat­ character position stored in variable E
space and backspace functions. (the last blank) are erased from the
28 HOT CoCo Jun� 1983
screen and moved to the next line. Ad­
ditionally, the text-line variables are ad­ Program Listing

justed to reflect the changes. Both the


character counter and the line counter 10 CLEAR 1 0 0 0 0 : DIM LN $ ( 1 6 ) , PL $ ( 1 5 5 )
2 0 QM$=CHR $ ( 3 4 ) : LM= 0 : RM= 3 1 : TB=3 : INC=1 0 : BL=15 : TL=0
are appropriately adjusted, and the pro­ 3 0 CLS : LN=0 : PRINTTAB ( 8 ) " a u t o " CHR$ ( 1 2 8 ) "c o1or "CHR $ ( 1 2 8 ) "wr i t e r "
gram returns to the input section. 40 PRINTSTRING $ ( 3 2 , 1 3 1 ) ;
50 PRINT"heading " : PRINT" yES , nO , OR r EPEAT" ; : INPUT Z $
The program executes line 600 when 6 0 I F Z $ = " N " THEN TL= 0 : GOT01 9 0 ELSE I F Z $_ " R n THEN LN=TL : GOT023 0
the input character is the enter key. The 7 0 PRINT @1 31 , n ENTER HEADING " : L INE INPUT H D $ : H L $= " " I HH $= " "
8 0 IF LEN ( HD $ ) > 3 2 THEN PRINT @ 1 6 0 , STRING $ ( 3 3 , " " ) : GOT07 0
program will increment the line
90 LH= INT « 3 2 -LEN ( H D $ » / 2 ) : TL=1 : LN=1
counter, initialize the character counter, 1 0 0 PRINT" u P PER OR lOWER CAS E " , : INPUT Z $ I IF Z $= " U " THEN H L $ = H
and then return to the input section. I f D $ : GOT01 6 0
1 1 0 FOR 1 = 1 TO LEN ( HD$) : H H=ASC ( HD $ )
the new line exceeds the bottom line 1 2 0 IF H H > 6 4 AND H H < 1 3 3 THEN HH�HH+ 3 2 : GOT0 1 4 0
margin (BL), the program will automat­ 1 3 0 IF H H = 3 2 THEN HH $=HH $+QM $+"CH R $ ( 1 2 8 ) " +QM $ : HL $=HL$+CHR$ ( 1 2 8 ) :
GOT01 5 0
ically exit the text-processor section.
1 4 0 HH $=HH $+CHR $ ( H H ) : HL $ =HL $+CH R $ ( H H)
If the input character is the left ar­ 1 5 0 HD$�RIGHT$ ( HD $ , LEN ( HD$ ) - l ) : N EXT : HD$"HH $
row, lines 630-640 are executed. The 1 6 0 LN $ ( 0 ) =STRING $ ( LH , " " ) +HD $
17 0 PRINT" UNDERL INE ( y ES OR nO) " ; : INPUT Z $ : IF Z $= " N " THEN 1 9 0
character to the left of the cursor is 1 8 0 LN$ ( 1 ) = n @3 2 , STRING$ ( 3 2 , 1 3 1 ) , " : TL=2 : LN = 2
deleted from both the screen and the 1 9 0 PRINT: PRINT" f ooter " : PRINT" yES , OR nO" , : INPUT Z $
200 IF Z $ = n N " THEN BL=1 5 : GOT023 0
current text-line variable. A beep
2 1 0 LN $ ( 1 5 ) =" PRINT @ 4 8 4 , " +QM $+ " PRESS ENTER TO CONT INUE" +QM$+" , : L
sounds, the character and line counters INE INPUT Z Z $ "
are decremented , and the program re­ 2 2 0 BL"' 14
23 0 I F S T < > 0 THEN 250 ELSE PRINT
turns to the input section. 240 PRINT " i n i t i a 1 "CHR$ ( 1 2 8 ) "program " CHR $ ( 1 2 8 ) n 1 ine "CHR$ ( 1 2 8 ) " no .
The right arrow is the tab function. " , : INPUTST
250 PR INT: PRI NT" change "CHR$ ( 1 2 8 ) " pa r ameter s " : INPUT" yES OR nOn
When this key is pressed, the program
,Z$
executes line 670. The appropriate num­ 260 I F Z $ < > " Y " THEN 3 6 0
ber of blanks are printed to the screen 2 7 0 CLS : P RINT @6 4 , "DO YOU WANT TO: " : PRINT @ 1 2 8 , " 1 . CHANGE LEFT
MARGIN"
and stored in the current text-line vari­ 280 PRI NTTAB ( 7 ) "CURRENT VALUE IS" , LM
able. The character and line counters 2 9 0 PRINT" 2 . CHANGE RIGHT MARGI N " : PRINTTAB ( 7 ) "CURRENT VALUE I
are augmented, and the program re­ S " , RM
3 0 0 PRINT " 3 . CHANGE TAB " : PRI NTTAB ( 7 ) "CURRENT VALUE IS" ; TB
turns to the input section. 3 1 0 PRINT" 4. RETURN TO PROGRAM" : PRINT
Press the clear key to clear the entire 320 PRINT" ENTER 1 , 2 , 3 , OR 4 " , : INPUT Z : PRIN T : ON Z GOTO 3 3 0 , 3 4 0 ,
350 ,360
page of text. This command sends the 3 3 0 PRINT" ENTER NEW LEFT MARGI N " : INPUT"RANGE ( 0 TO 3 1 ) " , LM : GOT02
program to line 700. The screen is 70
cleared, the character and line counters 3 4 0 PRINT" ENTER NEW RIGHT MARG I N " : INPUT " RANGE ( 3 1 TO 0) n ; RM : GOTO
27 0
initialized, and the program sent to the 3 5 0 PRINT" ENTER NEW TAB SETTING " I INPUT "RANGE ( 0 TO 3 1 ) " , TB : GOT027
beginning of the text-processor function o
3 6 0 CLS : I F TL=0 THEN 41 0 ELSE PRINTTAB ( L H ) H L $
(line 360). 3 7 0 I F TL-2 TH.EN PRINT @ 3 2 , STRING $ ( 3 2 , 1 3 1 ) ,
The final section (lines 7 1 0- 1 090) is 3 7 5 IF BL=14 THEN PRINT @ 4 8 4 , " PRESS ENTER TO CONTINUE " ,
3 80 '
the Basic program generator. Once a 3 9 0 ' TH I S IS THE TEXT PROCESSOR
page of text has been completed, lines 400 '
410 CS= ( BL+1 ) * 3 2- ( 3 2-RM) : LM$=STRING$ ( LM , " " ) : TB$ �STRING $ ( TB , " " )
740-850 will format it into Basic pro­ 420 LN $ ( LN) =LM $ : CN-LM
gram lines (PL$). The first Basic instruc­ 4 3 0 CP=LN*32+CN : I F C P > 51 0 OR CP >CS THEN 7 4 0
tion generated is the CLS (line 740). 4 4 0 PRINT @CP , CHR $ ( 1 4 3 ) , : I $ =I NKEY $ : IF 1 $ < > " " THEN 4 6 0 ELSEPRINT@CP
, CHR$ ( 1 2 8 ) ,
Each of the following computer-gen­ 450 POKE3 4 3 , P EEK ( 3 43 ) OR8 : POKE3 4 5 , PEEK ( 3 4 5 ) OR 8 : GOT04 4 0
erated Basic program lines will contain 460 O N ASC ( I $ ) -7 GOT06 3 0 , 6 7 0 , 7 4 0 , 4 9 0 , 7 0 0 , 6 '0 0
two lines of text. After all the text has 470 '
480 ' NORMAL CHARACTERS
been formatted into Basic instructions, 490 IF CN >RM THEN 5 4 0 ELSE IF 1 $ = " • THEN - E=CN
line 860 prepares the footer instruction. 500 IF CP>CS-10 THEN SOUND2 0 0 , 1
510 PRINT@CP , I $ , : LN $ ( LN) =LN $ ( LN) + I $ : CN-CN+ 1 : G0T04 3 0
If you wish to enter more pages of 520 '
text, lines 870-900 will direct the pro­ 530 ' OVERFLOW SECT ION
gram back to the format-menu section. 540 SOUND1 8 0 , 1 : I F 1 $ = " " TH EN LN=LN+1 : GOT04 20
550 LN $ ( LN+1 ) =LM$+RIGHT $ ( LN $ ( LN) ,RM-E) + I $ : LN $ ( LN ) =LEFT $ ( LN$ ( LN) ,
Otherwise, the program will file the E)
computer-generated Basic program on 560 I F E < >RM TH EN PRINT@ ( LN * 3 2 ) + E , " •
570 PRINT @ ( LN+1 ) * 3 2 , LN $ ( LN + 1 ) , : CN=LEN ( LN $ ( LN + 1 » : LN=LN+ 1 : GOT0 4 3 0
tape. Before the BaSic program is filed, 580 '
it will be displayed by lines 910-940 for 5 90 ' NEW LI NE
review. These lines can be deleted once 600 SOUND1 80 , 1 : I F LN(BL THEN LN=LN+ 1 : GOT0 4 2 0 ELSE 7 4 0
610 '
you gain confidence in the Auto-Color 620 ' BACKSPACE
Writer program. 630 PRINT@CP , I $ ; : CN=CN-1 : I F CN(LM THEN CN=RM : LN=LN-1
640 LN $ ( LN) =LEFT$ ( LN $ ( LN ) , CN ) : SOUND5 0 , 1 : GOT043 0
The remainder of Auto-Color Writer 6 50 '
prompts you to prepare the cassette for 660 ' TAB
670 PRINT@CP , TB $ ; : CN=CN+TB : LN $ ( LN) =LN $ ( LN) +TB $ : GOT0 4 3 0
recording a file, and then stores the
680 '
computer-generated program on tape. 6 90 ' CL EAR PAGE
700 CLS : LN=TL ; CN= 0 : GOT03 6 0
Operating Instructions 710 '
7 20 ' TH I S IS FORMAT AND F I L E PORTION
Heading-Auto-Color Writer is so Listing continues
simple to use that it's habit-forming.

HOT CoCo Jun( 1983 29


Throughout the format-menu section,
/.isting continued
you will be asked to respond to
730 '
prompts. You only need to enter the
7 4 0 PL$ ( PL) =STR $ ( ST) + " CLS " : PL=PL+l : ST=ST+INC
7 5 0 FOR J=0 TO LN STEP 2 first letter of the appropriate response .
7 6 0 P L $ =STR $ ( ST ) + " PRINT" : ST=ST+INC : LL=LEN ( LN $ ( J » When you first run the program, you
7 7 0 IF J=LN THEN J=J-l : GOT0 8 1 0
7 8 0 IF LL= 3 2 THEN X $= " I " ELS E X $ = " " will be asked if you have a heading for
7 90 I F LL<=LM THEN 8 0 0 ELSE PL$=PL $+QM$+LN $ ( J ) +QM $+X$ the text page. You can either enter a
8 0 0 PL$=PL $ + " : PRINT"
810 NL=LEN ( LN $ ( J + l » : I F NL=32 OR J=14 THEN X $ = " I " ELS E X $ = " "
heading, decline to enter a heading, or
8 2 0 I F TL=2 AND J = 0 THEN PL$=PL$+LN$ ( J +l ) : GOT0 8 4 0 repeat the previous page's format.
8 3 0 I F NL <=LM THEN 8 4 0 ELSE PL$=PL$+QM$+LN $ ( J + l ) +QM $+X$
When you elect to enter a heading,
8 4 0 P L $ ( PL ) =PL $ : PL=PL+l
850 NEXT you will be asked if the heading is up­
860 I F BL=14 THEN PL$ ( PL) =STR $ ( ST ) +LN $ ( 1 5 ) : ST=ST+INC : PL=PL+1 per- or lowercase. If the heading is low­
870 CLS : PRINT@1 2 8 , "OO YOU WISH TO : "
8 8 0 PRINT : PRINT" 1 . CONTINUE WRITING . " ercase, the computer will convert the
890 PRINT : PRINT" 2 . FILE INFORMATION . " characters to lowercase and add a black
9 0 0 PRINT : INPUT" ENTER 1 OR 2 " I Z : 0N Z GOTO 3 0 , 9 1 0
space character (C HR$(l28» between
910 CLS : FOR 1 = 0 TO PL-l STEP 6
9 2 0 FOR J=0 TO 5 : PRINT PL$ ( I+J) : N EXT J words. All headings will be centered
9 3 0 PRINT@4 84 , " PRESS ENTER TO CONTINUE " I : LINEINPUT Z $ : C LS and are limited to 32 characters.
9 4 0 NEXT I
9 5 0 CLS : PRINT@3 4 , " PREPARE RECORDER TO RECORD A FILE BY : " : PRIN Next , you will be asked if you want
T the heading underlined . Underlining is
9 6 0 PRINT" l . POSTIONING TAPE PAST LEADER OR END OF THE PREVIOUS
achieved by printing 32 graphic charac­
F ILE • •
9 7 0 PRINT , PRINT" 2 . PRESSING THE play AND record BUTTONS . " , PRINT ters (CHR l 3 1 ) on the next line.
980 PRINT" 3 . K E EP ING A WRiTTEN RECORD OF THE CURRENT COUNTER RE Footer-The footer prompt will ask
ADING . "
9 90 PRINT : PRINT" 4 . IDENTIFYING TH IS FILE NAME . " if you want the computer to add a foot­
1000 INPUT" " I B $ : B $ =LEFT $ ( B $ , 8 ) : AUD IOON er. The footer is an input statement with
1010 OPEN " O " , 1 - 1 , B $
1020 FOR 1 = 0 TO PL : PRINTI-l , P L $ ( I ) : NEXT
a printed prompt that tells you to press
1030 CLOSE I - l : AUDIOOFF the enter key when you are ready to
1040 CLS , PRINT@3 2 , "WHEN THE RECORDER ' S MOTION HAS STOPPED , " , PRI continue the program.
NT
1050 PRINT" 1 . PRESS THE RECORDER ' S stop BUTTON . " : PRINT The footer will be displayed on the
2. rewind THE TAPE TO THE
� �
1060 PRINT" BEGINING . " : PRINT last line of the text page. This prompt
1 7 PRINT" 3 . REMEMBER K E EP A WRITTEN ACCOUNT OF THE " I
1� 8� PRINT " COUNTER READING AND THE F I L E NAME < " B $ " ) . "
will not appear if you elect to repeat the
heading. Instead, the last footer deci-
======-.
1090 END

sion will be repeated .


Initial Line Number-Auto-Color
Writer allows you to start the computer­
generated Basic program at any line

Switchable Expansion Is Here


number you choose. This prompt will
only be displayed the first time through
the program.
A PERFECT COMPANION FOR COCO
The key ro versa tility is the new BT- 2000 After you enter the first line number,
COMPANION. -Load S ca rtridges a nd enjoy the all other program lines will be incre­
benefi ts of Pus h - Butron selec tion. -SAVE CoCo's mented by 10. If you choose not to enter
connector. Reduce plugging. -Ind icator l ights, a number, the computer will start the
know at a g l a nce w h ich cartridge is in use. -No Basic program at line O.
more Turn -Offs. Sw i tch ro the next cartr idge i n Change of Format Parameters-The
yo u r C O M PA N I O N . - P u sh a button t o last format prompt will ask if you wish
RESTART w i thout t u r n i n g powe r ON a n d OFF. to change any of the format parame­
'249.95. ters. If you elect to change them, the
computer will display their current
FOR THE ADVANC E D U S E R AND EXPERIMENTE R
value and will provide a format-param­
The utmost in power and versa t i l i ty is the BT- lOOO Expansion Interface
eter menu.
Unit. -B u i l t i n suppl y to power you r peripherals or experimenter circui ts.
When you have finished with the for­
- S E x pansion slots - - - I nterna l memory decod ing. -Space for your ML
mat-menu section, the screen will clear
Utilit ies in EPROM or in optional RAM. $ 270.00.
and display the heading and footer . A
Or w i th 8K of RAM, $300.00.
cursor will flash at the current character
Write now fo r FREE brochure. Also for CoCo :
position.
Add ' 5 . 00 s & h. Check, money BT- to ! O Pa rallel Printer Inte rface
$ 79.95 Text Proc�ing-Auto-Color Writer
order, VISA , MC (Account no.
BT- t020 Real Time Clock/Ca lendar
is now in the text-input mode and you
and expir. date). COD c h a rge
$ 109.00 can practice your literary skills. Type
'2.00 ( r eq's cer t i fied check or
BT- 1030 Ve rsa t i le Int erface Port
your classic onto the screen; the com­
money orde r ) . Mich. reside nts
puter will faithfully follow and store
add 4 % sales tax. $ 69. 95
every character you type.

asi c Dept. H P.O. Box 5 1 1 Ortonvi lle, MI 48462 Should you make a mistake, simply

I
hit the left arrow as you normally
ECH N OLOGY ( 3 1 3) 62 7-6 1 46
.... 248
would . With Auto-Color Writer, the
backspace and space keys will repeat if

39 HOT COCO Jun( Iq83


held down. You will also hear a beep if you have completed the text. If not, it stration of a self-programming tech­
when you are backspacing. will return to the format-menu section, nique. There are many other features
One of the nicest features of the pro­ and the text-input process will be that you can add to the text-processor to
gram is word wrap-around. If the word repeated. make it more useful. Auto-Color
you are typing is too long to fit on the When the text is completed, Auto­ Writer's simplicity allows you to tailor
current line, the word will be wrapped Color Writer displays the Basic pro­ the program to meet your text-process­
around to the next line. You no longer gram it generated, six lines at a time. ing needs.
need trial-and-error methods for mak­ Upon completion of the review, the Programming the computer to create

-
ing everything fit and for hyphenating program prompts you to prepare your Basic program lines and store them in a
words. tape recorder to record a file. After you data file for later use is a powerful tool.
New Line/Tab/Clear Hitting the record the file, a fmru prompt reminds Auto-Color Writer is only one example
enter key will immediately move you to you to keep a record of the file location. of how this technique can be used to
the beginning of the next line. To tab, Using the File-To use the fIle, you save time and effort.
press the right arrow the desired num­ must CLOAD it . Once CLOADed, the To use this technique, you must first
ber of times. computer-generated program can be decide what part of your program can
To dear the entire text page, press the listed, edited, or run as you would any be generated by the computer. It is most

- -
clear key. You are now ready to start at other program. I f you run the program, useful for those program functions that
the top of the text page. the video screen will display your text are repetitious and tedious .
End oj Page Auto Color Writer exactly as you entered it. Next , define and characterize the pro­
will warn you as you approach the end Now that you have entered the text cess you would use to program the re­
of a page by beeping as the last 10 into your computer, you can type any petitive function. Now, write a program
characters are entered . The program additional Basic instructions needed to that will create the strings needed to
will automatically exit the text processor complete your program. When you are form the Basic statements that perform
when the page is filled. done, CSA VE the new program. I f you the repetitive function. The final step is
If you want to exit sooner, press the wish to include the text as part of an­ to create an interactive program for
down arrow . The program will not al­ other program, use the merge technique entering the nonrepetitive information . •
low you to print a character in the very described in "Cassette Merge" (80
last screen position (location 5 1 1). All Micro, January 1983, p . 3 1 0).
other characters and functions are
normal. Final Thoughts
File Preparation-Once the page is Auto-Color Writer represents a Basic Write John Nicolettos at 8612
completed, Auto-Color Writer will ask text-processing capability and a demon- Sno wden Loop, Laurel, MD 20708.

ENil ICOTT SO'TW�RE ,


EXC ELLENT PROG RAMS FROM
LEADING SOFTWARE H OUSES J OYST I C KS
DEALER & CLUB I N QUIRIES INVITED
TOM MIX

15% OFF May 8 to June 7


* SPACE SH UTTLE Control the Space Shuttle
* DONKEY KING 4 Screens · Full action!

I2io8S""
$24.60
$22.90
O N LY
$1 9.95

.......00.
* PROTECTORS Excellent Defender type. � $21.10 pt(YI(wEO
OCT. IH2
* COLOR GOLF Challenging! Uses f u l l set o f clubs.
*
� $ 1 5.25

*
ESCAPE FROM SPECTRE Graphic Spy Adv. � $ 1 5.25

*
KATERPILLAR ATTACK Look out for spiders! � $ 1 8.85
TWO FOR 80 MICRO
MOON LANDER 2 games in 1 llJ.8S"" $ 1 5.25 REVIEWED
*
CASINO 3·Gambling Package � $ 1 1 .00 $37.95 ..... lIIeH ''')

TAPE DUPE Copies any M L tape. � $ 1 4.40


DISK TO TAPE Dump most disks to tape � $ 1 5.25
�APE TO DISK Load most tapes t o disk
lllM $ 1 5.25
SPELLING TEST Provides a standard oral quiz. � $ 1 8.95
Tired of broken joysticks? We offer an affordable joystick based on proven
'jyA R KINGS Remember War Lords? � $ 1 6.95
components. Each unit i s hand assembled and checked to ensure reliability. The
SHIP WRECK Intriguing adventure � $12.70
handles and internal mechanism have proven t o be extremely rugged and reliable
under extensive use with arcade-type games. The pots function smoothly to
PRICKL Y·PEAR SOFTWA RE provide excellent cursor/character control. Get your joystick programs working the
way they should I Our joystiCks are backed by a 90 day warranty on material and
1 5% OFF labor.
·VIKING G o from peasant to King! $ 1 6.95
·GANGB USTERS Lead a life 0 1 crime and w i n !
tiS $ 1 6.95 ADDITIONAL LISTINGS ON MARK DATA, COGNITEC, COMPUTERWARE,
PANDORA'S BOX $21.20 PETROCCI FREELANCE ASSOCIATES d?OLORSOF 1 AND ANTECO IN OUR
Includes: " p ac" game, "delender·type" FREE CATALOG, wRITE OR .. ALL.
game, DivebomD, Blockade, slot SHIPPING: U.S.A., CANADA AND MEXICO
machine, and Squares (like cube).
WE PAY POSTAGE on all lollware orda... Add $2.00 for shipping
• PRER EAD I, I I , & III (Three tapes)
� JOYltlckl (unle •• purchased with lollware . then we'll pay). Please add $2.00 for
:��':{�l�
$21.20
ur preschooler to learn t o read
. C.O.D. orders (U.S.A. only). Allow 2 weeki lor personal checks to clear.
1 tutorial tape, 1 quiz tape. These begin the
124M' $21.20
S H I PPING: ALL OHlER COUNTRIES:
t read process. Add $2.00 for each sollware Item. Add $3.00 for each JOYltlck. Item. will be
.
����rdl �
s S24M $21.20 shipped air mall.
Advancement Irom PHONICS I
ALL PAYMENTS MUST BE IN U.S. FUNDS.
R::::
* FLIGHT Realistic lIight simulator $ 1 8.95
* 8·BIT BARTENDER Party l u n . 100 + recipes. $1 8.95
EN DICOTT SOFTWARE
* P.O. Box 1 2543, Huntsyllle, AL 35802
Requires 16K Ext. Basic Minimum. * Requires 32K Ext. Basic Minimum.
Others 16K Std. Basic M i n imum. (205) 881- 0506
PHONE OPE N 7 OAYS A WEEK' ",283 II
,.,. See L/st o( Ad_ertisers on page 138 HOT CoCo Jun� 1983 31
HARDWARE

BY DON LERoI

SERIAL-TO-PARALLEL
INTERFACE
M any Color Computer owners ­
are frustrated to find out that
You are not limited to logical 0 bits be represented by a
positive potential greater than 3 volts
their computer's RS-232C output port j ust Radio Shack printers . and that logical 1 bits be represented by
supports only serial-input printers and . a negative potential greater than 3 v?l.ts.
Build this interface and
cannot directly interface with many of The Color Computer outputs positive
the popular printers on the market. use other popular brands . and negative 12 volts, respectively, to
Adding to the frustration is the fact satisfy this requirement.
that ' at this writing, Radio Shack does
Parallel-Input Printers
not offer a serial-to-parallel interface
for the Color Computer . Unless the Parallel printers are designed to ac­
high (logical l ), the computer may out­
owner wants to purchase a Radio Shack cept data a whole word at ": time. This
put data on pin 4. A low level (logical 0)
printer, he is left to his own devices to requires that all 7 or 8 data bits be trans­
on the status line indicates to the com­
find the appropriate printer interfac: _ mitted simultaneously and that the
puter that the printer is busy and cannot
Many older, high-quality, parallel-.m­ printer be advised when the data has
accept data.
put printers, like the Radio Sh �ck Lme been made available. Typically, a paral­
Data is transmitted , in ASCII-encod­
Printer I I actually a Centromcs 730-1 lel-output device transmits the informa­

in disguis , are still around and avail­
ed words 1 bit at a time. These ASC I I
fi
words de ne the characters t o b e print­
tion on eight data lines and then outputs
able for a fraction of their original a strobe pulse on another line to signal
ed or operations to be performed by the
prices . Also, many of the newer paral­ that the data is available for transfer.

lel-input printers, the Epson M X-8 for
printer. In order for the printer circuitry
to identify the beginning and end of
Upon receiving the strobe, the printer
example, are available at bargam . pnces_ accepts the data and acknowledg :s its
each word each is preceded by 1 start
receipt by outputting a busy slg �al
Interfacing such printers to the Color
Computer is not difficult and needn't
)
bit (a zero and followed by 2 stop bits
on yet another line. The busy sig­
be expensive. The RS-232C .to p�alle ­ � (ones). The ASCII word will be either 7
or 8 bits long depending on which ver­
nal remains until the printer is ready
input printer interface descnbed m thiS to accept another data word . This se­
sion of Color Basic, 1 .0 or 1 . 1 , the com-
article allows the Color Computer to be quence is repeated until the print opera­
puter is running.
used with a variety of popular printers. . tion is completed .
The computer normally transmits se­
Using readily available parts, the unit
rial data at 600 baud. This can be Serial-to-Parallel Conversion
can be constructed for under $25 .
varied under software control, from
A serial-to-parallel interface device
The Serial Interface 1 20-2 400baud by POKEing the ap­
converts the computer's signal line (seri­
The Radio Shack Color Basic ROM
i
propr ate values into specific locations
al) output to an eight-line (parallel) in­
in RAM (see the Radio Shack manual
supports operation of a serial printer via put that the printer can accomrnodat: .
Getting Started with Color Basic). To accomplish this, the interface mom­
the computer's RS-232C connector.
EIA (Electronic Industries Associa­
The pin assignments of the connector tors the computer's RS-232C output
tion) standard RS-232C dictates that
are illustrated in Fig. I . tine until it detects a start bit. It then
While performing printer operat.ions, stores the next several bits in a data reg­
the computer monitors the status mput ister. When a stop bit is detected, the
line (pin 1) to determine if the printer is data is transferred in parallel form to
Color Computer Serial Interface
ready to accept data. If the status line is eight output lines and a data-r�ady sig­
Pin N Signal nal is generated. The sequence IS repeat­

0..
ed when the next start bit is detected.
Busy Signal
2 Serial In
System Requirements The Interface Grcuit
3 Ground
f) • 2
4K RAM
4
, 4 Serial Out The Color Computer to parallel­
Cassette Basic printer interface is designed around the
Parallel Printer Fig. I. RS-232 Pin Arrangement versatile UART (universal asynchro­
nous receiver-transmitter) integrated
32 HOT CoCo .Iun� 1<)83
circuit. As shown in Fig. 2, the RS-232C
input is buffered by line receiver EC2,
which inverts the signal and converts it
to the TIL level required by the UART.
The signal is then applied to the serial
input of the UART, ICI . ICI pins
35-39 are used to program the UART
for various word lengths, nwnber of "

start and stop bits, and parity. "

IC3 is wired as an astable multivibra­ "


tor to produce a clock frequency of
9,600 Hz, 16 times the baud rate of the
incoming signal . If you program a baud
rate other than 600, you must adjust the
clock frequency to maintain the 16x
baud rate relationship. Resistors R I ,
R2 , and capacitor C I detennine the fre­
quency of oscillation. The clock's out­
put is applied to the UART's receiver
clock input, pin 17. After the UART
detects each start bit, serial data is
clocked into its receiver register on every
sixteenth clock transition.
When the stop bit is detected, the
data is output on pins 5 - 12 and pin 19
goes high. This signal is inverted by Fig. 2. Schematic for the Serial-to-Parallel lnterface
IC4(a) and output to the printer as data
strobe. It is also applied, after a short

"1r:===r= ===::=;:�51
r:-:-��:;.ol

IIIIII

Fig. 3. Foil Pal/ern of the Single-Sided PC Board

Fig. 4. Component Placement Diagram

HOT CoCo JUIK 1983 n


delay established by R3 and C3 , to neCtor, you must refer to a wiring dia­ cy is properly adjusted. Slowly rotate
IC4(b), which inverts it and applies it to gram to identify which pins are to be R2 until "calibrate" is accurately and
UART pin 18 to reset the data strobe. connected. reliably printed . Press break to stop
lC4(c) inverts the printer's busy signal Mount the completed circuit board in the printer . Replace the interface
before it is output to the computer's the enclosure, using spacers and the ap­ enclosure's cover and enjoy your com­
status line. The printer provides power propriate other hardware. Install the puter's expanded capability . •
for the interface. DIN connector and solder wires F, G,
and H to pins 1 , 3, and 4, respectively. Don LeRoi is stationed in Antarctica
Construction and Calibration The printer interface circuit requires as a U.S. Navy photographer. Write
Construct the interface using wire­ + 5 volts from the printer's power sup­ him at Box 43-62, Port Hueneme, CA
wrap or point-to-point wiring tech­ ply. Centronics-style interfaces conve­ 93043.
niques, or build it on a single-sided niently provide + 5 volts on either pin
printed circuit board. A foil pattern for 1 8 or 35, depending on how the connec­
the PC board is shown in Fig. 3 . Assem­ tor pins are numbered; check your WIRE # Signal Source
bly is straightforward using the PC printer manual .
I Data Strobe In terface
board. Refer to the component-place­ On some printers, like the Epson
2 Ground
ment diagram in Fig. 4 for parts layout. MX-80, this voltage is supplied through 3 Data Bit I Interface
Begin by installing the four jumper a pull-up resistor (check your manual 4 Ground
wires. J 1 should be installed between again). If this is the case with yours, 5 Data Bit 2 Interface
points A and B if the interface is going then bypass the resistor with a piece of 6 Ground
to be used with a computer that has wire or isolate that connector pin and 7 Data Bit 3 Interface
run a separate wire to it from the print­ 8 Ground
Color Basic version 1 .0 or between
er's + 5 volt source. Wire number 35 of 9 Data Bit 4 In terface
points A and C for machines with
10 Ground
version 1 . 1 . the ribbon cable carries the power from
II Data Bit 5 Interface
Next, install the resistors and the the printer to the interface. If your
12 Ground
diode, making sure to observe the prop­ printer is wired differently, swap wires
13 Data Bit 6 Interface
er polarity when mounting the diode. accordingly. 14 Ground
Mount the IC sockets so that their num­ Before installing the integrated cir­ 15 Data Bit 7 Interface
ber 1 pins are oriented as shown in the cuits, connect the unit to your printer 16 Ground
placement diagram . When installing ca­ and apply power. Check the voltage be­ 17 Data Bit 8 Interface
pacitor C4, be careful that its polarity is tween pin 1 of the UART socket and 18 Ground
ground to ensure that it is + 5 volts, 19 N.C.
as shown in Fig. 4.
then tum off the power and insert the 20 Ground
Connect 6-inch lengths of wire to
21 Busy Printer
points F, G, and H. These will be con­ integrated circuits .
22 N . C.
nected to a 4-pin DIN connector later. The clock frequency must be adjust­
23 Ground
Connect wires 1 - 1 8 of the ribbon cable ed to 9 ,600 Hz. If you have a frequency
24 N.C.
to their respective points on the printed counter, connect it to pin 3 of IC3 and 25 N.C.
circuit board. Connect wires 2 1 , 3 1 , and adjust R2 until the counter indicates 26 N.C.
35 to their respective points, also. 9,600 Hz. Alternately, connect your 27 N.C.
Place the printed circuit board in the computer to the interface and set up the 28 N .C.

enclosure as it will be mounted, and printer for use. Enter the following pro­ 29 N.C.
gram and run it. 30 N.C.
mark the mounting-hole positions on
31 Ground
the case. Remove the board and drill
32 N.C.
l I8-inch holes in the case at the points 10 PRINT # - 2 , " CALIBRATE" 33 N.C.
marked. Mark and drill a 9/ 1 6-inch 20 FOR X = I TO 100 34 N .C.
hole in the center of one end of the 30 NEXT X 35 + 5 Volts Printer
enclosure to accommodate the DIN 40 GOTO 1 0 36 N .C.
connector.
Insert the connector in the hole and The printer' s output will b e most­ Table I
mark the position of its mounting holes. ly gibberish until the clock frequen-
Remove the connector and drill
l I8-inch holes at the places marked.
Cut, nibble, or file a l I l 6-inch deep
C I ,C2,C3-.01",F disk capacitor
channel on the top edge 0 f the enclosure C4- IOO",F electrolytic capacitor
for the ribbon cable to pass through . D I - I N9 1 4 diode
Next, connect the printer connector ICI-I M6402 UART
to the free end of the ribbon cable. If IC2-MCI489 quad line receiver
your printer's interface is the standard IC3-NE555 timer
Centronics parallel type, simply hook 1C4-CD4049 hex inverter/buffer

wire number I to pin number 1 , then al­ R I -3.9k ohm, V. W resistor


R2-IOk ohm miniature potentiometer
ternately connect the remaining wires to
R3-IOOk ohm, V.W resistor
the top pins and bottom pins on the
Misc.-4-pin DIN connector, plastic case (Radio Shack 270-223 or similar), PC board,
connector.
IC sockets, 36 conductor ribbon cable, printer connector, hardware, wire, solder, etc.
Table I identifies the wire numbers
and signals carried by each conductor. Table 2. Parts List

If your printer uses a different style con-


34 HOT CoCo Jun( 1983
File and 110 Features:
• 3 display formats : 51/64/85 64K COMPATIBLE
ASCII format mes -
create and edit BASIC, Assembly, Pascal, and C
columns x 24 lines Telewriter-64 runs fully in any Color Computer programs, Smart Terminal files (for uploading Or
- 1 6K , 32K, or 64K, with or without Extended downloading), even text mes from other word
• True lower case characters Basic, with disk or cassette or both . I t processors. Compatible with spelling checkers (like

• User -friendly full-screen automatically configures itself t o take optimum


Spell 'n Fix).
Cassette verify command for sure saves. Cassette auto­
advantage of all available memory. That means
editor retry means you type a load command only once no
that when you upgrade your memory, the
• Right justification Telewriter-64 text bu ffer grows accordingly. I n
matter where you are in the tape.
Read in, save, partial save, and append files with disk
a 64 K cassette based system, for example, you
• Easy hyphenation
get about 40K of memory to store text. So you
and/or cassette. For disk: print directory with free
space to screen or printer, kill and rename files, set
• Drives any printer don't need disk or FLEX to put all your 64K default drive. Easily customized to the number of
to work immediately.
• Embedded format and drives in the system.

control codes 64 COU ; M .... S (A .... n 8S! ) Editing features: Fast, full-screen editor with
wordwrap, block copy, block move, block delete, line
Besides the original 5 1 column screen,
• Runs in 16K, 32K, or 64K Telewriter-64 now gives you 2 additional high­
delete, global search and replace (or delete), wild card
search, fast auto-repeat cursor, fast scrolling, cursor
• Menu-driven disk and density displays: 64 x 24 and 85 x 24 ! ! Both up, down, right, left, begin line, end line, top of text,
high density modes provide all the standard bottom of text; page forward, page backward, align
cassette 1 1 0 Telewriter editing capabilities, and you can text, tabs, choice of buff or green background,

• N o hardware modifications switch instantly to any of the 3 formats with a complete error protection, line counter, word counter,
single control key command. space left, current file name, default drive in effect,
required The 51 x 24 display is clear and crisp on the
set line length on screen.

screen . The two high density modes are more Insert or delete text anywhere on the screen without
I HE ORIGI .... A I. crowded and less easily readable, but they are
changing "modes." This fast "free-form " editor
provides maximum ease of use. Everything you do
Simply stated, Telewriter is the most powerful perfect for showing you the exact layout of
appears immediately on the screen in front of you.
word processor you can buy for the TRS-80 your printed page, all on the screen al one
Commands require only a single key or a single key
Color Computer. The origi nal Telewriter has time. Compare this with cumbersome plus CLEAR.
received rave reviews in every major Color "windows" that show you only frag�ents at a
Computer and TRS-80 magazine, as well as time and don't even allow editing.
enthusiastic praise from thousands of satisfied
R I (; HT J U STIFICATlO .... &
owners . And rightly so.
H Y P H ENATION . . . truly a state of the art word processor. . .
The standard Color Computer display of 32 One outstanding advantage of t h e full-width outstanding in every respect.
characters by 16 lines without lower case is screen display is that you can now set the - The RAINBOW, Jan. 1982
simply inadequate for serious word processing. screen width to match the width of your
The checkerboard-letters and tiny lines give you printed page, so that "what you see is what P Ron:SsIO .... A I .
no feel for how your writing looks or reads. you get . " This makes exact alignment of
WORD PROCESSI .... G
Telewriter gives the Color Computer a 5 1 columns possible and it makes hyphenation
You cari no longer afford to be without the
column by 24 line screen display with true simple.
power and efficiency word processing brings to
lower case characters. So a Telewriter screen Since short lines are the reason for the large
everything you write. The TRS-80 Color
looks like a printed page, with a good chunk of spaces often found in standard right justified
Computer is the lowest priced micro with the
text on screen at one time. In fact, more on text, and since hyphenation is the most
capability for serious word processing. And
screen text than you'd gei with Apple I I , Atari, effective way to eliminate short lines,
only Te lewriter-64 fully unleashes that
TI, Vic or TRS-80 Model III. Telewriter-64 can now promise you some of the
capability.
On top of that, the sophisticated Telewriter best looking right justification you can get on
Telewriter-64 costs $49.95 on cassette, $59.95
full-screen editor is so simple to use, it makes the Color Computer.
on disk, and comes complete with over 70
writing fun. With single-letter mnemonic n:AT l; R ES & SPEClf'lCAT I O N S : pages of well-written documentation. (The step­
commands, and menu-driven I /O and by-step tutorial will have your writing with
Printing and formatting: Drives any printer
formatting, Telewriter surpasses all others for Telewriter-64 in a matter of minutes.)
(LPVII/VIII, DMP-IOO/200, Epson, Okidata,
user friendliness and pure power. Centronics, NEC, C . Hoh, Smith-Corona, To order, send check or money order to:
Telewriter's chain printing feature means that Terminer, etc).
the size of your text is never limited by the Embedded control codes give full dynamic access to
Cognitec
amount of memory you have, and Telewriter's intelligent printer features like: underlining, 704 N. Nob St.
advanced cassette handler gives you a powerful subscript, superscript, variable font and type size, dot­
graphics, etc. Del Mar, CA 92014 V' 1 21
word processor without the major additional
Dynamic (embedded) fonnat controls for: top, Or check your local software store. If you have
cost of a disk.
bottom, and left margins; line length, lines per page, questions, or would like to order by Visa or
line spacing, new page, change page numbering, Mastercard, call us at (6 19) 755-1258
conditional new page, enable/disable justification. (weekdays, 8AM-4PM PST). Dealer inquiries
... one of the best programs for the Color Menu-driven control of these parameters, as well as: invited.
Computer I have seen . . . pause at page bottom, page numbering, baud rate (so
(Add S2 for ,hipping. Californian, add 6'1. sta.te tax. Allow 2
- Color Computer News, Jan. 1982 you can run your printer at top speed), and Epson weeks for personal checks. Send self4addressed stamped
font. "Typewriter" feature sends typed lines directly enyclope for Telewrher reviews from CeNt RAINBOW,

"": I. ":W R I T ": R-64 to your printer, and Direct mode sends control codes 80-Micro, 8�U.S. Telewriter owners: send SASE or caU for
right from the keyboard. Special Epson driver information on upgrading to Telewriter-64. Tclewriler­
But now we've added more power to compatible spelling checker (Spell 'n Fix) and Smart Term inal
simplifies use with MX-80.
Telewriter. Not just bells and whistles, but program (Colorcom/E) also available. Call or wrile for more
Supports single and multi-line headers and automatic
major features that give you total control over information.)
centering. Print or save all or any section of the text Apple I I is a trademark of Apple Computer. Inc.; Alari is a
your writing. We call this new supercharged bu ffer . Chain print any number of mes from cassette trademark of Alari, Inc.; TRS-80 is a Irademark of Tandy
version Telewriter-64. For two reasons . or disk. Corp; MX-80 is a trademark of Epson America, Inc,
BUSINESS

BY KEN KNECHT

CoCo WORD PROCESSOR

T .
his CoCo word processor can
print form letters with a mailing­
Write form letters and For a line to stand alone, end the
previous line with the paragraph mark­
list fIle, and it can concatenate several merge them with other er, the &. ,Then begin the line to stand
documents into one large document. alone with a greater-than sign (» ; the
files or use this WP for
It has an optional variable character­ line will not be connected to any other
spacing routine for right-justi fica­ your other writing needs . lines. If you begin several consecutive
tion with printers that use compatible lines this way, each will stand alone with
escape sequences . It's written in Basic no blank lines between them.
so you can easily modify it to suit your If you want the lines to be indented,
requirements. tor also allows specific characters, add the appropriate number of spaces
This program was originally written . words, or phrases to be located, changed, between the > and the beginning of that
for a MITS Altair 8800; then it was or deleted in a range of lines. line. The total length of the stand-alone
modified for the TRS-80 Model I, The edit commands consist of single line, not counting the > but including
Model III, and finally the TRS-80 Color letters, in upper- or lowercase, some­ any spaces , must be less than the line
Computer. It would be easy to convert times accompanied by a plus or mi­ length of the printed document. You se­
it back to use on the Model I or III. nus sign: lect this line length when you run Au­
This word processor requires Extend­ • Insert (I)-Typing I begins a docu­ thor. The default is 60 characters per line.
ed Color Basic and 16K of memory. ment or lets you insert lines in the docu­ Signal the end of the document by
This word processor consists of two ment. After typing I, the editor gives typing an @ at the end of the last line in
Basic programs: the editor, called Edit, you a line number, starting with 1 . Type the document .
which enters the document; and the your line and hit the enter key. You'll To start a new page, enter an up ar­
print formatter, called Author. Once get the next line number; enter another row on a line by itself.
loaded in Basic, the programs can easily line, hit enter, and so on. To leave the Don't put an & or an @ on a line by
be saved on disk or tape. insert mode, hit the enter key without itself. If you like, you can use an up ar­
entering a line. row followed by an @ on its own line to
The Editor Lines should be 240 characters or start a new page when you are connect­
The Edit program lets you insert, de­ less. For 1 6K computers, the program ing document files .
lete, and move lines around in the text. will accept 200 lines of 40 characters If you have already entered some
You can replace lines and display or each. If you have 32K, you can have 600 lines and wish to insert lines between
print the lines already entered. The edi- lines of 40 characters. If you use longer them, use P after the command prompt
lines, you should use fewer of them to • to display the line you wish to follow

avoid running out of memory. If you do the inserted lines. Then use I and the
FILE NAME? DATAFILE run out of memory and the program editor will print that line number. Enter
CREAl'E NEW FILE? Y crashes, type in GOTO 100, and then as many lines as you wish and use the
• I save the text with the E command. enter key after the line number prompt
I Mr. John Brown <enter> You can use quotation marks within when you are finished. You can also use
2 10 Main St. <enter> a line. To end a paragraph, end the last
3 Chicago, IL 60603& <enter> line with an ampersand. Lines are nor­
4 Dear Mr. Brown,& <enter> mally connected, with a space between
5 Ms. Mary Jones <enter>
them, by Author when the document is
6 I I Main St. <enter>
printed. If you end a line with a space, System Requirements
7 Chicago, IL 60604& <enter>
you'll get an extra space between lines.
8 Dear Ms. Jones,& <enter>
Author puts a blank line between para­ Extended Color Basic
9 <ENTER>
graphs, two if you are double-spacing. 16K RAM
• E
ea.eue or DIsk
To begin a paragraph with an indent,
Printer
Figure 1. put in the spaces wanted at the begin­
ning of the paragraph.
36 HOT CoCo Jun� 1983
the - or + commands to find the line ment, use B or the down arrow after the asked for the start and end lines of the
to follow your lines. command prompt. You'll be given the lines you wish to see. Reply with the
If there are many lines following the next line number after the last line en­ enter key to the start line prompt to
inserted lines, there will be a short pause tered. Then enter your added lines, begin with line 1 .
while the editor moves the lines down to making sure the original last line does I f you use the enter key to respond to
make room for each inserted line. All not end with an @ or else your added the end-line prompt, the last line dis­
line numbers following the inserted lines lines will not be printed. played will be the last line in the docu­
will be corrected. • Print (P)-Use this command to dis­ ment. All lines between the start and
To add lines to the end of a docu- play any lines already entered. You are end line number will be displayed. If
you use the same line number for the
start- and end-line number, only that
Program Listing line will be displayed. To temporarily
haIt the displayed lines, use shift @ and
5 PR INT " P ROGRAM COPYRIGH T 1 9 8 1 BY K ENNETH B. KNECH T " : P R I N T : P R INT
9 PCLEARI then shift @ to resume the display.
10 C L EAR 7 0 0 0 : D I M A $ ( 2 0 0 ) If you use the I command after using
20 INPUT " F I L E NAME " ; F I L E $ : A= 0
30 P R I N T " C REATE N E W F I LE ? " ;
P, the lines inserted will precede the last
31 AN $= I N K E Y $ : I FAN $= " " TH EN 3 1 line displayed.
32 I F AN $ = " Y " ORAN $ = " y " THENA = 1 : E= 0 : P R I N T : GOTO 100 • Line Print (L)-Use this after the
50 P R I NT : GOSUB 1 5 1 0 0 : GOSUB 1 5 0 0 0
60 O P EN "I"" TD , F I L E $ command prompt to print all the lines
7 0 I F EOF ( TD ) TH EN 9 0 entered . These will not be formatted,
8 0 A=A+l : PRI NTCHR $ ( 1 4 ) ; : L I N E I N P U T ' TD , A$ ( A ) : GOTO 7 0
9 0 CLOS E # TD : E=A : A= I : P R I NT
but will appear on the line printer just as
1 0 0 P R I NT" * " . they appear using the P command on
;
1 0 1 C $= I N K E Y $ I F C $= " " TH E N 1 0 1 E L S E P R I NTC $ : PRINT the display. You must use the author
1 0 2 I FC $ = " S " ORC $= " S "THENPRINT : GOT04 4 0
1 0 5 I F C $ = " " AND A < E T H EN P R INTA ; A $ ( A ) : GOTO I 0 0 program to print the final formatted
1 1 0 I F C $= " I " ORC$= " i " TH EN P R I NT : GOT0 2 0 0 document.
115 I FC $= " G " ORC $ = " g " TH EN P R I N T : GOT01 4 0 0 0
120 I F C $ = " D "ORC $ = " d " TH EN PR I NT : GOT02 4 5
• Delete (D)-Press D after the com­
13 0 I FC $ = " R " OR C $ = " r " TH E N P R I N T : GOT0 26 5 mand prompt to delete a line. Specify
140 I FC $ = " Q " ORC $ = " q " TH EN P R I N T : GOT02 9 0
the line number to be deleted. All line
145 IFC $ � " B " O RC $= " b " ORC $=CHR $ ( 1 0 ) THENA=E+1 : PR I NT : GOT02 0 0
150 I FC $ = " P " O RC $= " p " TH EN P R I N T : GOT03 2 0 numbers following the deleted line will
155 I F C $ = " T " O R C $= " t " O R C $ = " - " THEN A = l : PR I NT : GOTO 1 0 0 be corrected.
160 I FC $ = " E " ORC $= " e " TH EN PR I N T : GOT04 0 0
165 I F C $= " ; " ORC $ = " + " TH EN P R I NT : I F A+ l > E TH ENPRINTA ; A $ ( A) : GOT01 0 0 E
• Replace (R)-If you wish to replace
LSEA=A+ l : PRINTA ; A $ ( A) : GOT01 0 0 a line, you must specify the line num­
1 7 0 I FC $ = " A " ORC $ = " a " TH E N PR I N T : GOT06 0 0 0
ber to be replaced and then type in the
1 7 5 I F C $ = " L " ORC $ = " 1 " TH EN P R I NT : GOTOI 3 0 0 0
1 8 0 I FC $ = " - " AND A > l THENA=A- l : P R I NTA ; A $ ( A ) : GOT01 0 0 ELS E I FC $ = " - " T new line.
H EN P R I NT " l " ; A $ ( l ) : GOT0 1 0 0 • Display Present Line-A space after
1 9 0 P R I N T " I L L EGAL COMMAN D " : GOT0 1 0 0
1 9 5 ' I N S ERT L I N E
the prompt line will display the line that
2 0 0 P R I NTCH R $ ( 1 4 ) ; : A $= " " : P R I NTA ; : L I N E INPUTA $ : I FA $= " " TH EN 1 0 0 an inserted line would precede. To ad­
2 0 6 I F LEN ( A$ ) > 2 4 0 THEN P R I NT " L I NE TOO LONG " : GOTO 2 0 0
vance the display one line, use the + or
2 1 0 I F E >l AND A < E+ l THENGOSUB1 0 0 0 0
2 2 0 A $ ( A ) = A $ : E = E+l : A=A+l ; command. To back up a line, use the -
2 2 5 IF A > 2 0 0 THEN PRINT " ON L Y 2 0 0 L I NES " : A=A- 1 : E = E - l command. These are useful for check­
2 3 0 GOTO 2 0 0
2 4 0 ' D ELETE L I N E
ing lines or for finding the correct place
2 4 5 I N PUT " L I N E NUMBER " ; A for an insert.
2 5 0 GOSUB 1 2 0 0 0 : E= E - l : GOTO 100
• Top Line (T or up arrow)-This will
260 ' DE L ET E L I N E
265 I N PU T" L I N E NUMBER " ; A display the first line in the document.
270 P R I NTA ; : L IN E I N PUTA $ : I FA $ = " · TH EN 1 0 0 E L S EA $ ( A ) =A $ : GOTO I 0 0 You can then folloW the document line
280 ' QU I T ?
290 P R I NT " QU I T ( yi N ) ? " ; : AN $ = " " by line using the + or ; .
2 9 5 AN $ = I N K EY $ : I FAN $= " " TH EN 2 9 5 • Save (S)-T o save the lines you have
2 9 6 I F AN $= " Y " ORAN $ = " y " TH ENENDELSEPR I NT : GOT01 0 0
3 1 0 ' PR I N T
entered without ending the editing ses­
3 2 0 L l = I : L2 = E : INPUT" FROM L I N E " ; L l : I F L l < l THENL l = l sion, type S after the command prompt.
3 3 0 I N PU T " TO L I N E " ; L2 : I F L 2 >E T H EN L 2 = E You will specify whether you wish to
3 3 5 I FL 2 = 0 THEN L 2 =E
3 6 0 FOR X=Ll TO L 2 save to a cassette or disk. If you choose
3 7 0 P R I NT X ; A $ ( X ) cassette, you must be sure the tape re­
3 8 0 NEXT : A= L 2 : GOT0 1 0 0
3 9 0 ' END E D I T S E S S ION
corder is ready. Use this method as you
400 I N PU T " END ( Y/ N ) " ; AN $ : I F L E FT $ ( AN $ , l ) = " Y " O R L E FT $ ( AN $ , I ) = " y " TH E go along as a precaution in case of a
N 4 1 0 ELSEGOT01 0 0 power interruption or computer failure.
4 1 0 GOSUB 1 5 1 0 0 : GOSUB I 5 0 0 0 : 0P EN " O" , . TD , F I L E $ : FORX=1 TO E : P R I NT # TD
, A $ ( X ) : N EXT : CLOS E : CLEAR 3 0 0 : EN D
When the program begins, you must
4 4 0 I N P U T " SAVE ( Y/ N ) " ; AN $ : I F L E F T $ ( AN $ , l ) = " Y " OR L E F T $ ( AN $ , l ) = " y "TH specify a file name for the document
EN4 4 5 E LS E 1 0 0
you are entering. This name must be
4 4 5 GOSUB 1 5 1 0 0 : GOSUB1 5 0 0 0
4 5 0 OPEN " O " , TD , F I L E $ : FOR X = l TO E : P R I N T ' TD , A $ ( X ) : NEXT : CLOSE : GOTO eight letters or fewer if you are using a
100 cassette. If you are using a disk, see the
6000 I N PUT " L I NE NUMBER " ; A: I F A > E + l TH ENPR I NT " NO L I NE " : GOT0 1 0 0ELS
E C $ =A $ ( A ) : L F = 1 : Z Z = 0 : D $ = " " : Z l $ = " " : Z 4 = LEN ( C $ ) : PR I NTA; manual for permissible me names.
6 0 1 0 GOSUB 6 5 0 0 You should use a separate cassette
6020 IFZ$=" " TH EN 6 1 3 0
6030 I F Z $ = > " l " AND Z $< = " 9 " THEN6 1 5 0
side for each document.
6040 I F Z $ = " C " O R Z $ = " c " T H EN 6 1 7 0 You will see the • command prompt
6050 I F Z $ = " D " ORZ $ = " d " THEN 6 1 8 0 once the document has been recorded .
Listing continued
• End (E)-This works much like save,
HOT CoCo Jun� 1983 37
Listing continued
except that after the document is re­
corded you will leave the Edit program
6969 I F Z $= " L " ORZ $= " I " THEN6 2 3 0
697 9 I F Z $ = " Q"ORZ $ = " q " THEN6 2 6 9 and return to the Basic command mode.
6080 I F Z $ = " I "ORZ $ = " i " TH EN 6 2 7 0 If you want to make a back-up copy
6990 I F Z $ = " X "ORZ $ = " x " THEN6 2 9 9
6190 I F Z $= " H "ORZ $ = " h " TH EN 6 3 2 0
of your document on tape or disk use
6105 I F Z $=CHR $ ( 8 ) THEN6 3 7 9 save for the first copy and then use end
6119 I F Z $=CH R $ ( 1 3 ) THEN 6 3 3 0
6120 GOT06 9 1 9
to save the back-up copy on another al­
6139 I F LF > Z 4 THEN6 1 2 0 ready-initialized disk or cassette.
6140 PRI NTM IO $ ( C $ , LF , I ) 1 : 0 $=0$+M I O $ ( C $ , LF , I ) : LF=LF+l : GOT06 9 1 9 • Alter (A)-This lets you change part
6150 Z l $ = Z l $+ Z $
6160 GOT06 9 1 0 of a line you have already entered.
6170 I F Z 1 $= " " THEN6 17 4 Enter the line number you wish to alter.
6171 FOR Z 2 =L F TO LF+VAL ( Z l $ ) - l
• Loo k (L)-Type L to display the line
617 2 GOSUB6 5 9 9 : PRINT Z $ 1 : 0 $ =0 $ + Z $
6173 NEXT : LF = Z 2 : Z 1 $= " " : GOT06 0 1 9 (or remainder of a line) that you are ed­
617 4 GOSUB6 5 9 9 : PRINTZ $ 1 : LF=LF+1 : 0 $= 0 $ + Z $ : GOT0 6 D 1 0 iting. You can uSe this subcommand at
61 80 I F Z 1 $ = " " TH EN 6 2 2 0
6 1 99 PRINT" I " 1 : FO R Z 2=LF TO LF+VAL ( Z l $ ) - l
any time without leaving the A mode.
6200 PRINTM IO $ ( C $ , Z 2 , 1 ) 1 : NEXT • Insert (I)-To insert, use the space
6210 PRINT" ! " 1 : LF = Z 2 : Z 1 $= " " : GOT06 0 1 0 bar to find the point where you wish to
6220 PRINT" ! " 1 : PRINTMIO $ ( C $ , LF , 1 ) 1 : PR I N T " I " ; : LF = LF+1 : GOT0 6 0 1 0
6230 I F L F = Z 4 AND Z Z =lTHEN Z Z = 0 : GOT06 2 5 5 insert. To leave the I submode without
6235 FORZ 2=LF TO Z 4 leaving the alter mode, use shift up ar­
6240 PRINTM ID $ ( C $ , Z 2 , 1 ) 1 : 0 $=0$+MID $ ( C $ , Z 2 , 1 )
6250 NEXT
row. To leave alter after the insert, use
6255 C $=0$ : 0 $ = " " : PR I NT : Z 4 =L EN ( C $ ) : LF = 1 : GOT06 0 1 0 the enter key.
6 260 PRINT : GOSUB6 5 1 0 : 0 $ = " " : GOT01 0 0 • Change (q-To change a character
6270 GOSUB 6 5 0 0
627 2 I F Z $=CHR $ ( 9 5 ) THEN 6 0 1 0 in the line, use the space bar to find the
627 4 I F Z $=CHR $ ( 8 ) TH EN 6 4 1 0 character before the one to be changed;
627 5 I F Z $=CHR$ ( 1 3 ) THEN 6 3 3 0
6280 PRINTZ $ ; : 0 $ = 0 $+ Z $ : GOT06 2 7 0
type C and the new character. To
6290 FOR Z 2 =LF TO Z 4 change more than one consecutive char­
6300 PRINTM IO $ ( C $ , Z 2 , 1 ) ; : 0 $ = 0 $ +M I O $ ( C $ , Z 2 , 1 ) acter, precede the C with the number of
6310 NEXT : LF = Z 4 + 1 : GOT06 2 7 0
6320 Z 4 = LF : Z Z = 1 : GOT06 2 7 0 characters you wish to change.
6330 I F L F = > Z 4 THENPRINTCH R $ ( 1 3 ) : GOSUB 6 5 1 0 : A $ ( A) =0$ : GOT0 1 0 0 • Extend (X)-To add characters to
6340 FORZ 2= L F TO Z 4
6350 PRINTM ID $ ( C $ , Z 2 , 1 ) ; : O $ = O $ +M I D $ ( C $ , Z 2 , 1 )
the end of the line, type X. This will dis­
6360 NEXT : PRI NTCHR $ ( 1 3 ) : GOSUB6 5 1 0 : A$ ( A) = 0 $ : GOTO 1 0 0 play the line; then type in the characters
6370 PRINT "j " ; to be added. Finish with enter to com­
6 3 80 PRINTMID $ ( O $ , LEN ( O $ ) , 1 ) ; : O $=LEFT$ ( O $ , LEN ( O $ ) - 1 )
6 3 9 0 GOSUB6 5 0 0 : I F Z $=CHR $ ( 8 ) THEN 6 3 8 0
plete the line, or use shift up arrow and
6 4 0 0 PRINT"j " ; : GOT06 0 2 0 L to work on the line.
6 4 1 0 PRINT " j " ; • Hack (H)-To delete the end of the
6420 PRINTMIO $ ( O $ , LEN ( O $ ) , 1 ) ; : O $=LEFT$ ( O $ , LEN ( O $ ) - l )
6430 GOS U B 6 5 0 0 : I F Z $�CHR $ ( 8 ) TH EN 6 4 2 0 line and optionally replace the deleted
6440 PRINT" j " ; : GOT06 2 7 2 portion with new characters, use this
6500 PRI NTCHR $ ( 1 4 ) ; : Z $= I NKEY $ : I F Z $ = " " TH EN 6 5 0 9 ELSERETURN
6510 RETURN
subcommand. Use the space bar to find
9999 REM MAKE ROOM FOR INSERT the character before the deletion. Type
1 0 0 0 0 IF E+1 > 2 0 0 THENPRINT"ONLY 2 0 0 LINE NUMBERS " : GOT0 1 0 0 ELSEFORI H to delete the rest of the line, and then
l = E TO A STEP - 1
10010 FORI 2 = 0 TO 3
either type enter to leave the line as it is
10015 IF 1 2 = 1 THEN 1 0 0 4 0 or type in the new characters. To end
10020 r 3 =P E E K ( VARPTR ( A $ ( I 1 » + I 2 )
10030 POK E ( VARPTR ( A$ ( I l + 1 » + 1 2 ) , 1 3
the H submode, use enter to leave the
10040 N�XT I 2 , I 1 : RETURN alter mode, or shift up arrow followed
11999 REM DELETE A L I NE by L to work on the line.
• Delete (0)-To delete a character,
12000 FOR I 1 =A+1 TO E
1 20 1 0 FOR 1 2 = 0 TO 3
12015 I F 1 2= 1 THEN 1 2 0 4 0 use the space bar to get to the character
12020 I 3 = P E EK ( VARPTR ( A$ ( I 1 » + I 2 )
12039 POK E ( VARPTR ( A$ ( I l - 1 » + 1 2 ) , 1 3
preceding the one you wish to delete;
12040 NEXT I 2 , I 1 : RETURN type 0 to delete the character or 0 pre­
13000 FORX=l TO E ceded by a number to delete that num�
13010 PRINT t - 2 , X ; A $ ( X )
13020 NEXT: GOTO 1 0 0 ber of characters. The deleted charac­
14000 PRINT " GLOBAL REPLACE ( R) " : PRINT " OE L E T·E ( D) , OR F IND ( F) ? ters will be placed within slashes so you
";
can see which ones were deleted.
1 4 0 1 9 C $= I N K EY $ : I FC $ = " " TH EN1 4 0 1 0
1 4 0 2 0 I F C $ = " R " O RC $= " r "ORC $ = " 0 "ORC $= " d " ORC $= " F " O RC $= " f " TH EN1 4 0 3 0E • Quit (Q)-If you have ruined a line
LSE 1 4 0 0 0 or you wish to abort a program, use the
1 4 0 3 0 PRINT : I NPUT " F ROM L I NE " ; L1 : I F L 1 < 1 THENL 1 =1
1 4 0 4 0 INPUT " TO L I N E " ; L 2 : I F L 2 > E THEN L 2 = E
Q subcommand to abort the edit and re­
1 4 0 4 5 I F L 2 = 0 TH E N L 2 = E turn you to command mode. You will
1 4 0 5 0 P R I N T " STRING T O SEARCH FOR" : PRINT " OON ' T FORGET THE SPACE " :
PRINT"AFTER A WORD . " : L IN E I NPUT " 7 " ; SI $ : I FC $= " R "O RC $ = " r " TH EN I 4 0 6 0
lose any edits you made since you last
ELS E 1 4 0 7 0 used enter to finish a line, and any part­
1 4 0 6 0 PRINT " STRING FOR REPLACEMENT " : L IN E I NPUT " ? " ; S 2 $ ly edited line will be restored.
1 4 0 7 0 FORX =Ll TO L 2
1 4 0 8 0 F = INSTR ( A $ ( X ) , S I $ ) : I F F > 9 THEN1 4 1 0 0
• Back up (left arrow)-To back up
1 4 0 9 0 NEXTX : GOTOI 0 0 while editing use the left arrow key. The
1 4 1 9 0 I FC $= " 0 "ORC $ = " d " TH EN I 4 1 1 0 ELSE I 4 1 2 9
characters you have backed over will be
1 4 1 0 5 I FF=ITHENA $ ( X ) =RIGHT$ ( A$ ( X ) , L EN ( A $ ( X » - L EN ( SI $» : GOT01 4 0 8 0
1 4 1 1 0 IFF-l +LEN ( S I $ ) =LEN ( A $ ( X » THENA $ ( X ) =LEFT$ ( A$ ( X ) , F- 1 ) : GOTO l 4 displayed within slashes to remind you
Lislin, continued
where you are.
When you begin the Edit program,
38 HOT CoCo June 1983
F I N A L LY !
A R EAL S P R EA D·SH E ET P R OG RAM FO R T H E CO LO R CO M ,P UTER
- -

DYN' ACA LC™


Bus i n e s s peop l e u s e s p read- she ets to organ i ze co l um n s and rows o f f i gures .
DYNACALC s i mu l ates the operat i o n of a spread-sheet w i t hout t h e mess of p a p e r and
penc i I . Of co u r se , cor r ect i o n s a n d c h a n g e s are a s n a p . Chang i n g any entered
v a l u e ca u s es the who l e spread-s heet to be r e- c a l c u l ated based on the new
constants . Th i s means t h at you can p l a y , ' wh at i f ? ' to your hear t ' s conten t . ,

But DY NACALC i s n ' t j u s t for account ants . DY NACALC c a n be u s ed for j u st


about any type of job . Not on l y n um b er s , b u t a l p h a n umer i c me s s ages can b e
h a n d l ed . Eng i n e e r s a n d other tec h n i c a l users w i I I l ov e DYNACALC ' s s i xteen-d i g i t
math and b u i I t- i n sc i e n t i f i c f u nct i o n s . Ther e ' s eve n a b u i I t- i n sor t command ,
so you c a n u s e DYNACALC to m a n age sma l I data bases - u p to 2 5 6 recor d s .

DYNACALC w i I 'I l et your comp uter do j u s t about a n yt h i ng you can i m ag i n e .


Ask yo ur f r i e n d s who h a v e V i s i Ca l c , or a s i m i l a r prog r am , j u st how usef u l an
e l ec tron i c spr ead- sh eet prog r am can be f o r a l l t y p e s of househ o l d , b u s i n e s s ,
eng i n eer i n g , and sc i en t i f i c app l i c at i o n s .

DYNACALC is d e s 1i g ned to b e u sed b y non-prog r ammer s , b ut even a P h . D . in


Comp uter Sc i ence can u n d e r s t a n d i t . Bu i I t- i n HE LP messages a r e p rov i d ed for
q u i c k r e f e rence to operat i n g i n s t r uc t i o n s .

DY NACALC h a s a b e a u t i f u l l y s i mp l e method o f r e ad i ng a n d wr i t i n g F L EX d at a
f i l e s , s o you c a n commu n i cate both w a y s w i t h other prog r ams on y o u r sy stem , s uc h
a s the Text E d i tor , Text Processor , So r t / Me r g e , RMS d a ta base s y stem , o r other
p r og r ams wr i tten i n BAS I C , C , PASCAL , FORTRAN , a n d so on .

Except for a few se l dom- u s ed comma n d s , DY NACALC i s memory- res i d ent , so


there i s I i t t l e d i s k I / O to s l ow t h i ngs down . The wh o l e data a r r a y ( wo r k sheet )
i s i n memor y , so ac cess to any po i n t i s i n stantaneou s . DYNACALC is 1 0 0% 6809
m ac h i n e code for b l i ster i ng speed .

Co l or Comp uter DY NACALC wor k s w i t h the F L EX operat i n g sy stem f r om Frank


Hogg L a bor ator y ( 64 k r e q u i re d ) . If y o u a r e n ' t a l r e a d y us i ng th i s power f u l
o p e r at i n g s ystem , we h av e a spec i a l dea l for yo u : or d er DYNACALC ( r eg u l a r l y
$ 200 ) a n d FHL Co l o r FLEX ( r egu l a r l y $99 ) together f or on l y $ 2 5 0 .

To or der , see your l oca l DYNACALC d e a l er , or order d i r ec t l y f rom CSC at the


address b e l ow . We accept te l ephone or d e r s f r om 1 0 am to 6 pm , Mo n d a y through
Fr i day . Ca l I u s at 3 1 4-5 76-5020 . Your V I S A or Ma sterCard i s we l come . Be s u r e
t o spec i f y t h at you want t h e Co l or . Comp u ter ver s i o n .

O R D E -R YO U R DYNACALC TO DAY !
Computer Systems Center

13481 Olive Blvd.

Che.terfleld, MO 83017

(314) 578-5020 .... 507

.... See List 01 Advertisers on page 138 HOT CoCo Jun� ICJ83 3CJ
you can create a new document or edit
Listing continued
an old document. If you want to finish
999
or change an old document, answer the
1 4 1 1 5 A $ ( X ) =LEFT$ ( A S ( X ) , F-l ) +RIGHT$ ( A$ ( X ) , LEN ( A $ ( X ) ) - ( F-l+LEN ( Sl
"Create new document" query with N, $» ) : GOT01 4 9 8 9
respond to the cassette ready query, and 1 4 1 2 9 I FC $= " R " ORC $= " r " THEN 1 4 1 2 3 ELS E 1 4 1 4 9
1 4 1 2 3 I FF=lTHENA $ ( X ) =S2 $+RIGHT $ ( A $ ( X ) , LEN ( A $ ( X » -LEN ( S l $ » ) : GOTO
the document will be loaded from tape 14089
or disk. 1 4 1 2 5 I F F-l+LEN ( S l $) =LEN ( A $ ( X) ) THENA $ ( X ) =LEFT$ ( A$ ( X ) , F - l ) +S' 2 $ : GO
If you respond with a Y, you will re­ T01 4 9 9 9
1 4 1 3 0 A $ ( X ) =LEFT $ ( A$ ( X ) , F - l ) + S 2 $+RIGHT$ ( A$ ( X ) , LEN ( A $ ( X » - ( F - l + L E
ceive the command prompt • and you N ( Sl $ » ) : GOT01 4 9 8 9
can enter your new document. 1 4 1 4 9 PRINTX ; A$ ( X) : PRINT " AGAIN? " ;
1 4 1 5 9 B $ = I NKEY $ : I F B $= " " TH EN 1 4 1 5 0
The Edit program is set up for 200
1 4 1 6 0 PRINT : I FB $ = " Y " ORB $ = " y " TH EN 1 4 9 9 0 ELS E 1 9 0
lines, assuming the lines will be an aver­ 1 5 9 9 9 IFTD=-lTHEN INPUT " IS CASSETTE READY " i AN $ : IFAN $ = " Y " ORAN $ = " y "
age of 40 characters each. If you use all THENRETURNELSE1 5 9 9 0
1 5 0 1 " RETURN
200 lines, you are warned and not per­ 1 5 1 0 0 INPUT " TAPE ( T) OR DISK ( D) " ; TD $ : IFTD $= " T "ORTD $ = " t " TH ENTD=­
mitted to enter any more. Use E to save l : RETURN
1 5 1 1 9 I F TD $ = " D "ORTD $ = " d " TH ENTD= l : RETURN
the document and start a new one by
1 5 1 2 0 GOT0 1 5 H J 0
restarting the Edit program by typing
RUN. Be sure to use a different me
name for this addition.
You can then use Author to connect
the documents. If you are doing this, Program Listing 2

the sections of the documents should


5 PRI N T " PROGRAM COPYRIGHT 1 9 81 BY KEN KNECHT"
follow each other in the correct order on 1 0 CLEAR7 0 0 0 : PCLEAR 1 : Nl = 9 ' : DIMTD $ ( 2 0 0 )
a single cassette side. If you use a disk, 1 1 INPUT"TEXT ON TAPE ( T) O R D I S K ( D) " ; TD $ : IFTD $= " T " THENTD=-l : GO
T020
the mes need only be on a disk in one of 12 IFTD $ = " D " THENTD=lELS E l l
your disk drives. 2 0 GOSUB 4 0 0 0
3 0 L l = 0 : P 2=1 : INPUT " JUSTI FY RIGHT" ; Al $ : IFLEFT$ ( Al $ , l ) = " Y " THENNJ=l
If you have 32K of memory, you can ELSENJ=0
change the 200 in line 10 (DIM A$ 40 INPUT" DOUBLE SPACE" i Al $ : IFLEFT$ ( Al $ , 1 ) = " Y " TH END= l ELSED=0
4 4 INPU T " F I RST PAGE NUMBER ( D EFAULT I S 1 ) " ; PN $ : I FP N $= " " THENPN= l E
(200)), line 1000 (twice) and line 1 1 010 LSEPN=VAL ( PN $ )
to 600; and the CLEAR 8000 in line 10 4 5 P2=PN : Ll = " : PF = 0
to CLEAR 24000. 4 6 INPUT" L I NE W IDTH ( DEFAULT I S 6 " ) " , PW$ : IFPW$ = " " TH ENPW= 6 0 ELSEPW
=VAL ( PW $ )
While you are running the program, 4 7 INPUT"LEFT MARGIN ( DEFAULT IS 8 ) " I LM $ : IFLM$= " " THENLM= 8 ELSELM=
especially when using the alter mode, VAL ( LM $ )
4 8 PRINT" P RINTED PAGE L ENGTH ( DEFAULT" : INPUT" I S 5 5 LINES ) " ; PL $ :
the computer might seem to freeze and
I F P L $ = " " TH ENPL= 5 5 ELS EPL=VAL ( PL $ )
ignore the keyboard. Sit back and wait; 4 9 PRINT"PHYSICAL PAGE LENGTH DEFAULT" : INPUT" IS 6 6 " i PP $ : I F PP $ � " "
eventually all will be well. You have just THENPP=66 ELSEPP=VAL ( PP $ )
5 0 INPUT " D IABLO PRINTER" i Al $ : IFLEFT $ ( Al $ , 1 ) = " Y " TH EN P 1 = l ELSEP 1 = "
been treated to the effects of the dread­ 6 " INPU T " PAGE NUMBERS " ; Al $ : IFLEFT$ ( Al $ , 1 ) = " Y " TH EN P 1 = l E LS E P 1 = "
ed garbage collection. Basic does this to 7 0 INPUT " TITLE ON EACH PAGE " I A1 $ : IFLEFT$ ( Al $ , 1 ) s " Y " THENT=l ELSET=
0 : GOT0 90
reorganize the string space, getting rid
8 0 INPUT " T I TLE" , T$ : INPUT" SUBTITLE" I T1 $
of old, no-longer-needed lines. It can 90 N=0 : DT=0 : INPUT " VARIABLES " ; Al $ : IFLEFT $ ( Al $ , 1 ) = " Y " TH E N I FTDa-1TH
take from 10 seconds to several ENINPUT "VARIABLES TAPE READY " I AN $ : DT=l
92 I F LEFT $ ( Al $ , l ) < > " Y " THEN . 190
minutes. 9 5 OPEN" I " , I TD , D F $
• Global (G)-This will replace, delete, 96 IFEOF ( TD) THEN98
9 7 N=N+l : LI NE I NPUTITD , DF $ ( N) : GOT096
or find a specific word or phrase in a
9 8 CLOSE
document. 1 0 0 GOSUB1 0 0 0
• Variable File « )-This will insert 1 1 0 FORFF=l TO NF
1 1 5 F 6 = 0 : F7 =0 : P7 = 0 : A$ = " " : B $s " " : C $= " " : E= 0 : PG = 0
lines from another me for form letters. 1 1 7 IFTD=-lTHEN INPUT" TEXT TAPE READY " I AN$
Use the < followed by a few spaces or 120 OPEN " I " , ITD , Al $ ( FF)
1 3 9 IF B $ < > " " AND ( RIGHT$ ( B $ , l) = " , " OR · RIGHT$ ( B $ , l ) = " @ " ) TH ENA$=B
any characters (they won't be printed) .
$ : B $ = " " : J 9 =LEN ( A$ ) : GOT02 8 0
Author will get the line from another 1 40 I F L EN ( B $ » PW THENA$=B $ : B $= " " : J9=LEN ( A $ ) : GOT0 2 8 0
variable me and insert it. The resulting 1 5 0 I F EOF ( TD) O R ( B $ = " " AND E = 1 ) THEN7 0 0 9
1 6 0 L I N E I NPUTtTD , A $ : IFA$ = " " THEN1 6 " ELSEJ9=LEN ( A $ ) : PRINT" > " ; A $ ; " < "
line will stand alone, like a line begin­ 1 6 1 I FLEFT$ ( A$ , 1 ) = " A " THENPF=lELSEIFLEFT$ ( A $ , 2 ) = " A @ " TH EN P F = 2 '
ning with a >. See Author documenta­ 1 6 2 IFPF-l AND B $= " " THENFORXY=Ll+l TO PP : PR I NT I - 2 , " " : N EXTXY : Ll=
0 : GOSUB1 0 0 0 : PF = 0 : GOT0 1 5 0
tion for more details. 1 6 3 I FPF=l AND L EN ( B $) < = PW THENPRINT I - 2 , TAB ( LM) ; B $ : B $ = " " : FORXY= L
1 + 1 TO P P : PRINT ' - 2 , " " : NEXTXY : Ll - 9 : PF = 0 : GOSUB 1 0 " " : GOT01 5 "
Author Documentation 1 6 4 IFPF�2 AND B $= " " THEN7 9 0 9
1 6 5 I F P F = 2 AND L EN ( B $ ) < = PW THENPRINT I - 2 , TAB ( LM) / B $ : B $ = " " : GOT07 " "
This program formats a document to °
be printed. 166 I FP F = 2THENE=1 : A $=B$+" @" : B $ = " " : J 9=LEN ( A $) : GOT0 2 8 9
17" IFLEFT$ ( A$ , 1 ) = " < " THENN1=Nl+lELS E 1 9 "
The initial raw document data cre­
172 I F Nl >N THENPRINT " · * * *OUT O F VARIABLES DATA** * * * " : CLOS E : END
ated with the Edit program is stored in 175 A$=DF $ ( Nl )
one or more meso When Author con­ 180 A$=" > " +A $ : J 9 =LEN ( A $ )
190 IFLEFT$ ( A$ , 1 ) = " > " THENA$=RIGHT $ ( A$ , J9 - 1 ) ELS E 2 6 0
nects two mes, the paging of the docu­ 2"" IF B $ < > " " THENP7=1
ment is not interrupted. Each me length 210 I F B $= " " TH ENF6 � 1 : J9=LEN ( A$) : GOT0 2 9 0
is limited only by memory size; thus a 220 I F R I GH T $ ( B $ , l ) < > " , " AND LEN ( B $) <PW+l THENPRINT ' - 2 , TAB ( LM) I B

document can exceed memory size by Listing conlinued


many times.
40 HOT CoCo Jun£ Iq83
DAISY WHEEL
New Smith Corona TP-1
True letter quality printer for less t h an t h e cost o f an
POOR MAN'S office typewriter! Priced $500 less than other popular
,
FLOPPY daisy wheel print ers!

H I G H SPE E D CASSET TE SYSTEM SALE PRICE:


Now for the TRS-SO Color Computer $569
The JPC PRODUCTS High Speed Cassette System, in operati�n
for Oller 4 years, is now available for all versions of the Radio
Shack'" Color Computer. F EATU R ES :
* F T i ct l on feed
• TC-BC - Plugs directly.into the expansion port of your
TRS-80 Color Computer. It is fully compatible with all
versions of the Color Computer from the standard 4K to * 1 5 cps, 1 20 wpm
the Extended 32K.
I
* Ch angea ble daiSy wheels
• F;l'.ST - Twice the speed of the Color Computer System. * Para l lel or serial mterface
• RE LIABLE - Less than one error in a million bits.
• SUPPORTS TWO DKIVES - Software selectable. * Compat ib le With R I S , Apple, et c
• ALL FILE TYPES - BASIC machine language, data. _ SUN LOCK SYSTEMS
MOTOR CONTROL - Two on-board relays.
- 42 1 7 Carolina Ave

• EPROM OPE RATING SYSTEM


• SA'\RE EPROM SOCKET - 27 J 6 or 2732 compatible. Richmond. Va 23222
• OPTIONAL JBUG MONITOR - EPROM or Cassette AVV I T I ONA L PR I NT E R S PE C I A LS
6809 Assembler Memory modify and list
( pM )
• •

• 6809 Dis-assembler • Break point traps ENO Yl o fU.da:ta. C . Ito h ( -6 eA )


• ASSEMBLED and tESTED
,\ (X 8 0 $ 36 9 8 2A $4 1 9 8510 $ 39 9 $ 5 79
TC-BC . . . . . .. . 5 J 29.95 JBUG (EPROM) . . .
. . . . 534.95
JBUG (Cassette) . FX 8 0 559 8 3A 639 1 5 50 699 7�9
TERMS: I iX 1 0 0
. 649 92 499 F l 0-40 1 299 1 299
Cash. Masw- Card Of Visa
Shipping & Handling $3.5QfUSI 93 84 9 F l O- 5 5 1 595 1 595
S5.SO (Canada) S 1 5.00
(Fomgnl lechnical
W E W I L L ,\ I E f T O R BEAT AN Y A D V E RT I S E D PR I C E
Inqul�s: � T O O R D E R C A L L T O L L F R E E 800· 368·9 1 9 1
5:00 • 6 :00 PM MST I n V l r q , n , a c a l l 804 · 3 2 1 · 9 1 9 1
.... 456
We accept MasterCard , Visa and C O Os

I ACCOLADE COMPUTEIR PRODUCTS


.
I
I PRINTERS DISK DRIVES
I EpSOn MX80FT w I G raftrax .
Epson MX1 00FT w I G raft rax
. . . . .
. . . . .
5 499.95
5 697. 50
Ta n d o n TM1 00-1 , '
S i n g le d r ive case & power su pply
. . , , , ' . .
,
51 99.9,5
5 49.95
I Epson FX80 (1 60 CPS) . . . . .
FX Tra cto r . . . . . . . . . . . . . .
. . . . .
. . . . .
5 625.00
5 29 .95
Dual d r ive case & power su p ply .
2 d r ive ca b l e . . . . . . , . . , , . , , , . .
.
,
5 69.95
5 24.95
I Ge m i n i 10 . . . . . . . . . . . . . . . 5 379.95 ACCESSORIES
I Gemi n i 15 . . . . . . . . . . . . . .
4 K S e r i a l I n terface cable . .
. . . . .
. . . . .
5 649. 9 5
5 1 07 . 50
Wico J oysti c ks , " . . , . . , .
Joystick adapter . , . , . . ' . , .
, ' . . . , 524.95
. . . . . , 5 1 4 . 95
I 80C T O E ps o n ca b l e . . . . . . .
Para l l e l cable . . . . . . . . . . . .
. . . . .
. . . . .
5 1 9.95
5 29.95
K raft j oystick . . , . , . . . . . , .
K raft pa ddles ' . . , . , . .
, . . . , , 555.95
. . 539.95
Pa ral l e l i nterface . . . . . . . . . . . . . 5 79.95
O k i d ata 82A (1 20 CPS) . . . . 5 4 59.95 SOFTWARE
82A fo rms tractor . . . . . . . . . . .. 5 57.50 Zaxxon (Datasoft) , . . . , . ' . . . , ' , , , 531 . 9 5
Daisywriter 2000 . . . . . . . . . . . . . . 51 395.00 DoodleB u g
( Letter Q u a l i ty Printen ( Co m p u terwa re) . . , . . . . . . . . . , , 524.95
Shark Treas u re
MONITORS (Com pu terwa re) . . , . . . ' . . , , 521 .95
BMC ( 1 2 " g r ee n) . . . . . . . . . . 5 99. 9 5 Mega pede
C o m r e x CR-6500 ( 1 2 " colon .' . . . , . 5342 . 50 (Compu terware) . . , . . ' . . . . ' 521 .95

Dealer i n q u i r i es invited
ACCOLADE COMPUTER PRODUCTS ... 2 2 7
I
Californ Ia reslaents a a a 6 % Sales Tax
Shipping & Handling S3 00
COD Charge · S1 .50
4858 Coronado Ave n u e
COO S CASHIERS CHECK OR MONEY ORDER ONLY'

Personal checks must take


Sa n D i ego, CA 921 07 I
two weekS -to clear. (61 9) 223-8599
I
.... See List 01 Advertisers on page 138 HOT enen .Iun� Iql!3 41
Each file is constructed with the Edit
Listing continued
program. Lines can be complete or
$ : B $= " " : GOSU B 20 2 0 : P7 = 0 : GOT0 2 1 0 broken between words. The program
23 0 I FRIGHT$ ( B $ , l ) = " & " AND LEN ( B $» PW+l THENB$=LEFT $ ( B$ , L EN ( B $ ) -
1) : P7�0 : PRINT ' - 2 , TAB ( LM) ; B $ : PG=1 : GOSUB 2 0 2 0 : B $= " " automatically adds a space between any
2 4 0 I FP7�lTHENA9 $=A $ : A $ =B $ : GOT0 4 1 0 two connected lines in a file. If you add
2 5 0 GOT0 2 7 0
a space after a line, you'll end up with
2 6 0 I F B $ < > " " THEN 2 3 0
27 0 IF B $ < > " " THENA$=B$+" " +A $ : J 9 =L EN ( A $ ) : B $ � " " two spaces in the final printout.
2 8 0 I F J 9 >PW THEN4 1 0 There are five formatting characters
2 9 0 IFRIGHT$ ( A $ , 1 ) = " & " THENPG=l : A $=LEFT$ ( A $ , J 9 - 1 ) : F 6 = 0 : J 9=LEN ( A $ )
: GOT0 8 0 0 to remember:
3 0 0 IFRIGHT$ ( A $ , 1 ) z " @ " TH ENE=1 : A $=LEFT $ ( A $ , J 9-1) : F6 = 0 : J 9=LEN ( A$) : • The & at the end of the last line in a
GOT0 8 0 0
3 1 0 I FF6=lTHENF 6 = 0 : GOT0 8 0 0
paragraph will make the next line begin
3 2 0 B$=A $ : GOT01 3 0 a new paragraph. I f you want indented
4 1 0 S = 0 : FORX=1 T O PW : F $�MID $ ( A $ , X , l ) : I FF $ = " "THENS=S+l
paragraphs, include the indenting spaces
420 C $= C $ +F $ : NEXTX
4 3 0 XX=0 : S�S-1 at the beginning of every line that starts
440 FORX=PW TO INT ( PW/ 2 ) STEP-l a new paragraph.
450 F $=M I D $ ( C $ , X , l ) : XX=XX+l
• The @ signals the end of the docu­
460 I F F $ < > " " THENNEXTX
4 7 0 B $=RIGHT$ ( A $ , LEN ( A $ ) - ( PW+ l ) +XX) I A$zLEFT$ ( C $ , LEN ( C $ ) -XX) ment.
4 8 0 I FNJ=0THEN 8 0 0 • Use > if you write a line that you
4 9 0 J 9 =LEN ( A$ ) : Q=PW-J 9 : S 2 = 0 : C $ = " " : TI = 0
5 0 0 IFDI =lTH EN 6 9 0 want to appear by itself. The line will be
5 1 0 I F Q <=S THEN S1 = 1 : GOT0 5 5 0 printed exactly as you entered it. Be sure
5 2 0 I F Q > S * 3 THENS l = 4 : GOT0 5 5 0
such lines do not exceed your chosen
53 0 I F Q > S * 2 THENS l = 3 : GOT0 5 5 0
5 4 0 I F Q >S THENS l = 2 line length.
5 5 0 FORX=l TO J 9 : F $=MI D $ ( A$ , X , 1 ) Use < when you want to use a line
5 6 0 IF F $ < > " " THEN 6 6 0
5 7 0 I F S l = l AND Q-S 2 = 0 THENF $ = " " : GOT06 5 0 from a data file. The dummy < line in
5 8 0 I F S l =lTHENF $ = " " : S 2=S2+1 : GOT06 5 0 the file must consist o f several
5 9 0 I F S l = 2 AND Q-S 2=S-T I TH EN F $ = " " : S 2 z S 2+1 : GOT06 5 0
6 0 0 I F S l = 2THENF $ = " " : S 2 = S 2+ 2 : GOT06 5 0
characters.
6 1 0 I F S l = 3 AND Q-S 2 = ( S-TI ) * 2THENF $ = " " : S 2=S2+2 : GOT0 6 5 0 The up arrow advances the printer to
6 2 0 I FSl=3THENF $=" " : S 2= S 2 +3 : GOT06 5 0 the top of the next, page. It can be used
6 3 0 I F S l = 4 AND Q-S 2 = ( S-TI) * 3 TH ENF $ = " " : S 2- S 2 + 3 : GOT06 5 0
6 4 0 I FS l = 4THENF $ = " " : S 2= S 2 + 4 for starting a new chapter and the like,
6 5 0 TI�TI+l but it must stand alone on a line unless it
6 6 0 C $=C $+F $ : NEXTX
is followed by an @.
6 7 0 A$=C $ : C $ = " "
6 80 GOT0 8 0 0 Figure 1 is an example of a set of files
6 9 0 IFQ=0THEN 8 0 0 using the formatting commands.
7 0 0 HM=INT « Q * 1 2 ) / J 9 ) + 1 2 : H I= ( 1 2* PW) - « J 9 * 1 2 ) + ( J 9 * ( HM- 1 2 » )
7 1 0 PRINT.- 2 , TAB ( LM) ; CHR $ ( 27 ) , eHR $ ( 3 1) , CHR$ ( HM+2) ; First, write the optional data file,
7 20 I F H I =0THEN7 6 0 named Datafile. Remember, this file is
7 3 0 FORX=l TO H I
only necessary if you wish to print sev­
7 4 0 F $=MID$ (A $ , X , l ) : PRINT'-2 , F $ ;
7 5 0 NEXTX eral documents with the same lines to be
7 6 0 PRINT.- 2 , CH R $ ( 27 ) , CHR$ ( 3 1 ) , CHR$ ( HM+ l ) , replaced by your variable file's lines.
7 7 0 FORX=H I+l TO J 9
7 80 F $=M I D $ ( A $ , X , l ) : PRINT' - 2 , F $ ; Figure 1 should make this clear.
7 9 0 NEXT : PRINT' - 2 , CH R $ ( 27 ) ; CH R $ ( 3 1 ) ; CH R $ ( 1 3 ) : GOT0 8 2 0 To connect two files, refer to Fig. 2.
8 0 0 I FRIGHT$ ( A$ , l ) = " ' " THENA$=LEFT$ ( A $ , LEN ( A$ ) - l )
Once you have entered a file such as
8 1 0 PRINT. - 2 , TAB ( LM) , A $ : A $= " "
8 2 0 C $ = " " : GOSUB 2 0 2 0 : IFP7 =lTHENP7 = 0 : A$=A9 $ : A9 $ = " " : GOT0 2 2 0 Fig. 2, you can load Author. Figure 3
8 3 0 GOT01 3 0 shows the prompts and the appropriate
1 0 0 0 I FP l = l THENPRINT' - 2 , TAB ( 3 9) ; " ( " ; P 2 ; " ) " : P2-P 2+1 : PRINT ' - 2 , " " :
L l =Ll+2 answers.
1010 IFT=lTHENPRINT . - 2 , TAB ( LM) , T $ : PRINT . - 2 , TAB ( LM) / T l $ : PRINT' - 2 , The two letters will be printed in the
" " : Ll "Ll+3
format specified by Author.
1 0 2 0 RETURN
2 0 20 Ll=Ll+l If the Diablo 1 620 printer is used, a
2 0 3 0 I FD=lTHENLl=Ll + l : PRINT'- 2 , " " special routine will take advantage of
2 0 4 0 I FPG=lTHENLl=Ll +l : PG=0 : PRINT'-2 , " "
2 0 5 0 IFD=lTHENLl=Ll+l : PRINT' - 2 , " " the variable character spacing when us­
2 0 7 0 IF Ll >PL-l THENFORXY=Ll+l TO PP : PRINT ' - 2 , " " : NEXTXY : Ll = 0 : GO ing right-justification. I f you are not us­
SU B 1 0 0 0
ing the Diablo, answer N to the appro- ·
2 0 8 0 RETURN
3 0 0 0 Ll = 0 : NEXTFF priate query.
3 0 1 0 CLOS E 'TD : INPUT " ANOTH ER COPy " , Al $ Note that you must set the printer at
3 0 2 0 IFLEFT$ ( Al $ , 1 ) z " Y " TH EN 3 0 ELSEEND
4 0 0 0 INPUT" HOW MANY FI LES I N TH I S DOCUMENT " , NF : DIMAl $ ( NF) the beginning of the paper where you
4 0 1 0 FORFF=l TO NF wish the printout to start. The program
4 0 2 0 LINEINPUT " F IL E NAM E ? " , Al $ ( FF )
uses line feeds instead of the form-feed
4 0 3 0 NEXTFF
4 0 4 0 INPUT " IS THERE A VARIABLE F I LE " , Al $ : I F LEF T $ ( Al $ , l ) < > " y " TH character, so it will be compatible with
ENRETURN
all printers.
4 0 5 0 LINE INPUT"VARIABLE F I LE NAME? " ; DF $ : RETURN
6 0 0 0 I FRIGHT $ ( A $ , l ) = " & " THENPG=l : A$=LEF T $ ( A $ , LEN ( A $ ) - l ) Some experimentation with this pro­
6 0 1 0 IFRIGHT$ ( A $ , l ) = " @ " THENE- l : A$=LEFT$ ( A$ , LEN ( A$) - l ) gram will help you understand its pos­
6 0 2 0 RETURN
7 0 0 0 E=0 : CLOS E ' TD : I FPF= 2THENPF= 0 : FORXY=Ll+l TO P P : PRINT'- 2 , " " : N
sibilities better. This is a powerful and
EXTXY : Ll = 0 : GOSUB1 0 0 0 : NEXTFFELSENEXTFF easy-to-use word processor . •
7 0 0 5 FORXY=Ll+l TO P P : PRINT' - 2 , " " : N EX TXY
7 0 1 0 IFDT=lTH EN IFN l�NTHEN 3 0 1 0
7 0 2 0 IFDT=lTHENCLO S E ' TD : P 2-PN : Ll = 0 : GOTOl 1 0 Ken Knecht can be reached at KEN­
7 0 3 0 GOT03 0 1 0 COM Co., 1263 S. 5th A ve. , Yuma, AZ
85364.
42 HOT CoCo June 1983
FILE NAME? LEITER I
CREATE NEW FILE? Y
-

Baudy H ouse
• I
I > Mr. John Smith
C o mputer Pro du cts
2> 12 Main St. 9:;0 Scott L il k c Road (3 1 3J 683·B3BB/order & info
3> Chicago, IL 60605& Pon t l Clc. M lc h l tj il n 4il054 (3 1 3J 682·955 0 lines

SHARK ATTACK! SHARK ATTACK!


4> 1 1 130/81&
5 <XYZ
6 <XYZ N ew from Comput erware for the Color Com puter!
7 <XYZ I am in love with th�s new color game. A mu st for all Color
8 <XYZ Com puter owners and game p layers .
---
. . . . . . . . . . . . . . . . . $22.95
9 We are writing this letter as an example of
10 how to use this program. COLO R COM PUTER GAMES Color Com puter Programs
- --
I I In it we will use the "<", ">", "&" and " @ "
Space Race . . . . . . . . . . . . $1 9.95 Telewriter . . .
. ,·$49.95 0·$59.95
Doodle Bug . . . . . . . . . . . . . $1 9.95 . . . . . . $21 .95
1 2 to show the use o f the formatting symbols.&
Master Control . . .
Planet Invasion . . . . . . . . . $1 9.95 Magic Box . . . . . . . . . . . . . $21 .05
13 Note we used a "&" to end the last

Tape to Disk . . . . . . . . . . . $1 9.95


14 paragraph. Note also that we can break up sentences
Donkey King (g reat!) . . . . $1 9.95
M u n key Kong 1 6 K. . . . . . $24.95
15 and how we use spaces to indent the first line
-

Protectors (Tom M ix). . . . $24.95


16 of a new paragraph.&
MORE COLO R GAMES
Dunkey Mu nkey . . . . . . . . $1 9.95
1 7 W e will now end the first file.

. . . . . . $24.95
18 Note the use of the "@" at the end of this line. @
Bird Attack (Tom M ix) . . . $21 .95 Katerpillar Attack.
Color Golf (Tom M ix) . . . . $1 8.95
19 <ENTER>
Craps & Boxcars . . .
. . . . . $ 9.95
Phantom Slayer . . . . . - . . $1 9.95
PAC-DROIDS . . . . . . . . . . . $1 9.95
·E

Color Haywire . . . . . . . . . . $24.95


RUN
Gh ost Gobbler . . ' " . . . . $1 9.95
Galax Attaxx . . . . . . . . . . . $21 .95
FILE NAME? LEITER 2
Invaders Revenge . . . . . . $1 9.95
Doodle Bug . . . . . . . . . . . . $24.95
,
Planet I nvasion . . . . . . . . . $1 9.95
CREATE NEW FILE? Y
I

Space Race . . . . . . . . . . . . $1 9.95


·1
Color Space Traders . . . $1 9.95
Madam Rosa's Massage Parlor from Soft core Software . . . . $1 5.00
I We are now starting a new file.
2 In the previous file note how we used the ">"
-
3 to set the sender's name and address off to the
4 right side of the page.& N O W U S E YOU R ATA RI J OYSTICKS ON YOUR
5 We also used the "<" followed by the dummy line XYZ
COLO R C O M PUTER W ITH A J OYSTI C K ADAPTOR
,
51 7 . 9 5
6 (we could have used spaces as well, just so something
A must for everyone
7 follows the ">").
8 In these lines the program will place the lines
COLOR
. AUEN DEFENSE
9 from the variable data file, one line from the variable
1 0 file following each ">".& bV Doug Schwar17
II This sould give you an idea of how to set


12 up your next files.&
1 3> Sincerely, &
14> John@
15<ENTER>
·E
--=.,:- . ,.:o-r�
--# � �
0IC0dIt gomeoI
MocNne Don'I _ tor _ Be ...... 10 011< W the
Figure 2 One 0I 1he last"" octton

IJIOQIOIT\waspmduc8d bV SolI Sector MaIceI­


wrtIten In �.
16K � '•••fI -
-------1 Ing 10 you dOn'l gal lhe wrong -.lon.
16K Co_He .1 ....
DEATH TRAP Machine language
RUN
HOW MANY FILES IN THIS DOCUMENT? 2 COLOR
(aRAPHIC EDITOR
bV lcnv AItvru'\
FILE NAME? LEITER I
AI ""'. o .... _ Qoow;ng � _ _
II8COIing
tht CI'8CJHon c:I gIOPhiC � on the ICI'Mn stOMg
FILE NAME? LEITER 2
"*'" in ona d .. kXXltiOnl. ond them 01
needlQ b .......
IS THERE A VARIABLE FILE? Y
VARIASLE FILE NAME? DATAFILE Thepllcf\.-. con be u..d 'OcM to bt IOodId nto fht
JUSTIFY RIGHT? Y � �=��c:�
a. � JOr l.llllno lhe � in o a.-sc::.
DOUBLE SPACE? N orogram. WcnI on c::o.tte Of CII* Pnfemi.

game CosseHe .1 ....


sIyIe.
A IoIQ81'- lhal)-scl-' maze . Arcade
FIRST LINE NUMBER (DEFAULT IS I )? <ENTER>
fost-action wrtTIen in Machine Lano- \M1IIen in Machine Language. but reQUites
LINE WIDTH (DEFAULT IS 60)? <ENTER>
uoge. Req.Ji
.... Joys11dc.
16K � ' •••"
ExlendIId ex 'DIsk 8oIic.
LEFT MARGIN (DEFAULT IS 8)? 10
PAGE LENGTH (DEFAULT IS 55)? 60
DIABLO PRINTER? Y We try to ship within 24 hours on
PAGE NUMBERS? Y most orders. Please add $3.00 for
TITLE ON EACH PAGE? Y sh i pping and hand li ng. Orders
TITLE? AUTHOR DOCUMENTATION going out of U.S.A. please add
SUBTITLE? COPYRIGHT 1981 BY KENNETH B. KNECHT $5.00 for shipping. Prices su bject
VARIABLES? Y to change. VISA, MASTERCARD,
C.O.D's, Money Orders, & Checks
welcome.
Figure 3

Dennis Black Y' 1 84

Y' See List 01 Advertisers on page 138 HOT COCO June 1983 43
GAME

BY CHARLES LEVINSKI

CAVE HUNT

YOU awake on a cool, hard floor.


You see nothing but crude, gray
Many dangerous creatures to stare at the suddenly bare ax handle
long enough for you to recognize him as
stone . You perceive that you are in await you in this adven­ a troll . Before you can react, he's gone.
some sort of cave. You find you carry ture game. Can you find Slightly giddy from the encounter,
only a knife. you turn and walk through an opening
You hear a sound nearby. Investigat­ your way out of the maze? into the next room-and into the jaws
ing, you enter another room in what of a giant spider ! You drop the light and
now appears to be a maze of caves. On your knife, and struggle to escape. But
the far side of the room, a small man hoping the batteries aren't dead. A faint it's too late.
crouches . Relieved to find you are not purple beam licks out and stops about Soon silence fills the caves once more
alone, you approach him. six feet from the handle. as the occupants settle down to await
Suddenly, swinging a great ax, the Some scuffling behind you draws you their next meal .
man whirls to face you! You retreat the out of your reverie. You turn to find the Cavehunt is a fantasy game that
way you came, running through several short man swinging his ax crazily! In places the player near the center of a
rooms. You stumble and fall . Lying be­ panic, you turn the light toward him. maze of rooms. The object of the game
side you is a short object, resembling a The ax head separates from the handle is to escape alive, a task made extremely
flashlight. You retrieve it and turn it on, where the beam touches it. He hesitates difficult by the creatures you encounter
en route.
The maze is redesigned for each game
A(X,Y) Contents of cave rooms so that you can't memorize the escape
F(X,y) Die-roll modi fier chart
route. Other features include seven dif­
KP Kill points
ferent weapons for you to find, five
I Used for counting loops
different creatures to make your life
N Used for counting loops and for contents of room North of player
PX Horizontal player location
miserable, and a point total awarded
PY Vertical player location for killing the various creatures you
AS Used for one time alphanumeric inputs encounter.
W(I),W(2) Weapons being carried A graphics display of the cave when
X Horizontal room number the game is over shows its construction
Y Vertical room number and your position at the end of the game.
LX Last horizontal player location
LY Last vertical player location Program Operation
S Contents of room South of player
The program establishes a two-di­
E Contents of room East of player
mensional array that represents the
W Contents of room West of player
cave . The value of any element in the ar­
D Direction player chooses to travel, also indicates player 's death
ray determines the contents of the room
A Number of weapons being left behind
G Temporary storage of weapon value during pick up routine-later used represented by that element. The loca­
for plotting cave shape tion A(5,6) represents a room in the
RN Relative probability of escape when running from a creature cave . If A(5,6) 3, it would mean there
=

AW Weapon used for an attack


RL Relative indicator of battle success
TR Direction scheme for creating an exit to the cave System Requirements
TX Horizontal position of test probe
TY Vertical position of test probe
Tl Random escape direction
16K Color Basic

Table I. Variable List

44 HOT CoCo Jun( 11)83


is a giant spider in the room. These
room values can represent five different
Program Listing
categories. A zero means that the room
is empty. A one means the room is solid 2 ' CAVEHUNT , AN ADVENT URE GAME
rock and cannot be entered by anyone. 4 ' BY CHARLES B . LEVINS K I , 1 0 SOUTH S I D E AVENUE , SOUTH RIVE R , N .
J . 8 8 8 82
Numbers two through six represent 5 CLS
various creatures that occupy the rooms 6 PRINT @ 23 6 , " CAVEHUNT " : PRINT @ 2 9 5 , " K EY ENTER TO BEGIN" : KP=RND ( 1 8 8
of the cave, while seven through 1 3 in­ 0 ) : I F INKEY $ = " " THEN6
18 DIMA ( 2 2 , 2 2 ) : DIM F ( 5 , 7 )
dicate weapons in the room. A negative 11 KP=8
one indicates that you are outside the 1 2 CLS : PRINT" PROGRAM I S PROCES S I NG-PLS WAI T"
1 3 FORI=lT05
cave and therefore have escaped. 15 FORN=lT07
The creatures who live in these rooms 1 6 READ F ( I , N)
do not leave them; the rooms are their 17 NEXTN , I
1 9 DATA 7 , 8 , 5 , - 2 , - 5 , 5 , 1 2 , 8 , 4 , 2 , 4 , 8 , 8 , - 5 , 3 , 3 , 8 , 1 , 1 , - 4 , - 8 , 1 2 , 8 , 1 2 ,
homes and they don't appreciate inter­ -5 , 0 , 1 2 , 1 2 , 6 , 5 , 2 , 4 , - 1 , - 2 , -7
lopers. For simplicity in the program , a 20 ' A ( X . Y) =CAVE POS I T ION S : 0=CLEAR , 1 = IMPASSABLE , 2 =WI ZARD . 3 =GIANT
SPIDER . 4 =TROL L , 5 =UNDEAD . 6 =GREAT BEAR
room cannot contain both a creature 22 ' A ( X . Y ) =- l INDICATES OUTS I D E OF CAVE AND YOU WIN
and a weapon. 25 RESTORE
Battles are resolved with another ma­ 30 ' 7 =KN I F E , 8=MAGIC STAFF , 9= BROAD SWORD . 1 0=DIAMOND OF L I F E , l1=FI
RE OF THE DEPTH S . 1 2=GREAT AX . 13 =LASER SWORD
trix-the die-roll modifier (DRM), a con­ 40 ' PX . PY=PLAYER POS I T ION , A$=GARBAGE CHARACTE R , W I l ) , W ( 2 ) =WEAPONS
cept borrowed from assorted war-games B E ING CARRI E D . NSEW=DI RECTION S , D=DI RECTIONS
70 FORX=0T021
such as Squad Leader by Avalon Hill . 7 2 FORY=0T021
A number representing the relative 74 A ( X , Y) = 0
7 6 NEXTY , X
effectiveness of each weapon against a
1 1 0 ' CREATE CAVE
particular creature is set up in another 1 2 0 FOR Y=lT020
two-dimensional array. When battle 138 FOR I = l T06
i 3 5 X=RND ( 2 8 )
takes place, this modifier is added to the 140 A( X . Y) =l
die roll (the random number between 1 1 7 0 NEXTI , Y
and 20 that determines the outcome of a 1 7 2 Y=0
1 7 4 FOR X = 0 T0 2 1 : A ( X , Y ) =-1 : NEXTX
fight). This offsets the outcome depend­ 176 Y=21
ing upon the weapon's effectiveness 17 8 FOR X=0T02 1 : A ( X , Y ) =-1 : NEXTX
180 X=0
against a particular foe . 1 82 FORY=lT0 2 0 : A ( X , Y) =-1 : NEXTY
The DRM for a kni fe being used 184 X=21
186 FORY=lT0 2 0 : A ( X , Y ) =- 1 : NEXTY
against a wizard is a seven. Since a die 1 8 8 ' LOCATE CREATURES
roll of five or less is needed to kill a crea­ 1 9 0 FOR Y=lT0 2 0
ture, and the lowest die roll possible, a 2 0 0 FORI=lT05
2 0 5 X=RND ( 2 0 )
one, plus the DRM, a seven, equals 2 1 0 I F A ( X , Y ) < > 0 THEN 2 8 5
eight, it is obviously impossible to kill a 2 2 0 A ( X . Y ) =RND ( 5 ) +1
2 3 0 NEXTI , Y
wizard with a knife. His odds of killing 2 4 0 ' LOCATE PLAYER PX AND P Y
you are similarly improved if you are so 2 5 0 PX=RND ( 4 ) +8
foolish as to attack. 2 6 " PY=RND ( 4 ) + 8
2 6 5 LX=PX : LY=PY
Line 6 randomizes the random-num­ 27 0 ' LOCATE WEAPONS
ber generator. Line 1 0 dimensions the 2 9 0 FOR Y=lT02 0
2 9 5 FOR I = l T03
cave and the DRM chart. Line 1 1 resets 3 0 " X =RND ( 2 0 )
the number of points scored each game 3 1 0 I FA ( X . Y ) < > 0THEN 3 0 0
for killing creatures. Lines 13-19 form 3 2 0 A ( X . Y ) =RND ( 7 ) + 6
3 3 0 NEXTI , Y
the DRM chart. Lisling ronlinutc/

If you don't like my odds, change the


HOT COCO Jun� 1983 45
List;ng continued
DRM in line 19. The data sequence is
first creature, effectiveness of all weap­
3 3 2 GOSUB 4 0 0 0
3 4 0 ' START GAME ons in order, second creature, effective­
3 4 5 CLS ness of all weapons, and so on.
350 PRINT @ 0 , ·YOU F I ND YOURSELF I N A DARK "
Lines 20, 22, 30, and 40 tell you the
3 5 2 PRINT@3 2 , · CAVE , ARMED ONLY W I TH A K N I F E . "
3 5 4 PRINT @ 6 4 , " YOU MAY CARRY ONLY TWO WEAPONS , " value of each room element and identify
3 5 6 PRINT @ 9 6 , " THO S E TWO O F YOUR CHOI C E . YOU " some variables. Line 25 restores the
3 5 8 PRINT@1 2 8 , " MAY P ICK UP WEAPONS AS YOU GO , "
3 6 0 PRINT @ 1 6 0 , " BUT MAY HAVE TO PUT SOME DOWN . " data because execution is transferred to
3 6 2 PRINT @ 1 9 2 , " SOME WEAPON S ARE MORE EFFECTIVE " line I I if you want to play again. You
3 6 4 PRINT @ 2 2 4 , " THAN OTHERS AGA INST CREATURES "
can pick up the prompt in line 1 2. If you
3 6 6 PRINT@ 2 5 6 , " YOU MAY ME ET . YOU GET POI NTS "
3 6 8 PRINT @ 2 8 8 , " FOR CREATURES YOU K I L L . H IT " don't mind a screen full of garbage
3 7 0 PRINT@ 3 2 0 , " ENTER TO BEGIN. GOOD LUCK I " while the DRM chart is read, omit line
3 7 1 INPUT A$
3 7 5 W ( 1 ) =7 : W ( 2 ) = 2 0 25 and change line I I to line 60 and the
3 7 6 ' 2 0 I S NO WEAPON CARRIED I I in line 8020 to 60.
3 8 0 A ( PX , PY ) = 0
Lines 70-76 reset the cave to a big
3 9 0 CLS
4 0 0 PRINT " YOU ARE I N A DARK PASSAGE . " empty room. Lines 1 1 0-1 70 put up the
4 1 0 PRINT walls in the cave, while lines 172-186
415 I FA ( PX . PY) < 0 THEN 3 0 0 0
4 2 0 N=A ( PX . PY- l ) surround the cave with the great out­
4 3 0 S =A ( PX . PY + l ) doors. Reach this area and you've
4 4 0 E=A ( PX + l , PY)
escaped.
450 W=A ( PX-1 , PY )
4 5 5 LX=PX : LY=PY Lines 1 88-230 randomly locate the
4 6 0 IF N>l AND N<7 O R S > l AND S < 7 OR E > l AND E < 7 O R W>l AND W < 7 creatures in the rooms, while lines
THEN 5 1 0
4 9 5 LX=PX : LY=PY 240-265 locate the player' s starting
5 0 0 GOT0 5 2 0 position in the cave. Lines 270-330 lo­
5 1 0 PRINT"THERE I S A SOUND NEARBY"
cate the weapons in the cave, taking
5 1 5 PRINT
5 2 0 PRINT: PRINT"WHICH D I R ECTION DO YOU GO ? " care not to. put them with creatures.
5 3 0 I F N=l THEN 5 5 0 Lines 350-375 give the player some
5 4 0 PRINT"NORTH-ENTER I "
5 5 0 I F S = l THEN 5 7 0 background and start you out with a
5 6 0 PRINT" SOUTH-ENTER 2 " knife, while line 380 guarantees that you
5 7 0 I F E = l THEN 5 9 0
start the game in an empty room. Lines
5 8 0 PRINT" EAST -ENTER 3 "
5 90 I F W = l THEN 6 1 0 390-410 tell you where you are, while
6 0 0 PRINT"WEST -ENTER 4 " line 4 1 5 determines whether you've es­
6 1 0 INPUT D : I F N = l AND D= l O R S = l AND D= 2 O R E = l AND D = 3 O R W=l
AND D=4 THEN 6 1 0 caped. Lines 420-450 determine your
6 2 0 ON D GO TO 6 5 0 . 6 7 0 , 6 90 , 7 1 0 surroundings while line 455 saves your
6 3 0 PRINT " I NVALID CHOICE-REENTER"
current location.
640 GOT06 1 0
6 5 0 PY=PY-l Line 460 determines if you're adja­
6 6 0 GO'1'07 2 0
6 7 0 PY=PY+l
cent to a creature and gives the warning
6 8 0 GO'1'07 2 0 in lines 5 1 0 and 5 1 5 if you are.
6 90 PX=PX+l Lines 520-600 determine the direc­
7 0 0 GOT07 2 0
7 1 0 PX=PX�l tions in which you can move and line
7 20 IF A ( PX , PY ) =-l THEN 3 0 0 0 610 allows you to enter your move and
7 21 ' 3 0 0 0 I S W1N ROUTINE
checks it for feasibility. Lines 620 and
7 2 5 IF A ( PX . PY) < 2 TH EN 3 9 0
7 2 9 I F A ( PX . PY» l AND A I PX . PY) < 7 THEN 1 0 8 0 650-7 10 implement your move, while
7 3 0 CLS lines 630 and 640 prevent the entering of
7 4 0 PRINT@ 0 , " YOU ARE PRESENTLY CARRYING "
7 4 5 FOR l=lT02 : I F I = 2ANDW ( 2 ) < > 2 0 THEN PRINT@6 4 , " AND " ;
numbers not recognized as directions.
7 4 6 I F 1 = 2 AND W ( 2 ) = 2 0 THEN 8 4 0 Line 720 checks to see if you've es­
7 5 0 ON ( W ( I ) -6 ) GOSUB 5 0 0 0 . 5 0 1 0 , 5 0 2 0 , 5 0 3 0 , 5 0 4 0 , 5 0 5 0 , 5 0 6 0 caped, while line 725 checks to see that
8 4 0 NEXTI
850 PRINT you're in an empty room. If so, the pro­
855 ' WEAPONS P/U ROUTINE gram is routed to line 390. Line 729
8 6 0 PRINT : PRINT" IN TH I S PLACE YOU F IND "
jumps to the creature-attack routine if
8 7 0 ON A ( PX . PY ) -6 GOSUB 5 0 0 0 . 5 0 1 0 , 5 0 2 0 , 5 0 3 0 , 5 0 4 0 , 5 0 50 , 5 0 6 0
8 8 0 PRINT: PRINT : INPU T " W I LL YOU P I CK I T U P ( Y O R N) " ; A $ you've entered a room inhabited by one.
8 9 0 I F A $ = " Y " THEN 9 2 0 Line 730 is the beginning of the weap­
9 0 0 I F A$ = " N " THEN 1 0 3 0
9 1 0 GO TO 8 8 0 ons routine. The program defaults to
9 2 0 I F W ( 1 ) = 2 0 O R W ( 2 ) = 2 0 THEN 1 0 4 0 line 730 if you haven 't escaped, entered
9 3 0 PRINT: PRINT " WHAT DO YOU WISH TO LEAVE ? "
9 4 0 ON ( W ( 1 ) -6 ) GOSUB 5 0 0 0 . 5 0 1 0 , 5 0 2 0 , 5 0 3 0 , 5 0 4 0 , 5 0 5 0 , 5 0 6 0
an empty room, or found a creature.
9 4 5 PRINT " - l " Lines 740-840 list weapons you are car­
9 5 0 O N ( W ( 2 ) - 6 ) GOSUB 5 0 0 0 . 5 0 1 0 , 5 0 2 0 , 5 0 3 0 , 5 0 4 0 , 5 0 5 0 , 5 0 6 0 rying, while lines 855-9 10 allow you to
9 5 5 P R I NT " - 2 "
9 6 0 INPUT A pick up the weapon you've found. Lines
9 7 0 IF A= l THEN 1 0 0 0 920- 1030 keep you from carrying too
9 8 0 I F A=2 THEN 1 0 2 0
9 9 0 P R I NT" INVAL I D " : GOT0960
many weapons and allow you to leave
1 0 0 0 G=A ( PX , PY) : A ( PX . PY) =W ( l ) : W ( l ) = G : G=0 one behind. If you're not already carry­
1 0 1 0 GOT01 0 3 0 ing two, lines 1 040- 1 070 allow you to
1 0 2 0 G=A ( PX . PY ) : A ( PX . PY) =W ( 2 ) : W ( 2 ) =G : G= 0
1 0 3 0 GOT0 3 9 0 pick up the weapon.
1 0 4 0 I F W ( 1 ) < >2 0 THEN 1 06 0 Line 1 080 begins the creature-attack
1 0 4 5 W ( 1 ) =A ( PX . P Y ) : A ( PX , PY ) = 0
List;ng continued routine. Lines 1090-1 100 identify crea­
tures while 1 1 1 0-1 1 55 remind you what
46 HOT COCO June 1983
TES .·
E R E 'S W HAT U YO R K 1 0 CAS S ET
H Y BO T
USE RS SA A n 1 00 %
of
n eI o
v e a ta p e yO U c a � YAn d th e fast,
to h a t
' suc h q ualI y . rp rt.s e . "
"It's n ic e
e to p e rfo.rm WIth � sa nt su
th e tim vl C e w a s a p/e Ma dison ,
0H
s s er kmson -
c o u rte OU To m P ar
h a
p uter wit
th e co m
"We m onitore d
th e o u t
'' It m ete r and
ut

P f und absolutely
"
no


I
s p e ciallY b p e . '_B
O U g h out th e ta ; ea ve rton , OR

CASSETTE STORAGE CADDY


dro po uts
t
t ac e� p a p a d

ST
o pOU os
, N OW B UY
T"
T H E BE S -

. . . . . . .�
E R E
!. T R IEO TH
£,'11 ' " OU 'VE
R
N O GANIZE

..@@.®��
YOUR TAPESI
$295 EACH
. . . . . . �-:.-.:.-��- -=
TRACTOR FEED
DlE·CUT BLANK
CASSETTE LABELS

.. . . . '
Call: 21 3/71 0·1 430
FOR IMMEDIATE SHIPMENT
ac
,r�
on Credit Card Orders.
ORD�R NOW YORH 10rMC om pu te rW Qre
Mall To • • •

24573 KiHr,idge St . , #HC, Canoga Park, C4,.. 91 307


.--
------- ---------- ----------------
------ - ------- - -
. .... 1 56

- -- I. ---.--T
--T
1 00Z E N O-A-L
--. Each cassette includes two YORK 10 labels only. Boxes are sold separately.
Shipments are by U . P . S . unless Parcel Post requested. Boxes. caddies, and
! C-oS 0 7,SO 0 1 3.SO blank labels are Iree 01 shipping charges when ordered with cassettes. When •
C-l0 0 8.00 0 14.40 ordered without cassettes , shipping charges: Boxes-$1 .00/doz . , Caddies
$1 . 00 each. MINIMUM SHIPPING/HAND�'ING ON ANY ORDER-$2.00.

C·20 0 10.00 0 18.00 Check 01' M.O. Chllrgll to


Hard Box 0 2.SO 0 4.00 enclosed 0 Credit Card: 0 VISA D MASTERCARD

C rd�
a�
== N� · ________ ____ _______ _ E�� ______ _
o�

Blank labels o 4.00/100 0 30.00/1 000 Name

SUB TOTAL
�� =-
Address ------------------- - - --- ---- -- --
Calif. residents add 6% sales tax
Shippinglhandling 1 doz, $2; 2 doz, $3,SO; City StatelZip
3 doz. $4,SO; each additional doz. $,SO.
Signature
For Parcel Post instead of UPS $1 additional
Outside Continental USA, $2 additional Computer make & mod� ____________ Disk?(y/nJ ____ _

TOTAL
-- - - - - - ---------- - -------- - ----------
- - -
o CHECK HERE FOR Q UANTITY DISCOUNTS PRICE LIST
- - - - - - ------
.... See List 01 Advertisers on page 138 HOT CoCo .Jun� 1983 47
Lifling cDnlinu«J
your weapons are. Lines 1 160-- 1 190 let
you choose to fight or run.
1 0 5 0 GOT03 9"
1 " 6 " W ( 2 ) =A ( PX . PY ) : A ( PX . PY 1 = " There are some interesting strategies
107" GOT03 9 " possible here. If you fight and don't
1"80 ' CREATU R E ATTACK ROU T I N E
succeed in killing the creature (there are
1090 CLS : PRINT"YOU HAVE ENTERED A ROOM W I TH "
110" O N A ( PX . PY1 - 1 GOSUB 5 0 7 0 , 5 0 8 " , 5 0 9 " , 5 1 " 0 , 5 1 1 0 three other possibilities-you could
Ill" PRINT : PRINT"YOU ARE ARMED W I TH • fight to a draw or lose one or both
1115 IF W ( 1 ) E 2 0 AND W ( 2 1 = 2 " THEN PRINT " NOTH ING I ·
1120 I F W ( 1 ) = 2 0 THEN 1 1 5 0
weapons), you can run past him. This is
1125 O N W ( 1 ) -6 GOSUB 5 " 0 0 . 5 " 1 0 , 5 0 2 0 , 5 0 3 0 , 5 0 4 0 , 5 " 5 0 , 5 0 6 0 important because there is no other way
113" I F W ( 1 ) = 2 " O R W ( 2 ) - 2 " THEN 1 1 5 0
through a creature's room except by
1140 PRINT· AND . ;
115" I F W ( 2 ) = 2 0 THEN 1 1 6 0 killing it.
1155 O N W ( 2 ) -6 GOSUB 5 0 " " . 5 0 1 " , 5 " 2 0 , 5 0 3 0 , 5 0 4 0 , 5 0 5 0 , 5 0 6 0 You may find yourself trapped by
1160 PR I N T : INPUT"WILL YOU ATTACK O R RUN ( A O R R) · ; A $
117" I F A$= · R · T H EN 1 2 0 0
creatures and looking for a way out.
1180 I F A $ = · A · THEN 1 3 0 0 Running away is also not a guaranteed
1190 PRINT" I NVAL I D " : GOTOl 1 6 0
1200 ' RUN ROU T I N E
escape. Running exposes you to the pos­
122" RN"'RND ( 6 ) sibility of being attacked from behind.
1225 D=0
1 23 5 ' D-1 -YOU ' RE DEAD . RUN=PROBAB I L I TY , LX . LY=LAST PX . PY
1240 I F A ( PX . PY1 = 2 AND RN < 4 THEN D=l
1245 I F A ( PX . PY 1 < > 2 AND RN < 2 THEN D=l
1250 I F D=0 THEN 1 2 7 0
1260 CLS : FOR 1 = 1 T O 1 6 : P R I NT · TOO SLOW-YOU ' RE DEAD · : NEXT I
1262 FORI = l T05 0 0 : NEXTI
1265 GOT0 8 0 0 0 "You can attack with only
1 2 7 0 PX=LX : PY=LY
1 2 8 0 CLS : P R I N T · YOU RUN BACK THE WAY YOU CAME · : FORI=lT01 0 0 0 : NEXTI one weapon at a time. If
1290 GOT0 3 9 0
1 3 0 0 ' ATTACK ROU TINE your combat results in a
1 3 0 2 I F W ( 1 ) = 2 0 AND W ( 2 ) = 2 " THEN PRINT " YOU HAVE NO WEAPONS-YOU M
UST RUN " : GOTOl 1 6 0
1 3 1 0 CLS
draw, you can change your
1 3 1 5 FOR I = l T0 2
1317 I F W ( I ) = 2 0 THEN 1 3 4 0
choice of weapon. "
1 3 2 0 ONW ( I ) -6 GOSUB 5 0 0 0 . 5 " 1 0 , 5 0 2 0 , 5 " 3 0 , 5 0 4 0 , 5 0 5 0 , 5 0 6 "
1 3 3 0 PRINT " - " ; I
1 3 4 0 NEXTJ
1 3 5 0 P R I NT : I NPUT·WH ICH WEAPON W I L L YOU U S E " ; A
1 3 5 5 ' AW=ATTAC K I NG WEAPON
1 3 6 0 IF A=l THEN AWEW ( l )
1 3 7 0 I F A=2 THEN AW=W ( 2 )
1 3 7 5 GO'l'01 3 90 While these odds are usually in yo'ur
1 3 8 0 P R I NT " I NVAL ID " : GOT01 3 1 5
1 3 9 0 RL=RND ( 2 0 ) +F ( A ( PX . PY1 - 1 , AW- 6 )
favor, I suggest you don't try running
1 4 0 0 I F R L < 5 THEN 1 6 2 0 from wizards too often.
1 4 1 0 I F RL > 4 AND RL < 9 TH EN 1 6 0 0 Lines 1220- 1265 determine if you
1 4 2 0 I F RL > 9 AND RL < 1 3 THEN 1 5 4 0
1 4 3 0 I F RL > 1 2 AND RL < 1 7 THEN 1 5 0 0
were killed while running and end the
1 4 4 0 CLS game if you were. Lines 1270- 1290
1 4 5 0 FORI=lT016
move your current position if your run
1 4 6 0 PRINT·YOU D I ED F IGHTING • • • • • •
1 4 7 0 NEXT I was successful. Running always takes
1 4 8 0 FORI = l T01 0 0 0 : NEXTI you back the way you carne. In order to
1 4 9 0 GOT08 0 0 0
1 5 0 0 CLS : PRINT" YOU LOST BOTH WEAPON S-RUN I I I "
pass through a creature's room, as men­
1510 W ( 1 ) =20 : W ( 2 ) =20 tioned earlier, it is necessary for you to
1 5 2 0 FOR l z 1 T01 0 0 0 : NEXTI
do battle with it.
1 5 3 0 GOT03 90
1 5 4 0 CLS : PRINT·YOU LOS E YOUR ATTACK WEAPON-RUN I · Should you be so brave, line 1300
1 5 4 5 FORI = l T01 0 0 0 : NEXTI begins the attack routine. Line 1302
1550 I F W ( 1 ) =W ( 2 ) THEN 1 5 7 "
1 5 6 0 I F Aw=W ( l ) THEN W ( 1 ) = 2 0
prevents suicide attacks with no weap­
1 5 7 0 I F AW=W ( 2 ) THEN W ( 2 ) = 2 0 ons. Lines 13 10- 1380 allow you to
1 5 9 0 GOT03 90
select your weapon and make sure your
1 6 0 0 CLS : PRINT · THE BATTL E ' S A DRAW • • • •
1 6 0 5 FORI= lT01 0 0 0 : NEXTI choice is valid . You can attack with only
1610 GOT01 1 6 0 one weapon at a time. If your combat
1 6 2 0 CLS
1 6 3 0 PRINT" S UCCESS-YOU ' VE K I LLED I T I I I I I I ·
results in a draw, you can change your
1 6 4 0 I F A ( PX . PY) = 2 OR A ( PX . PY1 = 3 THEN KP=KP+5 choice of weapon. Lines 1 390-1430 are
1 6 5 0 I F A ( PX . PY1 = 4 THEN KP=KP+2
the area where the computer decides if
1 6 6 0 I F A ( P X . PY 1 = 5 THEN KP=KP+4
1670 I F A ( PX . PYI - 6 THEN KP=KP+3 you live or die.
1 6 7 5 A ( PX . PY) = 0 Line 1390 adds the DRM to a ran­
dom number between 1 and 20. Lines
1 6 7 7 FORI = l T01 " 0 0 : NEXTI
1 6 8 0 GOT0 3 9 0
3 0 0 0 CLS 14@.. 1 430 decide what happens to you
3 0 0 5 FORI = l T010
as a result. Lines 1440-1490 are used
3 0 1 0 P R I NT · YOU ' VE ESCAPED ALIVE I I I ·
3 0 2 0 FOR N = l T0 7 5 if you are killed, while 1500- 1 5 30 are
3 0 3 0 NEXTN used if you lose both weapons. Lines 1540-
3 0 4 0 CLS : FORN = l T07 5 : NEXTN
3 0 5 0 NEXTI 1590 are employed if you lose only the
3 0 6 0 GOT080 0 0 weapon you are wielding, lfa>-1610 are
for a draw, and 1630-1680 reward your
4 0 0 0 ' ESCAPE PATH ROUT I N E
Lis/in, ron/mutt!

expertise as a wanior.
48 HOT CoCo JURe ICJ83
Lisling continued Lines 3000-3060 inform you that
4 0 1 0 ' TX , TY=TEST POS I T IONS , TR=TEST RANDOM you've escaped the cave. Line 4000
4 0 2 0 TR= RND ( 8 )
begins the escape-path routine, which
4 0 2 5 TX=PX : TY = PY
4 0 3 0 ON TR GOSUB 4 5 0 0 . 4 5 5 r1J , 4 6 r1J 0 , 4 6 5 r1J , 4 7 0 " , 4 7 5 0 , 4 80 0 , 4 8 5 " guarantees that there's a way out of the
4 r1J 4 0 RETURN cave. Line 4025 transfers the starting
4 5 0 rIJ IF A ( TX . TY ) = - l THEN RETURN
4 51 0 IF A ( TX-l , TY ) < > 0 THEN TX=TX-l : GOT0 4 5 r1J 0
position to a variable that can be moved
4 5 2 " I F A ( TX . TY + l ) < > 0 THEN TY=TY+l : GOT04 5 " 0 about without influencing the game.
4 5 2 5 Tl=RND ( 2)
The eight subroutines are identical, ex­
4 5 3 0 IF T l = l THEN 4 5 4 rIJ
4 5 3 5 TX=TX-l : A ( TX . TY ) = rIJ : GOT0 4 5 1 0 cept for the directions chosen.
4 5 4 0 TY=TY+l : A ( TX . TY ) =0 : GOT04 5 1 0 The ftrst lines of the subroutines
4 5 5 0 I F A ( TX , TY ) =-l THEN RETURN
4 5 6 rIJ IF A ( TX - l , TY ) < > 0 THEN TX=TX-l : GOT04 5 5 "
check to see if the test probe (TX and
4 57 0 I F A ( TX , TY - l ) < > 0 THEN TY=TY-l : GOT04 5 5 0 TY) has escaped the cave. If it has, the
4 5 7 5 Tl =RND ( 2 )
routine has found a way out and returns
4 5 8 0 I F T l = l THEN 4 5 90
4 5 8 5 TX=TX-l : A ( TX . TY ) = rIJ : GOT04 5 6 " to the beginning of the program.
� 459" TY=TY - l : A ( TX . TY ) = " : GOT04 5 6 " The second line checks to see if move­
4 6 r1J " I F A C TX . TY ) =-1 THEN RETURN
4 6 1 rIJ I F A ( TX , TY +l ) < > " THEN TY=TY+l : GOT046 " "
ment in a particular direction (which I
4620 I F A ( TX-l , TY ) < > " THEN TX=TX -l : GOT0 4 6 " 0 call the primary direction) is possible. If
4625 Tl =RND ( 2 ) it is, the probe is moved to this location
463 0 IF Tl = l THEN 4 6 4"
4635 TY=TY+l : A ( TX . TY ) = " : GOT04 6 1 0 and the routine repeats. If not, the
4640 TX=TX- l : A ( TX . TY ) = " : GOT04 6 1 " probe checks a secondary direction at
465" I F A ( TX , TY) = - 1 THEN RETURN
466" IF A ( TX , TY +l ) < >" THEN TY=TY+l : GOT04 6 5 "
right angles to the primary direction in
4670 I F A ( TX +l , TY ) < > " THEN TX=TX+l : GOT0 4 6 5 " the third line.
4675 Tl =RND ( 2) Since there are four primary direc­
4680 IF Tl = l THEN 4 6 90
46 85 TY=TY+l : A ( TX . TY ) = " : GOT0 4 6 6 0
tions, and two secondary directions for
4 6 9" TX=TX+l : A ( TX . TY ) = " : GOT04 6 6 " each (if doubling back were allowed,
47"" I F A ( TX . TY ) = - l THEN RETURN the routine would loop forever, going
4 7 1 rIJ IF A C TX+l , TY ) < > 0 THEN TX=TX+l : GOT04 7 r1J "
472" I F A ( TX , TY+ l ) < > " THEN TY=TY+l : GOT0 4 7 " rIJ back and forth), there are eight possible
4 7 2 5 Tl=RND ( 2 ) routines. If the secondary direction is
4 7 3 " IF Tl=l THEN 4 7 4 rIJ
4 7 3 5 TX=TX+l : A ( TX , TY ) =0 : GOT0 4 7 1 "
clear, the probe is moved there and the
4 7 4 rIJ TY=TY + l : A ( TX , TY) =" : GOT04 7 1 " routine is restarted. If not, the rou­
4 7 5 " I F A ( TX . TY ) =-1 THEN RETURN tine makes a random choice in the
47 6 rIJ IF A ( TX+l , TY ) < > " THEN TX=TX+l : GOT04 7 5 "
4 7 7 " I F A ( TX , TY - l ) < > " THEN TY=TY-l : GOT047 5 rIJ fourth to seventh lines and clears either
4 7 7 5 Tl=RND ( 2 ) the primary or secondary direction.
4 7 8 rIJ IF T l = l THEN 4 7 9 0
4 7 8 5 TX=TX+l : A ( TX . TY ) =0 : GOT0 47 6 rIJ
This is repeated until the probe reaches
4 7 9 rIJ TY=TY -l : A ( TX . TY ) = " : GOT0 4 7 6 " the outside.
4 8 0 " I F A ( TX , TY ) = - l THEN RETURN
Lines 5000-5 1 1 0 store the names as­
4 81 " IF A C TX , TY-l ) < > " THEN TY=TY-l : GOT0 4 8 " "
4 8 2 " I F A ( TX+l , TY ) < > " THEN TX=TX+l : GOT0 4 8 " " sociated with the values of the various
4 8 2 5 Tl =RND ( 2 ) rooms. Line 8000 sends the program to
4 8 3 rIJ IF Tl=l THEN 4 8 4 rIJ
4 8 3 5 TY=TY-l : A ( TX . TY ) =" : GOT0 4 8 1 rIJ
lines 8050-8 1 10. They draw the cave
4 8 4 0 TX=TX+l : A ( TX . TY) = " : GOT0 4 81 0 and place a blinking marker on your
4 8 5 " I F A ( TX . TY ) = - l THEN RETURN
ending location.
4 860 IF A C TX . TY - l ) < > rIJ THEN TY=TY - l : GOT0 4 8 5 'rIJ
487" I F A ( TX-l , TY ) < > " THEN TX=TX - I I GOT04 8 5 " Line 8005 tells you how many points
4875 Tl =RND ( 2 ) you have accumulated for killing crea­
4 8 8" IF Tl=l THEN 4 8 9 0
4885 TY=TY -l : A ( TX . TY ) = rIJ : GOT0 4 8 6 0
tures, and lines 8010-8040 ask if you'd
4 8 90 TX=TX-l : A ( TX . TY) =" : GOT04 8 6 " like to continue.
500" PRINT " A K N I F E " ; : RETURN
5"10 PRINT"A MAG IC STAF F " ; : RETURN Operation
5020 PRINT " A B ROAD SWORD" ; : RETURN
5 " 3 0 P R I N T " A DI AMOND OF L I F E " ; : RETURN Cavehunt is easy to play. Load it into
5 0 4 " PRINT " F I R E OF THE DEPTHS " ; : RETURN
5 0 5 0 P R I NT " A GRRAT AX " ; : RETURN
your CoCo and type RUN. There will
5 0 6 " PRINT " A LASER SWORD " ; : RETURN be a 30-second delay as the cave is
5 " 7 0 P R I NT " A W 1 ZARD . " : RETURN designed and creatures and weapons are
5 0 8 " PRINT " A G I ANT S P I D E R . " : RETURN
5 " 9 0 PRINT " A TROL L . " : RETURN placed .
510" PRINT"ONE OF TH E UNDEAD . " : RETURN You should choose a primary and
5110 PRIN T " A ' GREAT BEAR . " : RETURN
8"00 GOSUB 8 0 5 "
secondary direction. Try to go in the
8005 PRINT@3 5 2 , " K I L L POINTS- " ; KP primary direction and use the secondary
8010 PRINT : PR I N T : INPUT" TRY I T AGA IN (Y OR N) " ; A $ if necessary. If both are blocked, try to
8020 I F A$= " Y " THEN 1 1
803" I F A $ = " N " THEN END double back and go around the
8040 GOT08 0 1 0 obstacle . •
8050 CLS0
806 0 FORX = " T02 1
807" FORY = 0 T0 2 1
8"80 I F A ( X , Y ) < > l THEN S E T ( 2 * X . Y . l ) : S ET ( 2 * X+l , Y . l )
8090 NEXTY , X
8095 FOR G=lT03 "
8 1 " 0 S ET ( 2 * PX , PY . l ) : S ET ( 2 * PX+l , PY . l ) : FOR I = lT05 0 : N EXTI : RE S ET ( 2 * PX Charles Levinski is employed by the
, PY ) : RESET ( 2 * PX+l , PY ) : FO R I = l T0 5 0 : NEXTI
8 1 0 5 NEXTG Hecon Corp., of Tinton Falls, NJ. For
8 1 1 0 RETURN more information, write to him at 10
Southside A ve., South River, NJ 08882.
HOT COCO Jun� 1983 49
COLOR COMPUTER

TRs-BO TDP SYSTEM 1 00 DRAGON 32

32 K ARCADE GAMES -

- FAST ACTION - HIGH RESOLUTION GRAPHICS


- MACHINE LANGUAGE - GREAT SOUND

LANCER
Win a medieval tournament in t h i s JOUST type arcade quality
game written in machine language ror rast-action with highest
resolution color graphics . Pressing the fire button allows you to
fly the Ostrich on which you are mounted between floating
islands and to vary your elevation when jousting. long lance in
hand. with your human or co m 'puter opponent.
Requires 32K RAM. Joysticks ONLY $ 2 1 .95

MS GOBBLER
Black screen background with artifacting m a ke!' t h e colors
outstanding in this special arcade m aze game written in
m achine language with high est resolution color graphics. fast­
action. and great sound . MS GO BBLER reatures fo ur different
m azes and 16 skill levels. High difficulty and moving Bonus
shapes and pretzels make this the best M S PACMAN type
game available.
Requ ires 32K RAM. Joysticks ONLY $ 2 1 .95

.- -

50 HOT CoCo J u n� 19S3


--- - ------

EOU-CAOE
MATH DRILL $ 1 4.95 SPELLING MARER $ 1 4.95
Provides drills in addition . subtraction. multiplication and division. The Conquer spelling! A word list is provided or user can Input an unlimited
number of problems in a set and the difficulty level is user selectable. For number of words such as weekly spelling tests. Allows unlimited number of
ages 3·adult. MATH DRill has both speed drills and teaching drill. tries. but correct answer is given upon request. User voice recording
Requires 1 6K Extended BaSic. playback Is a n option.
Requires 1 6K Extended Basic.

MORE EDU-CADES
16 K EXTENDED BASIC

.•

FOREIGN LANGUAGE GAMES


French. Spanish . Italian . . . . $9.95 ea
DOLLARS AND SENSE
Money Matters for Kids . . . . . . . $ 1 4 . 95

CIRCUS . . . . . . . . . . . . . . . . $ 1 0 .00
Develops Reading Skills

GEOGRAPHY PAC $29.95


A great way to teach or learn geography!
TVPING TEACHER $ 1 9 . 95 A collection of five Extended Basic programs designed to teach the
A complete cassette based typing instruction course comprised of 1 5 topological location of countries (or States). their capitals. major industry.
separate lessons designed to take the beginning or rusty typist from scratch largest city and currency (or statehood date). A four·color high resolution
to typing proficiency at his own pace. The first 13 lessons stress eye.flnger map is displayed and the country to be identified is highlighted. It must be
coordination while lessons 1 4 · 1 5 promote accuracy and develop speed. The recognized from its shape and relative location on the continent.
final lessons will point out your specific errors so that you will be able to A separate program for the U . S .. Europe. Asia. Africa and South
recognize a pattern of errors if one exist5. America is in the Geography Pac . Extended Basic and 1 6K RAM are
Requires 1 6K Extended Basic. required. Each program is $9.95 or all five together at $29.95 .

• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •

FLEXPLU8 008 • • • • • • • • • $ 69.95


A powerful, easy-to-use disk operating system!
FL£XPLUS 10 • powerful. easy·to·u.. disk operating system. Spectral Assoclai.. has
Quality Hardware
adapted TSC', flEX to the best DOS completely co,npatlble with Radio Shack sohware for
use on the Color Computer. Eliminate the nerd for Radio Shack', TRS DOS - use FLU and Software Support
PLUS with Editor / Assembler and have th2 options of a lull range of utilities. FL£XPLUS
works on the 32K Radio Shack disk system with 64K memory chips with a High Resolution TRS-80 COLOR COMPUTER
TDP SYSTEM 1 00
multl·sc reen format that suppons a 24 line by 51 character display! Also Included are ,peclal
enhancement' to Radio Shack's Disk system when you are running fLEX with single or dou·
ble sided. single or double <knsity. 35. 40 and 80 track drives. DRAGON 32
SUPERCHARGER BEST SELECTION AVAILABLE
539.95 ARCADE GAMES · EDUCATIONAL SOFTWARE
ADows machine language acce.s t o all 64K RAM In a Serle, E PC board. N o hardware mods
BASIC GAMES FLEX + DOS
• B�s. price anywh�re
• Wea lt h of existing softwilr�
UTILITIES M EMORY EXPAN SION
• Easly start-up :- just IYP� " RU N FLEX + " BOOKS MODEM
• Allow� you 10 Soilv� RS (-o mpatiblt' binary disk filf'ft from FLEXPLUS
For Orders Only Call or write for a complete catalog
• NO HARDWARE MODifiCATIONS NEEDED
BUSiness OffIce and Information Call:
1-800-426-1 830
• Wdrr an lY will nol be voideod - no neot'd 10 open compult'r
• MOST FLEX compaliblt' �oftwdrt' will r u n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (206) 581 ·6938
except WA. AK. HI Office open 8:30-4:30 P.S.T.

FLEXPLVS . • . • . • . . . • . . . • . . . • . • . . 569.95 We accept VISA. MASTERCARD. AMERICAN EXPRESS.


Add 3% .for .hipping. N O C . O . D .
(or new F Boards All price. U . S . fUNDS.
WA re s iden.. . dd 7 . 8 % ...1.,. I ••.
FLEXPLVS with Supercharger • • • . • • • 589.95


(or use with E and F Boards
Print Spooling - print while editing, assem bling, etc . SPECTRAL
• ALL FLEX compatible software will run including
INTE R R U PT D R IVEN SOFTWAR E ASSOCIATES
Editor / Assembler • • . • . . • • . • • • • • . • $49 .95 3 4 1 8 South 90th Street
.,, 1 1 9

T.eo .... WA 98409


... S66 List 01 Advertisers on page 138
HOT COCO Jun� 1983 SI
TurORIAL

BY RALPH TENNY

TAPE RELIABILITY

D ue to the high cost of disk systems


for the Color Computer, many
If you've ever had trou­ become partially magnetized . This has
an adverse effect on the record/play­
users continue to use tape for off-line ble loading cassettes, back sequence, and results in poor and
data storage. Unfortunately, a number distorted signals. So, it is important to
you 'U want to read this
of users have experienced various trou­ demagnetize the read/record heads pe­
bles with Color Computer cassette data author's sage advice. riodically to prevent signal distortion by
storage. residual magnetism in the heads.
After many years of using cassette The next item to consider is the medi­
data storage exclusively, I experienced tapes was that I was now using hun­ um itself-the magnetic tape. I f the
relatively few problems with my Color dreds of inches of tape in a single pass tape has an uneven oxide thickness
Computer for three reasons. First , I had instead of the to or 15 inches of tape caused by either wear (excessive use) or
developed proven work habits and tech­ required to store Assembly-language from poor quality control during manu­
niques. Second, I used the recorder rec­ programs. facture, the signal coming off the tape
ommended by Radio Shack for use with As soon as I realized the problem, I will not be of uniform quality, and may
the Color Computer. Finally, I had decided to see how much of it I could be unreadable at some point on the
learned a great deal about buying tape short-circuit . tape. This condition, known as dropout,
for data storage, and my past experi­ can cause the tape data to be lost.
ence helped me spot marginal tape oper­ Factors Affecting Reliability Finally, good recording techniques
ation before I had any serious problems. There are many causes of poor reli­ and standardized signal levels will aid
My first inkling of pending trouble ability in audio recording of digital the recording process immeasurably.
came when I began to use my Color data. First, the equipment must be in One of the most often overlooked items
Computer for generating and editing good condition. This implies more than of procedure is the leader. Tapes that.
text-rudimentary word processing, if just good mechanical condition. Do not have a clear leader at each end have two
you will. Although I had many good ignore the manufacturer's instructions problems: First, the leader will not ac­
tapes that had worked well with other about cleaning the tape heads, capstan, cept a signal, so the tape must be ad­
computers, the situation was somewhat and pinch roller. Magnetic tape gradu­ vanced enough to be sure all the signal is
different when I began manipulating ally loses some of its oxide coating, and recorded on oxide. Second, the leader is
text and generating new text. First, this material accumulates anywhere the spliced to the tape, and this joint is sel-
word-processing-type activities generate tape touches. When the oxide gets on
very large files, and require much tape the read/record heads, it prevents good
to store the resulting files . Suddenly, the contact between the tape and the head.
tapes that had served so well were no Thus, during the recording process, the
System Requirements
longer reliable. With many computer recorded signal is reduced by poor con­
systems, one dropout makes the rest of tact. Then, during playback, poor con­
Cassette Syslem
the tape file inaccessible. As a result, tact further reduces the already low
32K RAM (Oplional)
you must retype the rest of the file if you signal .
failed to make a back-up tape. Another recording problem develops
The problem with my tried-and-true when the record heads gradually
52 HOT CoCo Jun� 1983
dom perfectly smooth. As a result, the ing/recovery is shown. In this case, a or rather the time between zero cross­
first few turns of tape that wind on top logic 0 is one cycle of 1 ,200 Hz, and a ings of each bit waveform. This last
of the splice may be wrinkled as they logic 1 is one cycle of 2,400 Hz. Thus, a scheme is the one used by the TRS-80
cross the splice. A wrinkle may not be .logic 0 is twice as long as a logic I . In Color Computer.
pulled tightly enough across the head, this method, the bit value (l or 0) is
resulting in poor contact and a potential defined by the length of half a bit cell, Tape Recorder Evaluation
area of dropouts. Finally, if the cassette Although one way to evaluate your
is not properly protected from dust and equipment would be to record and load
dirt, the ends of the tape may get dust a number of programs, this will not give
particles on the active tape. These dust much useful information. For example,
particles can also separate the tape from if this test works, how much margin
the head and cause dropouts. So, keep have you? Can things go wrong before
those tapes clean, move well into the you have a problem, or are you half­
Fig. 1. Tape recording format of the TRS-80
tape to begin recording, and protect the Model J computer, which uses pulse position way off the cliff without knowing it?
tape from damage. encoding. Ifthere is a pulse in the center of the You need to make carefully controlled
bit cell, that bit is a logic 1. tests to determine just how good (or
Types of Tape Signals poor) your equipment is .
Other important factors in the audio Begin by making test recordings of
recording of digital data are the type of pure tones; if you don 't have a signal
signal used and the method of data re­ generator and an oscilloscope, try to
covery. In general , one of three types of borrow these instrument s, since a prop­
recording/playback is used . The first, er evaluation will be very di fficult with­
used by the TRS-80 Model I , is illustrat­ out them. Begin by making a series of
ed in Fig. I . This is pulse-position en­ recordings of a I ,OOO-Hz tone, using a
coding, and the data is interpreted as a Fig. 2. Dual tone recording, where a bit is different input level on each recording.
represented by a givenfrequency within the bit Since most modern tape recorders (ex­
logic 1 or logic 0 depending on whether
cell. Signal recovery is usually via a phase­
the intermediate pulse is present. cept very expensive ones) have an auto­
locked loop circuit.
The second method (one of the most matic level control (ALC) circuit as part
popular) is shown in Fig. 2. Here, a of the input amplifier, many of these
logic 0 can be represented by one or test recordings will give similar results.
more cycles of some frequency such as However, by making the recordings and
1 ,200 Hz, while a logic 1 would be watching the playback on the oscillo­
represented by twice as many cycles of scope, you will find some low level that
2,400 Hz. The data is recovered by a cir­ gives a noisy or unstable playback, and
cuit known as a phase-locked loop a high input level that giveS a distorted
(PLL). The PLL is resonant at one of Fig. 3. Recording signal of the TRS-8OC Color
playback signal . Between these two ex­
these frequencies, and thus indicates the Computer. A "0" bit cell is twice as long as a tremes, any recording level should yield
present value. Note that in Figs. I and 2, "1 " bit cell, and the signal is decoded by a tape that can be played back at several
a bit cell (length of time for one bit) is measuring time between zero crossings of the different volume levels with a · clean,
the same for a 1 and a O. signal. steady, and reasonably noise-free signal
In Fig. 3, another method of encod- showing on the oscilloscope. I f you can-

I
[I III GAI N AN U N FAI R ADVANTAG E !
ACTUAL REPRODUCTION 86
OF CHART
f
II
:BM
1\111 I i l l d' I 80
WITH I NVESTOG 'RAPH
O N YOU R TRS-80 CO LOR COM PUTER
I YES! I wlnt In UNFAIR ADVANTAGE.
- - - - - -� _ l -:-p
8 'S IN·DEPTH, TIMELY I NVESTMENT
ANALYSIS WITH LESS WORK
-
Send INVESTOGRAPH rush at the I NTRODUC·
13 DAY Gain the advantage of using the power of the I TORY PRICE of U.S. $245.00 (plus 5°to In I

��
Z .92
Color Computer to make more money In Texas). Includes l u l l set of data and .program

- - - - - - - - -
-��3-; the market. The easy· to-use, menu driven I d i s ke t t e s with complete, easy· t o - u s e I
INVESTOG RAPH software package provides:
flR°!;:Q1 5C O MP _ �rOQl91 1
documentation, 1 year warranty.
L S DflY _11J�� $ Automatic data entry by the highly rated I Name I
COLORCOM/E. Address
BETTER THA N HIGHER COST I City State I Zip I
$ Screen and hard copy graphs with prices,
PACKAGES RUNNING ON volumes, moving averages, cycle compo· D Check D Money Order D V lsa o Mastercard
"BIGGER" MACHINES nents, momentum, OBV, security comparl· I Card No. Expi res___ 1
sons, channels, and several other exclu· Signature
• Stocks, Options and Commod it'ies
slve oscillators. I Order by phone, call (51 2)778·5260 •
• Dow Jones and Compuserve Iinput $ Complete data maintenance utilities. Dealer Inquiries Welcome
• Optional unattended fun mode I
$ Optional unattended run mode · have dinner
liberty Hili 'software I
.-172 . ..
while COCO works for you!
T RS·ace Tandy Corp. Requires 32 K, Ext. Basic, 1 or 2 disks, ,Printer P.O. Box306 Li berty H i li, Texas 78642

,
• • • • • • • •
.- See List 01 Advenlsers on page 138 HOT CoCo June 1983 S3
Photo 1. Full- volume output from a good tape on a properly-functioning Photo 2. A synthesized sine wave from the Color Computer-an all-ones
tape recorder. Signal was recorded from the source shown in Photo 2. signal produced under control of TAPTST (Listing 1).

Photo 3. A signal produced by a good recorder and good tape in an e"atic­ Photo 4. A n example ofa weak, erratic signal produced by a recorder need­
running cassette. Note the signal amplitude variations and timing jitter. This ing cleaning. This signal was also recordedfrom the source shown in Photo
signal was recorded from the source shown in Photo 2. 2, but the output amplitude was 1/8 as much as the signal in Photo 1.

not achieve this result, the recorder while monitoring the output on the os­ recovery circuitry in the computer can­
must be repaired or replaced . Conduct cilloscope. Gradually increase the vol­ not be overloaded; it can handle any in­
this test with two or three different tapes ume setting until the waveform clips, put voltage that does not exceed the
to be sure that unsatisfactory results are and then continue increasing the vol­ breakdown voltage of any of the inter­
not caused by poor tape . You probably ume setting. The clipping should be uni­ nal circuit elements. It is important that
will notice some tapes that give better form. Under some circumstances the the waveform clipping be uniform;
results; save these tapes for future waveform may distort with a fold-over otherwise, the zero-crossing times of the
testing. as shown in Fig. 4. If this happens, note input signal will be skewed so much that
You should be aware of the causes of the volume setting so that you never ex­ the computer cannot interpret the sig­
poor response that you charted in the ceed a setting at which this distortion nals correctly. Similarly, fold-over dis­
tests described above. If the input level occurs. tortion will also skew the zero-crossing
is too low, poor playback signals will be The previous remarks apply directly times. Both types of distortion are le� s
>
caused by nonlinearity and noise in the to the Color Computer, because the important for computers such as the
ALC circuit. Upper-limit distortion is KIM- I , which use a PLL data-recovery
caused by too much signal for the ALC circuit. Other computers have similar
to handle. If the ALC circuit and the exemptions. However, some computers
rest of the recording circuitry is working are sensitive to the input level (too large
properly, the playback should be clean a signal can overload the data-recovery
and essentially undistorted, as long as circuit) as well as being unable to
the volume control is set low enough to Fig. 4. Foldover distortion caused by non­ decode very low signals.
avoid waveform clipping. linearity of the recorder output drivers. This
Once the above tests are complete, type of signal must be eliminated by reducing Evaluation of Magnetic Tape
and you have good tape on a properly the volume setting of the recorder until the One aspect of magnetic-tape perfor­
functioning recorder, one more test is distortion stops. mance has been neglected until now­
essential. Play back one of the test tapes mechanical smoothness. You should
54 HOT CoCo Jun� 1<)83
automatically reject any tape that chat­ auto shutoff, you can come back later, for you to record the location of the
ters, howls, or makes any unusual sound rewind the tape, start the program at dropout and restart the test.
during rewind and fast-forward opera­ $700c, and start the playback . Once As shown, the program implements a
tion. Not only that, if more than an oc­ again, you can walk away without miss­ severe test of both tape and recorder.
casional tape from any one source is ing any dropouts on the tape-the com­ The byte at $7058 (normally $05) gov­
noisy, save your money for tapes from puter will shut down the test and wait erns the sensitivity of the test. This con-
sources that sell mechanically quiet cas­
settes. The dragging that produces un­
usual noise is still present during normal
--- - PAGE
recording and playback, and will be a 001 TAPTST
00010 HAM
TAPTST
source of jitter in the tape movement. 00015 OPT so
Output from such a tape is invariably 00020 7000 ORG S7000
more erratic than from smooth-running 00025 * THI S PROGRAM WR I TES A PATTERN TO CASSETTE TAPE , THEN W I LL DECODE
00030 * THE PATTERN, CHECK ING FOR TAPE ERRORS AND STOP P I NG ON ERRORS.
tapes of similar quality. Worse, any 00035 * THE WRITE FUNCT I ON IS AN ENDLESS LOOP; STOP BY USING RESET.

change in the condition of such a cas­ 00040 *


00045 7000 1A 50 CASLD ORCC 1$50 D I SABLE INTERRUPTS
sette is likely to be toward more erratic 00050 7002 BD A7CA JSR SA7CA TURN ON MOTOR
operation , and you may find you can't 00055 7005 86 FF ooT LOA I$FF ALL ONES PATTERN -
00060 7007 BD AB2A JSR $A82A WR ITE CHARACTER
load a tape that used to work satis·
00065 700A 20 F9 BRA ooT LOOP FOR EVER
factorily. 00070 *

There is only one satisfactory method 00075 * TH I S SECTION READS BACK THE PATTERN AND TIMES THE
00080 * ZERO CROSS INGS . TAPE SPEED VAR IATIONS, LOW RECORD
of qualifying tapes-verifying that they 00085 * LEVELS AND BAD TAPE SKEW THE ZERO CROSS ING TIMES .
have no dropouts-and that is to test 00090 * IF THE TIMES VARY MORE THAN A SELECTED AMOUNT, THE
00095 * CASSETTE MOTOR IS SHUT OFF TO ALLOW THE OPERATOR
every bit position on the section of tape * TO DETERMINE THE SER looSNESS OF THE DEFECT.
00100
that is to be used for recording. It is 00105 *

possible, though tiring and time-con­ 00110 700C 1A 50 CASRD ORCC 1$50 01 SABLE INTERRUPTS
00115 700E BD A7CA JSR SA7CA TURN ON MOTOR
surning, to record a test tone from one 00120 7011 20 04 8RA SETUP
end of the tape to the other and watch 00125 7013 BD A7E9 STOP JSR $A7E9 TURN MOTOR OFF
00130 7016 39 RTS RETURN TO MONITOR
the playback on a scope. By the time
00135 7017 7F 7060 SETUP CLR CooNTl SET UP BUFFERS
you have qualified four or five tapes, 00140 701A 7F 7061 CLR COUNT2
you will be ready to take chances with 00145 7010 86 20 LOA 132 SK I P 32 CHARACTERS
00150 701F B7 7062 STAA SK I P
unqualified tapes. 00155 7022 5F TEST CLRB WIDTH COUNTER
It is possible to let your computer 00160 7023 B6 FF20 LOA $FF2O READ PORT
00165 7026 46 RORA GET BIT I NTO CARRY
check the tapes for you, provided your 00170 7027 25 10 BCS ONE I S IT A LOG I C ONE?
computer has built-in tape controls . 00175 7029 5C ZERO INCB NO, BIT � 0
00180 702A B6 FF20 LOA SFF20 READ NEXT B I T
The Color Computer qualifies nicely,
00185 7020 46 RORA G ET B I T
and has one of the best cassette-record­ 00190 702E 24 F9 BCe ZERO TEST IT
ing and playback sections of any now 001 95 7030 FB 7060 ADDB CooNTl ADD TO PREV IOUS CooNT
00200 7033 56 RORB DIV IDE BY TWO
available . The record signal (Fig. 2) is 00205 7034 F7 7060 STB CooNTl SAVE RESULT
generated by an on-board digital/ana­ 00210 7037 20 DE BRA SP I N SK I P 32 CHARACTERS
00215 7039 5C ONE INCB BIT - 1
log converter that synthesizes single
00220 703A B6 FF20 LOA $FF20 READ NEXT BIT
sine-wave cycles- I ,200 Hz for logic 0 00225 7030 46 RORA GET BIT
and 2,400 Hz for logic l . 00230 703E 25 F9 BCS ON E TEST IT
00235 7040 FB 7061 ADDB CooNT2 ADD TO PREV IOUS COUNT
The test tone generated by my Color 00240 7043 56 RORB D I V IDE BY TWO
Computer consists of a continuous 00245 7044 F7 7061 STB CooNT2 SAVE RESULT
string of I 's. Although the signal is not 00250 7047 B6 7062 SP IN LOA SK I P GET COUNT OF BITS T O SK I P
00255 704A 27 03 BEQ COUNT SAVE RESULT IF COUNT ZERO
perfect, it is very good for the purpose. 00260 704C 7A 7062 DEC SK I P OTHERWISE , COUNT OOWN
This test signal was produced by the 00265 704F B6 7060 CooNT LOA CooNTl GET F I R ST PER 100
00270 7052 BO 7061 SUBA COUNT2 COMPARE WITH SECOND
Program Listing, and utilizes some of 00275 7055 2B 06 8M I FIX NEGAT I V E , COMPLEMENT I T
the internal ROM routines. 00280 7057 81 05 TRY CMPA 1$05 BIG DIFFERENCE?
Note that the listing begins at address 00285 7059 23 C7 BLS TEST NO, KEEP TRY ING
00290 705B 20 B6 BRA STOP YES, STOP
$7000-1 have expanded my Color 00295 7050 40 FIX NEGA MAKE IT POS I T I VE
Computer to 32K memory. The section 00300 705E 20 F7 BRA TRY THEN TEST IT
, 00305 7060 0001 COUNT1 RMB 1
from $7000-$700B is a forever loop that
00310 7061 0001 CooNT2 RMB 1
produces the test tone. To stop the tone, 00315 7062 0001 SK I P RMB 1
hit reset. The rest of the program reads 00320 7000 END

the tape output, keeps a continuous


record of the time between successive
SYMBOL TABLE :
zero crossings of the test tone, and stops
the tape recorder if a certain maximum CASLD -7000 OUT =7005 CASRD -700C STOP -7013 SETUP -7017
variation is exceeded . This makes it pos­ TEST -7022 ZERO .. 7029 ONE -7039 SPIN "7047 COUNT =704F
TRY -7057 FIX -7050 COUNTl-7060 COUNT2-7061 SK I P "7062
sible to record a test tape, then play it
back while the computer monitors the TOTAL ERRORS 00000

output. Both parts of the test can be left


unattended-simply start the test at I
$7000 with the recorder set to record.
Since most modem machines have an
I Program Listing

HOT CoCo June 1983 55


stant is a measure of the difference be­ ed the back side of the tape and several Recording Techniques
tween successive signal zero crossings; a times this yielded 1 50-250 counts of I recommend the following recording
tape that runs end to end with no devia­ good tape, with the good section start­ sequence: Place the recorder in record
tions greater than 05 is almost perfect. I ing within 20 counts of the tape end. mode with the cassette fully rewound,
have not made a detailed worst-case After thorough test'ing, each tape is then allow the tape to advance to a
test, but have arbitrarily accepted tapes marked with the good side (I never use count of 1 5 (try 10 or 1 5 seconds if you
that run for most of their length with a both sides) and the counter values at the have no tape counter). Stop the record­
test sensitivity of 7, and no dropouts start and finish of the qualified section . er, but leave the controls set in record
that exceeded S . One other thing I learned from this test­ mode. Start the computer dump process
This last infonnation can b e gained ing was that few tapes will work satis­ and allow the dump to finish so the
by examining locations $7060 and factorily closer than five counts from computer will turn off the tape. If you
$7061 and calculating the difference be­ the leader. plan to record more data on the same
tween the two · values recorded there. Although the operation of the test tape, record the counter reading along
Typical values that you find there on program has been explained, there are with the starting counter reading and
good tape are (for example) OA and 10 certain precautions that go along with the name of the file. When a new file is
(di fference of 6). If you have a tape with the test program. First, clean and de­ added to the tape, advance the tape to
a severe dropout, the numbers will be magnetize the heads before beginning about 10 counts past the end of the first
extreme-5 and 16, for example. Tape the testing, and repeat the cleaning file and begin recording at that location.
that has mild jitter with no imperfec­ every couple of tapes. As before, record starting- and ending­
tions in the oxide may show differences count values along with the file name.
of 6-7; since I had excellent yield from Tape Recorder Maintenance
Finally, always rewind a tape to clear
my stock of tapes I have found to be I have already discussed most of the leader after use, to help minimize the
good, my arbitrary test limit of 7 was basics of recorder maintenance-fre­ chance of accumulating dust or dirt on
good enough. quent cleaning, demagnetizing the the tape oxide.
One of my colleagues at work indi­ heads, and general cleaning. Many deal­ It is advisable to keep an index record
cated some skepticism over the reliabili­ ers sell small bottles of head-cleaning so that any given file can be located easi­
ty of this test. I proved to my own satis­ solution to be used, but denatured alco­ ly. Substitute time in seconds as mea­
faction the test's value by taking known hol applied carefully with a cotton swab sured with a stopwatch if you have no
bad tapes, recording the tape counter will work well. The most important counter, but keep a record of the file
reading for each dropout, and repeating thing is to be sure that no cotton lint location on the tape. Be sure to leave
the test several times. I was satisfied from the cotton swab is left in the enough of an interrecord gap so that the
when each dropout was located within recorder, and that the heads are really tape can be positioned for playback
one count on successive tests. clean. You should have a head demag­ with no chance of beginning the play­
Two features of the program should netizer and use it fairly often. Some de­ back in the middle of a file.
be noted. First, the constant at $701E magnetizers are low-power devices , and Some mention was made above of
(nonnally $20) may need to be increased it may not be obvious that they are tape movement between records . If you
if your recorder is slow in getting start­ working . If you have any doubt, bring have the CfR-SOA recorder sold with
ed. This simply allows 32 (or more) zero the demagnetizer near the head with the the Color Computer, fast forward and
crossings to be counted before begin­ play button depressed and you should rewind operations bypass the computer
ning to test; otherwise, the program is hear a 6O-Hz hum in the speaker if the control, but the play and erase func­
too sensitive to minor variations in demagnetizer is working. tions do not. A simple bypass switch
speed as the tape is coming up to speed. (Fig. 5) can be rigged so that any tape
Long-tenn variations in speed are Tape Erasing Procedure
"averaged out" by the sections from Once you have qualified a tape and
$7030-$7036 and $7040-$7046. The cir­ marked it for identification and to show
cuit counts pass through a loop to
measure the time between successive
the good area of tape, keep the tape in a
dust cover until used. Once the data on -----j!l-I ----l.
-t- �
r
...- ):::::::Jo
zero crossings; each count is added to a tape has been made obsolete, be sure
the count from the previous pass, divid­ to erase the tape. This is important I Fig. 5. A simple bypass switch circuit installed
ed by two, and saved to "average" with enough for the serious computerist to in the casselle motor control line allows any
the next count. In this fashion, all but own his own bulk eraser; the Radio recorder to be operated in local mode lor tape

very short-tenn variations in tape speed Shack #44-232 is an excellent unit. movement. A momentary switch is most con-t

The erasing operation should be per­ venient unlessyou are rewinding long tapes; in
are allowed for:
that case, use a toggle switch.
One other method of tape testing fonned this way: Energize the eraser
with real computer signals can be effec­ while holding the tape cartridge in con­
tive also: Record pseudorandom num­ tact with the base Qf the eraser, then
ber sequences with checksums and play slowly move the cassette straight away movement is possible even though the
back the tapes. Checksums taken over a from the eraser. Only after the tape is computer thinks it is in control . If you
very long section of tape (100 or more over IS inches away from the eraser do not have a recorder with bypass op­
counts) would also constitute an ex­ should you de-energize the eraser. With eration, this same switch arrangement
tremely sensitive test. The drawback of this technique, the tape magnetization will solve the problem .•
this test is that the whole tape either level is gradually reduced to zero flux,
passes or fails; I have several tapes that and if the eraser should be turned off
are marked with the tape counter values while the line voltage is at a peak, the
at the extreme ends of the good tape. If magnetic surge could leave the tape with Ralph Tenny can be reached at P. 0.
most of one side of a tape passed, I test- a residual magnetic level. Box 545, Richardson, TX 75080.
S{, HOT CoCo June 1c}83
NOW WITH EXTENDED
DISK OPERATING SYSTEM MESSED-UP BY MANUALS?
On error handling and DEBUG
FRUSTRATED BY FOLOOUTS?

DON'T TRASH YOUR COMPUTER:

SEND FOR

CO·RES9 is a Co·reslelent Eelltor / Assembler that


will allow YOU to create. eellt anCl assemble
The PrOfeSsional's
''
TExt PAOCESSOR FEATURES
• (harKter Fl.
Word PrOcessor"
H ELP !
machine language programs for the color com· • Programmable FootW
puter. It will QuiCkly anCl efficiently convert • -toM JuStIfY un.
• ...tlple
• T rwee Indent IIIIOdn
POotnotH
assembly language programs into machine coele
• ThrH Progra"",** Headers
THE ONLY COMPLETE
files. I t will output machine object coele to either
......,. JUlttfk.at�
• Ten PrograrnrNbfe Tab Stops
cassette tape I n a 'CLOADM' compatible format or • PROGRAMMING
left I R�t
elir ectly to memory for elirect execution.
MOW • O«imal A.... , Center, Left & REFERENCE SYSTEM
Co-RES9 editor/ assembler tape OMll • Dtsplay
light Justlfv on 'aD COlumn
I InPUt from lCeVbNftl
FOR THE COLOR COMPUTER
w / manual . . . . . . . . . . . . .
• Change FOrmatting During
�"$39-.BS: $29.95
641( venlan Mas � 511(
PrOCHs.ing
R.S. DISK EDITOR & ASSEMBLER Disk •
Ttlt IUHer
w / manual .� $49.95 $9.95 PLUS $1.00 SHIPPING

�.
TEXT PRO II Features Over 70 Commands In All. Disk ... $79.95 CHECK-VISA-MASTERCARD

TERMINAL PACKAGE • DlsPlav On screen or Output Contents Of Buffer


TO Printer
• Full Text Buffering · printer Baud Rates 110-4800 save & load Text Buffer TO Tape or DISk REAL SOFTWARE Co.
Terminal Bauel Rates 300 To 9600 Bauel

AutomatIc worel wrap Eliminates Split worelS senCl FIles DlfeCtiv From BUffer or DISk P.o. BOX 486
• " programma ble worel length. Panty & Stop BIts
Full/Half Duplex

• • Automatic Buffer SIZe At Memory limIt
• Full DISk support For DISk VersIon Datapack on tape W I manual
NORTHBORO, MA. 01532 .- 345

: �s2� Eg:;'��ilg?���:���m��VbOarel
$24 95
DlskpaCk fOr R S ellsk W I manual
$49:95
• AutomatIc File Capture All Orders Shipped


From Stock
(617)-393-6281
(702) 452-"632
5566 Ricochet Avenue Add 52.50
Las vegas, Nevada 89110 -U.- 33 5 Postage

... S/HI List o( Advertisers on page 138


HOT CoCo Jun� 11)83 57
UTILITY

BY JAMES BARBARELLO

DOCULIST/C
W hile Basic is an easy language
to learn and use, its program
Do you have trouble read­ tain a 30 and location 26 a 1 . Since (30
x 256) + 1 768 1 , location 768 1 is
=

listings are difficult to interpret. Since ing your Basic listings ? where to look for the start of a Basic
Basic allows multiple statements on a Here's a neat program program.
numbered line and (in most cases) If you PC LEAR 4 with a program in
doesn't care if you put spaces between that makes neat listings . memory, location 768 1 will contain the
words, a normal listing can look more MSB of the next program line's ad­
like Greek than the King's English. dress, and the second location the LSB
DoculistlC, a tape utility for Extend­ of the address. If location 768 1 contains
ed Color Basic machines with 1 6K or a 30 and 'location 7682 a 9, the next (sec­
more of memory, lets you obtain an date your demands for more or less ond) program line starts at location
easy-to-read printout of any Basic pro­ graphics space. 7689 (Le., (30 x 256) + 9).
gram-including Doculist itself, as Therefore, the starting address of a The following locations-in this case,
shown in Program Listing 1 . In addi­ Basic program in memory varies. Mem­ 7683 and 7684-contain the MSB and
tion to detailing Doculist, this article ory locations 25 through 28 keep track LSB of the program line's number. If
will explain how the Color Computer of address i n formatio n . I f you these are 1 and 4, for example, the line
stores and interprets Basic programs, PEEK(25), multiply the result by 256, number would be 260 (Le., (1 x 256) +
and how you can merge programs, and add the result of PEEK(26), you 4). Succeeding bytes contain the ASCII
loading one on top of another. come up with a decimal address, which codes of the characters contained in the
is the first byte of the resident program. line; if the line was 260 A 1 , loca­
=

Basic Line Storage You multiply the number in location 25 tion 7685 would contain 65 (ASCII code
The Extended Basic command because it is the most-significant byte for A).
PMODE allows you to select one of five (MSB) of the address; since location 26 Following this reasoning, you would
different modes of graphics resolution. contains the least-significant byte think that location 7686 would contain
There are eight "pages" (blocks) of (LSB), it needs no multiplier. 61 , ASCII code for However, it
= .

memory in which graphics information If you repeat this procedure with loca­ contains 179. To conserve memory, Ba­
can be defined. PCLEAR lets you re­ tions 27 and 28, you get the location of sic expressions (such as For, I f,
serve all or any portion of this memory the end of the program plus two. These PMODE, + , and - ) are represented
for graphics storage, with any Basic additional 2 bytes (both 0) represent the by codes called tokens. If Basic finds a
program being stored after the last "next" line's address; the zero value in­ byte greater than 1 27, it compares the ,
PCLEARed page. When you PC LEAR dicates there are no more lines. number with a list of Basic expressions
with a program in memory, the CoCo For example, if you PCLEAR four to find what the token means (e.g. , 1 79
moves everything around to accommo- pages of memory, location 25 will con- for = ) This list resides at locations
.

32768 through 491 5 1 in ROM.


For an added complication, in Ex­
Program Listing 1 tended Basic there are 2-byte tokens­
the frrst always a 255 and the second
63000 ' DOCU LIST/C : V 1 . 2 ranging between 1 28 and 161 . Table 1
6 3 0 1 0 CLEAR 590
: CLS gives a list of all the tokens, what they
: PRINT represent, and where they begin in the
: PRINT " doc u 1 i s t - INITIALIZ ING"
: GO SUB 6 3 29 9 Color Basic and Extended Basic ROMs.
: PRINT Basic ROMs.
: PRINT TAB ( 1 2 ) ; " PRINTING . "
: PRINT
To finish our example, location 7687
: SA = P E EK ( 2 5 ) * 256 + PEEK ( 2 6 ) would contain a 49 (ASCII code for 1)
: FA = PEEK ( 27 ) * 2 5 6 + PEEK ( 2 8 )
: LA = SA
and 7688 a 0, which marks the end of
6 3 9 20 NA = PEEK ( LA) * 2 56 + PEEK ( LA + 1 )
: LN = PEEK ( LA + 2 ) * 2 5 6 + P E EK ( LA + 3 )
63030 I F LN = 6 40 1) 9 OR NA = 0 THEN END System Requirements
6 3 0 4 0 TXT$ = STRING$ ( 1 0 - LEN ( STR$ ( LN» , 3 2 ) + STR$ ( LN ) + " "
: CNT = 1 1 16K RAM
Extended Color Basic
Listing I continued

58 HOT CoCo June 1983


I f th e s a m e o ld n e w s a n d re v ie w s c a u s e y o u to s n o o z e th e n c h o o s e :

Fqrum Sixty-Eight or Color Computer News


F o r u m S i xt y - E i g h t i s n e w to d a te C o lo r C o m p u t e r N e w s w i ll w a k e y o u r
a n d w ill p r o v e it s e l f r e a l s o o n . com puter
S o ro u s e fr o m y o u r s l u m b e r a n d o p e n y o u r e y e s u p w i d e.
a n d g e t t h e fir s t n u m b e r A n d s o o n y o u ' 11 d is c o v e r
C a u s e t h e fir s t i s s u e ' s c o m ing i n J u n e. fr o m c o v e r to c o v e r
t h e re ' s l o t s o f g o o d in fo in s id e .

Foru m S i x ty - E ig h t is t h e j o u r n a l fo r
M o t o r o la M ic ro p ro c e s s o r s . T h e foru m C o l o r C o m p u te r N e w s is t h e o r ig i n a l
covers b u s in e s s , s c ie n tific and C ol o r C om puter ' m a ga zin e cove ring
r e c r e a t io n a l c o m p u tin g . the en tire spectr u m of C olor
C o m p u ting from b e gin n e r t o advan­
ce d .
- - - - - - - _ _1 .... - _ _ _

R E M a rk a b le S o ftw a r e . I n c . T h e 1 2 i s s u e s u b s c r i p t i o n rate i a : K e lly So ftw a r e D is t .


P.O . B o x 1 1 92 U n it e d States S 2 1 .00 P.O . Box 1 1 932
M u s k e g o n . M 1 4 94 4 3 C a n a d a l M e z ic o S 38 . 0 0 E d m o n to n . A lb e rta T 5 J 3 L I
( 6 1 6 ) 7 2 8 · 9 1 00 .... 1 Foreign S 6 6 . 00 CANA DA
Com b i n a t i o n S u b a c r i p ti o n S39 .00 C a n a d ia n s u b s c r i p t i o n s to
IV . S . o n ly ) C o lo r C o m p u te r N e w s o n ly

N am e :

A d d re a a '�_______________________________________________________________________________

C ity : ____ State : ____ Z i p �


:,. ______

o V ia a l M a ate rc a r d ,____________------_____________ E x p i ra t i o n D a te : _______ --


.... . ---

C : C o lo r C o m p u t e r N e w a l: F o r u m S i x ty · E i g h t [ . B o th

S u b s c ri p t io n b e g i n s w i th n e x t a v a il a b le i s s u e A l low 8 · 1 0 w e e k s f o r d e l i v e ry

.... See List 01 Ad.en/88'S on page 138 HOT COCO Jun( 1983 59
(82) plus 128. The secret is that the
Listing I continued

6 3 9 5 9 FOR ·1 = LA + 4 TO NA - 2
ASCII code of the last letter of each
6 3 9 6 9 C = PEEK ( I ) word has 1 28 added to it; knowing this,
: IF C = 3 4 THEN 0 = ( 0 = 9 ) it is an easy task to find a word's end by
6 3 97 9 I F C < 1 2 8 AND C < > 5 8 O R 0 - 1 THEN TXT$ = TXT$ + C H R
$ (C) checking for a value greater than 1 28.
: CNT = CNT + 1
: GO TO 6 3 1 7 9 The Doculist/C Program
63989 IF C = 5 8 THEN 63299
6 3 9 99 ' BYTE IS TOKEN , SO CHECK DoculistiC is numbered starting at
6 3 1 0 0 IF C = 2 5 5 THEN I = I + 1
: C = PEEK ( I ) - 5 9 63000 to allow it to be appended to the
: ELSE C = C - 128 program you wish to list (more on that
6 3 1 1 0 I F C = 2 OR C = 3 THEN 0 = - 1
6 3 1 2 0 ' DECODE TOKEN
later) . The first program line refers to
6 3 1 3 9 IF RIGHT$ ( TX $ , 1 ) < > " " AND R I GH T $ ( TX $ , 1 ) < > " : " THEN T subroutine 63290, which decodes the to­
X$ = TX $ + " "
6 3 1 4 9 FOR X = A ( C ) TO A(C) + 9
ken list and stores the starting memory
: IF PEEK ( X ) > 1 2 8 THEN 63160 address for each of the Basic expression
6 3 1 5 0 TXT$ = TXT$ + CHR$ ( PEEK ( X »
: CNT = CNT + 1
words in an array.
: NEXT X Rather than look through the list
6 3 1 6 9 TXT$ = TXT$ + CHR$ PEEK ( X ) - 1 2 8 ) + " "
: CNT = CNT + 1
each time you encounter a token, you
6 3 17 0 IF LEN ( TX $ ) > 6 9 THEN GO SUB 6 3 2 40 can now access the word by using the
6 3 1 8 9 NEXT I token to select the appropriate array
: LA = NA
:GO SUB 6 3 2 4 0 variable, pointing you immediately to
: GO TO 6 3 0 2 0 the start of the word in memory. Line
6 3 1 90 ' CHECK COLON
6 3 2 9 0 IF PEEK ( I - 1 ) < > 58 AND PEEK ( I + 1 ) 1 3 1 THEN 6 3 170 63010 also calculates SA, the start ad­
63210 IF PEEK ( I + 1) 5 8 THEN I = I + 1 dress of the program to be listed, and
:C = PEEK ( I )
: GO TO 63210 equates this to LA, the current program
6 3 2 2 9 G O SUB 63230 line address.
: GO TO 6 3 17 9
6 3 2 3 0 ' PRINT ROUTINE
Line 63020 calculates NA, the ad­
6 3 2 4 0 IF LEN ( TX T $ ) > 69 THEN PRINT . - 2 , LEFT$ ( TXT$ , 7 0 ) dress of the start of the next program
: TXT$ = STRING$ ( 1 2 , 3 2 ) + R I G H T $ ( TXT $ , LEN ( TX T $ ) - 7 9 )
: CNT = 1 3
line, and LN, the current program line's
: GO TO 6 3 2 7 0 number. Line 63030 checks for the be­
LEN ( T X $ ) > 1 2 THEN PRINT . - 2 , TXT$
63259 IF
6 3 2 6 0 TX $ = STRING$ ( 1 1 , 3 2 ) + " : "
ginning of Doculist/C or the end of the
: CN = 1 2 program in memory and ends if either is
:0 = 0 found; LN, normally 63000, was
6 3 2 7 0 LI = LI + 1
: IF LI < 50 THEN RETURN changed to 64000 in Program Listing 1
: ELSE LI = 9 to allow Doculist to list itself.
: SOUND 2 0 9 , 2 0
: L INE INPUT " CHANGE PAPE R , PRESS <ENTER> • • " / X$ Line 63040 begins the actual decod­
: RETURN ing. The line to be listed will be stored in
6 3 2 8 9 ' F I L L TOKEN ARRAYS
6 3 2 9 9 DIM A ( 111) TXT$. The first .thing to appear, the
: A ( 0) = 43622 line number, is tabbed over and right­
:J = 1
6 3 3 9 9 FOR I = 4 3 6 2 2 TO 4 3 8 2 2 justified. This allows easy recognition

: I F PEEK ( I ) > 1 2 8 THEN A ( J ) I + 1 of line numbers and a left margin for
:J = J + 1
6 3 3 1 9 IF J < 53 THEN NEXT
three-ring binder storage.
6 3 3 2 0 A ( 53 ) = 3 3 1 5 5 Next, line 63050 searches through all
:J= 54
: FOR I = 3 3 1 5 5 TO 3 3 3 5 5
bytes on the current line by way of a
: I F PEEK ( I ) > 1 28 THEN A ( J ) I + 1 For . . . Next loop. Line 63060 equates
:J= J + 1
6 3 3 3 0 IF J < 78 THEN NEXT
the current byte to C and, if it is a quote ,
63340 A ( 7 8) = 43802 (ASCII 34), changes the state of the
:J = 79
: FOR I = 43802 TO 44000
quote flag (Q). A literal expression (one
: I F PEEK ( I ) > 1 2 8 THEN A ( J ) I + 1 beginning with quotes) will not be inter­
:J = J + 1
6 3 3 5 9 IF J < 98 THEN NEXT
preted; the Q flag reverses its status with
63369 A ( 98) = 33309 the finding of a closing quote or the end
:J = 99
of the program line.
: FOR I = 3 3 3 09 TO 3 3 5 0 0
: I F PEEK ( I ) > 1 2 8 THEN =A ( J ) I + 1 If the byte is either an ASCII code or
:J = J t 1 part of a literal expression, line 63070
6 3 3 7 9 IF J < 1 1 2 THEN NEXT
: ELSE RETURN adds it to TXn, increments the text
string's length counter (CNT), and
jumps to line 63 1 70. Before going back
to look at the next byte, line 63 1 70
the current program line. starts? Counting the number of letters is checks to see if our text line has reached
Decoding the Token Lists no help; some words (such as + ) have the maximum length we have preset for
Before you can list a Basic program, one letter and some (such as STRING$) it. If so, the line is printed before return­
you must first know how to interpret have seven. ing for the next byte.
the token lists. Used as counters, the ,to­ Look at the first word on the list, Since the "neat" listing separates
kens tell you (and Basic) the number of For. If you PEEK locations 43622, multiple program statements, line 63080
words to skip in the list to find the cor­ 43623 , and 43624, you find 7 1 , 85 , and checks for the presence of a colon. If
rect word-but how do you know 210. The ASCII code for F is 7 1 , and found, it is processed in lines 63200-
where one word ends and the next the code for 0 is 85; but 210 is ASCII R 63220.
60 HOT CoCo June 19113
AAR DVA R K
TR S-80 COLOR CO MMODORE 64 VIC-20 S I N C LA I R /TI M EX TI99

' .

���
PLANET R A I D E R S - Not just another de­
fenders copy, this is an original program
good in its own right. You p i l ot a one man
ADVENTU RESI,I I sh ip across a planetary surface dogfighting
The Adventu res below are written in BAS I C, with alien ships and blasti n g ground installa­
are full featured, fast action, ful' l pl otted ad­ tions while you rescue stranded troopers.
ventures that take 3D-50 h ou rs to p l ay . (Ad­ Rescue all the troopers and be t ransported
ventures are interactive fantasies. It's l i ke to another harder, faster battl e. Joysticks
reading a book except that you are the main required. A L L MACH I N E CODE I E DSO N S
character as you give the computer, com­ BESTI 1 6 K Tape TRSSOCO LOR $ 1 9 .95 -
mands l i ke "Look in the Coffin" and""Ught 32 K Disk $2 1 .95,
QUEST - A N E W I D EA I N A D V 'E N TU R E the torch . " )
GAMESI Different from a l l the others. Adventu ring requ ires 1 6 k o n Sinclair, BASIC THAT ZOOOMMSI I .
Quest is played on a computer generated TRS-80, and TRS-80 Color. They req u i re 8 k AT LAST AN A f fO R DABLE COMPI LE R I
map of Alesia. Your job is to gather men on OSI and 1 3 k o n V I C-20. Si ncl a i r requires The compiler al lows you t o write you r
and supplies by combat, bargai ning, explor­ extended BAS I C . Now avai lable for T199. programs i n easy BASI C and then au to­
ation of ruins and temples and outright Any Commodore 64. matically generates a m ac h i n e code equiv·
bandi try. When your force i s strong enough, $1 4 ,95 Tape - $ 1 9 .95 Di s k . alent that runs 50 to 1 50 times faster.
you attack the Ci tadel of Moorlock in a
It does have some l im i tations. I t takes at
l i fe or death battle to the finish. Playable
E SCAPE F R OM MARS least 8k of RAM to run the compiler and it
in 2 to 5 hours, this one is different every
(by Rodger Olsen ) does only support a subset of BASIC­
time. 1 6 k TI99, TR S-80 Color, and Si ncl a i r , This ADV E N TU R E takes place on the R E D abou t 20 commands including F O R , N E X T,
1 3 K V IC-20. $14.9 5 each . PLAN ET. You ' l l have t o explore a Martian E N D, GOSU B, GOTO, I F , TH E N , R E TU R N ,
32 K TRS 80 CO LOR Version $24.95. city and deal with possi bly hostil e aliens to E N D , PR I N T, STOP, USR (X ), P E E K ,
Adds a second level with dungeons and survive this one . A good first adventure. POK E, " I, +, -, ) , ( , =, V A R I A B L E
more Qu esting. N AM ES A-Z , SU BSC R I P T E D V AR I A B LES,
PYRAM I D (by Rodger Olsen )


and I N T E G E R N U M BE R S FORM 0-64K .
This is our most challenging ADV ENTU R E .
oft i s a treasure hunt i n a pyramid f u l l of T I N Y COM P I L E R is written in BAS I C . I t
problems. Exci ting and tough I generates native, relocatable 6502 o r 6809
code. It comes with a 20i>age manual and
can be m odified or au gmen ted by the user.
D E R E L ICT
(by Rodger Olsen & Bob Anderson ) $24.95 on tape or disk for OS I , TRS-80
New winner in the toughest adve n t u re from Color, V I C 20, or Commodore 64.
Aardva r k sweepstakes. This one takes place
on an alien ship thilt has been deserted for a SEAWOLFE' - A L L MAC H I N E CODE In,
thousand years - and is sti l l dangerous I this h igh speed arcade game, you lay out
Dungeons of Death - Just for the 1 6k TRS- patterns of torpedoes ahead of the attacking
80 COLOR, this is the f i rst D&D type game PT boats. Requires Joysticks, at least 1 3 k
good enough to qualify at Aardvark. This is R AM, a n d fast reflexes. Lots o f Color and
serious D& D that allows 1 to 6 players to go Sound, A fun game. Tape or Disk for V i c20,
on a Dragon Hunting, Monster Ki l l ing, Dun­ Commodore 64, and TRS-80 Color.
geon Exploring Ques t. Played on an on­ $1 4.95 Tape - $1 9.95 Disk.
screen map, you get a choice of race and
character (Human, Dwarf, Soldier, Wizard, Dealers - We have the best deal going for
etc.), a chance to grow from game to game, you. Good discounts, exchange programs,
and a 15 page manua l . At the norm,,'1 price and factory support. Send for Dealer Infor­
for an Adventure ($ 1 4 .95 tape, $1 9.95 disk). mation .
CATE RPI LLAR this is a giveawa y .
Authors - Aardvark pays the h i ghest com­
O.K., the Caterp i l l a r does l ook a lot l i ke a
missions in the i ndustry and gives programs
Centipede. We have spiders, fa/l, i n g fleas, WIZARDS TOW E R - T h i s is very s i m i l ar to
the widest poss ible advertising coverage.
monsters traipsing across the screen, pOison Quest (see abovel. We added wizards, magic,
Se n d a Self Addressed Stamped Envelope
mush rooms, and a lot of other fam i l iar dragons, and dungeons to come up with a
for our Auth ors Information Package.
stuff. COLOR 80 requ i res 1 6 k and Joy­ Quest with a 0&0 flavor. It requi res 1 6k
sticks. This is Edson's best game to date. extended color BAS I C . $ 1 4 .95 Tape, Adventures and Quest now available
$ 1 9:95 for TRS 80 COLO R . $1 9.95 Di sk. V I C 20 Commodore 64 . for T I 99

Please specify system on al/ orders


ALSO F R OM AARDVAR K - This is only a partial list of what we carry. Ww have a lot of other gemes (particularly for 1he
TRS-80 Color and OSI ), business programs, blank tapes and disks and hardware. Send $ 1 .00 for our complete catalog_

AA R DVAR K
2352 S . Commerce, Walled Lake, M I 48088 / (31 3) 669-31 1 0 ..
Phone Orders Accepted 8:00 a.m. to 4:00 p.m. EST. Mon. -Fri. .... 107

$2.00 shipping on each order
.... S"" Lis' 01 Advertisers on page 138 HOT CoCo Jun� 1983 61
If you've gotten this far, the byte is a as 63060 did for a quote. Ions found. The latter peels off multiple
token and must be decoded. Line 63 1 00 Lines 361 30-63 1 80 decode the token. colons (e.g. , J = 3 : : : R = 4) until only
checks for a 2 5 5 (double token) and, if C selects the array element containing one is left, avoiding blank lines in the
found, increments past it and subtracts the start address at which to begin look­ printed listing. Since Basic puts a colon
50, scaling the second token byte so it ing; each character in the word (value before an apostrophe used as a remark
can be used to reference our token ar­ above 1 28), that character minus 128, is indicator, line 63200 allows only the
ray. If the token is single, C is scaled us­ added to TXT$. Then, with the first of two colons before an apostrophe
ing a different factor, based on how we decoding done, control is returned to (ASCII 1 3 1 ) to be printed. For instance,
created the array. Line 63 1 1 0 sets the the main For . . . Next loop. the line " 1 0 I = O: ' Initialize I" is stored
quote flag for a remark token (REM or '), Lines 63200 and 632 1 0 check any co- as 10 I = 0: : ' Initialize I; DoculistiC
prints the remark, with only one colon,
on a separate line.
6 3 9 9 9 ' DOCULIST/c : V1 . 2 Lines 63240-63270 perform the
63 9 1 9 CL EAR 5 9 9 : CLS : PRINT : PRINT" docu1 ist - INITIAL I Z ING" : GOS
printing, reset the quote flag, and keep
UB63 2 9 9 : PRINT : PRINTTAB ( 1 2 ) , " PRINTING . " : PRINT : SA=PEEK ( 2 5 ) * 2 5 6 + P E E
K ( 26 ) : FA=PEEK ( 27 ) * 2 5 6 +PEEK ( 28 ) : LA=SA track of how many lines have been
6 3 9 2 9 NA=PEEK ( LA) * 2 5 6+PEEK ( LA+1 ) : LN�PEEK ( LA+ 2 ) * 2 5 6 +PEEK ( LA+3 ) printed. After 50, line 63270 sounds a
6 3 9 3 9 I F LN=6 3 9 9 9 OR NA=9 THEN END
6 3 9 4 9 TXT$aSTRING $ ( 1 9-LEN ( STR $ ( LN » , 3 2 ) +STR$ ( LN) +" " : CNT=l l beep and alerts you to change paper.
6 3 9 5 9 FORI�LA+4 TO NA-2
6 3 9 6 9 C=PEEK ( I ) : I F C=34THENQ= ( Q= 9 ) Using Doculist /C
6 3 9 7 9 IF C < l 2 8 ANDC < > 5 8 ORQ=-lTHEN TXT$=TXT$+CHR$ ( C ) : CNT=CNT+1 : G
OT06 3 1 7 9 Program Listing 2 contains a normal
6 3 9 8 9 I F C = 5 8 THEN 6 3 2 9 9 DoculistlC, which can be typed into
6 3 9 9 9 ' BYTE I S TOKEN , S O CHECK
6 3 1 9 9 IF C = 2 5 5 THEN I = I + l : C=PEEK ( I ) -59 ELSE C=C- 1 2 8 your CoCo. When done, CSA VE the
6 3 1 1 9 IFC=2 O R C=3 THEN Q�-l program using the name "DOCULIST."
6 3 1 2 9 ' DECODE TOKEN
The first step in using Doculist is to
6 3 1 3 9 IFRIGHT$ ( TX $ , l ) < > " " ANDRIGHT$ ( TX $ , l ) < > " : " THENTX$ =TX $ + " "
6 3 1 4 9 FORX�A ( C) TO A ( C) +9 : I F PEEK ( X ) > 1 2 8 THEN 6 3 1 6 9 load the program you want a listing of
6 3 1 5 9 TXT$�TXT$+CHR$ (peEK ( X » : CNT=CNT+ 1 : NEXTX (I . e . , CLOAD" program name"). To
6 3 16 9 TXT$=TXT$+CHR $ ( PEEK ( X ) - 1 2 8 ) +" " : CNT=CNT+1
6 3 1 7 9 IF LEN ( TX $ » 6 9TH ENGOSUB 6 3 2 4 9 make sure there's su fficient room for
6 3 1 8 9 NEXT I : LA�NA: GOSUB6 3 2 4 9 : GOT06 3 9 2 9 Doculist, move the resident program to
6 3 1 9 9 ' CHECK COLON
the page 1 memory area by entering the
6 3 2 9 9 IF PEEK ( I - 1 ) < > 5 8 AND PEEK ( I + 1 ) =131 THEN 6 3 1 7 9
6 3 2 1 9 I F PEEK ( I + 1 ) = 5 8 THEN I= I+1 : C=PEEK ( I ) : GOTO 6 3 2 1 9 commands PMODE O:PCLEAR 1 (press
6 3 2 2 9 GOSUB 6 3 2 3 9 : GOTO 6 3 1 7 9 enter) . Now you're ready to merge
6 3 2 3 9 ' PRINT ROUTINE
6 3 2 4 9 IFLEN ( TXT$» 6 9 THEN PRINTJ-2 , LEFT$ ( TXT$ , 7 9 ) : TXT$=STRING $ ( 1 Doculist with the resident program.
2 , 3 2 ) +RIGH T$ ( TXT$ , LEN ( TXT $) - 7 9 ) : CNT=1 3 : GOT0 6 3 2 7 9 Remember, locations 25 and 26 con­
6 3 2 5 9 IF LEN ( TX $ » 1 2THENPRINT J - 2 , TXT$
tain the program loading address in
63269 TX$=STRING$ ( 1 1 , 3 2 ) + " : " : CN=12 : Q= 9
6 3 2 7 9 LI=LI+1 : I F L I < 5 9THENRETURNELSELI= 9 : S0UND2 9 9 , 2 9 : LINE INPUT "C MSB/LSB format, and locations 27
HANGE PAPER, PRESS <ENTER> • • " ; X $ : RETURN and 28 the address of the program's end
6 3 2 8 9 ' F ILL TOKEN ARRAYS
6 3 2 9 9 DIM A ( l l l ) : A ( 9 ) � 4 3 6 2 2 : J �1 (including the two zero bytes). Merging
63399 FOR I = 4 3 6 2 2T04 3 8 2 2 : I F P E EK ( I » 1 2 8THENA ( J ) =I+ 1 : J=J+1 simply consists of changing the bytes in
6 3 3 1 9 I FJ < 5 3 TH ENNEXT
25 and 26 to point to the first of the two
6 3 3 2 9 A ( 53 ) =3 31 5 5 : J = 5 4 : FORt � 3 3 1 5 5 '1'03 3 3 5 5 : IFPEEK ( I » 1 28THENA ( J ) =I
+l : J�J+1 end-of-program zero bytes , and then
6 3 3 3 9 IFJ <7 8THENNEXT loading the program to be merged .
6 3 3 4 9 A ( 7 8 ) =43 8 9 2 : J�7 9 : FORI = 4 3 8 9 2T0 4 4 9 9 9 : IFPEEK ( I » 1 2 8THENA ( J ) =1
+1 : J�J+1 To do this, type POKE 26,PEEK
6 3 3 5 9 IFJ < 9 8THENNEXT (28) - 2:POKE 25, PEEK(27) and press
6 3 3 6 9 A ( 9 8 ) �33 3 9 9 : J = 9 9 : FORI = 3 3 3 9 9T03 3 5 9 9 : IFPEEK ( I » 1 2 8THENA ( J ) =1
+1 : J"J+1
enter. If location 28 contains a 1 or 0,
6 3 3 7 9 IFJ<11 2THENNEXTELS ERETURN PEEK(28) - 2 will be negative and yield
an FC? error. In this event, use the ·
Program Listing 2 alternate command: POKE 26,PEEK
(28) + 2 5 4 : PO K E 2 5 , P E E K ( 2 5 ) - 1

�\ ' :,�\ FAST. Q ���!!��?RA�II!�


E . R RINTER �
-0�\�

- I
FOR THE COLOR COMPUTER
AT ONLY $199.95 IT'S THE LOWEST
OST 40-COLUMN PRINTER ON THE MARKET!
4It::7 �_�

c __

Features full 96 character ASCII set with 8 programmable ASCII codes. Bit mapped graphics capability. Uses rolJ or
fanfold thermographic paper. Cable/roll of paper included, compact, light-weight, award-winning design. Fast, ac­
curate 80 character/second printing. No maintenance required. 30 day money back guarantee if not satisfied. We pay
shipping on prepaid orders. C.O.Do'S must send $10.00 to cover shipping and handling before order will be processed.
We accept Visa and Mastercard. Order from:
.... 68
KELCO INTERNATIONAL-P.O. BOX 7172- JACKSONVILLE , FL, 32210-(904) 771-9076
62 HOT CoCo June 1983
(press enter). This command simply it t o the LSB before subtracting two Now CLOAD"Doculist". When OK
"borrows" 256 from MSB and adds (256 - 2 254).
= appears, type POKE 25 , 1 2:POKE 26, 1
and press enter. This restores the pro­
Single Tokens gram start address to its original posi­
Token ....o
-'-'
W <>.., rd
"'--
__ Address Token Word Address tion (set when you PCLEARed I). If
you list the program, you'll see the first
128 FOR 43622 1 86 LET 33174 I program �0llowed by Doculist. T0 0b-
1 29 GO 43625 187 LINE 33 177
1 30 REM 43627 1 88 PCLS 33 1 8 1 tain a listing of the first program, type
, RUN 63000 (press enter) .
131 43630 1 89 PSET 33185
1 32 ELSE 4363 1 1 90 PRESET 33 189 When Doculist is run, the screen will
1 33 IF 43635 191 SCREEN 33195 clear and an initializing notice will ap-
134 DATA 43637 192 PCLEAR 33201 pear. After a few seconds to fill the ar-
1 35 PRINT 43641 193 COLOR 33207 rays, the word "Printing" will appear,
1 36 ON 43646 194 CIRCLE 33212 and printing will begin. When 50 lines
M 1 37 INPUT 43648 195 PAINT 33218 have been printed, a tone will sound and
138 END 43653 1 96 GET 33223 the message "Change paper, press
139 NEXT 43656 197 PUT 33226 (enter)" will be followed by the blinking
140 DIM 43660 1 98 DRAW 33229 cursor; when you are ready to print the
141 READ 43663 1 99 PCOPY 33233 next page, presS enter and the process
142 RUN 43667 200 PMODE 33238 will continue.
143 RESTORE 43670 201 PLAY 33243
Two Restrictions
I 144 RETURN 43677 202 DLOAD 33247
203 RENUM 33252 The program you list cannot be
1 45 STOP 43683
204 FN 33257 longer than 1 1 ,000 bytes, and cannot
146 POKE 43687
43691 205 USING 33259 contain line numbers above 62999 .
147 CONT
43695 With these cautions in mind, you can
148 LIST
Double Tokens use Doculist to provide you with neat,
149 CLEAR 43699
43704 Note: Each of the listed tokens is easily readable program listings . •
1 50 NEW
151 CLOAD 43707 preceded by the number 255.
Contact James Barbarello at RD#J,
1 52 CSAVE 437 12 1 28 SGN 43802 Box 24JH, Tennent Road, English-
153 OPEN 437 17 1 29 INT 43805 town, NJ 07726.
1 54 CLOSE 43721 1 30 ABS 43808
155 LLIST 43726 131 USR 4381 1
,
I 1 56 SET 4373 1 1 32 RND 43814
157 RESET 43734 133 SIN 438 17 CO L O R C O M PUTER®
1 58 CLS 43739 1 34 PEEK 43820
, 1 59 MOTOR 43742 1 35 LEN 43824 I GAMES!!!
I
1 60 SOUND 43747 1 36 STR$ 43827 Machine-language. fast-action. h i g h - reso-
lulion color graphics with sound. 16K and
161 AUDIO 43752 1 37 VAL 4383 1 , .
joysticks req u i red.
1 62 EXEC 43757 1 38 ASC 43834
163 SKIPF 43761 1 39 CHR$ UFO
43837 Dodge smart bombs. laser blasts a n d me-
1 64 TAB( 43766 140 EOF 43841 teor showers as y o u defend yourself from
165 TO 43770 141 JOYSTK 43844 incoming UFO·s. Fast"

1 66 SUB 43772 142 LEFT$ 43850 AERIAL ATTACK


167 THEN 43775 143 RIGHTS 43855 F i g h t i t o u t w i t h 4 di fferent types o f alien
attackers. then take on the incredible moth-
1 68 NOT 43779 144 MID$ 43861 I
er Ship. Great graphics"
169 STEP 43782 145 POINT 43865
1 70 OFF
STAR TRAVELER
43786 146 INKEY$ 43870 B l a s t enemy s h i ps t o space dust w i t h your
171 + 43789 1 47 MEM 43876 laser-powered wars h i p .
172 - 43790 148 ATN 33309 I

CREATU RE FEATU RE
173 43791 149 COS 333 1 3 H u n t down g i ant snails. birds. spiders and
174 / 43792 1 50 TAN 333 1 6 other creatures.

175 A 43793 151 EXP 333 19 CO LOR B LAST


1 76 AND 43794 1 52 FIX 33322 E n e m y planes have taken over th'e city.
Shoot them down with your tank as you
177 OR 43797 1 53 LOG 33325 approach the city.
178 > 43799 1 54 POS 33328
179 =
43800 1 55 SQR 33331 I BOXING
<
Knock o u t your opponent i n this exciting
1 80 43801 1 56 HEX$ 33334 2-player game.
181 DEL 33155 1 57 I
VARPTR 33338
All games $19.95 lor Disk and $1 7.95 lor
182 EDIT 33158 1 58 INSTR 33344 Cassette, postpaid. SPECIAL: Buy any two
183 TRON 33162 1 59 TIMER 33349 games and select a third game lree.

184 TROFF 3 3 1 66 160 PPOINT 33354 COLOR SOFTWA 'R E I


1 85 DEF 33171 161 STRING$ 33360
I 4247 MA KYES
Table I. Extended Color /Josie Expressions SYRACUSE, N Y 1 321 5
• Trademark of Tandy Corporation .-267

.- See List of Advertisers on page 138 HOT CoCo June 1983 b3


UTILITY

BY NORMAN MANCHEVSKY

PRINT THAT TRACE

E xtended Color Basic provides the


programmer with a valuable de­
The scroD is quicker than The program copies the relevant por­
tion of ROM into a suitable piece of
bugging tool-the trace option. Given a the eye-so print out RAM and modifies it there. All entries
TRON command, the machine displays your trace to follow pro­ to the original routine (through two
the line number of every command ex­ jumps located in &H 19A and &H I A3)
ecuted until it encounters a TROFF. gram flow at your pace . are redirected to the new code.
The feature's disadvantage is that it The program is written for a 16K ma­
displays these line numbers on the chine. While it will work in a 32K
screen only. Often, the piece of trace model, it is preferable to relocate it to
you want to study has rolled up and off &H6F to hold the output device num­ the high end of memory (around
the screen before you can stop it. Also, ber--.,.() for screen output, 254 (&HFE) &H7EOO) . This has been done in Pro­
checking the sequence of commands ex­ for the printer. Program Listing 2 stores gram Listing 3 .
ecuted is difficult without a printout. &HFE in this location at the start of the Program Listing 4 is a disassembly
These problems can be solved by redi­ trace routine; after running it, until the printout of the new trace routine with­
recting the trace output to the printer. machine is switched off and restarted , comments added . •
A section of code located at &H82B9 all TRON commands will generate a
is executed between each Extended Col­ printout of line numbers instead of a
or Basic command. It tests for vari­ display. No other changes are required . Norman Manchevsky can be reached
ous things, including whether or not the Since the trace routine is located in at 54 Park A ve., Ottawa, Ontario,
trace function has been enabled. The ROM, it cannot be modified naturally. Canada K2P IB2.
trace routine itself is in locations
&H82DE to &H82Fl ; Program Listing
1 is a commented disassembly print­
out of it.
820E LOA <SAF Load trace indicator
The Color Computer uses location
82EO BEQ S82FI o if off, 79 if on
82E2 LOA #$5 B Load [
82E4 JSR >SA282 Go display
82E7 LOA <$68 Load line number
System Requirements 82E9 JSR >SBDCC Go display
82EC LOA #$50 Load 1
16K, 32K RAM 82EE JSR >SA282 Go display
Printer

Program Listing /

64 HOT CoCo Jun� 1983


0. ................................. :
Program Listing 2

. e.
.
.
.
IO REM ••• DISPlAY TRACES ON THE PRINTER •••
20 REM ••• CLEAR AND RESERVE MEMORY ···
30 CLEAR 2OO,&H3EBO
TM
40 REM ••• COPY RELEVANT PORTION OF ROM INTO RESERVED RAM ••• COLOR COMPUTER . .
50 FOR I = &H82B9 TO &H83 1 E SOFTWARE
60 POKE 1 - &H4400, PEEK(D:NEXT
T .M .
70 REM ••• MODIFY THE TRACE ROUTINE ••• 1001 PAC DROIDS 19.95
SO FOR I = 0 TO 2: READ A: POKE 1+ &H3EE2,A:NEXT The Best Color Game Going

90 FOR I = O TO 25:READ A: POKE 1 + &H3F26,A:NEXT T.M


1002 DRAGONQU EST 1 5.95
100 REM • • • MODIFY THE ROUTINE TO WORK IN ITS NEW LOCATION ... Challenging Adventure
I Jo FOR I = 0 TO 7:READ A: POKE 1+ &H3F1E,A:NEXT Extended Basic Required
-120 POKE &H3FOC,&H3E
T.M.
130 REM ••• MODIFY THE TWO ENTRY JUMPS • • • 1 003 TOWER OF- FEAR 19.95
140 ClaSSic Adventure
POKE &HOI9B,&H3E:POKE &H01A4,&H3F
Extended Basic Required
150 DATA 126,63,38
160 DATA 134,254, 1 5 1 , 1 1 1 , 134,9 1 , 189,162,130 T.M.
1 004 THUNDER ROAD 19.95
170 DATA 150, 104, 189,189,204,134,93,189, 162, 130 Fun Adventure
I SO DATA 134,0, 1 5 1 , 1 1 1 , 126,62,241 T.M

190 DATA 38,3,126 , 1 3 1 ,34, 126,164,76 1 005 LOST DUTCHMAN'S GOLD 19.95
A Golden Adventure
200 END

DISCOUNT
For 3-3 0/0 DISCOUNT - All 5-10%

Other RADIO SHACK®Merchandtse


Program Listing 3
Call Toll FREE for Orders

10 REM • • • DISPLAY TRACES ON THE PRINTER ••• 1 -800-62


6 -9000
20 REM ••• CLEAR AND RESERVE MEMORY · · · >'483
30 CLEAR 2OO,&H7EBO
40 REM ••• COpy RELEVANT PORTION OF ROM INTO RESERVED RAM •••
50 FOR I = &H82B9 TO &H83 1 E
60 POKE 1 - &H400,PEEK(I):NEXT
70 REM • • • MODIFY THE TRACE ROUTINE • • •
80 FOR I = O TO 2: READ A: POKE 1 + &H7EE2,A:NEXT TRS-eo COLOR COMPUTER
90 FOR I = 0 TO 25: READ A:POKE I + &H7F26,A: NEXT DATA ACQUISITION & CONTROL
1 00 REM • • • MODIFY THE ROUTINE TO WORK IN ITS NEW LOCATION ••• ANALOG TRANSLATOR MODULE
1 1 0 FOR I = O TO 7:READ A: POKE I + &H7FIE,A:NEXT The ANALOG TRANSLATOR MODULE is a com­
plete data acq uisition and control system lor
120 POKE &H7FOC,&H7E
the COLOR and TDP-l00 computers. Can be
130 REM ••• MODIFY THE TWO ENTRY JUMPS ••• used for virtually any task requiring remote
1 40 POKE &HOI9B,&H7E: POKE &H01A4,&H7F voltage sensing and control.
Features include . . .
I
150 DATA 1 26 , 1 27,38
160 DATA 1 34,254, 1 5 1 , 1 1 1 , 1 34,9 1 , 189,162,130 • An 8-blt an alog-te-digital converter with

±5V Input range, speed .20 us, and a mask­


170 DATA 1 50, 1 04 , 1 89,189,204 , 1 34,93 , 1 89, 1 62, 130 able EOC (end-ol-conversion) interrupt · 32-
ISO DATA 134,0, 1 5 1 , 1 1 1 , 1 26 , 1 26,241 Channel analog multiplexer . Programmable­
gain-amplifier • An 8-bit digital-to-analog
190 DATA 38,3, 126, 1 3 1 ,34, 1 26, 1 64,76
converter . Vollage-te-frequency converter
200 END • Freq uency-to-vo ltage converter · Posltive­

peak-detector • 4·bit port • Menu driven soft­


ware in ROM · 2K RAM . Comprehensive
user's manual with application section.

Assem bled & Tested . . . . . . . . . . . . . . . . . $1 99.95


I Bareboard & Manual . . . . . . . . . . _ _ . . . . . $ 79.95
Control Software (ROM) . . . . . . . _ . . . . . $ 39.95
Program Listing 4 Manu� . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $ 1 �00

CLOCK/CALIMEM CARTRIDGE
• Keeps track of hours, min., sec., 1 0th of

7EE2 JMP >$7526 Go to new routine sec., month, date, day of week, year, leap
LOA year ' Programmable interrupt timer with
7F26 #$FE Load 254 = Printer
0.5, 5.0 and 60.0 second i n tervals . Menu
7F28 STA <$6F Store in Device Number location driven software in ROM ' 8K RAM ' Clock
7F2A LOA #$5B Load [ battery backup.
Assembled & Tested . . . . . . . . . . . . . . . . . $ 89.95
7F2C JSR >$A282 Go print w/8K RAM . . . . . . . . . . . . . . . _ . . _ . . . . . . . . $1 1 9.95
7F2F LOA <$68 Load line number
7F3 1 JSR >$BDCC Go print COMING SOON!
• Expansion system, speech 110 transducers
7F34 LOA #$50 Load ) and more.
7F36 JSR >$A282 Go print
For .free information, write to:
7F39 LOA #$00 Reset Device Number location
7F3B STA <$6F CYBERTRON
3 1 3 1 Timmons #723
7F3D JMP >$7EFI Return to original code Houston. Texas 77027
(71 3) 840'1 27 2
... 536

>' See List o( Advertisers on pege 138 HOT CoCo Jun� 11)83 65
HARDWARE

BY WILLIAM C. CLEMENTS

SPEECH FOR
THE COLOR COMPUTER

! recently decided to build a speech


. synthesizer as an expansion unit for
Make your Color Computer that could contain its own RAM and
EPROM, so that it could be used inde­
my department 's student computer fa­ a real conversation piece pendently of the level of Basic and the
cility. The result was a plug-in synthe­ by building this plug-in amount of available memory in the
sizer cartridge that you can program in computer, at least for machine-lan­
Basic or in machine language. speech-synthesis unit. guage speech programming. The circuit
The cartridge also has two 24-pin diagram of the result is shown in Fig. 1 .
IC sockets, each of which will accept One input bit and 9 outPlit bits are
2K of RAM or EPROM, and adds needed to interface the SC-Ol and asso­
two hardware timers for control or ciated circuits to the computer. I chose
other applications. the 6522 Versatile Interface Adapter
The project is based on a simple The SC�I includes on-chip audio (VIA) to provide the necessary parallel
speech-synthesizer circuit, built around generation, waveform shaping, and ports. The 74LS 1 38, a three- to eight­
the Votrax SC�I integrated circuit that low-level audio amplification. You need line decoder, separates the 16K address
Steve Ciarcia describes in the September only a latched parallel port and simple space between $COOO- $FFFF into eight
1981 issue of Byte (p. 38). The SC�I , a logic circuits to interface it to the bus 2K partitions and generates a low-true
CMOS LSI chip, phonetically synthe­ system of the Color Computer. select signal over each partition. The
sizes speech using an 8-bit code, 6 bits of $FOOO select is used along with the four
which specify the phoneme. It thus The Speech-Synthesizer Greuit lowest-order address lines to address the
generates 26 or 64 possible phonemes in With some slight modification, the 1 6 internal VIA registers between
four categories: voiced, fricative, nasal, synthesizer described by Ciarcia can $FOOO-$FOOF, and the $EOOO and
and silent. The other 2 bits of the code be packaged as a self-contained plug­ $ESOO lines each select a 24-pin IC
can be used to vary the inflection or in unit not much larger than a game socket that can contain either RAM or
pitch of the sounds . cartridge. I decided to build a unit EPROM.
The VIA includes two parallel 110
ports, called A and B. The bits in each
port can be configured individually
either as inputs or as outputs by setting
or clearing corresponding control bits in
the VIA data-direction registers. Port A
is used here as an output port to send
the phoneme and inflection codes to Hie
SC-Ol . The 2 10west-order bits of port B
are control lines . PBO is used as an input

System Requirements

.Extended Color Bask


16K RAM
Printer Optional

Photo I. Computer with Speech Synthesizer and Speaker Attached

b6 HOT CoCo Jun� 1983


off the side projection with the 25
contact fingers that plug into the Ap­
ple. Vector also makes a similar board,
the Vector 4609. If you make your
own board and are not interested
in room for further experiments, you
can cut it off at 100 mm (about 4 inches)
in length, which is enough for the circuit
described here.
You can use any size board that will
fit in the computer slot and is at least
100 mm plus the length of the contact
fingers. If you do choose the 190-mm
length, there's room to mount a 2-inch
speaker on the end of the board. I de­
cided to leave that room open for future
Photo 2. Top View of Circuit Board
expansion and mounted a small audio
jack for an external speaker on the end
of the board. Another possibility is to
use the sound iri'put pin on the cartridge
connector to feed the speech through
the TV audio.
With the board prepared, I inserted
low-profile IC sockets as shown in
Fig. 2 and fastened each with a dab
of epoxy glue at each end. Then I
wired the circuit point-to-point using
a Vector wiring pencil and a fine-tipped
soldering iron. I recommend a magni­
fier lamp, unless your close vision is bet­
ter than mine.
Be aware of the space restrictions im­
posed by the computer slot height. You
Photo 3. Bol/om View of Circuit Board have only about 12 mm to work in
above the board and 8 mm below,
bit, and accepts the AIR, or synthesiz­ edge-connector inside the computer's where the wiring goes. Lay the disk ca­
er-busy, signal from the SC-O l . PBl is cartridge slot. I found a 30-by-80 mm pacitors down flat and use the small,
an output bit and is used to strobe the scrap of double-sided PC board stock square-type trimmer potentiometers
synthesizer for each phoneme. The and laid down 40 short strips of 1.5-mm and the smallest electrolytic capacitors
other 6 bits of port B are not used. wide resist tape, 20 pieces per side, with you can find. I got all my parts from
The inflection bits, sent out on PA6 2.5-mm spacing to match the cartridge Jameco Electronics (1355 Shoreway
and PA7, are latched separately by a connector. I made these pieces of resist Road, Belmont, CA 94002) except the
74LS74 dual flip-flop. The low-level from Scotch fIlament tape with a razor SC-O l , which came from Micromint
audio output from the synthesizer chip blade and a ruler, but you can buy pre­ (917 Midway, Woodmere, NY 1 1598).
is amplified to speaker level with an cut resist if you wish. Unfortunately, there's not enough
LM386 power amplifier. The SC-Ol After etching with ferric chloride so­ room to use wire-wrap construction.
control circuits and the audio amplifier lution, cleaning, and drying, I trimmed Point-to-point work is tedious but pro­
come directly from Ciarcia's design; the edge having the contact fingers so it gresses well with practice. If you have
however, his octal data latch on the in­ made a snug fit in the computer's edge experience with PC board design, you
flection and phoneme-code lines is re­ connector. Do this carefully; the fingers might prefer to etch a board for the
placed by the VIA in my implementa­ must line up squarely on both sides with whole circuit.
tion of the synthesizer. the contacts in the computer. It's best to If you don't want to experiment with
In addition to the ports, the VIA also trim conservatively with a fine saw and the RAM or EPROM, you can simplify
contains two interval timers, plus reg­ then fmish the job with a hand fIle and the circuit by using only one chip-enable
isters for serial-parallel data intercon­ frequent trial plug-ins. signal to access the VIA. Two such sig­
version. These features can be operated I then cut an 8O-by-l90 mm piece of nals are provided on the cartridge con­
using a variety of options unnecessary Vector perforated board and bolted the nector, one at $COOO (on pin 32) and
to this project. You should check the small piece with the contacts onto one one at $FF40 (on pin 36). You can con­
MCS6522 data sheet from MOS Tech­ of the 80-nun ends. This makes a neat, nect either of these to pin 23 of the VIA,
nology for this chip's many features if cheap, general-purpose expansion pro­ leaving out the 74LS 138 and associated
you're interested in using them in other totype board for the Color Computer, circuits as well as the 24-pin sockets. If
projects. with plenty of room for experimental you do, be sure to fix statement 30 in
circuits. Program Listing 1 to reflect the new
Packaging the Synthesizer If you prefer not to make the board VIA address.
First, I made a small etched board yourself, you can buy an expansion You could plug the bare board
with contact fingers to plug into the board for the Apple computer and cut into the computer, taking care that
HOT CoCo Jun� 1983 67
the metal door doesn't short anything fed through POO, will be at the low logic where the binary value of P contains the
out, but it's a good idea to protect the level during voicing. bit pattern for the inflection and pho­
ICs and wiring. Test POO and do nothing until it re­ neme code.
If you 're not lucky enough to find a turns to logic high. When it does, the
suitable box, you might want to make SC-OI is ready to accept another pho­
one to hold the circuit board. You can neme. The data on PAO-PA5 must be A Phoneme-list-Processing Program
cut down two pieces of perfboard, each stable about 450 ns before STB goes To make it easy to try different
to the same dimensions as your circuit high; that requirement is automatically phoneme combinations and edit a
board, and bolt one to the top and one met by the use of latched 110 ports. The phoneme group to improve enunciation
to the bottom, using standoffs at the lOO-l-'s delay is taken care of by the time of a phrase, a program should handle
corners. Make sure the finished product required to interpret and execute Basic the input, deletion, insertion, change,
will still fit in the computer's slot. statements. and addition of phonemes, as weU as
These operations are handled easily the pronunciation of the phoneme list.
Programming the Synthesizer in Basic by the following statements. Listing I presents such a program, writ­
Ciarcia's article describes the oper­ POKE&HFOO2, 2 :POKE&HFOO3 ,255 ten in Extended Color Basic.
ation of the synthesizer in detail, and sets data-direction register B in the VIA When run, the program first directs
the SC-OI data sheet, which Micromint to binary OOJOOO I O (configuring POO as you to input a series of phonemes using
supplies with the chip, gives timing dia­ an input bit and PBI as an output) and the standard SC-OI mnemonics. If you
grams and procedures for interfacing stores binary } I I I I I I I in data-direction want to experiment with the inflection,
and driving the chip. Here, I 'll briefly register A (configuring all bits of port A you can preface the phoneme with the
summarize the operation protocol . as outputs). This statement must be ex­ digits 1 , 2, or 3 . These values cause the
To voice a phoneme, take the strobe ecuted before any attempt to voice SC-OI inflection inputs 12 and II to take
signal STB (supplied at PBI) low, and phonemes. When you want a phoneme on the binary values 0 1 , 10, or 1 1 ,
place the binary phoneme code onto spoken,· execute the subroutine: respectively.
PAO-PA5 and the inflection code onto 100 POKE&HRXXl,O:POKE&HFOOI , P: The higher the number is, the higher
PA6 and PA7. After at least a lOO-mi­ POKE&HRXXl , 2 the pitch used to speak that phoneme. If
crosecond delay, take STB high to 200 IF PEEK(&HF<XX» AND 1 THEN no digit prefaces the phoneme, 12 and I r
speak the phoneme. The AIR signal, RETURN ELSE 200 are both set to zero, which produces the

+ 12v
IOO�f
TO
pO
���� ---11>--�)

( ( 2) + 12v

, .�
2�V
ELECT ROLYTIC 10... F
+ 25V
+
'OK
� 2�V r-_+
ELECTROLYTIC
� ( 33. 34 1
GND
ELECTROLYTIC 10...F
4.7K
lOOK 2�V
TYPICAL FOR 8
+ ELECTROLYTIC
6522
.�V
Ion
en
SPEAKER :gl;�� (-+-+� 1 9 ) +5V
$FOOO- $FOOF
10
P80

00 ItO)
II
DO PAO 1-'-
1 � O-t-++-1f-+-----,I-'-i
. PO
O. I ,. F
Il
01 ti l ) » 01
PA i ' PI

CD
12 20
1

� ____
PAl Pl PI N 7 PIN 14
i-"-------<�_+_----""I'
02 ( 12 ) 3 02
2 OF 7 4 1 6
0 PAl 5 P' AF" _
ZZ
03 ( 1 3) 1 , Dl

.
10

I
2 R/W
I-'-----�--___'_l
PA4 6 P4 AO
9' 0 4

S
04 ( 14) (I8
7
o � I I �I
28
0
5 PA 5 P' )�I ' "F I 0 '
2 _
06 (161 7 06 SC-OI I-_ """'_...!J -'--i

I
. �v
+ 12V
26
07 1 17) 07
II. ,.
AO ( 191 31 Fl S O 74LS74 2716 EPROM
17 ASI 8
OR
I
AI (201 PA6
(19)
, 01
O. O I... F 6 1 16 RAM
12 I) Ii
l6
A2 IIS2 12
PA7 02 $£800-
7
AS)
l (201 $EFFF
_6
A3 (221 �

(21)
2.2K 24
.�v cs,
(221

lo" ffi
(231
ffi ( � I
n 02
124)
E (61
22 A/W (201
R/W I IS) 10K TRIMMER
(COARSE (26)
'PITCH AOJ,) Z>
(271
6.8K ..
(281
129)

,.
ClO)
A8 1 1 ( 30 )
A812 1 31l ,, . 74L S l 3 8 'J 0.1,.F (I I)

A813 ( 3 ) 7 e II
(12)

. .,
'14

A814 (38)
{l3l
Y 5 10 NUMBERS I N PARENTHESES REFER TO COLOR (14'
COMPUTER'S CARTRIDGE CONNECTOR.
A815 (39) ALL CAPACITORS DISK CERAMIC EXCEPT A S NOTED.
(15)


--v-- -"6
ALL AESI STORS 1/4 WATT. (161
OF 7416.
(17)
4.71<
. �v

Portions of schematic reprinted by permission of Byte magazine, a McGraw-Hili publication.

Fig. 1. Circuit Diagram Jor the Speech-Synthesizer Plug-1n

68 HOT COCO Junt 1983


TO M M I X SO FTWA R ,E
- FO R T H E COLOR COM PUT E R & TDP 1 00 - 3424 Co l l e ge N . E . , Grand Rapids, M I 49505 (61 6) 364·4791 -

DO N KEY SPAC E $28.95


KI N G SH UTT L IE TAPE
1 983 ONLY
1 982
32K Ext. Basic
32K Mach i n e Language
$26.95 tape This program gives you the real
$29.95 disk fee l i n g of f l i g ht . F u l l i n strumenta­
tion co mplete to the max. Actual
ARCADE ACTION · How h i gh can you cl imb? Four f u l l graphic s i m u lation of space f l i ght. 32K
screens. Exciting Sound · Real istic graphics. Never before has Ext. Basic
the color computer seen a game l i ke this. Early reviews say:
Just l i ke the arcade · Simply outstanding !

PROT ECTO RS
'Exciting fast paced arcade
game that looks and plays l i ke
t h e_ p o p u l a r a rcade game
"DEF E N DER",
KATERPI LLAR
Wave after wave of enemy
fig hters drop bombs on your
city. Destroy them before they
ATTACK
Outstan d i n g graphics and s o u n d w i l l
destroy yo u r city. Soon the e n d all of those trips to the arcade. So
mother ships appear firing laser blasts at you. Watch for the much like the arcade you have to see it
heat seeking m i nes. to believe i t . Req u i res Ext. Basic.
Your defense I n c l udes your laser cannon plus fo ur smart 16K MACHINE LANGUAGE $21.95
bombs on each of yo u r four s h i ps. A new ship with each 5,000 DISK $24.95
points.
High resolution graphics with four colors make this new 32K
arcade game the one tor others to follow.
S24.95 TAPE $27.95 DISK
SEARCH -A-WO R D
Th,i s Program generates a word search puzzle to your specif-ica­

t\. -J.. g?kt�ci� g��f�


t i ons. You spec i f y the size of the puzzle and the n u mber of
words that it i s to h ide within the puzzle. 16 K or 32K Ext. Basic.
� t:��n gi ��
l
� TAPE
FLEX VERSION
S17.95
..... graphics in the fairway or on the S27.95
green. Helps your game.
32K EXTEN DED BASIC S1 7.95
UT,I LlTI ES
B I R D ATTACK·A fast paced mach i n e lang uage arcade game. COLOR MON ITOR·Wr itten i n position independent code. (May
Shoot the birdmen before they descend upon yo u . Watch out be 'located in any free memory). Very compact. Oniy occupies
for their bom b s ! 1 6 K Machine Language $21.95 1 1 74 bytes of memory. Full. Feat ured. Includes Break·Pointing
of machine lang uage programs, register di sp lay and modify,
MAZE RACE·Maze race is a one or two player game. Play either memory d i s p l ay and modify, and block memory move com·
against the built i n t i mer or against your favo rite opponent. 1 6K mands. Displays memory i n hex and ascii format on one line 8
Machine Code S1 7.95 bytes long. MAC H I N E LANGUAGE S24.95

SOLO POOL·Now play pool with yo ur color computer. Two ROM·Th i s program is a utility that w i l l move "most" 8K Rom·
players. Plays l i ke mach ine language. S u per color. H i gh reso l u ­ Packs to di sk and allow you to run them from disk. Easy to use.
t i o n graphics. 1 6 K Ext. Basic S1 7.95 'Requires 64K. S1 7.95

OTH E R G R EAT GAM ES


SCREEN P R I NT ROUTINE·Using your Epson or Microline
Printer. Print the screen contents on a f u l l size 8 112 x 11 sheet.
ALL PROGRAMS REQU I R E 1 6K
16K Ext. Basic S1 7.95
'MOON LAN DER-Fantastic Graphics. Land on the Moon if you
TAPE D U P E - Brand new machine language program that
can . 2 Programs. Ext. Basic S1 7.95 copies any tape effortlessly. Completely automatic. S1 6.95
DANCING DEVIL-Watch h i m dance to music or program h i m
DISK TO TAPE·Dump the contents of any disk to tape
yourself. Mac h i n e Language. S14.95
automatical ly. Machine Language. S17.95
WAR KINGS- Battle·to save your castle and king. H igh reso lu·
tion graphics with outstan d i n g sound make t h i s one a real win· TAPE TO DISK·Load the contents of any tape to disk
nero 1 6 K Mach ine Language S1 7.95 automatical ly. Machine Language. S1 7.95

ADVE N T U R ES
MAIL lIST·Maintaln a complete mai l i n g l ist with phone
n u mbers etc. Ext. Basic. S1 7.95
TREK·1 1s-Travel thru space with Spock and Capt. Kirk. Adven·
TH E FIXER·Havlng trouble moving tnose 600 Hex progams to
ture. To ug h ! Ext . Basic. S1 7.95
d i sk? The fixer w i l l help. Compiete'ly automatic. S17.95
SHIPWREC K·Escape from a desert isle if you can. Great
Adventure! Ext. Basic. S1 4.95 TAPE CAT·AII new machine lang uage prpg ram l i sts contents of
ESCAPE FROM SPECTRE (Graph ic Adventure)-You are a tapes to printer. Make a catalog of yo u r tapes. S1 7.95
secret agent for British Intell igence sent on a mission to obtain PROGRAM PRINTER UTllITY·This program will list basic pro·
the secret nerve gas formula being developed by S.P.E.C.T . R . E. grams to your printer in two co lumn format. Saves paper and
to destroy the world. 1 6 K Ext. Basic S1 7.95 makes your listing look professional. Disk based. S1 7.95

�, ADD $1 .00 POSTAG E & HAN DLI N G - TOP ROYALT I ES PAI D .-- 1 7 7

� /M ICH IGAN R ESIDENTS ADD 4% SALES TAX - LOO KING FO R N EW SOFTWARE

... See USI 0 1 Advertise,s on page 138 HOT CoCo Jun� 1983 69
standard default inflection level. The you'll get the entire phoneme list. Enter­ will direct the program into a screen­
default level is good enough for most ing Q in place of a phoneme will quit the oriented edit mode, allowing you to
purposes, since the SC-Ol 's internal cir­ entry of the current list and start over modify the existing list using commands
cuits already produce slight inflection with a new list. Entering TAPE instead very similar to the line-editing features
changes to improve the naturalness of of a phoneme will enter a routine that of Extended Color Basic. The current
the speech . lets you save or load the phoneme list phoneme list is displayed at the top of
If you enter a null string instead of a using a tape recorder. the screen, along with a cursor that can
phoneme by pressing just the enter key, Entering EDIT in place of a phoneme be stepped backwards or forwards us­
ing the left-arrow and right-arrow keys.
The up-arrow key positions the cursor
after the last phoneme, and the down­
arrow key sends it to the start of the list.
P I N 2 DIRECTLY
PIN I ON TOP�

UNDERNEATH Modifications to the list occur with


the phoneme immediately following the
-MIN IATURE PHONE cursor. Press D to delete the phoneme.
JACK FOR

<D SPEAKER Press C, type a new phoneme, and press


enter to change the phoneme. Press S to
6�22
speak the whole list, and press Z to

J
eol'll l'll
speak only that part of the list between
the current cursor position and the end.
<D Press P if you want to list all the

I
I
PIN
PIN
39
40
ON TOP; -­
DIRECTLY
� __ ��=� P 1 'LS "8 1 �� phonemes on a line printer. Press Q to
quit the editing process , delete the
I
UNDERNEATH ==
IOTHERS NOT SHOWN)
whole list, and go back to the start of
the program to begin a new list.
As in Extended Color Basic edit com­
Fig. 2. Top View of Circuit Board. Showing Layout of Major Components mands, several subcommand functions
can be entered and exited during the

Example Phoneme Hex Code Duration Example Phoneme Hex Code Duration
Word Symbol (ms) Word Symbol (ms)
blade AY 22 6S
pocket EH3 00 59
yell YI 22 80
end EH2 01 71
mission VH3 23 47
heavy EH I 02 121
hop AH 24 250
(no sound) PA0 03 47
pride P 25 103
puller DT 04 47
cold 0 26 185
rake A2 05 71
pin I 27 185
ball
move
AI 06 103
V 28 185
measure ZH 07 90
onJy Y 29 103
tear
honest AH2 08 71
T 2A 71
inhibit 13 09 55
roost R 2B 90
inhibit 12 0A 80
sleet E 2C 185
inhibit 11 0B 121
wire W 2D 80
maybe M 0C 103
glad AE 2E 185
under N 0D 80
after AEI 2F 103
bolt B 0E 71
salty AW2 30 90
vague V 0F 71
abo ut VH2 31 71
cheer CH 10 71
uncle VHI 32 103
shoe SH II 121
supper VH 33 1 85
zip Z 12 71
bold 02 34 80
awful AWl 13 146
sling
hoard 01 35 121
NO 14 121
you IV 36 59
father AHI 15 1'46
June VI 37 90
looking 001 16 103
there THV 38 80
h ook 00 17 1 85
thick TH 39 71
fie L 18 103
br ick
herd ER 3A 146
K 19 80
ready EH 3B 1 85
just J IA 47
be EI 3C 121
hope H IB 71
mall AW 3D 250
gate 0 IC 71
(no sound) PAl 3E 1 85
fear F ID 103
(no sound) STOP 3F 47
made D IE 55
mw S IF 90 (T must precede CH for a hard CH sound;
game A 20 1 85 D must precede J for a hard J sound.)

Table 1. English-Language Phoneme List

70 HOT CoCo JUIK 1983


COLOR COMPUTER/TDP-1 00 �
COLOR
ALI EN DE F E NSE COLOR CATERPI LLA�
by Doug Schwartz by Rug by Circle

One of the fastest action arcade games!


Written in Mac h i ne Language. Don't settle for less. Be sure to ask if the
1 6K Cassette $19.95 program was produced by Soft Sector Market­
ing so you don't get the wrong version.
1 6K Cassette $ 1 9.95
DEATH TRAP Machine language

by Rugby Circle

COLOR
GRAPH IC EDITOR
by Larry Ashmun
At last, a true Graphic Drawing program that permits
the creation of graphic pictures on the screen storing
them in one of 4 locations. and recalling them as
needed for review.

The pictures can be saved to disk to be loaded into the


micro works disk editor. The graphics are saved in
Assembler format or Basic Data Statements, but details
are provided for using the information in a BASIC
program. Works on cassette or disk systems.

Cassette $ 1 9.95
A larger-tha n-screen maze game. Arcade
style, fast-action. Written in Machine Lang­ Written in Machine Language, but requires
uage. Requires Joystick. Extended or Disk Basic.
.... 87
1 6K Cassette $19.95

SOFT SECTOR MARKETING,


I N C O R P O R A T E D I

Middlebelt • Garden City, Michigan 48 1 35


Order Line 800·521-6504
n Orders & Questions 3 1 3-425-4020

.... See List of Advertisers on page 138 HOT CoCo Jun� 1<)83 71
editing process. Pressing X while in edit
Program Listing. Phoneme-List Entry and Editing Program mode enters the extend function, which
10 ' PHONEf.1 E - L I S T EIITRY AND E D I T ING PROGRAfoI
positions the cursor after the last
20 ' BY W I L L I AM C . CLEM EIITS , J R . phoneme in the list. Typing additional
25 ' REQU I R E S 1 6 1: AND EXTENDED BAS I C
phonemes, each followed by enter, adds
30 A= & H F0 0 0 : Q= 2 4 7
40 POKEA+ 3 , 2 5 5 : PO K EA+ 2 , 2 ' CON F I GU R E V I A them successively to the end of the list.
s a D I HC $ ( 6 4 ) , P $ ( l 0 0 ) , Z ( 1 0 0 ) , LG ( H 1 0 ) Pressing H while in edit mode enters
6 0 FOR I = l T0 6 4 : READC $ ( I ) : NE X T
7 0 P = 6 3 : GOSUB 5 8 0 : J = 1 ' S I L EN C E SYNTHES I Z E R & B EG I II NEW L I ST
the hack function. Hack works like ex­
80 CLS : P R I NT " D E G I tl A NEI� L I S T OF PHONEt I E S " tend, except it deletes all phonemes fol­
90 I N PUTA$ : I F A $ = " ED I T " THEN 1 2 0 ELSE IF A $ = " " THEN 1 1 0 E L S E I F
lowing the position of the cursor when
A $ = " Q " THEil 7 0 ELSE I F A $ = " TAP E " THEN 4 8 0
1 0 0 GOSUD 6 0 0 : J =J + 1 : GOT0 9 0 hack was entered, and lets you extend
1 1 0 JH=J- 1 : GO S UB 6 9 0 : GOT0 9 0 ' S P EAK TH E L I S T the list from that point rather than add
1 2 0 JM=J-1 ' ED I T HODE B EG I N S H E R E
1 3 0 GOSU B 6 5 0 : Lil=LA : P R I NT @ LB , CH R $ ( 1 3 8 ) ; : LC=LB : GOSUB 7 1 0
at the end.
1 4 13 F = l : i F P E E K ( 3 4 3 ) = Q THEN J = J - 1 : LC=LD-LG ( J ) - 1 : (;OSUB 6 7 0 : GOT0 1 4 0 To insert phonemes into a list, first
: E L S E 1 5 0 ' L EFT AR ROl� SPACES BACK
use the arrow keys to place the cursor
1 5 0 IF P E EK ( 3 4 4 ) = Q THEN J = J + 1 : L C = LB + LG ( J - 1 ) +1 : GOSUB6 7 0 : GOT01 4 0 : E
LSE160 ' R I G H T ARROl� SPACES FORHARD between the phonemes. Then press I
160 I F P E EK ( 3 4 1 ) =Q THEN J = J M + 1 : LC = LA : GOSUB6 8 0 : GOT01 4 0 : ELS E 1 7 0 ' u and type the phonemes you want to in­
P ARROl'I GOES TO END
170 IF P E EK ( 3 4 2 ) =Q THEN J = 1 : LC = O : GOSU B 6 8 0 : GOT0 1 4 0 : ELS E1 8 1l ' DmlN
sert, pressing enter after each. You can
ARRO\'I GOES TO START insert at the beginning or end of the list
180 IF P E E K ( 3 4 1 ) = 2 5 4 THEN P R I N T @ 4 9 8 , " c h a n g e " ; : A $ = " " : G0T04 2 0 : E L S E if you hit the down- or up-arrow keys,
1 9 13 ' C- K E Y CHANGES ONE PHO N E H E
190 I F P E E K ( 3 3 8 ) O Q T H E l I 2 6 0 ' X- K EY EXTEtlDS TH E L I ST respectively, just before pressing I. The
2 0 0 J =J M + l : LC = LA : P R I N T @ 4 9 8 , " e x t e nd " ; shift up-arrow key combination works
2 1 0 GOS U B 7 3 0
2 2 0 AA $ = I lIK EY $ : I F A A $ = .. .. TH EN 2 2 0 E L S E I F AA$=CHR $ ( 1 3 ) THEN 250
as in Extended, Color Basic, causing the
E L S E I F A A $ = CH R S ( 9 5 ) TH EN 2 4 0 ELS E 2 3 0 program to exit the subcommand func­
2 3 0 A $= A $ + AA $ : GOT0 2 2 0
" ; : GOT01 4 0
tion and return to edit mode. The edit,
2 4 0 P R I N T@ 4 9 8 , "
250 GOSUB 7 2 0 : GOT0 2 2 0 change, and subcommand modes are
260 I F P E EK ( 3 4 1 ) = 2 5 1 THEtl GOSUB 6 9a : GOT01 4 a : ELS E 2 7 0 ' S - K E Y S PEAKS labeled at the last line on the screen as a
ALL
2713 IF P E E K ( 3 3 9 ) =251 THEN P R I NT @ 4 9 0 , " " : GOT07 0 : E L S E 280 '
reminder.
Q - K E Y STARTS NEil L I S T OVER When you're satisfied with a group
2 0 0 IF P E E K ( 3 4 2 ) = 2 5 4 THEN J L = LG ( J ) : FORI = J + l TO Jl I : P $ ( I - l ) =P $ ( I ) :
of phonemes and want to keep it for
Z ( I - I ) = Z ( I ) : LG ( I - I ) =LG ( I ) : Il E XT : J t1=JM-l : GO S U B 6 5 0 : GO S UB 6 8 0 : GOSUB7 1
0 : ELS E 2 9 0 ' D - K E Y D E L ETES ONE PHONEME future use, you can save the phoneme
290 IF P E EK ( 3 3 B ) = 2 5 3 THEll P R I ll T @ 5 a 0 , .. h a c k .. ; : GOSUB 6 7 0 : A $= .. .. : GOT03 data to tape. The array of phoneme­
0 11 : ELS E 3 3 0 ' H - K E Y EtlTERS HACK FUNCTION '
3 0 0 A A $ = I N K EY $ : I F AA $ = " " THEN 3 0 13 E L S E IF AA$=CH R $ ( 1 3 ) THEN 3 2 0
plus-inflection codes, the total number
ELSE I F A A $ = CB R $ ( 9 5 ) THEN 2 4 0 E L S E 3 1 0 of phonemes, and the length of each
3 1 0 A $ = A $ +AI\ $ : GOT03 0 0
3 2 0 GOSUB7 2 0 : JM = J - 1 : LA=LD : GOT03 0 a
mnemonic are saved to tape, or loaded
3 3 0 I F P E EK ( 3 3 9 ) = 2 5 3 TH Etl P R IH T @ 5 0 0 , " i n s e r t " ; : GO S U B 6 7 0 : A $ = " " : GOT from a previously saved tape, by typing
0 3 8 0 : ELS E 3 4 0 ' I - K E Y I N S E RTS PHONEtiES T when in edit mode and following the
3 4 0 IF P E E K ( 3 4 2 ) =251 THEli 4 813 E L S E 3 5 0 " l' - K E Y ENTERS TAPE HODE
3 5 0 IF P E EK ( 3 3 8 ) = 2 5 1 THEN P R I N T * - 2 , CH R $ ( 1 0 ) : FORI = l TOJM : PR I NT # - 2 , instructions printed on the screen. You
P $ ( I ) + " " ; : N E X T : PR I N T # - 2 : GOT01 4 0 : E LS E 3 6 0 ' P - K EY P R I NTS THE L I S T can also enter the tape mode when you
3 6 13 I F P E EK ( 3 4 0 ) = Q T H E N LG = J : GOSUB7 a 0 : GOT01 4 0 : E LS E 1 4 0 ' Z - K EY S P E r

AKS L I S T AFTER CURSOR


first prepare the list.
3 7 0 ' " I NS E RT " FUNCTION
3 8 0 AA $ = I NK EY $ : I F AI\$= " " THElI 3 80 EJ. S E IF A A $ = CI I R $ ( 1 3 ) THEIl 4 0 0 Testing the Synthesizer
E L S E I F AA$=CHR $ ( 9 5 ) THEN 2 4 0 ELSE 3 9 0
3 9 13 A $ = A $+AA $ : GOT0 3 0 0 Now you can check out your synthe­
4 0 0 FOR I =JN TOJ S T E P - 1 : P $ ( I +l ) = P $ ( I ) : Z ( I + l ) = Z ( I ) : LG ( I + l ) = LG ( I ) : N sizer and start using the program . With
J:;XT : GO S U B 7 2 a : GOSUD6 5 0 : P R I N T (lLB , C I I R $ ( 1 3 8 ) ; : GO S U B 7 1 0 : P R I N T @ 4 9 8 , " i n
s e r t " ; : GOT03 0 0
the power off, plug the synthesizer into
4 1 13 ' · CHANG E " FUNCTION the cartridge slot and attach a speaker . .

4 2 0 A A $ = I N K EY $ : I F AA$= " " THEN 4 2 0 E L S E I F AA$=CH R $ ( 1 3 ) T H EN 430 Turn on the computer and enter the
ELSE A $ = A $ +AA $ : GOT0 4 2 0
4 3 13 A $ = R I GHT $ ( A $ , LEtl ( A $ ) - l ) : GOSUD6 0 0 : I F J > JM TH EIl J11=J program given in Listing 1 omitting the
4 4 13 GOSUB 6 5 a : GOSUB7 1 0 comments, or read it from tape if
450 L C = L B + LG ( J ) + l : J = J + l
4 6 13 P R I NT @LC , CI IR $ ( 1 3 8 ) ; : L B = LC : GOT0 1 4 0
you've already keyed it in and saved it.
4 7 13 ' TA P E t,lODE Run the program and enter the follow­
4 80 P R I N T @ 4 2 6 , " sa v e o r l o a d " : P R I NT @ 4 5 8 , " S or L " ; : I N PUTA$ ing phoneme mnemonics:
490 P R I N T @ 4 0 9 , " f i l e name " ; : I N PUTB $ : P R I NT @ 2 5 6 , " * * * p r e s s enter to
b e g i n * * * " ; : I NPUTI
5 0 0 IF A $ = " S " THEN 5 1 0 E L S E I F A $ = " L " TH EN 5 2 0 E L S E 5 0 0 TH I S P AO P AO I S S P AO Y 00 R
510 CLS : P R I NT @ 26 7 , " r e c o r d i ng " : OPEN " 0 " , # -1 , B $ : P R I N T # - 1 , JH : FO R I = l T PAO K UH L UH2 R PAO K UHI M P H
OJ!1 : P R I NT # - l , P $ ( I ) , Z ( I ) , LG ( I ) : NEXT : CLOS E # - l : J = JtHl : GOT0 1 3 0
I V T R PAO S P E K I NG P A l P A l
5 2 0 CLS : P R I N T @ 2 6 7 , " l o a d i n g " : OP E N " I " , ' - 1 , B $ : I N P U T ' - l , Jt1 : FOR I = l TOJ
N : I N P U T # - l , P $ ( I ) , Z ( I ) , LG ( I ) : N EXT : CLOS E # - l : CLS : P R I N T " PHONEHES AND
STOP AEI Y PAO H O P PAO Y U I PAO
CODES ARE LOADED . " : P R I N T " ENTER nOR E , S P EAK , OR EDI T . " : J =JIHl : GO H A E I V PAO F U H I N P A l W EH2 I 3
T0 9 0 TH PAO P AO Y UH R P AO N I V W
530 ' PHON Ef.1E NNEt10N I C L I ST
PAO T AWl Y YI STOP
540 DATA E H 3 , E H 2 , E H 1 , PAO , D'1' , A2 , Al , ZH , AI I 2 , 1 3 , 1 2 , 1 1 , t-l , N , B , V , CH , S H ,
Z , Mil , NG , AH I , 001 , 00
5 5 0 DATAL , K , J , H , G , F , D , S , A , AY , Y1 , UH 3 , AII , P , 0 , I , U , Y , T , R , E , W , AE , AEl , When the phonemes are all entered,
AH2 , UH 2 , UH l , UH
5 6 0 DATA02 , 0 1 , lU , U l , TH V , TH , E R , EH , E1 , A\� , PA l , STOP
press the enter key and you should hear
5 7 13 ' *** S U B ROU T I N ES *** a fair rendition of "This is your Color
580 POK E A , O : POKEA+l , P : PO K EA , 2 ' S PEAK A PHONEME Computer speaking. I hope you have
590 IF P E E K ( A ) ANDI TH EN RETURN ELSE 5 90
Listing continued fun with your new toy." Adjust the
pitch and volume trimmers to your lik-
72 HOT CoCo Jun� 1983
�w
��� ======�����
���_� y�S
&1_ _ c- Comc>utet. n II uoed '0 Odd
oorrvenlence Ind �'-"' to your lOftw.r•.
Auto Run will help you crMle your Uti. lCI ..n
""" tho g'_ Odho<. r... grophlco Odlto< •• _
Tape information
MIlllJl8I=eDt System
you to chooM. bactlground color and border a¥e. A ueer-oriented. IUy 10 UN peraonal database
lJII"ng the arrow keys Ind �I other command. managemant l'fItlm fof the lRS-eo" ColOr Com­
you CoIn draw piClu,... bIodc 1«1� and aJeo Incfude pute' with theM outltanding t ••tu'n:
... . • keeps til" 01 programs, nam.•. �,. ...s, binh­
Auto Run will generate . machi"'langu8ge 5oeO- daY'. recIpes. clllS or club roslers. any1h.ng
• program to prKMd your program on 'he \ape. "variable reccwd end held lengths
Then. to .." up your program, "mpty type "phraM IUbati1ulK)fl editor
a.OADM 10 kled m the Auto Run IoMer program, "up TO B uHf-definable helds
wtuch will lhen autornaticat ly ItIn hMft up. d�lay • ML 1011 (up 103 field.). ...reh and cs.lele functIons
)'OUr tiU. terMn, Ioed your program and lhen RUN ·2 ..arch modes - ,."ge and ilem
.

0< EXEC It. ·u ....-defi nab'e printer tormal. lor any pt.nler
A&.a you ....., record . 'lOCal or mUlicaJ intrOCSuc­ • up 10 230 characters per record

�B�D
, tion prec.du'O your program. The Auto Run lotIder For U4.15 you get the dalab... management
will control the ludio OtVoft. l'yS1em. our full documentation whICh Includes a
Buic programa can be .., TO kled anywhere In ""efe � guldl and.a programmer', guide. and our
momory _ aero (.... PCLEAR 0 pogo). ,., Blbhography ot anicIH relating 10 Irle COlor
Softwar. WheW,: TN Auto Run prefiX may be
CJl)ended 10 your aottwar. products
Computer. Requirn 16K Ext.nded
tKOITImended.
8151C.
32K

AulO Run Ie '14." and tncluClM compfell dOCu­ 1M2 r.MS _109'"PhY - .. ..5
rnen1.llion and an ....mbty IOurCl tifnng. • COMPUTERS UP
ALL T R S - 8 0 MODELS

s��x ��.
Aiqui,n llf( Extended Buic.
• PRINTERS
• ACCES SORIES CALL F O R O U R COMPE T I T i V E
A NnNhonal and educat.one' version of • popular • GAMES P R I C E S ON A L L MAJOR GRAN D S
party game tor the TRS-80' �or Comput.r .
For 1 10 10 players Loed a lIory Into the com·
putar. TN ""'vers are uked to IUppty a noun, verb,
pan of bOdy, oeIIbrity, etc. whlCrl lhi program uses
PLE ASE WRITE AND REQUEST
=::'!�: :� �n�����i' :1C�:,;:�:I'lI�
FREE
ry
• CUSTOM E R DIS COUNT PRICE LIST
SyntaJI requi,... 18K Extended BUIC (32K tor disk
. n). For '",'5, you gel a u..r guide and I
• MANUFAC T U R E WARRANT I E S
...,.o
lape containing I� Silly Syntax game and 2 lIories
You can erN" your own stones or orete, 110ry lapes
from tN -'tc11On bekM
_My 8m- __ - Ton .. _ por topo.
S8-001 . Fairy Tal.. S5-OO4 . Currenl Events
8S-002 . Sing AlOng $S-006 . Adventure/Sci-F.
ss-ooo . X-Rated ss007 . Potpourri
Each lIory lape il ".15 t 0% on tor J Of mOt'e story
.,... Dfik '1 124,15 for Silty Synlu and 2 110rin or
..... 15 101' smy Syntu and all 82 it10ftes
SUGAR SOFTWARE
AdIJ ' U)O ,* "" OO � \Qf
2153 L..tI lAM
Reynoldebul'll . Ohio 43018 :::: s�='.!. ��
(114' .. 1-4515 ...... 1rMIecI
..... ... weIOCIrN O"' ...

.... 1 44
� ....... IIU& to J'IoIOI, ,,,•

....
. .... . . .. . .. . . . . .. . . ... . . .
.... . .
... .
.. .
::: :::
. . ...... .Hi.:!: .. .
... .. . . .. . . . . .. .
. . . .

. . ... . . .
. . . . .. ...... .... . . .. .. .. .. . . .. .. .
. . . . . . . . . . .. .. .
. .. . . . ... .
. .. ...
. . . ... .. .. . . . . . . ....
.. .... .... .. . .... .... .... . . . . ... . .

YOU'LL FORGET YOU'RE IN YOUR O WN HOME WHEN YOU PL AY .

OunkeYN\UnkeY A ND
STA AFIAE

32K 1 6K

To conquer the M unkey:


Climb ladders, j u m p girders and fight f i res on the first F l y around the planet's surface defending it's
screen, jump barrels and r i je elevators o n the second. i n h a b i t a n t s from being carried away by alien s h i p s .
CASSETIE . ..... . . . . . . . . . . . $24.95 CASSETIE $21 .95
U LTRA·FAST MAC H I N E LANG U AG E . H I G H RESOLUTION G RAPH ICS . SENSATIONAL SOU N D EFFECTS

MAKE CHECK PA YA B L E TO l�lEUECTi\O�ICS


22 C H U R C H I L L LA N E . SM I T H TOW N , NY 1 1 787
N . Y . R e s l d e n . s Please Add Sales Tax. We Pay Shipping.

( 5 1 6) 543·6642 .,- 249 Deale( I n q u i r i e s Invited .

'" See List 01 Advertisers on page 138 HOT CoCo Jun� 11)83 73
THE TOP-RA TED COCO WORD PROCESSOR:
TEL EWRITER·64
Colorware researched the word
T l l ( lI t l 1 [ t · ' ..
processors available for the Color
'1'I 1\ I S � MI """"""hld POlor ld rf'KltO tJ l
Computer. We came to the very � !
�r�N11!i �J:f �!�:;��.. ���ttf
same conclusion that so many re­ found in any word processor. Tele­ printer. There is even a "typewri­
��;��'fJ�,,��-;,��.;.. not t�:""
1,._1"" 1M ott-'t;'or �
view articles have! Telewriter-64 uw "611" 100\, writer also includes: user-friendly ter" mode which sends typed lines
is, by far, the superior word pro­ full-screen editing, rapid cursor directly to your printer.
cessor for the Color Computer. ��H�ia��;�r.�� �n�:- and scrolling control. page jump, With advanced word processing
Why is Telewriter so much bet­
�tJl"
t>! ��t:t�'t:.����i.
�"(�� rr:m:I�.�11
.I:X"':'W.br; �,.�.'" � 1I,ItI .'. . right justification. menu-driven software such as this, your color
ter than the others? For one thing, Io t. ( H f 6 14 1 H l II I O , O t S l u v n : disk or cassette access, compata­ computer becomes a truly power­
it has overcome the 32x 1 6 charac­ ( I � J .. , , � t , 0 I • I , I , • ( ) � • , j ; bility with spellin g checkers (such ful word processing system. with a
ter display limitation of the Color . b e <I , l t h l l k l • • o" rlt""•• ), as Spell-and-Fix). and . a clever price that makes sense for the per­
Computer. No small feat, Telewri­ I • • � • { ) 1 • I •I ,Z, •( )I I Z_ I double check that asks the user sonal user. .
ter accomplishes this by generat­ "Are you sure?" before executing Beyond impressive capability.
ing its own set of characters in Telewriter-64 also generates any operation that would kill any Telewriter-64 simply makes any
software. You select 51 x24. 64x24 true lower case characters. This is sizeable amount of your tex1. kind of writing a pleasure. It is a
or 85x24 character displays by much preferable to the reverse Telewriter-64 runs on any 1 6K, truly sophisticated system that is
merely issuing a format command. characters that merely "represent" 32K. or 64K system (ex1ended marvelously easy to learn and en­
If you have ever used a word pro­ lower case letters in other co-co Basic not required) and works with joyable to use.

Disk . . . . $59.95
cessing system. you know how im­ word processors . any printer. It has all of the control
portant it is to be able to see a good Telewriter-64 is feature packed. codes necessary to take full ad­
portion of your text on the screen. Besides the standard features vantage of all of the features in any Cassette . $49.95

EXTENSION CABLE FOR QUALITY DISK DRIVE CABLES


YOUR MODEM/PRINTER
$19.95
PI8t08 )QKmodem orprinter where )W
WW!I. 15 ft. cable with four-pin male
and four-pin female DIN COflf16Ctors.

COCO ROM/PROJECT/PRODUCT CASE


High quality cable and high force, gold plated contacts
QUANTITY PRICE EACH
ensure the utmost in connection reliability for your CoCo
2-4 (2 min.) $5.. 50
or TDP- 1 00.
.5-9 3.50
1 0-99 2.75 CD Disk pack extender, 3 ft. . . $29.95
1 00 & up CALL Allows you to move your disk drive
interface back and out of the way.
Give a Professional look to your project orproduct ® One Drive Disk cable . . . . . $19.95
• Designed especially for the Color Computer ROM slot.
• High quality 3 piece injection molded black plastic with
@ Two Drive Disk cable . . . . . $29.95

spring-loaded door.

COLORWAREUGHTPEN
• Same size and specifications as Radio Shack ROMpak

SUPER·PRO KEYBOARD ONL Y$19.95


.
REPLACEMENT PROFESSIONAL
FREE PROGRAM
KEYBOARD KIT. .. ONL Y $69.95 CASSETTE
• Contour molded, full travel keys for fast smooth typing.
• Custom made to fit precisely. Has same key layout. INCL UDED
• Complete, easy instructions for any CoCo or TDP-1 00.
• Plugs directly into your joystick port.
• Ideal for word processing and other serious CoCo use.
• Comes with six fun & useful programs on tape.
Note: For computers manufactured after Oct. 1 982. add $4.95
• Easy ,instructions show how to use it with Basic.

UPGRADE IN JUST MINUTES! • Comptible with light pen software such as Computer
Island's "Fun-pak. "
WE PAY
shipping on any order that includes at '·ea,st one game
Use our convenient tol l free 800 line.

GHOST GOBBLER
From Spectral Associates. this
"Pac" theme game is the best of it's
type. Brilliant color. action and
sound. just like an arcade gobble
your way to glory. btJt watch for DONKE Y KING
those ghosts! Get in on the wild fun You simply can not buy a more impres­

GHOST.GOBBLER
of this game craze now. Tape: sive game for your color computer than
$2 1 .95. Disk: $25.95 this new wonder from Tom Mi�. The
graphics. sound. and, animation are all
just astonishing! There are four different
g raphic screens and each is endless
fun. Requires 32K. Tape: 524.95. Disk:
$27.95

PROTECTORS
There are several good ver­ From Color Software. comes a Spectral Associates' very well Just released by The Cornsoft Your space fighter roars into the
sions of the "Defender" theme lightening swift shoot & dodge done "Berserk" type game with Group. this is the officially Death Corridor. Lock-on and
available for the CoCo. None. the enemy game. It's clever some interesting added fea­ licensed version from Sega. the blast the enemy lighter Irom the
however. rival this one from cross between "Robotron" and tures. Each cassette contains arcade manufacturer. II has it sky. Now try dropping one into
Tom Mi�. No other game "Beserk" themes. with bullets both the 1 6K and 32K version. all! 4 lane super highway. Death Star's narrow e�haust
matches the detailed graphics flying everywhere. Solid. shoot­ The 32K version has voice out­ snakes. turtles. logs. alligators. vent. II takes skill and guts.
and sheer e�citement ol this.top em-up-lun. Requires 1 6K. put! Plenty of action. Tape: etc. Lots of action and laughs! Good luck! With "Star Wars"
seller. Requires 32K. Tape: Tape: 51 7.95. DiSk: 51 9.95 Requires 1 6K. Tape: 51 9.95 theme song. From Anteco.

THE COLORCADE..
521 .95
$24.95. Disk: $27.95 Tape: 524.95

* It's 8 Joystick Interface.


Now you can connect any Atarj compatible joystick to your CoCo.
These sticks are extremely rugged & provide very fast response
and real arcade type action. They will improve the play of almost
SUPER JO YS TICK MODULE any game. The difference will amaze you!

* It's a Rapid Fire Modulel


Press the fire button on your joystick and get a great burst of fire
instead of just a single shOt! Adds tremendously to the many
shooting type games that do not have repeat fire. With variable
burst speed.

* It's 8 6ft. Extender Cord.

9
THEA TARI ZIRCON VIDEO WICO FAMOUS

$1°��9�1
ORDERING
COMMAND "RED BALL "
I N FORMATION
THE 8EST ADD $2.00 PER ORDER

� ;;�;;
FOR SHIPPING.
WE ACCEPT VISA. MASTERCARD.
CHECKS. M.D.
A GREA T C.O.D. ADD $3.00 EXTRA.
BUYI NY RESIDENTS ADD SALES TAX.
OVERSEAS. FPO. APO. ADD 10%.
This one has received outstanding re­ The high performance joystick Irom the DEALER DISCOUNTS AVAILABLE.
A well proven joystiCk. the Atari is
known for being rugged and reliable. It views. Its unique design fits the hand people who make them lor the arcade IF ONE OR MORE GAMES
gives good response and is the stan­ beautifully and it has the truly fast and machines. Built to take the abuse 01 ARE INCLUDED.
dard among home video players. Now positive response needed for high even the most enthusiastic player. This SHIPPING IS FREE.
at a great price! Use with module above. speed play. Actually out-performs some 4S the best! Wico ill 1 5-9730. Use with
joysticks that cost $50 or more. module above.

COLOR WARE INC.


78-038 Jamaica Ave. �TOLL FREE ORDERING
Woodhaven. NY 1 1421
(212) 647-2864 �. 800-221 -091 6 Orders only. NY & Info cal (212) 647"2864
I
ing while the computer is speaking. It's easy to generate speech with this
Then enter the edit mode and change program and to adjust the phoneme list
HOMEBASETI. some of the phonemes, pressing the S until it suits you. However, the array
,
THE C O M PLETE TRS-80· key after each change to hear what you dimensions and the limited screen size in
C O L O R C O M PUTER did. Now take the phoneme list given in edit mode allow you to construct a max­
DATABASE Table I and string together some phras­ imum of 100 phonemes, or about 30
IN O N E COM PLETE PACKAGE:
TEXT PROCESSINGoDATA MANA GEMENT es of your own. seconds of speech, in one pass of the
SPREADSHEET CALCULATlONo
TEXT & DATA UTILITIES
POWER .. FLEXIBILITY: Listing continued
• PAGE NUMBERING & HEADINGS
• RENAME 'lies & P R I N T DISK DIRECTORIES
• VARIABLE LENGTH alphallext data fields
DEFINE and TOTAL on fields within TEXT records

6 ''''' LG � L EIl ( A $ ) : B S = L E F T $ ( A $ , l ) : IC�VAL ( B S ) : I F I C 0 1 AND I C < > 2 AND
• P i t FOR M L E T T E R S & M U L T I PLE COPIES
rn I C 0 3 THEN O $ = " " : GOT06 2 0 : ELSE 6 1 1" ' F I N D PHONE�IE CODE AND S';:'ORE
• FREE FOAM R E P O R T W R I T E R for DATA Illes
• 50 DATA FIELDS per data record
6 1 0 I C � I C * 6 4 : A $ = R I G H T $ ( A $ , LG - 1 )
• REORGANIZE data o r lexl recorOs 620 FOR I � lT06 4 : I F A $ �C $ ( I ) THEN 640 ELSE NEXT I
• SEARCH on record names ar any (lata
• P R I N T labels uSing Ie,,! or dala records 6 3 0 PRINT@457 , " re-enter p h o n em e " ; : L I N E I N P U T A $ : PR I NT
. @ 4 4 8 , STR I N G $
• ASSIGN your own record & d a t a names ( 3 2 , " " ) ; : GOT0 6 0 0
• ll g lor Clara records & f i e l d s
un n
M E R G E . BACKUP (to casseHe ) , or copy a n y Ide
rORMATTED p

640 Z ( J) = ( I-1) OR IC : P $ ( J ) � B S + A $ : LG ( J ) = LG : R ETURN
• 250 Screens at lext With embedded pnnter conirais 6 5 0 CLS : L A= 0 : P R I N T " " ; : FO R I = l TOJl'I : P R I N TP S ( I ) + " " ; : L A=LA+LG ( I ) : N E
• ASCENDING & DESCENDING SORT uSing any data
• ADD. SUBTRACT , MUL T I P l Y 0 1 D I V I D E DATA F I E L D S XT ' PR I N T PHON E M E L I ST
6 6 0 LA= LA+JM : R ETURN
EASY TO U S E A N D WELL SUPPORTED: 6 7 0 I F J ( l OR LC ( O TH EN J = l : RETURN : E LSE 6 8 0 ' CURSOR HAND L I N G
• NO programming or eqUipment mOdifications reqUired 6 80 P R I N T @LB , CH R $ ( 1 4 3 ) ; : PR I N T @ LC , CHR $ ( 1 3 8 ) ; : LB=LC : RETURN

COMPLETE ursor contrOl lor lext & data entry
MENU driven With Single stroke commands
• c 6 90 LG = l ' S PEAK WH O L E L I ST
• 120 PAGE MANUAL W I T H 2 MASTER DISKETTS 7 0 0 FOR I = LG TOJ H : P = Z ( I ) : GOSU B 5 80 : N E X T I : P = 6 3 : GOSUB S 8 0 : RETURN ' SPE
• REOUIRES 32K Color Computer With 1 diSk drive
AK PI\RT OF L I S T
FOR VISA/MASTER CARD ORDERS CAll: 7 1 0 ' P R I NT@4 8 9 , " e d i t " ; : RETURN
8OO�334-0854 ext. 887
N.C. 9'9·544·5408 OR SEND S75.00 7 2 0 LG= L EN ( A $ ) : A $ = R IGH T $ ( A S , LG - F ) : F = 0 : GO S UB 6 0 0 : LC=LC+ 1 : P R I N T @ LC ,
;n
ch.ck/mon.y ord.r P $ ( J ) : LC= LC+ LG : J = J + 1 : Jl·l =JM + 1 : LA= LA+ LG + 1 ' PHONEl-lE I N PU T PROC ESSOR
730 P R I N T @LO , CH R $ ( 1 4 3 ) ; : LB=LC : GOSUB 6 7 0 : A $ = " " : RETURN

HOMEBASE·· COMPUTER SYSTEMS


P.O. BOX 3448. D U R H A M , N . C . 27702 RESISTORS (y., watt, 5 070 or 10070 carbon except as noted. K = 1 ,(00)
N C reSidents add 40;g sales tax
H O M E BASE'· 'S a trademark 01 HOME8ASE'· 10 ohm
COMPUTER SYSTEMS, a SubSidiary 01 Small BUSiness
Systems. Durh a m , N C ( 9 1 9 ) 544-5408 2.2K
'TAS-80 I s a trademark 01 Tandy Corp
..... 359 2 3.3K
13 4.7K (Integrated resistor arrays were used for the 5 V pullups)
6.8K
10K
I lOOK
2 10K miniature trimmer potentiometers
CAPACITORS

1 50 pF mica
I 0.01 ,.,F disk ceramic
8 0. 1 ,.,F disk ceramic
2 10 JJF 25 V electrolytic
100 ,.,F 1 6 V electrolytic
Mark 0... Products I 220 ,.,F 16 V electrolytic
°AsuoBlasr
Cave Hunter SEMICONDUCTORS
and Color S.ncrk
Pridley.Pear 5 24. 95 Spectral Auociatea­
2N2222 transistor
Softwa.. 1 5 % off 6522 1C
Triloev
"Vikings. Fligh,
o gam.. on I lape) 74LS I 3 8 1C
� 5 1 6.95
PreRead I. 2. & J 74LS74 1C
Ghosl Gobbler. Co.mIC
� 52 1 . 20 Invaders and'
Space War
SC-OI IC
S� 20%o(fS47. 95 74 16 1C
T"", Mix Software olhers available::
LM386 1C
"Donkey King (J2K) al lO%o(f
��'.Kalerpillar Anack 27 16 EPROM or 6 1 1 6 RAM, I or 2 each, as desired
$24.95
Planet Invasion

$24.95 . ��'. Space Race


MISCELLANEOUS
� 5 1 9 75

·Nso available on disk (J2K) a. el'" charge 8 ohm miniature speaker


Anleco Software Compulerware circuit board
In<crgalaclic Force Doodle Bug speaker jack
524.95 $24.95
su fficient wire-wrap or wiring-pencil wire for circuit
All programs 16K on cassette unless
otherwise stated I 8-pin low-profile socket
Daladl 2 14-pin low-profile socket
"Za
.. on (32K)� $35.95
·Moon Shunle � $31 .45
16-pin low-profile socket
Send for free complete catalog and
22-pin low-profile socket
descriptions! I 4O-pin low-profile socket
w. pay potIIage wilhiD !he U.S. ... 158
24-pin low-profile socket (if you wish to include ROM/RAM)
'i9'.��,r:j_
=-==---�l�
TN residents add 6.25% sales tax 2
(61 5 ) 875·8656 ��iI1:!!
I
P.O. Box 1 5892 VISA 1
� hattanooga, TN 374 1 5 Table 2. ParIS Lisl
n n �
... ...
�ClI
76 HOT CoCo ,Iulle 1<)83
program. If you want to put together a With a suitable text-to-speech algo­ ets plus the circuits involving the
longer discourse, you'll have to do it in rithm, a synthesizer can become a talk­ 74LS138 and pins 1 and 2 of the 7416.
UX)-phoneme chunks, or redimension ing book for the blind or a substitute If you want even more memory, you
and revise the program so the screen will vocal tract for persons with impaired can use the other outputs from the 74LS
scroll when the editing routine runs out speech. Several commercially produced 138 to drive pins 1 8 and 20 of up to
of room. synthesizers are available that pro­ seven 24-pin memory sockets; the last
nounce ASCII-coded sentences. Ciarcia select can't be used because it would
Synthesizer Uses described a versatile and inexpensive conflict with addresses already used in
I haven't yet used the EPROM or synthesizer in the September and Oc­ the computer.
RAM in generating speech; however, it tober 1982 issues of Byte (pp. 64-88 and If you want only one of the 2K mem­
wouldn't be hard to code a machine­ 40-64, respectively). ory chips, you don't need the 74LS 138
language driver program with phoneme With a clever program, this unit can and 7416 at all. Use the $COOO select
lists built in for useful phrases such as perform the same tasks: aid the handi­ signal already present on the cartridge
"prepare your tape recorder," " turn on capped, read out Basic programs for socket. Of course, if you have your own
the printer," or "defend yourself, Cap­ checking, or read text material to a stu­ circuits to try, you can build just the
tain, the Klingons are attacking." The dent. There's no reason why artificial blank expansion board and experiment.
USR function in Basic could be used to speech couldn't eventually become as The plug-in I've described gives you
call the speech routine from your pro­ common and accepted a form of com­ a multipurpose peripheral with features
grams, and to pass a parameter to it to puter output as video-screen dumps or you'd have difficulty buying. Your Col­
select a phrase from the stock you built printed copy. or Computer has an impressively engi­
into the EPROM. If you like game pro­ neered circuit, and much of its power
gramming, this could add a touch to Other Ideas is waiting to be tapped. There's no bet­
your work. You can tailor the unit to your own ter way to learn about your computer
A more serious task of interest to ma­ needs by only building parts of the cir­ than to design and build your own
chine-language programmers would be cuit. A plug-in containing just the 6522 modifications, so start implementing
to write a program that speaks the hex­ VIA chip would supply two I/O ports, your ideas . •
adecimal bytes in a block of memory. A two timers, and a shift register,
"vocal hex dump" is extremely useful and could be used to drive many things Write to William Clements, P. O.
for checking and debugging code. besides a speech synthesizer. If you'd Box 2662, University oj Alabama, Col­
Another exciting use for speech syn­ like a RAMlEPROM board instead, wire lege oj Engineering, University, AL
thesizers is to read English text aloud. a small unit containing the 24-pin sock- · 35486.

The O r i g i n a l F L E X fo r Co l o r Co m p ute rs
DATA-COMP .... everything you _ to make your TRS-aoc " Color Compuler WORK
• Upgrade to 64K lor YOU; Irom Perts end pr.c.. to full. Ready To Use SYSTEMS. DATA-COMP designa.
.Ua, ...vlcea, end SUPPORTS Compute< SYSTEMS. nol /uet Sonwere. CALL DATA­
• AS to FLEX, FLEX to AS file transfer ability COMP TODAY to melle your Computer WORK FOR YOU!
• Create your own character set
Syetem Regul""""t" e
• Automatic recognition of single or double densily and single or
doubled sided FLEXe SpecIal General VerSIOn " Ed,lor & Assembler (whIch normally sell lor $50.00
ea.) $ 1 50 00
• All features available fOf' either single or mulliple drive systems F·MATE(RS} FlEX9 ConverSIOn Ro.JI, lor Ihe RS D,sk Conlrollel
• Seltable Disk' Drive Seek Aates when purchased wllh SpeCIal General FlEX9 Sys.
when purchased wllhoul lhe General FlEX9 Sys.
• Faster High Aesolution Video Display with 5 different formats
Sal ol Eight 64K RAM Chlpa w Mod InsllucllOns
• Save AS Basic from AAM to Disk Color Computer with 64K RAM and EXT. BASIC
Color Compule< with 16K RAM
• Move AS Basic to AAM
Color Compuler wlih 18K RAM and EXT. BASIC
• Load and save function on FLEX disk SPECIAL SYSTEM PACKAGES
• 1 3 Support Commands 8 with Source Text
64K Radio Sheck COLOR COMPUTER. Radio Sheck COLOR DISK CONTROLLER. e Dial<
Languages Available
Drive Syalem. Spec lel General Veralon 01 FLEX9 " . F.MATE(RS,.· . . end e Bol 01 10
Pascal, Fortran, AS Basic, AS Assembler, TSC Basic, TSC Assemb­ Double Denalty Dlaken.. ; e COMPLETE, ready to run SYSTEM on your Color TV Sal.
$1 249.95
ler, Aelocating Assembler, Macro Assembler, Mumps
DISK DRIVE PACKAGES. elc.
II you are I"..., 01 playing games on your TRS·SOC·- COkIt Compuler. or hnd Ihal you are
handocapped by lhe km�ahons ol lhe RS BASIC on Irylng 10 wrde a Program Ihal WIll allowyou 10
These Packages Include Ihe RadIO Shack D,sk Conlroller. Dosk Droves wllh PoWer Supply and
8C1ually USE 1I1e Color Compuler as a COMPUTER. YOU ARE READY TO MOVE UP TO THE
Cablnel. and Dosk Dr,ve Cable:
FLEX.·- ()perahng Syslem II you wanl lo have REAL PROGRAMMING POWER. uSIng an
PAK All - I SIngle SKIed. Double Den$liy Sy s .

E.lremely owerful BUSIness BASIC. PASCAls. C Compolers. a lull·blown Macro Assembler
!,AK Al2 - 2 SIngle SKIed. Double Densliy Sys .
wllh a Llbrery capablill y so you are nol conllnuously "relnvenhng Ihe wheel' . YOU ARE READY
PAK All - I Double SIded. Double DenSlly Sys.
TO MOVE UP TO THE FLEX. - Operalong Syslem. 11 you would Ioke 10 see II YOU REAllY
PAK Al4 - 2 Double Sided . Double Denslly Sys.
COULD USE A COMPUTER IN YOUR BUSINESS. Of begIn 10 make your Compuler slart
PAYING IT'S OWN WAY by doIng some Compul8f Work 101 Ihe mIllIOns 01 small bUSInesses PAK ,,5 - 2 Oume Thlnlone Double Soded Double DenSliy Sys.
.,ound you. such as Wordproces$lng. Payroll. AccounlIng. Inventory. elc . . Ihen YOU ARE
READY TO MOVE UP TO THE FLEX.·- ()perahng Syslem . .How?? DATA-COMP has Ihe way l PARTS AND PIECES

RadIO Shack Disk Cortroller


DATA-COllP's fLEX9 - ConversIOn lor lhe TRS·SOC ·- COlor Compuler was desogned lor Ihe 1 Tandon SIngle SIded. DouOIe DenSlly Dosk Drove
SERIOUS COMPUTER USER; Wllh leatures Ioke greally ">ereaSed Dosplay SCreens. WITH I Tandon Double Sided. Double Densily DIsk Dr,ve
Lower Case Leners. so you can pul a FUll Menu on ONE SCreen . or see SEVERAL Para· 1 Oume Th inline
Double Soded. Double Densoly
graphs al lhe same lome: wllh lealures Ioke provodlng a FUll Keyboard so you have FULL SIngle DrIve Cablnel wllh Power Supply
Conuol 01 your Computer AND rt's Programs NATURALLY. wllhOul needIng a chart to see whal
Key CombinallOn WIll gIve you whal lunc1lOn: wilh USER ORIENTED lunCllOns 10 make USIng Double Drive Cabonel wrth Power Supply
lhe ()perallng Syslem natural lIke haVIng the Compuler AUTQt.lATICAll Y delermlne whal Single Drove DIsk C_ IOf RS Conlroller
Double DrIve D,sk Cable lOf RS ContrOller
Iype 01 DISk IS beIng used In whal lype 01 DIsk Do,ve and workIng accord Ingly. ralher Ihal you
have 10 apecoly each and every Ihong lor II. or lIke haVIng Ihe Compuler WOfk wllh Ihe Pronler you MICro Tech. Prods . Inc. LOWER CASE ROM Adapler
have been USIng all along wllhOut you havong 10 lell lhe new Operallng Sys1em what IS lhere:elc . . RadIO ShaCk BASIC Veraion I . I ROM
etc .. alC. Rildoo ShacI< Eltended BaSIC ROM

P.O. 80x 794 HIXSON, TN 3 7343


1-61 5-842-4601

" See List 01 Advertisers on page 138 HOT CoCo Jun( IQS3 77
UTILITY

BY JERRY HOGAN

TAPE INDEX SYSTEM

T hiS program will keep an ordered


index of the CoCo programs you
Don 't waste time looking deleted to run in 4K. If you have 1 6K
memory. change line 1010 to read :
have on tape. For each tape, it will list for one program out of
up to 40 program names-the largest dozens . Use this utility \0\0 CLEAR 1000, 1 626: R = 1627: T = 39
number that can be displayed at one time.
The program needs 376 bytes of to make a handy index .
memory to run. AIl line numbers ending To use this technique. fast forward
with a 5 are comment lines and must be past all the programs on the tape,
CSAVE "99999999". and then rewind
the tape. Remove that tape, CLOAD
"NAMEFILE", type RUN, select op­
o NAMEFILE DATAFILE HO tion I , and then load the original tape
3 COMENTI COMENT2 PAGE l and press play . An index of all the pro­
6 PAGE2 PAGE3 PAGE4
grams on the tape should appear on the
9 NAMEFILE Ov
screen.
12 CCBUG MOUSE HEXCONV
15 SIX PHONENUM CHECKERS When you run this program, it will
18 LUNERLND RS232 FORMBILD display a menu of five options. The only
21 PAINTLIN ROAD RACE FIFTEEN way to return to Basic is to press break.
24 BALL TYPING FOURTH Option 1 starts the cassette motor and
••••••••
27 MICE BABYBUG
•••••••• •••••••• ••••••••
reads program names, keeping a list of
30
•••••••• •••••••• ••••••••
all names until it reads 999999 . It will
33
36 •••••••• •••••••• •••••••• then display the list of names on the
screen for 20 seconds before returning
Fig. 1. Example of Program OUlpul to the menu.
Option 2 reads a data file from a
cassette. You are first asked for the
name of the data file you wish to read .
Program Lisling 1. NAMEFILE If you enter a quotation mark and press

1 ' COPYRIGHT ( C ) 1 9 82 BY J 0 HOGAN LAST UPDATE 1 , 1 3 , 8 2


2 GOTO 1 0 1 0
1 0 GOTO 1 1 1 0
1 0 1 0 C L EAR 4 0 0 , 4 0 6 2 : R = 4 0 6 3 : T= 3 9
1 0 2 0 DIM N $ ( T) System Requirements
1 0 3 0 FOR 1 = 0 TO T: N $ ( I ) = " * * * * * * * * " : NEXT
1 0 4 0 K = 0 : AUD I O ON .
1 0 5 0 FOR I = 0 T0 2 1 : READ P : PO K E ( I + R ) , P : N EXT
1 8 6 8 OPEN " O " , t - l , " " 4K, 16K RAM
1 0 80 CLOS E t - 1 : P 1 $ = " 19 82 " : P 2 $ = " DATA"
Extended Color Basic
1110 CLS : PRINT@ 1 2 9 , " ENTER DES I R ED OPERATION ' TH EN PRESS ENTER"
1111 PRI N T @ 0 , " COPYRIGHT ( C) 1 9 8 2 BY J 0 HOGAN"
Lsting
i continued

78 HOT COCO Jun£ 1983


Nfwr
MACRO-BOC VOU NEED
COLOR FORTH! !
The Micro Works is pleased to announce the release of Why?
its disk-based editor, macro assembler and monitor, writ­ -Forth is faster to program in than Basic
ten for Color Computer by Andy Phelps. THIS IS IT - The -Forth is easier to learn than Assembly Language
ultimate programming tool ! - Forth executes in less time than Basic

The powerful 2-pass macro assembler features conditional Forth is a highly interactive language <l i ke Basic . with
assembly , local labels. include files and cross referenced symbol structure like Pascal and execlltion speed close to
tables. MAC RO"�lOc supports the complete Motorola 6809 instruction set in that of Assembly Language. The Micro Works Color
standard source format. There are no changes. constraints or s'hortcuts in Forth is a Rompack containing everything you need to
the source language definition . Incorporating all of the features of our ru n Forth on your Color Computer,
Rompack-based assembler (SDS80C) . MACRO-80c contains many more Color Forth consists of the standard FORTH I nterest
useful instructions and pseudo-ops which aid the programmer and add Group (FIG) implementation of the language plus
power and flexibility. most of FORTH -79 , It has a super screen editor with
The screen-oriented text editor is designed for efficient and easy editing of split screen display, Mass storage is on cassette,
assembly language programs . The " Help Key" feature makes it simple Color Forth also contains a decompiler and other aids
and fun to learn to use the editor. As the editor req uires no line nu mbers. for learning the in ner workings of this fascinating lan­
you can use the arrow keys to position the cursor anywhere in the file. guage. It will run on 4 K . 1 6 K. and 32K computers ,
MACRO-80c allows global changes and moving/copying blocks of text . You Color Forth contains 1 0 K of ROM . leaving your RAM
can edit l ines of assembly source which are longer than 32 characters. for your programs! There are simple words to
effectively use the Hi - Res Color Computer graphics.
DC BUG is a machine language monitor which allows examining and joysticks. and sound . The 1 1 2-page manual includes
altering of memory. setting break points. etc. a glossary of the system-specific words. a full
The editor. assembler and monitor - as well as sample programs - standard FIG glossary and complete source listing.
come on one Radio Shack compatible disk. Extensive documentation COLOR FORTH . , ' T H E 'BEST! From the leader in
included. MACRO-80c Price: $99 .95 Fort h . Talbot Microsystems, Price: $109.95

MICROTEXT: COMMUNICATIONS
The Micro Works Software Development System (SDS80C) is a complete 6809 editor. assembler and VIA YOUR MODEM!
Now you can use your printer with your modem' Your computer can be an
monitor package contained in one Color Computer program pack! Vastly superior to RAM·based
assemblers/editors. the SDS80C is non·volatile. meaning that il your application program bombs, it can ' t
intelligent printing terminal. Talk to timeshare services or to other personal
destroy your editor/assembler. Plus i t leaves almost a l l o f 16K o r 32K RAM free lor your program . Since
computers; print simultaneously through a second printer port; and reo
all lhree programs, editor, assembler and monitor are co·resident, we eliminate tedious program loading
display text stored in memory. Dump to a cassette tape, or printer, or both.
when going back and forth from editing to assembly and debugging'
Microtext can be used with any printer or no printer at all. It leatures user·
The powertul screen·oriented Editor features linds, changes, moves, copys and much more. All keys have configurable duplex/parity for special applications, and can send any ASCII
convenient auto repeat (typamatic), and since no line numbers are required, the lull width 01 the screen character. You 'll find many uses for this general purpose module' Microtext
may be used to generate well commented code. is available in ROMPACK, ready·to·use , for S59.95.

The Assembler features all 01 the following: complete 6809 instruction sel; conditional assembly; local
labels; assembly to cassette tape or to memory; listing to screen or printer; and mnemonic error codes
instead of numbers.
The versatile monitor is tailored for debugging programs generated by the Assembler and Editor. It
features examine/change of memory or registers, cassette load and save, breakpoints and more. SDS80C
Price: $89.95

Star Blaster -Blast Y9ur way through an asteroid field in this action-packed Hi·Res graphics game. Available in ROMPACK; requires 1 6K . Price: $39.95
Pac Attack -Try your hand at this challenging game by Computerware, with fantastic graphics, sound and action! Cassette requires 1 6K . Price: $24,95
Berserk - Have fun zapping robots with this Hi-Res game by Mark Data Products. Cassette requires 1 6K . Price; $24.95
Adventure - Black Sanc/um and Calixto Island by Mark Data Products. Each cassette requires 1 6K. Price: $19.95 each.
Cave Hunler � Experience vivid colors, bizarre sounds and effie creatures in hot pursuit as you wind your way through a cave maze ,in search of gold treasures. This
exciting Hi-Res game by Mark Data Products requires 1 6K for cassette version. Price: $24.95

Also Availabl8: Machine Language Monitor * 2-Pass Disassembler * Memory Upgrade Kits * We Stock 64 K Chips
* Parts and Services * Books * Call or write for information

MaslerChargelVisa Accepled

GOOD STU FF! California residents add 6% lax.

P.O. BOX 11 1 0, DEL MAR, CA 9201 4 [61 9] 942-2400


Listing continued return, the program will read the next
1120 PRINT@ 2 2 4 , " 1 READ F I L E NAMES FROM TAP E " file on the cassette. If you type in a
1130 PR INT@ 2 8 8 , " 2 READ NAMES FROM DATA F I L E " name, the index utility will read past all
1140 PRINT@ 3 5 2 , " 3 SAVE NAMES ON DATA F I L E "
1150 PRINT@41 6 , " 4 L I ST F I L E TO PRINTER"
files until it finds the program with that
1152 PRINT@4 80 , " 5 L I ST F I LE ON SCREEN " name. It will then display the contents
1160 INPUT P : P= INT ( ABS ( P »
of that data file on the screen for 20
1170 I F NOT ( P= l O R P = 2 O R P=3 O R P= 4 ) THEN GOTO 1 8 2 0
1180 ON P GOTO 1 6 1 0 , 1 9 1 0 , 1 7 1 0 , 1 81 0 seconds before returning to the menu.
1610 EXEC R Option 3 asks you to type in the date,
1620 A $ a " " : p= ( 2 5 6 . P E E K ( 1 2 6 » +PEEK ( 1 2 7 )
the description of the tape the index is
1630 FOR I = P TO P+7 : A$=A$+CHR$ ( PE EK ( I » : NEXT
1640 I F A$ = " 9 9 9 9 9 9 9 9 " THEN GOTO 1 6 7 0 for, and the name to be used for the
1650 N $ ( K ) =A $ : K=K+ 1 : PRINT A $ : GOTO 1 6 1 0 data file. The program will turn on the
1670 CLS : PRINT@ 26 0 , K ; " " ; " F I L ES ON TH I S TAPE "
1680 GOTO 1 8 2 0 cassette motor and ask you to position
1710 CLS : PR I N T @7 1 , " TYPE I N THE DATE W I THOUT COMMAS THEN PRESS EN the tape, and then the program will turn
TER"
1720 INPUT P 1 $
the motor off and ask you to press the
1 7 3 0 CLS : PRINT@7 0 , " TY P E I N T H E DESCRI PTION O F TH E CONTENTS O F TH record button. At that time, the pro­
E TAP E " gram will record a data file. The pro­
1 7 4 0 PRINT @ 1 9 8 , " THEN PRESS ENTER" : INPUT P 2 $
1 7 5 0 C L S : PRINT@6 9 , " TY P E I N NAME TO B E U S E D FOR DATA F I LE , 8 CHAR gram will again display the contents of
MAX" : INPUTA$ the data file on the screen for 20 seconds
1 7 6 0 C L S : PRINT@7 2 , " PO S I TION TAPE AND PRESS INTER" : MOTOR ON : INPUT
P : MOTOR OFF
before returning to the menu.
1 7 7 0 C L S : PRINT@7 0 , " S E T CASSETTE TO RECORD AND PRESS ENTER" Option 4 lists the index of names on
1 7 8 0 INPUT P : OPEN" O " , ' - l , A $ : FOR 1=0 TO T the printer. Then the program will
1 7 9 0 PRINT ' -l , N $ ( I ) : NE X T : PRINT ' - 1 , P1 $ , P2 $ : CLOSE # - l : GOTO 1 8 2
o display the contents of the data file on
1810 OPEN " 0 " , ' - 2 , " " : FORI = 0 TOT-1STEP 3 : PRINT' - 2 , I ; N $ ( I ) ; " " ; N S ( I +1 the screen for 20 seconds before re­
) ;
turning to the menu.
1 81 1 PR INT' - 2 , " " ; N $ ( I+ 2 ) : NE X T : CLOS E t - 2
1820 FOR 1 = 0 TO T-1 STEP 3
1830 PRINT I ; N $ ( I ) ; " " ; N $ ( I+ 1 ) ; " " ; N $ ( 1 + 2 ) : NEXT
1840 PRINT P 1 $ ; " " , P2 $
1850
1910
FOR 1 = 1 TO 1 0 0 0 0 : N E X T : GO TO 1 1 1 0
CLS : PRINT " TYPE I N NAME O F DATA F I LE " : INPUTA $ : OP EN " I " , . - l , A $
"A ll the line numbers
1920 FOR la0 TO T
1930 INPUT ' - l , N $ ( I ) : NE X T : INPUT t - 1 , P1 $ , P 2 $ ending with a 5 . . . must
1940 CLOSE ' - l : GOTO 1 8 2 0
2010 DATA 17 3 , 1 5 9 , 1 6 0 , 4 , 1 7 3 , 1 5 9 , 1 6 0 , 6 , 1 8 2 , 0 , 1 2 4 , 3 8 , 2 4 7 , 2 4 6 , 2 5 5 be deleted to run in 4K. H
2020 DATA 3 3 , 1 9 6 , 2 47 , 2 47 , 2 5 5 , 3 3 , 5 7

Option 5 displays the index of names


Program Listing 2. Remarks
for 20 seconds and then returns to the
menu. The display can be held on the
@ 5 ' AL L L I N E S ENDING IN 5 ARE cmlMENT L INES AND W I L L NOT RUN IN 4 screen by pressing the shift key and the
K
15 ' GO START WORK
@ key at the same time. The display will
1 0 0 5 ' S ET STRING SPAC E , L EAVE ROOM FOR MAC H I N E - LANGUAGE PROGRAM remain until you press another key.
1 0 1 5 ' S ET UP ARRAY FOR F IL E NAMES You can turn up the volume of your
1 0 2 5 ' I N I T I AL I Z E VAR IABLES
1 0 4 5 ' LOAD MAC H INE-LANGUAGE PROGRAM TV set and hear when the last program
1 0 5 5 ' GIVE TH E ML PROGRAM TH E ADDRESS OF TAPE BUFFER has been read by option 1 . You can then
1 1 0 5 ' PUT MENU ON SCREEN
stop the tape recorder, remove the tape,
1 1 1 5 ' READ NAMES SUB STARTS AT 1 6 1 0
1 1 2 5 ' READ F I L E SUB STARTS A T 1 91 0 insert a tape that has a program named
1 1 3 5 ' SAVE L I ST TO DATA F I L E STARTS A T 17 1 0 99999999 and it will display the name ,
1 1 4 5 ' L I ST F I L E TO PRINTER SUB STARTS AT 1 8 1 0 AND TO SCREEN AT
1820
file. Or you can press the break key and
1 1 5 5 ' DO YOUR BEST TO MAKE SOMETH ING U S EFUL O U T O F INPUT hold it down; the program will return to
1 1 6 5 ' ANY OUT-OF-RANGE NUMBER WILL L I ST F I L E
Basic the next time it reads any name
1 6 0 5 ' DO THE M L PROGRAM ( R EAD TAPE UNT I L NAME BLOCK I S READ TH E
N RETURN TO BAS I C ) from the tape. From the command
1 6 1 5 ' T H E ADDRESS O F WHERE TH E NAME I S STORED I S A T 1 26 & 1 2 7 mode, GOTOIO will return you to the
1 6 2 5 ' READ T H E NAME INTO A $
1 6 3 5 ' I F 9 9.9 9 9 9 9 9 YOUR WORK I S A L L DONE G O L I S T F I LE
menu and leave the name file in
1 6 4 5 ' MORE TO COME STORE NAME IN ARRAY AND GO GET NEXT NAME memory.
17 0 5 ' SUB TO SAVE L I ST ON TAPE WE N E ED DATE , NAM E , AND DESC R I PT
Leave a space at the beginning of
ION
1 7 7 5 ' OPEN TAPE BUFFER FOR OUTPU T , NOW LOOP " T " T I MES each tape. Then load Namefile, use
1 7 8 5 ' WRITE NAMES TO TAP E , WR I T E DATE & DESCRI PTION THEN CLOSE option 1 ,to build a data file, position the
BUFFER
1 8 0 5 ' SUB TO LIST NAMES TO PRINTER
tape at the first file, and use option 3 to
1 8 1 5 ' SUB TO PRINT NAMES ON THE SCREEN record the data file. Then, when you
1 8 2 5 ' WRITE 3 NAMES ON A LINE WITH A NUMBER FOR TH E F IRST ONLY
pick up a tape you can load Name­
1 8 4 5 ' GIVE THEM T I ME TO READ THE SCREEN AND THEN GO BACK TO MEN
U file, select option 2, place the tape in
1 9 0 5 ' SUB TO READ A DATA F ILE FROM TAP E , WE N E ED A F I L E NAME the recorder, rewind, press play, and
1 9 1 5 ' LOOP " T " T I MES THE F I L E W I L L HAVE THAT MANY NAMES
1 9 2 5 ' READ THE TAPE DATA F I L E type in a quotation mark for the name
1 9 3 5 ' CLOSE T H E BUFFER AND GO L I S T TH E NAMES and you will get the full list of names on
1955 '
that tape.
1965 '
3005 ' R IS TH E STARTING ADDRESS FOR THE ML PGM I number my tapes with odd num­
bers; the flip side has the next larger
Lisling continued
even number. Tape 1 has nothing but
80 HOT CoCo Jun( 1983
data files named OAT AI , OATA2, Lisling continued
OAT A3, and so on. My next program
will use the data files to build an alpha­ 3 0 1 5 ' T IS TH E NUMBER OF NAMES WE W I L L HAVE IN A DATA F I LE MAX
3 0 2 5 ' N$ IS TH E ARAY WE STORE TH E NAME IN AS STRING VAR I ABLES
betic list of all the names, but for now I 3 0 3 5 ' I I S USED AS AN INDEX FOR FOR NEXT LOOPS
must read each one until I find the name 3 0 4 5 ' K I S U S ED TO COUNT HOW MANY F IL E S HAVE B E EN READ FROM TAP
E
I want. 3 0 5 5 ' P l $ IS U S E D TO STORE TH E DATE AS A STRING
The EXEC function is used instead 3 0 6 5 ' P 2 $ I S USED TO STORE TH E DESCRI PTION OF TH E F I L E AS A STR
ING
of the USR function to allow the pro­
3 0 7 5 ' P I S USED FOR A DUMMY INPUT
gram to run in both regular and Extend­ 3 0 8 5 ' P IS U S ED TO HOLD TH E ADDRESS OF " N AM E " I N MEMORY
ed Basic. 3 0 9 5 ' A$ IS USED TO STORE A F I L E AS A STRING
3105 '
EXEC calls a machine-language pro­ 3115 '
gram that will do the following things: 4005 ' MAC H I N E LANGUAGE IN H E X
4015 ' AD 9F A0 0 4 JSR START TAPE
• start the cassette motor.
4025 ' LOOP AD 9 F A0 0 6 J S R READ BLOCK
• mask interrupts. 4035 ' B6 00 7 C LDA GET BLOCK TYPE
• synchronize to tape leader. 4045 ' 26 F7 BNE LOOP GO TO LOOP I F 'BLOCK TYPE NO
T Z ERO
• read blocks from the tape into 4055 ' F6 F F 2 1 LOB GET MASK
memory until a name block is read . • # 4065 ' <: 4 F 7 ANDB ZERO B I T 3
4075 ' F7 FF 21 STB TURN ON MOTOR
• turn off cassette motor.
4 0 85 ' 39 RTS RETURN TO BAS I C
• return to Basic program. 4095 '
• A name block is type O. 4105 '
4 1 1 5 ' CALL " CASRDON" RELATIVE ADDRESS AT A 0 0 4 H , TH I S W I L L
A data block is type 1 . 4 1 2 5 ' MASK I NTERPUTS , START TH E CASSETTE MOTOR & SYNCRON I Z E TO
An end of file block is type 25 5. TH E LEADER
# At line 1060, the computer is told 4 2 0 5 ' CALL " BL K I N " RELATIVE ADDRESS AT A 0 0 6 H , TH I S WILL READ ON
E BLOCK
where to store the block in memory 4 2 1 5 ' FROM TH E CASSETTE AND WRI T E I T INTO MEMORY AT " BU F I N "
before this section is executed. The ad­ 4 2 3 5 ' " B U F I N " H A S A RELATIVE ADDRESS A T 0 0 7 EH - 0 0 7 FH
4 3 0 5 ' " BLOCK I N " STORED TH E BLOCK TYPE AT 0 07CH
dress of the first byte of the buffer is 4 3 1 5 ' L I N E 4 0 3 5 READS TH E BLOCK TYPE I N TH E " A " REGISTER
kept at 1 26, 1 27 (OO7EH..OO7FH) . • 4 4 0 5 ' BRANCH BACK TO " LOOP " IF BLOCK TY P E NOT EQUAL TO Z ERO
4 5 0 5 ' THE P I A I S ADDR ESSED AT F F 2 1 H AND WE NEED TO G E T A COPY
4 5 1 5 ' SO WE CAN CHANGE ONLY B I T 3
4 6 0 5 ' Z ERO B I T 3 OF THE " B " REGI STER
4 7 0 5 ' Z ERO B I T 3 OF TH E P IA THAT WILL TURN OFF CASSETTE MOTOR
Write to Jerry Hogan at 544 Douglas 4 8 0 5 ' RETURN TO BAS I C

St., Redwood City, CA 94063.

6809 DATABASE MANAGEM ENT RMS


RECORD MANAGEMENT SYSTEM
R U N S ON T H E COLOR WITH F.H .L. OR DATACO M P FLEX
• USER DEFINED RECORD FORMAT VIA DATA DICTIONARY RMS Is a complete DATABASE MANAG EMENT package for
• SCREEN ORI ENTED, FORM FILL OUT TYPE OF ACCESS the 6809 computer. I t Is made up of five machine language
• OPTIONAL TWO LEVEL RECORD HI ERARCHY programs that make up the most powerf u l business program·
• ALL FILES I N ASCII TEXT FOR MAT, BASIC COMPATI BLE mlng tool available for fhe 6809. It can be used by the relative
• DIRECT ACCESS BY KEY FIELD, M U LTIPLE INDEX FILES novice, to Implement an Incredible variety of Information
• EXTENSIVE DOCUM ENtATION, SAMPLE APPLICATION storage and retrieval applications, without any program·
• VERSATILE, PROFESSIONAL QUALITY REPORT WRITER mingo However, the programmer can use RMS as part of the
• B U l LT·IN SORT I MERGE solution to a larger problem, saving many hours of un·
• EASY TO USE necessary program development time. RMS can be used to
handle data Input, editing, validation, on·line retrieval, sort·
ing and printed reports. Custom data manipulation can be
fil led In by the user's BASIC programs.

SINGLE CPU LICENSE . WASH,I NGTON


FLEX * $ 200 COMPUTER
OS-9 + or RS-O $250 SERVI CES ... 29

UNIFLEX * 3028 SILVERN LAN E


$ 300
B ELLING HAM, W A 98226
TERMS: VISA I MC I PREPAID
1 (206) 734·8248

'FLEX and UNIFLEX .r. trademarkl 01 Technical System Conlultants Inc.; + 05-9 Is a trademark 01 Mlcrowar.

.,. See List 01 Advenisers on page 138 HOT CoCo June 1983 81
GAME

BY DUANE ROUCH

DRAW POKER

Why risk losing your


shirt at Las Vegas? Play
casino-style poker with
the computer's money.

System Requirements

Extended Color Bask


16K RAM

T hiS slot-machine draw-poker


game for the Color Computer re­
quires only 16K of memory, Extended
Color Basic, and your typing time. Not
one nickel of your hard-earned cash is
at risk.
When you are entering the Program
Listing, don't add any extra spaces be­
cause there are only about 1 SO bytes of
memory left in the program as listed. If
you want to change or add to the pro­
gram, deiete the remark statements for
extra space.
Once you've entered the program,
you can check it by adding the following
program steps. (Steps 30 and 8 10 should
be deleted first.)

865 GOTO soo)


S(XX) 0(1) = 1:0(2) 13:0(3) = 12:0(4) = 1 1:O(S) = 10
=

SOlO 8(1) = 4:8(2) = 4:8(3) = 4:8(4) = 4:8(5)= 4


5020 GOTO 870

Display of the Winning Hand Type RUN, press enter and select 3
82 HOT CoCo .Iun( 1983
D I S K D R IVES DISK D H IVES DISK D RIVES DISK D RIVES DISK D R IVES DISK DR IVES DISK DR IVES DISK DR IVES
� 0
00 �
(5 A
00 0
w �
> <
� m
o 'W
� 0
00 �


(5 A
00 0
w �
> <


S uper Sale on New Disk Drives �

� Starting at $ 1 99.95 complete �


with, Power Supply and Case ! ! �
m
Q FULL Y WARRANTEED W
� 0
00 single sided 40 track -
' dual sided 40 track �
(5 A
00 single sided 80 track - dual sided 80 track 0
w �
1 3

� RADIO SHACK - HEATH/ZENITH 2- APPLE �


� I8M/PC�TEXAS INS TRUMENTS 5& M O S T OTHER COMPUTERS �
00 �
(5 Drive a H a rd B a rga i n ! ! "" A
00 0
� 8 M . B . - 1 2 M . B . with Power S u pply Case, Cables & Softwa re
Co m pl ete Syste m s . from $ 1 , 595 . 00

� . . . . . .
rn
� Amazing Special/-dual sided 40TK or 80TK drive with Power Supply and Case �
� and Our Special Warranty - Starting at $259. 95 �

o
TOLL FREE ORDERING GENERAL AND TECHNICAL
1 -800-343 -884 1 1 -6 1 7-872- 90 9 0

W
� 0


00

M odel I I I I nternal D i sk Drtve Kits . .. $Call . . . . . . . . . . . . . .




o
C o l o r C o m p u te r D rives 0 1 2 3
D i s kettes of a l l sizes (Box of 1 0),
• $Call

, . starting at $20 . 00
. . . .

.

. .
.

• •
.


.

• •
.


.


.
• • . . • . . .


W

� Dot M at r i x P ri nte rs . . • • . . . . . . $ Call. . . . . . . . . . . . . . . . .



(5 Word P rocess i ng Pri n te rs . . . . . . . . . . . . starting at$899. 95 A

� Pri h t e r Buffe rs 8 K to 5 1: 2 K . . . . . . . . . . . . starting at $ 1 43 . 95 �




D i s k D ri ve Cases a nd Powe r S u p p l ies . . . startlng at $4 9 . 95
DOS P L U S - 3.4 - . . . . . . . . . . . . . . . . . . $Special Price �
rn
0
00

(5 One Year Warranty Available on all D rives! A
00 0

;
W
Dealer inquiries invited. �

� <

� S O FTWARE S UPPORT, INC. ,'"


is One Edgell Road, Framingham, MA 0 1 70 1 A

fB (6 1 7) 872-9090
Hours: Mon. thru Fri 10 am to 6 pm ( E . S.T.) �
� TERMS: <
a: MC.Nisa/Amex and personal Sat. 1 0 am to 5 pm 1 ··TANDY CORPORATION m
o C hec ks accepted at no extra charge. Copyrlahl 19l3 () 2 -ZENITH DATA SYSTEMS
3 -APPLE COMPUTE R CORP.
W

� C.O.D., please add $3.00. 4 ··IBM CORPORA TION


0

(5 Shipping: Please call for amount. 5 ··TEXAS INSTRUMEN TS



S3AI � a >ISla S3AI� a >I S l a S3AI�a >I S l a S3IAI�a >ISla S3AI�a >I S l a S3AI�a >I S l a S3AI�a >I S l a S3AI � a >I S l a
� S ee List 0 1 Advertisers on page t38 HOT CoCo ,June J983 83
(Play). Press enter again after the cards
LINE # Program notes are displayed. You should have the Ace,
50- 100 Menu selection King, Queen, Jack, and 1 0 of spades,
1 1 0-210 Instructions with WIN $200 and TOTAL $ 1 99 dis­
220-340 Payoff list played on the screen.
350-730 Store card symbols and numbers By changing the values of D and S in
740 Dimension the arrays
5000 and 5010, any combination of
750 Set T(l) to T(52) to 0 cards can be displayed. See Table 2 for
760-800 Deal 10 random cards out of 52
8 1 0-860 Calculate the card suit and value of the 10 cards
the values to be used to check other win­
870-1 680 Display the cards
ning combinations.
1690-1850 Card change routine In this game, you are initially dealt
1 860-2060 Compute card holding five cards . You may keep all five, or
2070-2430 Screen displ ays and sound draw from one to five cards to better
your hand. It takes three of a kind or
Table I, Program Breakdown better to win. The computer then lets
you know whether you won or lost, and
gives a running dollar total.
00) 0(2) 0(3) 0(4) 0(5) SO) S(2) S(3) S(4) S(5) WIN To play the game, type RUN and
RF I 13 12 II 10 I I I I I 200 press enter. Next select instructions,
SF 9 13 12 II 10 2 2 2 2 2 55 payoffs, or play from the menu. The in­
F 8 13 12 II 10 3 3 3 3 3 8 structions or payoffs will be displayed
F 8 13 12 II 10 4 4 4 4 4 8 until you press enter again. The pro­
S 8 9 12 II 10 3 4 4 4 4 5 gram will return to the menu for your
4K 8 8 8 8 10 3 4 4 4 4 25 next choice.
3K 8 8 8 2 10 3 4 4 4 4 2 When the play option is selected, five
FH 8 8 8 2 2 3 4 4 4 4 15
cards are displayed on the screen with
the numbers 1 -5 beneath them. If you
Table 2, Values 10 Check Winning Combinalions
have a winner (any hand that contains
three of a kind or better), press enter to
Program Lisling have the winnings added to your total .
111 CLEARlIHH' : CLS
If you want to better your holdings,
2" PCLEAR4 press the number of the card or cards
3 " ' DUANE ROUCH , 1 2 6 2 " MEMORY LAN E , BOWI E , MD , 2"7 1 5 - SEPT 1 9 8 2
you want to replace; you can replace
4" PRINT @ 8 , "DRAW POKER GAME "
5" PRINT@l " S , " l . INSTRUCTIONS " : PRINT@1 6 9 , " 2 . PAYOFFS " any or all of them. The remaining cards
69 PRINT@23 3 , " 3 . PLAY " I PRINT@297 , " SELECT OPTION" with the 'numbers still under them are
79 Z $aINKEY $ : I F Z $ = " "THEN 7 9
8" S-ASC ( Z $ ) - 4 8 : IFS <10RS>3THEN79
the cards that you want to hold.
99 I FS-3THEN 3 S 9
111 9 I F S -2THEN 2 2 9
1 1 9 C L S ' INSTRUCTTONS
129 PRINT "YOU WILT. BE DEALT FIVE CARDS . "
1 3 9 PRINT I PRINT " I F YOU ' RE HAPPY WITH THE HAND"
149 PRINT"PRF.SS <ENTF.R> TO COLT.ECT YOUR"
1 5 9 PRINT"WINNINGS . TO CHANGE CARDS YOU " : PRINT"ARE NOT HAPPY ABO
UT, PRESS TH E"
16" PRINT" CARD NUMBERS ( 1 TO 5 ) YOU WANT " : PRINT " TO CHANG E. IF YO
U MAKE AN "
1 7 9 PRINT" ERROR OR CHANGE YOUR MTND JUST " : PRINT" PRESS <SH IFT> AN
D THE NUMBER"
1 8 9 PRINT"OF THE CARD YOU ERRED ON . " I PRINT
1 9 9 PRINT "PRF.SS <ENTER> TO CONTINUE"
2"" A $ - INKEY $ I IFA$ ." " THEN2 9 9
2 1 9 CLS : GOT04"
2 2 9 CLS ' PAYOFF L I ST
2 3 9 PRINT" HAND $$$"
249 PRIN T - - - - - - - - - - - - - - - - - -
25" PRINT" ROYAL FLUSH 29B"
269 PRINT"STRAIGHT FLUSH 55"
2 7 9 PRINT" FOUR OF A KIND 25"
28" PRINT"FULL HOUSE IS"
2 9 11 PRINT" FLUSH 8"
399 PRINT" STRAIGHT 5"
3 1 " PRINT" THREE OF A KIND 2"
3 2 9 PRINT I PRI'NT" PRESS <ENTER> TO CONT INUE "
33B A$-INKEY $ I IF A $ s " "THEN 3 3 B
3 4 " CLS : GOT04B
3 S B CLS I PCLEAR4 ' STORE SYMBOLS
3 6 B D $. " C 8 S 8BM+3 , B , H 3E3F3G3 " ' DI AMOND
3 7 11 H $ - " C 8S 8 BM+3 , B , H 3U2E1F2E2F1D2G3 " ' HEART
38B S $ . " C 6 S 8BM+2 , ,, , E1U2G1L2U1E3F3D1L2H1D2F1NL 2 " ' S PADE
39B C $ - " C 6 S 8BM+1 , B , E1U1L2U2R2U2R2D2R2D2 L2D1F1NL4" ' CLUB
4 B II F $ s " BM+l , B , RlNRlU6GlBM+6 , + S " ' 1
41A O$."NR4U1EIRIE2UIHIL2GIBM+7 , S " ' 2
4 2 B P $ - " BM+B , - 1 , FIR2EIH2E2 H I L3BM+7 , 6 " ' 3
43A O $ - " BM+3 , B , U 2NR1L3UIE3D3BM+4 , 3 " ' 4
4 4 B R$·"BM+B , -1 , FIR2E1U2H1L3U 2R4BM+3 , 6 " ' 5
4 S B M $- " BM+4 , - S , H IL2GID4F1R2EI UIHIL3BM+7 . 3 " ' 6
Listing continued

84 HOT CoCo Junt Ic)S3


COLOR TERM + PLUS +
An I n tt'l I i gt' n t Tt'rminal Program For The Color
Comput<.>r or TOP WO.
Features:
BA U O R A TE - 1 10 to 1 92()()
POOR MAN 'S
I t alf or Full OUJllh
On<.> or t w o Stop flits
FLOPPY
Ocld, Even or No Parity
Word W RA P
HIGH SPEED CASSETTE SYSTEM
Turn off Lowercase Lett('rs Now for the TRS-SO Color Computer
Send A l l Control Chara('t<.>rs The JPC PRODUCTS High Speed Cassette System, in operation
Print Ru ffer for aver 4 years, is now available for all versions of the Radio
Examine [Ju ffer Shack@> Color Computer.
Send & Recei v e BASIC or Machine Languagt' Programs • TC-8C - Plugs directly into the expansion port of your
or Fi les. TRS-BO Color Computer. It is fully compatible with all
Editor a l lows entry of t('xt into Bu ((t'r as well IL� versions of the Color Computer from the standard
. 4K to
E d i t i n g of Rufft'r. the Extended 32K.
( Oisk Version Has more powerful Editor) • fAST - Twice the speed of the Color Computer System.
• RELIABLE - Less than one error in a million bits.
Special Feat ure:
• SUPPORTS TWO D�IVES - Software selectable.
Code & Decode A NYTHING in t lw lIu ff.'r fur St'cure
• ALL FILE TYPES - BASIC machine language, data.
Transmission or Storage Using a USN cI('fin{'d kt'y word
• MOTOR CONTROL - lWo on-board relays.
I'H1CE '29.95 (Tape) 139.95 ( Oisk) Hik or :12k Hl'q.
• EPROM OPERATING SYSTEM
• SRA.RE EPROM SOCKET - 27 1 6 or 2732 compatible.
S2 .()() s h i J l P i n ll and handling on all orders. No extra • OPTIONAL JBUG MONITOR - EPROM or Cassette

. ..
charg<.> on COil orclt'rs, Ma.stt'r('ard and VISA a t't' ept('d . • 6809 Assembler • Memory modify and list

.
• 6809 Dis-assembler • Break point traps
Chargl' orders add :1 'X, . T('xas resid('nts add 5 'X, salt's tax.
• ASSEMBLED and TESTED
A l low t w o wet'ks for pt' rso n al ('h('t·ks. Your ordt'r w i l l
TC-8C . . . . . . . .S 1 29.95 JBUG (EPROM) . . . . S34.95
usually h e s h i ppl'd w i t.hin t wo o r th r('t' days. W e w i l l
JBUG ICassette) . . . S29.95
nol ify y o u o f a n y problems w i t hin ont' wt'e k . Sen d 2()

.
TERMS:
n'nl slarnp for ffl'(' ('atalog. Cash. Mas�r Card Of Visa

.... 412 Shipping & Handling S3.50IUSI


DOUBLE DENSITY SOFTWARE SS.50 (Canada I S 1 5.00

I I
" """"'d w;" S,,'"' (�gnl TKhntcal
Inqul",," �
" Upnllln, Tt'xas 762() I .. ,� 5:00 • 6:00 PM MST
'
I'ho/lt, Ii 1 7lfi66·2()('4 . .=.

THE GREATEST
SOFTWARE DEAL
ON EARTH.

Ta me your computer without breaki n g your


wa l le t 's spiri t ! Qua l ,i ty programs on tape for the
price of pea n u ts !

A su bscription to Chromasette Magazlne consists of 6 to 8 ready- to-Ioad usefu l , pra c tical.


a n d fu n progra ms d e l ivered by Firs t Cl ass Mail' every month. Programs l ike CUNe Fit. Diggem,
G raph Text. List Mod, Robot Run, Hous e Adventure, and Keep Text.

Treat you rs e l f to a grea t shoV\( - get a subscription to Chroma sette Magazine. Or catch
a single act and try a back issue. Yo u 'l l be del ighted' by the tricks your computer will do !

The Bottom LIne: I year ( 1 2 Issues) S50 00 Calif. residents add 6% to Single copies.
6 months (6 Issues) S30.00 North America - First Class postage included.
Single Copies S 6.00 Overseas - add S I O to subscriptions and SI to Single copies. Sent AO rate.

The Fine Print: All Issues fr � m July 1 98 1 available - ask for list. Programs are for the Extended BASIC model and occasionally for disks.

..., ..... MAGAZINE


/805) 963 · 1 066 MasterCard/Visa .... 102

" See List 01 Advertisers on page t38 HOT CoCo June 1983 85
If you make an error or change your Listing continlled
mind about a card you rejected, press
469 T $ - " U l E4UlL4BM+7 , 6 " ' 7
and hold the shift key and press the 4 7 9 U $ - " BM+l , 9 , H lUlElHlUlElR2PlDlGlNL2PlDlGlL2BM+6 , 9 " 'S
number of the card you want back. 4 S 9 V$- " BM+9 , - 1 , PlR2ElU4Hl L2GlDlPlR2BM+ 4 , 3 " ' 9
499 W$- " RlNRlU6GlBM+5 , + 5 , HlU4ElR2PlD4Gl L 2 " ' 1 9
When the selection process is complet­ 599 X $ - " BM+9 , - 1 , rlRlEU5NLlRl" ' J
ed, press enter to get your replacement 519 Y $ - " BM+l , 9 , HlU4ElR2PlD3GlNHlNPlGlLl " ' 0
cards and see how well you did. 529 Z $- " U3NU3RlNE3P3 " ' K
539 N $ - " U 4 E2P2D2NL4D2BM+3 , 9 " ' A
Press enter to deal a new hand and 549 G$."BM+ 3 , - 2 , PlR2ElHlL2HlElR2PlBH 2D6BM+5 , 9 " '$ •

start the card selection process over 559 TA$-"BM+2 , 9 , U6NL2R2BM+3 , 6 " ' T
569 LA$-"NU6R4UlBM+3 , 1 " ' L
again, or press any key to return you to 579 WA$-"NU6E2NUlP2U6BM+3 , 6 " ' w
the menu. 5S9 NA$."BM+l , 9 , RlNRlU6NLlRlBM+4 , +6 , U 6PlDl�2DlPlNU6BM+ 3 , 1 " ' IN
599 OA$-" BM+l , 9 , HlU4ElR2PlD4GlL2BM+6 . 9 " '0 OR I
699 AB $ - " U 4NR4U4R4DSBM+5 , 9 "
"It takes three 619 CB $."NR4USR4BM+4 , S "
629 DB$."USR3 PlD6GlNL3BM+5 , 9 "
of a kind or 639
649
EB$- "NR4U4NR3U4R4BM+ 4 , S "
GB $ - " BM+4 , - 4 , D4L4USR4BM+ 5 , S "

. better to win, " 65A


669
HB$."U4NR4U4BR4DSBM+5 , 9 "
LB $ - " NR4USBM+ S , S "
679 NB$- " U SDlP6DlNUSBM+ 4 , 9 "
6S9 OB $."U SR4DSNL4BM+4 , 9 "
Remember that there is a $ 1 ante; so 699 PB $ . " U SR4D4NL4BM+ 4 . 4 "
if you win, the total will increase a 799 RB $ - " U SR4D4L4P 4BM+ 4 , 9 "
719 S B $ = " R4 U4L4U4R4BM+ 4 , S "
dollar less than what you win. In other 729 TB $�" BR2USNL2R2BM+ 4 , S "
words, if you win $5 , the total dollars 739 M-9
only increase by $4. 749 D1MT ( 5 2 ) . D ( 1 9 ) . V ( l4 ) . 8 ( 4 )
7 5A POR A-lT05 2 : T ( A) -A I NEXTA
For those of you who aren't card 769 ' DEAL THE CARDS
players, I've included a listing of the 779 POR A-I TO 1 9
7 S9 C-RND ( 5 2 )
card values and what makes up a win­ 7 99 I PT ( C ) - 9THEN7 S9
ning hand (see Tables 3 and 4). Table 5 899 D ( A) -C : T ( C) -9
lists the probabilities of winning and the S19 ' BREAK INTO SUITS AND VALUES
S29 I PD ( A ) < 1 4 THEN S ( A) - 1 : GOTOS69
resulting payoff. Good Luck! . S 3 9 I PD ( A) < 27 TH EN S ( A ) - 2 : D ( A) -D ( A ) - 1 3 I GOTOS69
S49 IPD ( A) < 4 9 THEN S ( A) -3 : D ( A) aD ( A) - 2 6 I GOTO S 6 9

Write to Duane Rouch a t 12620


S 5 9 S ( A) - 4 : D ( A) -D ( A) - 3 9
Listin, conlinwd
Memory Lane, Bowie, MD 20715.

A(high), K, Q, J, 10, 9, 8, 7, 6, 5, 4, 3, 2, A(low).


rDraw electronic circuits with our...

Electronics Bratting BoarII


The ace is low only in the sequence 5-4-3-2-A.

Table 3. Card Values in Order


I
Design wiring diagrams easily with our Electronics Drafting Board. Create com­
plex otIec:Ironlc plsns, label components, arase, atc. and than have a Ilnlshed
achamlltlc Irom your printer. Screen print routine and disk VO InclUded. Comas I . RF-A, K, Q, 1, and 10 in the same suit
with sampla schemlltlc Ille and axcellant documentation.
2. SF-Five cards in order in the same suit
'& vl_lng windows on a 480x540 pixel work sheet'Joystick or a<low·key con­ 3. 4K-Four cards of the same value
trol'Text labela componants on-screen'AIi electronic symbols'Complete
dOcumentation with on-acreen help'Prlnts finished schematic to any Epaon MX 4. FH-Three cards of one value and two cards of another value
(with Graflrax) or Radio Shack printer Requulrements: 64K Color Computer with 5. F-Any five cards in the same suit
Extended Baate, disk drive and (optional) printer. S39.95 Includes operating man­
ual, program on disk, poat.ge. 6. S-Five cards in order but not in the same suit
7. 3K-Three cards of one value

OATAFILE DATAFILE 64k


Table 4. Rank of Hands

HAND WAYS ODDS OJo S$$


RF 4 1 in 649,740 0.000 1 5 200
SF 36 I in 72, 1 93 0.0013 55
PAINTPOT 4K
FH
624
3,744
I
I
in 4, 165
in 694
0.024
0 . 1 45
25
15
t

Bring Oul the artist In you and your lamlly! With PAINTPOT you can create last,
effortless sklltchea and drawings. PAINTPOT gives you joystick or keyboard F 5, IOS I in 509 0.2 8
control on 4 screens. (3 screens on I &K) Thare are 4 cans 01 paint to play with! A
touch 01 a key starts animation effects lIashlng Irom screen to screen. S 10,200 I in 255 0.4 5
Your works 01 art can be saved or loaded lro.... cassette or disk and, with our 3K 54,91 2 I in 47 2.1 2
Screen Print Program <_ below) you can have a hard copy on your printer.
PAINTPOT comes with complete dOcumentation and a help screen Is available.
Great fun lor kids and creative adults!
524.95 on caasette. $29.95 on disk. Both 1& & 32K onthe same tapeldlsk. Extended Table 5. Winning Probabilities and Payoff
'Baalc required.

SCREEN PRINT 51 4.95 Abbreviations used in Tables 2, 4 and 5:


For u.. with Epson MX�/l00 printers. Three print lormats, all versions 01 BaSiC,
PMODESO.2,3,&4. Normal or nagatlva Image. Many uselul leaturesl
RF = royal flush, SF straight flush, F = flush, S = straight
=

ADd S1.50 poafeg_ & handling. 4K = four of a lcind, 3K = 3 of a kind, FH = full house
e design Dept. H, 4653 Jeanne Mance St., ,... 215
Montreal, Quebec. Canada H2V 4J5
D column-I = ace, 1 3 = king, 1 2 = queen, 1 1 =jack
S column-I = club, 2 = diamond, 3 = heart, 4 spade =

86 HOT CoCo Jum: 1983


Listing conlinuec/ C.putlf IsI.nd PrlSlflts
8 6 8 SS ( A) 2S ( A) : DD ( A) aD ( A) : N EXT A THE BEST IN
8 7 8 PMODE 3 , 1 : PCLS : SCREEN1 , 1
8 8 11 L I N E ( 1 6 . 1 6) - ( 4 8 , 6 4) . PSE'l' , B SOFtWARE FOR KI'DS!
8 9 8 LINE ( 6 4 , 1 6) - ( 9 6 , 6 4 ) , PSET . B CIRCUS ADVENTURE 16K $ 9.95
9 11 11 LINE ( 1 1 2 , 1 6 ) - ( 1 4 4 , 6 4 ) . PSET . B
9 1 A LINE ( 1 6 11 , 1 6 ) - ( 1 9 2 , 6 4 ) , PS E T . B 16K $1 1.95
SCHOOLMAlE ADVENTURE
9 2 11 LINE ( 2 1i1 8 , 1 6 ) - ( 2 48 , 6 4) . PSET . B
9 3 A L=IiI : DRAW'C7 , '
lIGHTPEN and 16K Elt. Sollware $34.95
9 4 8 DRAW ' S 4BM3 2 , 7 2 , ND1 2 , ' s IFL-1THEN 1 7 3 1i1
9 5 11 DRAW · S 4BM7 7 . 7 2 , R6D6L6D6R6 , · s IFL-1THEN17 3 8
FOREIGN LANGUAGE BASEBALL 16K Ell. $1 1.95
9 6 8 DRAW ' S4BM1 2 5 , 8 4 , R6U6NL5U6L6 , ' s IFLa1THEN 1 7 3 1i1
Spanish. French or Italian {specily,
9 7 1i1 DRAW " S 4BM17 3 , 7 2 , D6R6NU6D6 , " : I F L-1THEN 1 7 3 8
9 8 11 DRAW " S 4 BM2 2 1 , 8 4 , R6 U 6 L6U6R6 , " : IFL-1TH EN 1 7 3 8
MONEYPAK 12K Elt. $22.95
9 9 8 ' DISPLAY THE CARDS
2 Programs tnch the use of money to purchase items
1 iii II iii FOR A-1T05
displayed and to buy from a fast food menu. Includes
1 iii 1 II IFA-1 THENORAW' BM3 8 , 6 8 , ' s B-37 , GOSUB 1 6 4 1l.s DRAW · S 8BM22 , 3 2 , " s GOS
play money.
UB1 5 8 iii
1 8 2 8 IFAa2THENDRAW ' BM7 8 , 6 Ii1 , ' : H- 8 5 : GOSUB1 64 Ii1 , DRAW'BM7 1i1 , 3 2 , " s GOSUB
BEYOND WORDS 12K Elt. $19.95 Each
1 5 1l 1i1
1 iii 3 iii IFA=3THENDRAW'BM1 26 , 6 Ii1 , ' s H-1 3 3 , GOSUB1 6 4 8 s DRAW'BMl 1 8 , 3 2 , " , GO
1 Part menu driven program with tutorials and grade
SUB1 5 1l 1l
appropriate subtests and ,reliews. Over 4 00 questions,
1 1i1 48 IFAa4THENDRAW'BM1 7 4 , 6 8 , " s B - 1 8 1 : GOSUB 1 6 4 Ii1 s DRAW'BM 1 6 6 , 3 2 , " , GO
gOO words, modi liable.
SUB 1 5 A Il
• Beyond Words I • Grades l·5
1 1l 5 1i1 IFA�5THENDRAW'BM 22 2 , 6 Il , ' s B- 2 2 9 , GOSUB 1 6 4 Ii1 ' DRAW"BM2 1 4 , 3 2 , " , GO • Beyond Words II . Grades &-1
SUB15 1l 1i1 • Beyond Words III • Grades 9·12
lIiI61l NEXTA
1 1i1 7 8 IFB-IiITHEN 1 6 9 1i1 VOCABULARY BUILDERS l2K Elt. $19.95 Each
1 11 811 GOT01 8 6 8 4 Pari multiple choice lormat. 200 questions, 1000
words. User modi liable. �
�rr
1 5 1l 1i1 ' CARD VALUE SUBROU T INE
1 5 1 11 IFn ( A) -lTBENDRAW'XN S , " : RETURN • Vocab. Builder I • Grades l·5
1 5 2 1i1 I FD ( A) -2TH ENDRAW'XO S , " : RETURN • Vocab. Builder II • Grades &-8
;1-' ,
1 5 3 11 IFn ( A) -3 THENDRAW'XP S , ' : RETURN • Vocab. Builder III • Grades 9·12 I

1 5 4 11 I Fn ( A) -4TH ENDRAW ' X Q S , ' : RETURN


1 5 5 1i1 I FD ( A ) = 5THENDRAW ' XR S , ' : RETURN COMPUTER ISlAND, Dept. H d�
1568 I FD ( A) = 6THENDRAW 'XM S , ' : RETURN 227 Ham pton Green, Staten Island,
157 1i1 I FD ( A) = 7 TH ENDRAW'XT S , ' : RETURN
1 5 8 11 IFD ( A) = 8THENDRAW ' X U S , " : RETURN NY 103 1 2
1598 IFD ( A) - 9THENDRAW'XV S : ' : RETURN .... 1 1 6
Add $1 .00 S/H · N.Y. Add Proper Til
1 6 8 1i1 I FD ( A) a1 BTHENDRAW ' XWS, " , RETURN
Send lor catalog 01 other programs
1 6 1 1i1 I FD ( A) - l l THENDRAW ' X X S , ' : RETURN
Listing continued TRS-80 COlOIL COMPUlIR TDP SYSTEM 100
'" � 01 TANDY COfp

Hello thayuh. This is Eben Flow, proprietor


of the Fish or Cut Bait Company, buyer and
seller of lobstah bait for 49 years. My hobbies
are collecting linoleum samples, squashing flies
and playing pac-person on my home computer.

But here on Martinicus Rock, off the coast of


Maine, the power can be a tad erratic. So, to
cure the brownout and blackout problems,
and to keep them spikes and surges off my
picture tube, I got me a MAYDAY
Uninterruptible Power Supply from SUN
RESEARCH. Them fellas fixed me up real good
and real light on my pocketbook, too. Got me
a MAYDAY for my mini-calcaputer with a
voltage regulator and everything for only 325
clams. They even included the battery in a nice
waterproof box. Handy out here, you know.
Now, if MAYDAY would only keep them sea
dogs out of my barrel. . .

MAYDAY . Protection even you can afford!

S U N R ES EAR CH, I N C .
Box 21 0
New D u rham, NH 03855
603/859-71 1 0
TWX 51 02974444 ,, 285

.... See List 01 Advertisers Of) page 138 HOT CoCo Jun� 1983 87
COMPUTER R E PA I RS Lisl;n, (Oil/inUM
CONSULTATIO N S
1 6 2 1 IPD ( A) .12THENDRAW·XY S , · I RETURN
1 6 3 1 DRAW·X Z S ' · I RETURN
1 6 4 1 ' CARD SUIT SUBROUTINE
1 6 5 1 IPS ( A ) .lTHENDRAW·XC S , · : PAINT ( H , S 9 ) . 6 , 6 I S0UND1 1 1 , 1 I RETURN
1 6 6 1 IPS ( A) .2TH ENDRAW·XD S , · I PAINT ( B , S 8 ) . 8 , 8 I S0UND 1 1 1 , 1 I RETURN
1 6 7 1 IPS (A) .3THENDRAW·XH S , · I PAINT ( B , S 8) . 8 , 8 I S0UND1 1 1 , 1 I RETURN
1 6 8 1 DRAW·XS S , · I PATNT ( H , S 9 ) . 6 , 6 : PAINT ( H , S I ) . 6 , 6 I S0UND1 1 1 , 1 , RETUR
N
E & G U M LOR ENTERPRISES 1 6 9 1 ' CARD CHANGE ROUTINE
RFD #1, BOX 48A 1 7 1 1 B.1
FITZWilliAM, NH 0344 7 1 7 1 1 DRAW · C 2S4BM7 4 , 1 4 1 , XCBS , XHB S , XAB S , XNB S , XGB S , XEB S , BM+8 , 1 , XCBS
, XAB S , XRB S , XDB S , XSB S , ·
MODIII 43K DUAL DISK DRIVE 1 7 2 1 DRAW·BM8 1 , 1 6 1 , XPB S , XRB S , XEB S , XS B S , XSB S , BM+ 8 , I , XEB S , XNB S , XTB
For RS·232·C add $ 1 00.00 S , XEB S , XRB $ r •
1 7 3 1 U-INKEYS
$ 1 750.00 40 TRK Single/Side
1741 I PK S <CBR S ( 1 3 ) ORK S >CHRS ( 13 ) ANDK S <CHRS ( 33 ) ORKS >CBR S ( 37 ) AN
$2000 .00 40 TRK Double/Side
DK S <CBR S ( 4 9 ) ORKS >CBRS ( S3 ) GOT01 7 3 1
$2200.00 80 TRK Double/Side 1 7 5 1 I FK S · · 1 · TBEND ( 1 ) ·D ( 6 ) I S ( 1 ) .S ( 6 ) , L. 1 , DRAW · C S ' . I GOT0 9 4 1
All orders prepaid 1 7 6 1 IFK S · · 2 ·THEND ( 2 ) .O ( 7 ) I S ( 2) .S ( 7 ) : L.1 , DRAW · CS , · , GOT0 9 S I
1 7 7 1 I FK S · · 3 · TH END ( 3 ) ·D ( 8 ) I S ( 3 ) .S ( 8 ) I L.1 I DRAW· CS , · , GOT0 9 6 1
S h ipment i n 4 weeks max.
17 8 I IFKS· · 4 · TBEND ( 4 ) .D ( 9 ) , S ( 4 ) .S ( 9 ) : L.1 I DRAW· C S , · , GOT0971
•• 180 DAY WARRANTY · · 1 7 9 1 IFKS· · S · TBEND ( S ) ·D ( l l ) , S ( S ) .S ( l l ) : L.1 I DRAW · C S , · , GOT0981
VISA/MC users add 4 % 1 8 1 I IFK S· · I · TB END ( 1 ) .DD ( 1 ) : S ( 1 ) .SS ( 1 ) , L.1 , DRAW · C7 , · , GOT0 9 4 1
shipping extra 1 8 1 1 IFK S·CBRS ( 3 4 ) TBEND ( 2 ) .DD ( 2 ) : S ( 2 ) -SS ( 2 ) : L-1 I DRAW·C7 , · , GOT09S
I
Other products and services
1 8 2 1 IFKS·· . · THEND ( 3 ) .DD ( 3 ) , S ( 3 ) .SS ( 3 ) : L.1 I DRAW·C7 , · , GOT0 9 6 1
.,. 40t

FREE
available on request 183 1 IFK S . · S · TBEND ( 4 ) .DD ( 4 ) I S ( 4 ) -SS ( 4 ) : L.1 I DRAW·C7 , · , GOT0971
1841 I F K S. · ' · THEND ( S ) .DD ( S ) : S ( S ) .SS ( S ) : L.1 I DRAW.C7 , · : GOT0 9 8 1
1 8 5 1 IF K S·CHR S ( 13 ) GOT0871
1 8 6 1 ' CARD BOLDING
1871 FOR X.1T04 : H ( X) .I I NEXTX , FOR X.1T014 : V ( X ) . I , NEXTX
1881 FOax-1TOS I V ( D ( X » .V ( D ( X » +1 , B ( S ( X » .B ( S ( X » +1 , NEXTX
1891 ' WIN OR LORE
1911 T.I : FORI.1T04 : IFH ( I ) < >STBEN191 IELSET.S
O U R N EW CATALOG 1 91 1' NEXT I a 1·2
1921 I . I-1 , I P I < >ITB EN 1 9 3 I ELSEI.13
MASTER CONTROL I I
B y Soft Sector Marketing 1931 IFV( I ) <lTB EN 1 9 2 IELSEIFI .1 THEN I.14 I V ( 1 4 ) .V ( 1 )
1 9 4 1 I·I+l
SAVE ... 1951 Z-S
Programming Time and Mistakes 1961 I.I-l , I P I - I TH EN 2 1 1 IELSEIFV ( I ) <>lTBEN 2 1 1 1
.,. 50 Preprogrammed keys for fast 1971 I F Z < >ITBEN Z. Z-l , GOTOI961
accurate entry of command 1 9 RI T-T+4 , IFT.4TBEN 2 17 IELSEIPV ( 1 4 ) .V I 1 3 ) TH ENT.II ELSET-9
1 9 91 GOT02 1 7 fJ
words.
2111 I F I < >ITBEN I 9 S I
.,. Plast ic keyboard overlay. 2111 IFT.STB EN 2 1 7 1
.,. Custom Key. 2121 FORI-lTOI 3 : I FV ( I ) < > 4TBEN 2 1 3 I ELSET-7
.,. Auto. l i n e n u mbering. 2131 I FV ( I ) < >3TBEN 2 1 4 I ELSET-T+S
.,. Now d isk compatible. 2141 I FV ( I ) <>2TB EN 2 1 6 I ELSE IFT-STHEN 2 I S I
.,. M uc h more. 2151 T.T+l

Only 81 9.95 2161 NEXTT , I FT< >STB EN 2 17 I ELSET-3


2171 ' PAYOPF
CoCo Warehouse 2181 IFT<3THEN SOUNDl l , 4 , E-I , GOT02191 ' LES S THEN 3 OF KIND
Where Shopping by Mall Is "USER FRIENOLY·· 2191 DRAW·C3S8BM 8 8 , II I , XWA S , XNAS , XG S , · ' WI N S
500 N O RT H DO BSON 2111 FORA.lIT02S ISTBPS I SOUNDA , I : NEXTA
2111 IPT.3THENDRAW·XO S , · ' E�2 , GOT021 8 1 ' 3 OF KIND
WEST LA N D, MI 48185
2121 IFT·4THENDRAW·XR S , · , E.S , GOT02181 ' STRAIGBT
",350
(31 3) 722·7957
2131 IFT.STHENDRAW·XU S , · , E. 8 I GOT02181 ' FLUSH
2141 I FT-6THENDRAW·XF S , XR S , · , B·lS I GOT02181 ' FOLL HOOS B
2151 IPT·7TH ENDRAW ·XO S , XR S , · , E.2S : GOT02181 ' 4 OP KIND
2161 IPT-9TBENDRAW·Xa s , XR S , · , E.S S I GOT02181 ' STRAIGHT FLOSH
2171 IPT·IITHENDRAW·XO S , XOAS , XOA S , · , E.21 1 , GOT0 2 1 8 1 ' ROYAL FLOSH

AYTINTI
2 1 8 1 FORZ.1TO E : SOUND 2 1 1 , 3 I FORB.1TO S I NEXTB , Z
2191 ' TOTAL SUBROUTINE
2 2 1 1 DRAW · C 4 S 8BMS 6 , 1 4 1 , XTAS , XOAS, XTAS , XN S , XLAS , XG S , · ' TOTAL S
2 2 1 1 Mc ( M-1 ) +E
Foreign Computer 2 2 2 1 IFM<I THENDRAW ·BM+ I ,-3 , R4 BM+3 , 3 ·
Stores' Magazine Dealers 2 2 3 1 X·ABS.I M ) I X·X+ . l , X.X/ 1 I 1 ,W·nX ( X ) I GOS0B 2 3 3 1
2 2 4 1 F·X-W I X.F * I I ,W.FIX ( X) I GOSOB 2 3 3 1
You have a large technical audience that 2 2 5 1 p·X-W I X.F*1 1 I W.PIX ( X) , GOSOB 2 3 3 1
2261 ' NUMBERS
speaks English and is in need of the kind of
'I
2 2 7 1 B.I
microcomputer information the Wayne 2 2 8 1 DRAW·C2S4BM4 8 , 1 8 1 , XPB S , XRB S , XEB S , XSB S , XS B S , BM+8 , I , XIB$ , XRB$
Green Publications group provides. , XTB S , XEB S , XRB S , BM+ 8 , 1 ·
2 2 9 1 DRAW·XTB S , XOB S , BM+ 8 , I , XOBS , XEB S , XAB S , XLB S , ·
Provide your audience with the maga· 23 1 1 K S·INKEY S I I F K S · · ·GOT02 3 1 1
zines they need and make money at the 2 3 1 1 IPKS-CHRS ( 1 3 ) GOT07 S I
same time. For details on selling Micro­ 2 3 2 1 GOT04 I
2 3 3 1 ' NUMBERS FOR TOTAL
computing, 80 Micro, Desktop Computillg. 2 3 4 1 I FW·ITBENDRAW·X PS , · , RETURN ' I
inCider, HOT CoCo, Instant Software and 2 3 5 1 IFW-2TH ENDRAW·XO S , · , RETURN ' 2
Wayne Green Books contact: 23 6 1 IFW·3TBENDRAW·XP S , • , RETURN ' 3
23 7 1 IFW. 4TBENDRAW·XQ S , • I RETURN ' 4
Sandra Joseph 2 3 8 1 IFW·STHENDRAW·XRS , · , RETURN ' 5
World Wide Media 2 3 9 1 IFW.6TBENDRAW·XMS , · , RETURN ' 6
386 Park Ave. South 2 4 1 1 IFW.7'l'HENDRAW·XT S , • , RETURN ' 7
2 4 1 1 IFW· 8THENDRAW·XO S , • I RETURN ' 8
New York. N.Y. 1 00 1 6
2 4 2 1 IFW.9THENDRAW·XVS , · I RETURN ' 9
Phone-(2 1 2) 686- 1 520 2 4 3 1 DRAW·XOA S , · , RETURN ' I
Telell-620430 2 4 4 1 GOT087 1

88 HOT CoCo June 1983


Color Computer Collection THE�T.
PAOGAAm ITOAE

Programmer's
SCE PTER OF KZIRGLA MOON
Corner
From Rainbow Connection Software
Real-time graphics adventure game with arcade sound for
SHun'LE
the color computer. t3 IIoors of dungeon with monslers, From DataSoft
treasure chests, hidden trap doors . . . even a f1ying magic
carpet! All in your quest to find the Scepter 01 Kzirgta,
Pilot your moon shunle to meet your destlny- The Prince
of Darllness. Out maneuver spinning rockets, dodge life
BASIC AID
From Eigen
Whatever you do, don't get caught i n the poisonous gas threatening man-o-wars, meteors, bomb launchers and
expandos. Suddenly your flight becomes more perilous as Help for the BASIC programmer! Merge command, move
cloud! Extended BASIC required.
enemy ,forces multiply. Test the ouler limits 01 your inslinct command and automatic numbering plus 45 common
16K Tape, $16.95\ BAS IC commands - or change keys to your specifica­
for survival!
16K Disk, $21.95 16K Tape $34.95
tions. Comes with convenient �asy to use plastiC keyboard
overlay. Power up and you instanlly have all the develop­
ment tools you need.
ROM $34.95

ZAXXON TELEWRITER 64
CONQUEST - From DataSoft
The official Zax.xon, now for home use, combines 3 dimen­
From Cognitec
Now word processing at its best! This machine language

OF KZIRGLA ���
sional effects, unique color graphics and realislic sound program uses Hi-Res graphics to draw lext. It includes
effects. Arcade action while you maneuver your ship advanced features to create, edit, store, format and print
through a banlefield of enemy missiles, tanks and planes any kind of text with iustification, hyphenation and page
The adventure continues, seek out and destroy the enemy
to meet your match In the deadly Zaxxon Robot armed with numbering. Creates a new character set (no hardware
wizard before his scepter recharges. While a continuation


modifications required) that has true lower case leHers in 3
01 Sceptor of Kzirgla, you don't have to have the earlier
a tethal homing device. ,
display lormats 51/64/85 columns x 24 lines. The full
. 95

� ;� ;; dili\:
program to play Conquest.
screen editor is simple to use with single key commands,
16K Tape $21.95 ·or menu driven 110 and formaHing. Comes with well wriHen
documentation and runs on 16K, 32K, or 64K with or with­
32K Disk $26.95
out extended basic. Telewriter surpasses other word proc­

! ���!�� /�
essors for user ·friendliness and power.
,
Tape $49.95 or

A
r

�:�E
Be a delender! Your ships are lortified with smart bombs to
KEYS OF protect the planet from aliens. Machine-language arcade
style game with fast action and superior Hi-Res graphics.
THE WIZARD What will be the late of civilization when you are in control?

R
Joystick required.
b y John Gabbard
From Spectral Associates 16K Tape $21.95
Unlock all the doors! Smart creatures follow you through­ by Bob Sleath
out hu ndreds of rooms filled with gliHering treasures, From Spectral Associates
magic spells. traps, tricks and puzzles. This exciting ma­ 00 you hunt and peck? For beginners or rusly Iypists,
chine language text adventure has great sound. Three skill
levels allow you to learn easily and worll up to expert.
Cassene save with random features so you never play the
Bookshelf become prolicient in touch Iyping at your own pace. In­
structional program has 15 lessons streSsing eye-finger
coordination, accuracy and speed. The 'last lesson points
same game twice! out errors so you know which characters you miss.
Smooth, free-liowing Iyping is simple with this tutorial.
16K Tape $19.95
16K Tape $19.95
ASSEMBLY
LANGUAGE
DON KEY
GRAPHICS
KING by Don Inman and Kurt Inman BREAKTHRU
From Tom Mix From Reston Books From Avalon Hill
How high can you climb? Use the practice game to test Improve your skills! Create graphical dat, displays after

Futuristic racquetball! Knock out five walls al the oppOSite
your skills. Become an expert at this arcade-slyle game reading these revealing applications using sound and end 01 the court uSin ioyslick to strike or deflect the lively
filled with exciting sound and realistic aclion. For t or 2 graphics to show you what can be done with an assembler. 'ball. Fast action, 3 dimenSional, high resolutiom machine
players. There are 4 screens: barrels, pins, i acks and con­ A complete guidebook to assembly language program­ 'language , arcade game. Exciting simulation of molion and
veyors. Reach Ihe hammer if you're last and slrong. ming on the Color Computer. perspective.
32K Tape $26.95 . $14.95 16K Tape $19.95

For I nformation Call T,M. To Order Call TolI·Free


202·363·9797 800·424·2738
Vi s i t our other stores: .... 80
MAIL ORDERS. Send check or M . O. for total pur-
82g Bethei Rd .. Columbus OH
chage price, plus $2.00 postage & handling. D.C .. MO: &
Seven Corners Center, Falls Church, VA
VA.: add sales tax. Charge cards: Include all embossed in -
W, Bell Plaza, 6600 Security Blvd .. Baltimore, MD

• ... .,-,
for mation.
© 1983 The Program Store,
White Flint Mall, Rockville Pike, Rockvi lle, Md.
Coming Soon to Boston, Philadelphia and Pittsburgh. Inc. _

r THEPROGRAM�TO;E-:-D.;t":03.0�6-:3-:- BO; 958;: 4200Wi�;n;l;A;;n;; N.W.7w.-;hi;';;;' D.C."2;'16- - 1


-

I Item Tape/Dis k/Book Price Postage $2.00 Name I

___
I I
Total Address
I I
I 0 CH ECK 0 VISA Ci ty State _____ Zip __ I
I 0 MASTERCARD Card # Exp I
I I
Computer
I I
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -,
" See LiSf 01 Adverfisers on psge 138 HOT CoCo June 1983 89
EDUCATION

BY JAMES WOOD

PHYCOLOR

M any of my fellow teachers


denounce the idea of micros in
Add, subtract, and aim struction; a computer, which proceeds
at the student's pace in a way a movie or
class, saying that computers will never
light rays : colorful record can't, combines individual aid
replace teachers. This may be true, but lessons in optics for the with infinite patience .
then slides, movies, and audio tapes Program Listing I gives a brief lesson
haven 't replaced teachers either. classroom on a 1 6K CoCO . on the results of adding and subtracting
Schools usually lack the time and light in different colors. The program's
money to supply much one-on-one in- first half simulates the classic experi­
ment of overlapping the beams of three
projectors (Fig. I); the second half ex­
plains the use of filters to block or sub­
tract colors.
A knowledge of color addition helps
you understand color subtraction. For
instance, since yellow is the result of add­
ing red and green, a yellow fllter will
allow both red and green light to pass.
Listing 1 includes a short quiz to test
knowledge of both concepts; the ques­
tions are shuffled each time the pro­
gram runs.
The Lenses program (program List­
ing 2) uses high-resolution graphics to
illustrate the properties of convex and
concave lenses (Figs. 2, 3, and 4). It pre­
sents ray diagrams and mathematical
methods of rmding images formed by
lenses, and also administers a short
quiz .•
Write to James Wood at 424 N.
Missouri, Box 507, Atwood, IL 61913.

System Requirements

16K RAM
Exteaded Color Buk

90 HOT CoCo Juno: 1983


Progrom Lis/ing nex/ poge

F I L M A S T R T I M E & M O N E Y
A powerful DATA MANAGEMENT SYSTEM for the A "WHAT I F?" financial planning tool. T & M is used to
COLOR C O M PUTER. If you have been wanting a really evaluate the time value of money as an aid in planning
good data manager at a reasonable price, T H I S I S IT! investments, savings plans, retirement plans, leases,
F I LMASTR combines the best features of the big loans, mortgages or any other situations that involve
systems to provide a combination of speed, power, and compound interest.
sim plicity that can't be beat.
The program i s menu driven with simple on-screen
C U STOM S C R E E N S - Design input screens with up to
instructions. I t uses a u n ique form fill-in for data entry
20 fields. I nverse labels for contrast.
with easy editing. I t even accepts simple math expr'es­
F O R M F I LL ENTRY - Non-d estructive blinking cursor,
sions as input.
full screen editing, no garbage collections, copy fields
from previous record. Keeps up with the fastest Calculated results are automatically entered as data and
typist. can be used for further "WHAT I F?" calculation. All
FAST SORT & SEARC H - M achine language sorts the factors are always on screen, making i t easy to
entire file in seconds. Sort on any field or fields. Use a understand the relationship between T I M E & MON EY.
variety of relational search techniques to select any
record or group of records that you can define. 1 6K or 32K TAPE $ 1 9.95
TIME & MONEY
EXT BASIC D I SC 24.95
EDIT FILES -. Change or delete any record easily. Create
and save s u b-files or append files.
P R I N T FORMAT - Print any field in any order on any line. II I e
I nsert characters or phrases. i H L...
M E N U D R I V E N - No special commands to be learned. COMPUTER (8 1 4) 3 7 1 -4658
All functions are menu selected and aided by on
screen instructions. HOUSE
CAPA C I TY - Up to 255 characters per record, 24000
ch aracters per file. (9000 with 1 6K! B OX 1051, DUBOIS PA , 1 5 801
D O C U M E N TAT I O N - A thorough manual with
Add $2.00 Postage & Handling
examples and explanation of every command.
PA Residents Add 60fa Tax
1 6 K or 32K. . . . . . . . . . . . . . . . . TAPE $29.95
F I LMASTR C.O.D. $2.00 Additional
EXT BAS I C D I SC 34.95
... 255

... See List 01 Advertisers on page 138 HOT CoCo Jun( 1<}83 <}I
-=>
N

::t:
Program Listing 1
410 FORX=lT05
� 420 N=RND ( 6 ) : I FM i ' I ) = l T H EN 4 2 0 ELSEM ( N ) = 1 : PRINT · WHAT IS " ; B $ ( N ) : INP


10 RE�I JAMES W. WOOD , 424 N. M I S SOURI , ATWOOD , I L , 6 1 9 1 3 , JU N E UTD$
1981 430 I F D $ O C $ ( N ) THENPRINT" SORRY , IT IS · ; C $ ( N ) : FORT=lT0 8 0 n : 'lEXT"':
20 CLS : PRINT : PRI NTTAB ( 1 0 ) · A DDIN G COLORS· GOSUB 1 6 0 : NEXTX : GOT0 4 5 0

=
30 A $ ( I ) "' · TO ADD COLORS II'/ THE PHYSICS LAB TWO OR THREE PROJECTO 440 P R I N T · CORRECT " : CC=CC + l : NEXTX
= 459 P R I N T " YOU GOT " ; C C ; " OUT OF 5 CORRECT"
to
RS ARE U S E D . EACH ONE IS PRODUC ING A D I F F ERENT COLOR O F LIG
HT. IF TH E BEAMS ARE OVERLAPPED ON A SC R EEN YOU CAN SEE WHA 460 FORT = l TO l 'J a � : ll EXTT
:0
CI>
T COLOR RES U LTS . 479 CLS : P R I NT : P R I N T : PRI NTTAB ( 5 ) · SUBTRACTION OF LIGHT·
"" 489 P R I N T : PRINT" LAB RESU LTS MAY BE D I F FERENT BECAUS E , F I LTf.RS
40 A $ ( � ) = · YOUR PROJECTORS CAN PROV I D E FAR MORE COLOR COMBINATION
S THAN TH E TRS- 8 0 IS CAPABLE O F AT TH I S T I ME . · ARE NOT P ER FEC T · : PRINT
5 0 A $ ( 3 ) = ·WHEN T H E COMPUTERS CAN HANDLE MORE COLORS AND SHADES 490 FORT=lT07 9 0 : NEXTT
MAYBE SOMEONE WILL MATHEMATICALLY P R E D I C T WHAT COLOR RES 500 A $ ( l ) = ".IT IS NOW T I M E TO STUDY TH E RE S U L T OF PASSING LIG
HAVE THE COMPUTER SHOW H T THROUGl! A COLO" ED F I LT E R . ·
ULTS FROM TH E ADDING O F TWO OTHERS AND
TH E R E SULT . · 51 9 A $ ( 2 ) = · A F I LTER PASSES COLORS WH I CH MAKE U P TH E COLOR OF
DONE MUCH WORK ON TH I S TH E F I LT ER . "
6 0 A $ ( 4 ) = · A S C I EN T I S T NAMED OERSTED HAS
TOP I C • • 520 A $ ( 3 ) = · FO R EXAM P L E ·
70 A $ ( � ) = · BU T F O R NOW LETS LOOK A T TH E CLAS S I C ADDING O F THRE 5 3 9 A $ ( 4 ) = · A RFD F I LTE R P A S S E S RED L I GH T . "
E B EAMS OF L I GH T . TH E B EAMS USED WILL B E RED , B L U E , AND G R EEN . " 5 4 0 A $ ( 5 ) = " A YIEL LOW F I L TER W I LL PASS RED AND GRE EN L I G H T BECAU
8 0 FORW = l T0 5 : L= L EN ( A $ ( W ) ) : FORE=l TOL : PR IN TM I D $ ( A $ ( W) , E , l ) ; : FORT=l S E Y E L LOW IS TH E COMBINATION OF RED AND G R E EN . "
T03 0 : NEXTT : NEXTE : P R I N T : NEXTW 550 A $ ( 6 ) = " L ETS LOOK AT L I G H T AND F I LTERS . "
569 FORW = l T0 6 : L= L EN ( A $ ( W ) ) : FORE=l TOL : PRINTM I D $ ( A $ ( W ) , E , l ) ; : FORT=
90 FORT= l T0 4 0 0 : NEXTT
1 0 0 C LS 0 : PRINT@ 3 2 , "ADJUST COLORS " ; : PR I N T @ 6 4 , " RED BLUE G R EEN MAGE IT03 0 : NEXTT : NEXTE : PRINT : NEXTW
NTA · ; : P R I NT @ 9 6 , STRING $ ( 3 , 1 91 ) +CHR $ ( 1 2 8 ) +STRING$ ( 4 , 1 7 5 ) + C B R $ ( 1 2 8 ) 578 FORT=lT01 9 0 9 : N EXTT
+STRING $ ( 5 , 1 4 3 ) +C H R $ ( 1 2 8 ) +STRING $ ( 7 , 2 3 9 ) ; 5 8 9 C LS 9 : PRINT,@7 5 , · R ED F I L TER· ;
1 1 0 PRINT@ 1 6 0 , · CYAN YELLOW WH I T E " ; : PR I N T @ 1 9 2 , STR I NG $ ( 4 , 2 2 3 ) + C H R $ 5 9 0 P= 4 : M= 6 3 : N = 2 9 : 0 = 2 9 : GOSUB 6 4 0
( 1 2 8 ) +STR I N G $ ( 6 , 1 5 9 ) +CHR $ ( 1 2 8 ) +STR I NG $ ( 5 , 2 0 7 ) ; 6 0 0 C LS 0 : P R I N T @ 7 5 , · GR E EN F I LTER· ; : P= 1 : M= 2 9 : N= 2 9 : 0= 6 3 : GOS UB 6 4 9
1 2 0 P R I N T @ 3 8 4 , · PRESS ANY KEY TO CONTINU E · ; 6 1 9 C LS 0 : PRINT @ 7 5 , · B L U E F I L TE R· ; : P= 3 : M= 2 9 : N= 6 3 : 0= 2 9 : GOSUB 6 4 9
1 3 0 A $ = IN K EY $ : I FA $ = · · T H EN 1 3 0 6 2 0 C LS 0 : P R I N T @ 7 5 , · Y ELLOW F I LTE R" ; : P= 2 : M = 6 3 : N= 2 9 : 0= 6 3 : GOSUB 6 4 9
1 4 0 GO S UB 1 6 0 639 GOT0 6 9 9
1 5 0 GOT0 3 3 0 640 FORY=6T01 2 : S ET ( 3 1 , Y , P ) : S ET ( 3 0 , Y , P ) : NEXTY
160 C LS 0 : PRINT @ 3 9 , CH R $ ( 1 7 7 ) +CH R $ ( 1 7 9 ) +STRING $ ( 6 , 1 9 1 ) +C H R $ ( 1 7 9 ) +C 650 FORX = 9 T0 2 9 : S ET ( X , 7 , 4 ) : FORT=lT0 2 0 : NEXTT , X : I FM = 6 3 THENFORX = 3 2 TO
H R $ ( 1 6 3 ) +CHR$ ( 1 6 7 ) +STRING $ ( 5 , 1 7 5 ) +CHR$ ( 1 6 3 ) + C HR $ ( 1 6 2 ) ; 6 3 : S ET ( X , 7 , 4 ) : FORT=lT0 2 0 : NEXTT , X
170 PRINT @6 9 , CH R $ ( 17 7 ) +CHR$ ( 1 8 3 ) +STRING $ ( 7 , 1 9 1 ) +STRING $ ( 4 , 2 3 9 ) +S 6 6 0 FORX = 9 T0 2 9 : S ET ( X , 9 , 3 ) : FORT=lT0 2 9 : NEXTT , X : I FN = 6 3 TH ENFORX = 3 2TO
TRING $ ( 8 , 1 7 5 ) + C H R $ ( 1 6 2 ) ; 6 3 : S ET ( X , 9 , 3 ) : FORT=lT02 9 : NEXTT , X
1 8 0 PRINT @ 1 0 8 , CH R $ ( 1 7 7 ) +STRING $ ( 8 , 1 9 1 ) +STRING$ ( 6 , 2 3 9 ) +STRING $ ( 8 , 6 7 9 FORX = 0 T0 2 9 : S ET ( X , 1 1 , l ) : FORT=lT0 2 0 : NEXTT , X : I FO= 6 3 TH ENFORX = 3 2 T
1 7 5 ) +CHR$ ( 1 6 2 ) ; 06 3 : S ET ( X , I I , I ) : FORT=lT02 9 : NEXTT , X
1 9 8 PRINT @ 1 3 2 , CH R $ ( 1 8 3 ) +STRING $ ( 7 , 1 9 1 ) +STRING $ ( 8 , 2 3 9 ) +STRING $ ( 8 , 689 FORT=lT01 0 9 0 : NEXTT: RETURN
175) ; 690 C LS : B $ ( l ) = ·HAGENTA LIGHT AND YELLOW F I LTER"
2 0 0 PRINT @ 1 6 3 , CHR $ ( 1 8 1 ) +STRING $ ( 8 , 1 9 1 ) +STRING $ ( 8 , 2 3 9 ) +STRING $ ( 8 , 709 B $ ( 2 ) = · R ,ED L I G H T AND RED F I LTER·
1 7 5 ) +CHR $ ( 1 7 0 ) ; 710 B$(3) = · WH I T E L I GH T AND BLlIE F I L TER·
2 1 e PRINT@1 9 6 , STRING$ ( 8 , 1 9 1 ) +STRING $ ( 8 , 2 0 7 ) +STRING $ ( 8 , 1 7 5 ) ; 7 20 B$ ( 4 ) = · CYAN L I G H T AND RED F I LT E R ·
2 2 0 PRINT@2 2 8 , CHR $ ( 1 8 0 ) +STRING $ ( 5 , 1 9 1 ) +STRING $ ( 3 , 1 5 9 ) +STRING $ ( 6 , 7 3 0 B$ ( 5) = · BL U E L I G H T AND MAGENTA F I LT E R ·
2 0 7 ) +STRING $ ( 3 , 2 2 3 ) +STRING$ ( 5 , 1 7 5 ) +CHR$ ( 1 7 0 ) ; 740 B $ ( 6 ) = · B L U E L I G H T A N D RED F I LTER·
23 0 PRINT@2 6 1 , CH R $ ( 1 8 0 ) +STRING $ ( 3 , 1 9 1 ) +STRING $ ( 5 , 1 5 9 ) +STRING $ ( 4 , 750 E $ ( l ) = · RED · : C $ ( l ) = · MAGENTA I S RED AND B L U E . THE YE L LO
2 0 7 ) +STRING $ ( 5 , 2 2 3 ) +STRING$ ( 3 , 1 7 5 ) +C H R $ ( 1 7 4 ) ; W F I LTER P A S S ES RED AND GRE EN . RED I S TH E ONL Y COLOR PRESENT W
2 4 0 PR IN T @ 2 9 5 , C H R $ ( 1 8 8 ) +STRING $ ( 7 , 1 5 9 ) +STRING S ( 2 , 2 0 7 ) +STRING $ ( 7 , HICH WILL BE TRANS MI TTED BY THE F I LTER . ·
2 2 3 ) +CHR$ ( 1 7 4 ) +CHR$ ( 1 6 8 ) ; 760 E $ ( 2 ) = · R ED · : C $ ( 2 ) = · ( DI F F I C U LT ) "
250 PRINT @ 3 2 8 , STRING$ ( 1 6 , 1 4 3 ) ; 770 E $ ( 3 ) = · BLUE· : C $ ( 3 ) = · WH I T E IS RED , BL U E , AND GREEN . R
260 PRINT @ 3 6 0 , STRING $ ( 1 6 , 1 4 3 ) ; ED AND GREEN ARE NOT TRANSMITTED . ·
270 PR IN T@ 3 9 2 , CH R $ ( 1 3 3 ) +STRING $ ( 1 4 , 1 4 3 ) +CHR $ ( 1 3 8 ) ; 7 8 9 E $ ( 4 ) = " NONE· : C $ ( 4 ) = · CYAN I S BLUE AND GREEN . THEREFOR
2 8 0 PRINT @ 4 2 5 , CH R $ ( 1 4 0 ) +STRING $ ( 1 2 , 1 4 3 ) +CHR $ ( 1 4 2 ) ; E RED I S NOT TRANSMI TTED BY TH E F I LTER·
2 9 0 P R I N T @ 4 5 8 , CH R S ( 1 3 2 ) +CH R $ ( 1 4 0 ) +STRING $ ( 8 , 1 4 3 ) + C H R $ ( 1 4 0 ) +CHR$ ( 790 E $ ( 5 ) � · B L U E · : C $ ( 5 ) = · MAGENTA PASSES B L U E AND RED. TH E
136) ; RE I S N O RED . ·
3 0 0 PRINT @ 4 9 4 , STRI NG $ ( 4 , 1 4 0 ) ; 8 9 0 E $ ( 6 ) = · NONE· : C $ ( 6 ) = · A RED F I L TER DOES NOT PASS BLUE LI
3 1 0 PRINT@ 4 8 0 , " PRESS ANY KEY Tn CONTINU E " ; GHT·
3 2 0 A $ = I N K EY $ : I FA $ = · · TH EN 3 2 0 ELSECLS : RETURN 8 1 0 FORX m l T05
330 B $ ( l ) = " RED PLUS BLUE· 820 PRINT
340 B $ ( 2 ) = · RED P L U S G R R EN " 830 N=RND ( 6 ) : I F D ( N ) = I T H EN 8 3 9 ELSED ( N ) = l : P R I N T · WHAT COLOR RESU LTS
350 B S ( 3 ) = " : ; L U E PLUS GREEN " IF YOU U S E A · : PRINT6 $ ( N ) : I NPUTD$
360 B $ ( 4 ) = · MAGENTA PLUS GRE EN · 8 4 0 I FD $ < > E $ ( N ) THENPRINT· SORRY · : PR I NT E $ ( N ) : PRINTC $ ( N ) : FORT= I TO I 3
370 B $ ( 5 ) = · Y ELLOW PLUS BLUE " 8 8 : NEXTT : NEXTX : GOT0 8 6 0
380 B $ ( 6 ) = " R ED PLUS CYAN· 850 PRINT· CORRECT · : CCzCC+ l : NEXTX
390 C $ ( 1 ) = " MAGENT,\" : C$ ( 2 ) = · Y ELLOW· : C $ ( 3 ) = " CYAN· : C$ ( 4 ) = ·WH I T E · : C $ 860 P R I N T · YOU NOW HAVE · ; CC ; · OUT OF 18 CORRECT·
( 5 ) = " WH I T E " : C $ ( 6 ) = " 1m I T E · 878 FORTzI T01 2 8 0 : N EXTT : CLS : PRINT @ 1 9 4 , ·WASN ' T TH I S EN ' L I GH T ' ENING
4 0 0 CLS ?
CT DI STANC E , FOCAL LENGTH , AND IMAGE DISTANCE I S " : N= 1 2 : GOSUB6
Program Listing 2
90
3 4 0 PRINT : PRINT" 1/FL=1/0D+1/ ID"
10 REMJAMES W. WOOD , 4 24N . MISSOURI , ATWOOD , I LL , 6 1 9 1 3 , JUNE 1 9 8 1 3 5 0 PRINT : PRINT" FL=FOCAL LENGTH " : PRINT " OD=OBJECT DI STANCE " : PRINT
20 CLS : PRINT : PRI NTTAB ( 1 3 ) " L ENSES " : PRINT " ID= IMAGE D I STANCE " : PRINT : PRINT"WRITE THE FORMULA Do.m l "
3 0 DIMA$ ( 1 5 ) : PRINT " A CALCULATOR, PENCIL AND PAPER WILL COME IN 3 6 0 PRINT : PRINT"PRESS ANY KEY FOR PROBLEMS"
HANDY " : PRINT 370 P $ = I NK EY $ : IFP$ = " " THEN3 70
4 0 INPUT"YOUR NAME" ; NA$ 3 8 0 FORPP=lT05
50 PRINT " TYPE 1 FOR ALL OF TYPE 2 TO GO TO PROBLEM 3 9 0 ONRND ( 3 ) GOSUB4 20 , 4 9 0 , 5 60
. PROGRAM,
S· ; 400 NEXTP P : PRINTCC ; " OUT OF 5 CORRECT"
60 AA$=INKEY $ : IFAA$= " " THEN60 4 1 0 PRINT: PRINT: PRINT" END OF PROGRAM . " : PRINT" GOODBYE " ; NA $ : END
7 0 I FAA$=" 1 " TH EN 8 0 ELSEIFAA$ = " 2 " THEN3 3 0 ELSE60 4 2 0 FL=RND ( 1 5) * 5 : I FRND ( 1 0 ) =1 0THENFL=-FL
80 CLS : A$ ( l ) = " LENSES ARE OPTICAL DEVICES WH ICH CAUSE LIGHT RAYS 430 OD=RND ( 3 0) *5
TO CONVERGE OR DIVERGE. A CONVEX LENS IS THICKER IN THE MID 440 I F FL=OD THEN 43 0
DLE THAN AT THE EDGES . IT WILL CONVERGE RAYS OF LIGH T . " : N= l : GO 4 5 0 PRINT" FOCAL LENGTH = " ; F L : PRINT "OBJECT DISTANCE = " ; OD : INPUT
SUB6 90 " WHAT IS THE I MAGE DISTANC E" ; X
90 PRINT : A $ ( 2 ) = " AS A CONVEX LENS BECOMES FLATTER ITS FOCAL LENGT 4 6 0 ID=FL*OD/ ( OD-FL)
H BECOMES LONGER. OBSE RVE I " : N= 2 : GOSUB6 9 0 : FORT=lT05 00 : NEXTT: GOSUB 4 7 0 IF AB� ( X-ID) < . 5 THENPRINT"CORRECT " : CC=CC+1 : RETURN
610 4 80 PRINT" SORRY , IT IS " ; INT ( 1 0 0 * I D) / 1 0 0 : RETURN
1 0 0 CLS : A$ ( 3 ) = " A CONCAVE LENS CAUSES LIGHT RAYS TO DIVERGE ( SPRE 4 9 0 F L=RND ( 1 5 ) * 5 : I FRND ( 1 0 ) = 1 0 THENFL=-FL
AD OUT) " : N=3 : GOSUB6 9 0 : FORT=lT05 0 0 : NEXTT : GOSUB 7 0 0 5 0 0 ID=RND ( 3 0 ) *5
1 1 0 CLS : A$ ( 4 ) = " A MORE CONCAVE LENS WILL BEND THE LIGHT OUT AT 510 I F FL=ID THEN 5 0 0
GREATER ANGLES . " : N=4 : GOSUB6 90 : FORT= l T05 0 0 : NEXTT : GOSUB7 90 5 2 0 PRINT" FOCAL LENGTH = " ; F L : PRINT " I MAGE DI STANCE = " ; ID : INPUT�
1 2 0' CLS : A$ ( 5 ) = " TH E FOcAL LENGTH OF A LENS DEPENDS ON ITS IN WHAT IS THE OBJECT D I STANCE " , X
DEX OF REFRACTION AND ITS SHAPE . " : N=5 : GOSUB6 90 5 3 0 OD=FL*ID/ ( ID-FL)
1 3 0 PRINT : A $ ( 6 ) = " A LENS IS USED TO PROJECT IMAGES . I T MIGHT BE U 5 4 0 I FABS (X-OD) < . 5 THENPRINT" CORRECT" : CC=CC+1 : RETURN
SED IN A MOVIE PROJECTOR, A TELESCOP E , OR IN A S POTL IGHT" : N= 6 : 5 5 0 PRINT" SORRY , IT IS " ; INT ( 1 0 0*OD) /1 0 0 : RETURN
GOSUB6 90 5 6 0 OD= RND,( 3 0 ) * 5 : ID=RND ( 3 0 ) *5
140 PRINT : A$ ( 7 ) = " THERE ARE TWO WAYS TO PREDICT WHERE AN IMAGE 5 7 0 PRINT " OBJECT D ISTANCE = " ; OD : PRINT " IMAGE DISTANCE = " ; ID : INP
W I LL BE FORMED. RAY D I AGRAMS AND MATHEMATICALLY. THERE ARE THRE UT"WH AT IS THE FOCAL LENGTH " ; X
E RAYS WHICH ARE EASY TO DRAW . " : N=7 : GOSUB 6 9 0 5 8 0 FL= ID*OD/ ( OD+ID)
1 5 0 PRINT : A $ ( 8 ) = " A RAY IN PARALLEL TO T H E OPTICAL AX IS W I L L GO T 590 I FABS ( X-oD) < . 5THENPRINT" CORRECT" : CC=CC+1 : RETURN
HROUGH THE FOCAL POI NT . " : N=8,: GOSUB 6 90 6 0 0 PRINT" SORRY ; IT IS " ; INT ( 1 0 0 *F L ) / 1 0 0 : RETURN
1 6 0 PRINT : A$ ( 9 ) = " A RAY WH ICH PASSES THROUGH THE OPTICAL CENTER 6 1 0 PMODE4 , 1 : PCLS : SCREEN 1 , 1
OF A LENS WILL PASS UNBENT. " : N= 9 : GOSUB 6 9 0 6 2 0 FORE= 9 0 T0 2 5 0 STEP10
1 7 0 PRINT : A$ ( 1 0 ) = " A RAY IN THROUGH THE FOCAL POINT W I L L BECOME P 630 CIRCLE ( 4 0 , 1 0 0 ) , 6 0- ( E/ 5 0+ 1 ) *7 . 5 , 5 , ( E/ 5 0 + 1 ) / 2
ARALLEL TO THE OPTICAL AX I S . WATCH I " : N = 1 1i : GOSUB 6 9 0 6 4 0 PAINT ( 5 0 , 1 0 0 ) , 1
1 8 0 PRINT : A$ ( l l ) = " TH E OBJECT WILL B E A T T H E LINES POINT O F INTER 6 5 0 FORW= 6 0 T0 1 40STEP1 0 : LINE ( 1 , W) - ( 3 0 , W) , PSET: NEXTW
SECTION . " : N= 1 1 : GOSUB 6 9 0 6 6 0 FORW=6 0 T0 1 4 0STEP 1 0 : LIN E ( 3 0 , W) - ( E , 1 0 0 ) , PSET: NEXTW
1 9 0 FORT=lT01 0 0 0 : NEXTT 6 7 0 FORT=lT040 0 : NEXTT: PCLS
2 0 0 PMODE4 , 1 : PCLS : SCREEN1 , 1 6 80 NEXTE: RETURN
2 1 0 L I NE ( 0 , 1 0 0 ) - ( 2 5� , 1 0 0 ) , PSET 6 9 0 L=LEN ( A $ ( N » : FORA=lTOL : PRINTMID $ ( A $ ( N ) , A , 1 ) ; : FORT=l T03 0 : NEXT
2 2 0 LINE ( 3 0 , 1 0 0 ) - ( 3 0 , 8 5 ) , PSET : LIN E- ( 3 4 , 8 9 ) , PSET : LINE ( 3 0 , 85 ) - ( 26 , T , A : RETURN
8 9 ) , PSET 7 0 0 PMOD E4 , 1 : PCLS : SCREEN 1 , 1
2 3 0 PS ET ( 5 5 , 9 9 ) : PSET ( 56 , 9 9 ) : PSET ( 5 5 , 1 0 1 ) : PS E T ( 56 , 1( 1 1 ) : PSET ( 1 4 5 , 9 7 1 0 LINE ( 6 0 , 5 0 ) - ( 9 0 , 5 0 ) , PSET : L I NE ( 6 0 , 1 5 0 ) - ( 90 , 1 5 0 ) , PS E T
9 ) : PSET ( 14 6 , 9 9 ) : PSET ( 1 4 5 , 1 0 1 ) : PSET ( 14 6 , 1 0 1 ) 7 20 CIRCLE ( 3 0 , 1 0 0 ) , 4 0 , 1 , 2 , 0 , . 1 2
2 4 0 LINE ( 5 3 , 1 1 5 ) - ( 5 3 , 1 0 4 ) , PSET : LINE - ( 5 8 , 1 0 4 ) , PS E T : LINE ( 5 3 , 1 1 0 ) - ( 7 3 0 CIRCLE ( 3 0 , 1 0 0 ) , 4 0 , 1 , 2 , . 9 0 , 0
5 8 , 1 1 0 ) , PS ET : L I NE ( 1 4 5 , 9 5) - ( 1 4 5 , 8 4 ) , PS E T : L I NE- ( 1 5 0 , 8 4 ) , PS ET : LINE ( 7 40 CIRCLE ( 1 20 , 1 0 0 ) , 4 0 , 1 , 2 , . 4 , . 6 1
1 4 5 , 9 0 ) - ( 1 50 , 9 0 ) , PSET 7 5 0 PAIN T ( 6 2 , 5 2) , 1
250 C I RCLE ( 7 0 , 1 0 0 ) , 4 0 , 1 , 2 , 0 , . 1 2 7 6 0 FORE= 6 0 T0 1 4 0 STEP 2 0 : L IN E ( 1 , E ) - ( 7 5 , E ) , PSET : L IN E ( 7 5 , E ) - ( 2 55 , ( 3*
2 6 0 C I RCLE ( 7 0 , 1 0 0 ) , 4 0 , 1 , 2 , . 9 , 0 E-1 0 0 ) / 2 ) , PSET: NEXTE
2 7 0 CIRCLE ( 1 3 0 , 1 0 0 ) , 40 , 1 , 2 , . 4 , . 6 1 : PAINT ( 1 0 0 , 9 0 ) , 1 : PAINT ( 1 0 0 , 1 1 0 ) 7 7 0 FORT=lT020 0 0 : NEXTT
:: ,1 7 80 RETURN
� 2 8 0 FORT=lT03 0 0 : NEXTT : L INE ( 3 0 , 8 5) - ( 1 0 0 , 8 5 ) , PSET : LINE- ( 2 5 5 , 1 3 7 ) , P 7 9 0 PMOD E4 , 1 : PCLS : SCREEN1 , 1
8 0 0 LINE ( 6 0 , 5 0 ) - ( 1 0 5 , 5 0 ) , PSET : LIN E ( 6 0 , 1 5 0 ) - ( 1 0 5 , 1 5 0 ) , PSET
SET

� 290 FORT=lT03 0 0 : NEXTT : LINE ( 3 0 , 8 5 ) - ( 25 5 , 1 3 3 ) , PSET


3 0 0 FORT=lT03 0 0 : NEXTT : L IN E ( 3 0 , 8 5 ) - ( 1 0 0 , 1 27 ) , PSET: LIN E- ( 2 5 5 , 1 27 ) ,
8 1 0 CIRCLE ( 4 0 , 1 0 0 ) , 4 0 , 1 , 1 . 5 , 0 , . 1 7
8 2 0 C I RCLE ( 4 0 , 1 0 0 ) , 4 0 , 1 , 1 . 5 , . 8 5 , 0
8 3 0 C I RCLE ( 1 2 5 , 1 0 0 ) , 4 0 , 1 , 1 . 5 , . 3 5 , . 6 6
.... PSET
.. 3 1 0 FORT=]T03 0 0 : NEXT'l; : LINE ( 2 27 , 1 0 0 ) - ( 227 , 1 2 8) , PSET : LINE- ( 2 3 2 , 1 23 8 4 0 PAINT ( 7 0 , 5 2 ) , 1
ie ) , PSET: LINE ( 2 27 , 1 2 8) - ( 2 2 2 , 1 23 ) , PSET 85 0 FORE=6 0T0 1 4 0 STEP20 : L IN E ( 1 , E ) - ( 8 2 , E) , PSET : LINE ( 8 2 , E ) - ( 2 55 , ( 9 *
� 3 2 0 FORT=lT015 0 0 : NEXTT E- 5 0 0 ) / 4 ) , PSET: NEXTE
QC
... 3 3 0 CLS : A$ ( 1 2 ) = " MATHEMATICALLY THE RELATIONSH I P BETWEEN THE OBJE 8 6 0 FORT=lT02 0 0 0 : N EXTT : RETURN

...
GRAPHICS

BY DELMAR SEARLS

3 -D GRAPHICS
G raphics advertisements frequent­
ly show three-dimensional views
If you are interested in three-dimensional point into a two-di­
mensional point on the video screen. Fi­
of ,?athematically generated surfaces. contour graphics , here nally, you must prevent hidden back­
�hile t?ese graphics are appealing and are some algorithms for ground points from being displayed.
ImpreSSive, there is little information Your basic approach (see Fig. 2) is to
available to allow home-computer own­ use on dot-matrix printers . proces� the im�ge from left to right,
ers to produce their own graphics. along lines of Sight, running parallel to
. T�e C?lor Computer program list­ t�e Y-axis. As you view the ropes your
colum�s and 192 rows (in its highest­
mgs In thiS article can easily be adapted hnes of sight will intersect them at even­
resolutIon mode), the center point is
to any system that uses Basic, and that ly spaced intervals. These points of in­
taken to be ( 1 28 ,96) . This is to be the
c� set individual pixels, or dots, on the tersection will be processed from front
origin of your coordinate system. In
Video screen. to back to facilitate the identification of
order to plot a point (X, Y) on this coor­
Of the three types of displays, two of hidden points. Figure 3 outlines this
?inate system, you must convert (X,y)
them consist of an image formed by a process in more detail.
mto appropriate screen coordinates
set of parallel lines as they rise and fall The variable MAX is used to keep
This is done by using screen coordinat�
over the contours of the shape. The first track of the highest point plotted along
( 1 28 + X,96 - Y). The negative sign in
of these two has these lines perpendicu­ the current line of sight. MAX is initial­
the second coordinate is a result of the
lar to the line of sight, and the second ly set to a large negative value ·to guar­
different interpretation of increasing
consists of lines at about 75 degrees to antee that the first point on each line of
values mentioned earlier.
the line of sight. The third display is sight will always be plotted. It cannot be
formed by a rectangular grid of lines that Display 1 a hidden point.
follow the contours in two directions. Finding the X and Y coordinates at
Imagine that the surface you wish to
On the Color Computer, points ' are the intersections of the lines of sight and
graph is part of a landscape viewed at
l�ted on the video screen by a coor­ the ropes is relatively easy in this case
noon from above. The absence of shad­
dinate system with its origin at the up­ since X increases by a fixed amount as
ows would make changes in elevation
per left corner. That is, the upper left­ you move left to right, and Y also in-
difficult to see and the terrain �ould ap­
most point has coordinates (0,0). The
pear to � flat. Next, impose a rectangu­
first coordinate refers to the horizontal
lar coordmate system over the surface in
position (or column), and the second
order to establish points of reference N


refers to the vertical position (or row).
(see Fig. I ) .
The column coordinates increase as you
<? n top o f this coordinate system, su­
move right, while the row coordinates
penmpose a set of lines parallel to the
increase as you move down. This latter
�-axis. If you further imagine that these
is, of course, just the opposite of the
hnes are ropes, you will realize that they
way the vertical coordinate changes in
would rise and fall as they follow the
mathematics. I 2 3 4
contours of the terrain below. Only
In a rectangular coordinate system
from your vantage point directly over­
the vertical coordinate increases in an "ROPES" ------c;
head would they appear to be straight.
upward direction. In preparing our dis­
Your goal is to move your vantage point
plays it is somewhat convenient to think
down the Y-axis (south on your
of plotting points on a rectangular coor­
"map") and look at these ropes from
dinate system centered on the video
an angle. To improve the image, you
screen.
must further imagine that the ropes are Fig. I. Imagine that you are viewing the
For the Color Computer, with its 256
on top of opaque cross-sections of ter­ three-dimensional terrain from above at
rain and that foreground cross-sections noon. The absence ofshadows causes the ter·
o! sufficient height would block your rain to appear flat. Impose a rectangular co·
System Requirements ordinate system upon the terrain to provide
view of background cross-sections.
points ofreference. Superimpose a set ofhor­
To accomplish this you must first izontal lines that can be thought of as ropes
16K RAM
determine the location of each point on that rise and fall over the terrain below. Our
Extended Color Basic
Printer Optional
each rope within the three-dimensional goal is to view these ropesfrom an angle, that
coordinate system (using Z to measure IS, from a vantage point farther to the south.

elevation). Then you must convert this


94 HOT CoCo Jun� 1983 ·
f\ ! 1 O 0
P-"\ 00 *
1 €.
\<\
p \J
Of\ CON\

1
·
RE.� \...

• Aff o rda b l e Pri ce-Only $69.95.


• A m ust ha ve fo r a" se r i o u s c o m p ute r i sts.
• H i g hest q ual i ty-U .S. m ad e .
• Di rect re pl ac e m ent-sa m e key l ayo ut
• Profess i o n a l a ppearance a nd operat i o n .
' Com puters produced after • Fast, si m p l e i n sta l l at ion .
approx i mately October
• Com p l ete i ns t r u c ti·ons i n c l uded .
1 982 req u i re an additional
keyboard plug adapter. • II n sto c k now.
Please add $4.95.
AT YO U R FAVO R I T E D EALER OR D I R ECT FROM

M a rk Data Products
2400 1 A L I C I A P KWY. , N O . 226, M I SS I O N V I EJ O , CA 92691 • (71 4) 768-1 55 1
We pay s h i p p i n g on a l l orders in the conti nental U.S. and Canada. Overseas add $5.00 for sh i p p i n g a nd h a nd l i ng. Foreign orders
please r em i t U . S. funds. C a l i fo r n i a residents, p lease add 6% sales tax. We accept MasterCard,and VISA. We are a l ways looking
for quality machine l a n guage progra ms. Contact us for details. ", 24 1

v See List of Advertisers on page 138 HOT CoCo Jun� 1983 ()5
creases by a fixed amount as you move Screen Y = Y.COS(A) + Z.SIN(A) densities will reduce processing time.
up a line of sight from bottom (south) The viewing angle is set at 75 degrees
to top (north). As you move up each where A is the viewing angle as in line SO. The altitude calculation is
line of sight, you find the altitude of the measured from the vertical . If the calcu­ done in a subroutine starting at line
terrain (Z) as a function of X and Y . lated value for the screen Y exceeds that 1000 while the plotting subroutine
,

This altitude must b e converted into a for previously plotted points, then the starts at line 2000 . Notice that the plot­
Y-value on a two-dimensional screen new point is plotted and MAX is up­ ting subroutine scales the Y-value to fit
image. This screen height is found using dated. Otherwise, the new point is not the screen (the X-value is scaled in line
the following formula: plotted; it is hidden. When the last point 1 1 7 before the inner loop is begun) and
on a given line of sight is processed, you plots the points on the imaginary (X, y)
move on to the next line. When the last coordinate system centered at the mid­
line of sight has been processed, the im­ dle of the screen. Change the expression
age is complete. in line 1010 to experiment with a variety
Listing 1 is a short program based on of altitude functions.
'
the flowcharts in Figs . 2 and 3. The pro­ While separate subroutines for calcu­
gram is well documented with remarks. lating the screen Y-value and for plot­
Note that the outer loop in the flow­ ting the corresponding point are not
chart (Fig. 3) is processed with a For . . . necessary in this simple program, they
Next loop using I (the line-of-sight are useful in the listings that follow.
number) as the counter, while the inner When you enter this program, you can
loop uses K (the rope number) as the omit all remarks except for line 1000 .

counter. The program will produce a dis­


Lines 20 and 95 set the screen display play that resembles a hill or mound.
for the two-color, high-resolution mode You'll find, however, that the program
(256 by 192 pixels) . In line 45 , the line is quite slow.
density (number of ropes per unit dis­
Fig. 2. Simple flo wchart outlining the basic tance) is set at two, while in line 55 the Saving Time
steps involved in processing an image. The dot density is set at 16. Most of the time used in processing a
lines ofsight are parallel to the Y-axis and are The dot density can be interpreted as display is lost in the calculation of the
processed from left to right. the number of lines of sight per unit dis­ three-dimensional coordinates, espe­
tance, or as the number of dots per unit cially the elevation. Fortunately, with
distance on each rope. If the dot density one minor adjustment you can divide
is high, then the ropes will appear as sol­ the number of such calculations by al­
id lines. If dot density is low, then the most four. This adjustment involves
plotted ropes will appear as dotted lines, making the elevation a function of dis­
especially where they rise and fall as they tance from the origin, rather than a
follow the terrain. However, lower dot function of the X and Y coordinates of

2B M=4 : ' PMODE 4


45 LD=2 : ' 2 ROP ES/UNIT DISTANCE
55 DD=16 : ' 1 6 LINES OF S I GHT/UNIT DISTANCE
8B A=75 : ' VIEWING ANGLE IS 75 DEGREES FROM VERT ICAL
85 A"A*3 . 1 4 1 5 9/ 1 8 B I C=COS ( A ) : S =SIN ( A ) : ' S INE AND COSINE OF ANGLE
95 PMODE M , 1 : PCLS : SCREEN1 , 1 : ' ENTER GRAPH I C S MODE
l I B FOR 1=-6 4 TO 6 4 : ' PROC ESS LINES OF S I GHT FROM LEFT TO RIGHT
115 MAX=-lBB : ' MAXIMUM HEIGHT IS SET TO - l B B TO MAK E SURE FIRST
POINT IS SET
1 1 6 X=I/DD : ' X-VALUE RANGES FROM - 4 TO 4 BY SIXTEENTHS
1 1 7 X l s INT ( 3 B * X+ . 5 ) : ' CONVERT X-VALUE TO SCREEN CO-ORDINATE
1 2 B NL=8 : ' NO . OF ROPES BELOW AND ABOVE X-AX IS
125 FOR K=-NL TO NL : ' CROSS ALL 17 ROPES FROM BOTTOM TO TOP
1 3 B Y=K/LD : ' Y-VALUE GOES FROM -4 TO 4 BY HALVES
135 GOSUB U B B
1 4 5 GOSUB 2 B B B
1 5 B NEXT K
1 6 B NEXT I
1 9 5 GO'l.'O 1 9 5
1 B B 0 ' CALCULATE ALTITUDE
1 B 1 B Z=3 *EXP ( - ( X*X+Y*Y ) / 4 ) -1 : ' CALCULATE ALT ITUDE
1 0 2 0 RETURN
2 B 0 B Y= INT ( 3 B * ( C*Y+S *Z ) + . 5 ) : ' TRANS FORM ALTITUDE INTO SCREEN HE
IGHT
2 0 6 B IF Y>MAX THEN MAX-Y ELSE 209B I ' I F POINT IS H I GHER THAN PR
EVIOUSLY PLOTTED POINTS , P
LOT IT ALSO, ELSE DON ' T
2 0 8 0 PSET ( 1 2 8+X1 , 96-Y) ' PLOT THE POINT
209B RETURN

Program Listing 1. A simple, straightforward program based on the flowcharts in Figs. 2


Fig. 3. Each line ofsight is processed from and 3. Running the program will result in a display resembling a mound or a hill. The pro­
bottom to top. This makes it easier to find gram is quite slo w. All remarks (indicated by an apostrophe) can be deleted except for
hidden paints. line 1 ()()().

96 HOT CoCo Jun� 1983


DISK DRIVE WOES?
PRINTER INTERACTION?
MEMORY LOSS?
ERRATIC OPERATION?

Don't
Blame T,he
Software'!
Power Line Spikes, Surges &
Hash could be the culprit ! Floppies, printers,
memory & processor often Interact ! Our patented ISOLATORS
elimi nate equipment Interaction A N D curb damaging Power Line Dual Power Supplies
Spikes, Surges and Hash. M O N EY BACK GUARANTEE!
eHorizontal- 12x12x3Y, . $74.95
• ISOLATOR (ISO·1 ) 3 filter Isolated 3-prong sockets; Integral -Vertical - 7x12x6 .
Surge/Spike Suppression; 1875 W Maxlmumm load, 1 KW load
. . . . . . . . . . . . . . . . . . $74.95
$7 .95
r;OL���t(lSO.2i 2'
-Open Frame - 7x2x3 wlo·case . . . . . . . . . . . . . . $59.95
• ill'tar i.olated· 'sOCket' banks;' (6 6
3-rpoog -Single Horiz. PIS - 6xl2x3Y, . . . . $44.95
sockets total); Integral Splke/Surge Suppression; 1 875 W Max oCustom 4' 2·Drive Ca.ble . . . . . . . . . . . . . . $21.00
load, 1 KW either bank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $76.95
04-Drive Cable . . . . . . . . . . . . . . .
• SUPER ISOLATOR (ISO·3) similar to ISO·1 except double
. . . . . . . . . . . . . $32.00
Isolation " SUppression . . . . . . . . . . . . . . . . . . . . . . . . . . . $115.95 -oual Case, Horiz. oc Vert. (wlo PIS) . . $24.95
• SUPER ISOLATOR (ISO·11) similar to ISO·2 except double
Case, Horiz. (wlo PIS) . . . . . . . . . . . . . . . . . . . . . . . . $18.95
-Single
Isolation " Suppression . . . . . . . . . . . . . . . . . . . . . . . . . . . $ 1 1 5.95
• MAGNUM ISOLA TOR (ISO·17) 4 Quad Isolated sockets; For - S hugart 5 1/4 Disk Drive . . . . . . $1 97.50
ULTAA·SENSITIVE Systems . . . . . . $200.95 SA 405 - 6ms T-T, 55, SO or DO
• CIRCUIT BREAKER, any model (Add·CB) . . . . . . . . . . . . Add $1 0.00

• REMOTE SWITCH, any model (Add·AS) . . . . . . . . . . . . . Add $1 8.00

AT YOUR MasterCard, Visa, American Express


v' 1 59
DEALERS ORDER TOLL ,FREE 1-800-225-487
6
(except AK, HI, PR " Canada)

L£7 Electronic Specialists, Inc.


1 71 South Main Street. Box 389. Natick. M ass. 01760
(617) 655·1532

Mountain Pilot Air Flight Simulation


Eagle Pass is an aerial graveyard. Imagine the wreck· 600 feet of runway. This is your first solo llight. Throt·
age of planes beneath you. No one has made it through tie at full. Elevators at a quarter. Airspeed increases:
before. Ever. But you have to. The miners at Goldtown 65 . . . 90 . . 1 1 5 mph.
are out of supplies and only you can help them. Stress warning! Cut the throttle or you'lI breal< up.
Check your airspeed. Not enough. Pull back to full The next few minutes you fluctuate between stress and
throttle. Okay. You're barely missing the peaks below. stall warnings. Finally you 'level oIT.
But don't forget your other InsLruments. This pass is Feeling confident? Flip the ailerons and bank right.
narrow. and twisting. Watch your compass heading. But not too much. or you'lI be flying upside down-out
And keep away from the cliITs. of control. Try a loop. A roll. Gliding. Try a dive. You'lI
Envision Goldtown glittering In the distance. You may have so much fun you may forget to land before your fuel
actually make it. But don't relax yet. You can't refuel at runs out.
Goldtown. And there's still the return trip. Requires: TR8-SO* Color Computer 16K
Requiree: TRS-SO * Color Computer/Extended Game Paddles optional. Tape "'0437RC $ 1 4.95
BASIC 16K Tape "'0370RC 5 19.95
'TRS·80 Is a lrademark of the RadIO Shack Dlvl.lon of Tandy Corporation.

YESI The Sky's The Llmltl Send me:

___ copies of Mounta1n Pilot #()370RC@8 19.95 Please add 82.50 for Postage & Handling
___ copies of AIr Flight SImulation #0437RC @ 8 1 4.95 o VISA 0 MC 0 AM EX 0 ChecklMO
NAME CARI)It
ADDRESS INTERBANK __________
________________________

CITY ZI P_______ EXP. DATE


SIGNATURE ____�__________________________

ORDER TOLL FREE 1-800-258-5473


Rte. 101 & Elm St . . Peterborough, NH 03458 33684S

,., See List of Advertisers on page 138 HOT CoCo JUII� 1983 97
a point. This distance is denoted R and If elevation is a function of R, then the screen image of the terrain, the top
is given by R = SQR(X.X + Y.y) (see the left and right halves of the image are and bottom halves will not be identical.
Fig. 4). The elevation Z will be expressed identical. Anytime a point is plotted on Recall that the majority of processing
in tenns of R. the left half, the corresponding point time is in calculating elevations, not in
How will this reduce processing time? can be plotted on the right half without plotting them. Consequently, as you
The answer has to do with symmetry; a requiring additional calculations. This calculate elevations for points in the .
shape is symmetrical about a line if its cuts processing time by about two. bottom half of the terrain, you will
two halves are the same on both sides of Your display will be created on the vid­ store the results in an array for later use
the line. [f the shape is drawn on paper, eo screen from the left and right edges in processing the top half. Thus the
and the paper folded along the line of simultaneously, meeting in the middle. number of elevation calcullations is
symmetry, then the two halves of the If the elevation is a function of R, divided by about four.
shape will match perfectly (see Fig. 5). then the top and bottom halves of the Program execution time is not divid­
terrain are also identical. However, on ed by four, however, because you must
add code to process the data stored in
the array. Even so, the time to complete
a given image is greatly reduced by this
adjustment. These changes can be made
by altering some of the lines in your

( X�
program and by adding some new ones
(see Table 1). After making the neces­
sary changes and additions, rerun the
program and see how much faster the
LINE OF SYMMETRY display is created. .
Line 0 dimensions the array that will
'Fig. 5. A two-dimensionaljigure is symmetri­ store the calculated terrain heights. It is
cal about a line if the line divides the figure dimensioned to contain 33 elements (0-
into two parts that are mirror images ojeach 32) in order to accommodate a larger
Fig. 4. The distance Rjrom any point (X, Y) other. The circle would be symmetrical about number of ropes in the expanded pro­
to the origin (0, 0) Is given by R = SQR any oj its diameters. The polygon has only gram that follows.
(X·X + Y* Y). Ij the altitude Z is a junction one line oj symmetry. if the altitude Z is a Line 1 10 is the line-of-sight counter
oj R, processing time can be greatly reduced junction oj R, the displayed image will have
that starts at X = - 4 and goes to X 0 =

because oj the symmetry oj the terrain. symmetry about the Y-axis.


at 16 lines of sight-per-unit distance.

/-�
�L�
D M P·1 00, Daisywheel, and more !
p r o du c t s
' 4 JffCS t u r n your

C OCO
J into s o me t h i n a e l s e

[] WOLFBUG Machine Language �on i tor • • • • • • • • • • • • • • $54.95


Easy to oper�te I n s ta l l s i ns i de case
[] D I S I< CONTROl t E R BOARD . . . . . . . . . . . . . . . . . . . . . . . . . 349 .95
Runs s tandard FLEX· 80 X 24 video out
Para l l e l pri nter port Real time c l ock
[] MORSE-PAl< Morse Code Trans l a tor • • • • • • • • • • • • • • • 79 . 95
ACOUSTIC E N C LOSU BES Send & receive I�orse code v f a cOll1p uter
Hand l es up to EO wpm Hard copy output
'Reduces N oise Up t o 90% • Bottom Feed Capability
o

COI4M- PAK P l ug in Seri al I n te r face ............. 69 .00
• H eavy Duty Acrylic Cover • Woodgrain Finish
o COLOR FAN ..................................... 34 .95
Micro Printercenter'"
, 0 64K RAM Upgr.de Ki ts . . . . . . . . . . . . . . . . . . . . . from $85 . 00

Dealer & Ordering I nfo Ava i l ab l e for a l l model s


of TRS-SO Co l o r Computer
800-343-4 3 1 1
MaSler Cha1ge and Visa Accepted We s tock a comp l ete l i ne of l ow-cost pri nter
ShiPPing & Handlmg Charges Additional
and fl oppy d i s k c.b l es • • • • comp l ete serv i ce on
stock and mod i fied TRS-SO Color Computers .
CAB-TEK, Inc. VISA, HC , COO orders .ccepted
Riverside SI. Nashua, NH 03062
ATO M I C C I T Y E L E C T R O N I C S
CIVILIZING COMPUTERS
3 1 9 5 A R I Z O NA AV E .
MPC I $99 (MX 801 MPC I I $ 1 29 (OKI82)
MPC III $ 1 79 (83A. MXI OO) MCP IV SI99 (Daisy Pnnler)
LOS A L A MOS , NM 875��
Power Coniroi & Venlilahon S80
Paper Rack $30 Bollom 'Feed Brackets $30
(505 ) 8 8 2 - 9 2 � 1 � : 3 0 - 8 : 3 0 PM M ST
� 493
MPC I, SHOWN � 166
• TM Techn ical Svs tems Consul tants

98 HOT CoCo Jun� 1983


Notice that for each point on each line ties are useful for drawing rough sketch­ lets the user create an even more im­
of sight, line 2080 plots the correspond­ es to determine if you are willing to wait pressive four-color display by following
ing point on the right half of the image. for a better version. these steps: When the display is com-
Line 125 is the rope counter starting Listing 2 is a complete version of this
at the bottom and counting up to the more versatile program . The For . . .
X-axis. The altitudes calculated for . Next loops have been rewritten to ac­
ADD:
these points are stored in an array in line commodate user input, and screen o DIM A(32)
140. The subroutine at line 3000 uses prompts have been added where data is
these stored values to process the upper requested. In addition, subroutines CHANGE:
half of the image. have been included to let the user save a 1 1 0 FOR 1 = - 64 TO O
Lines 1000 and 1010 reflect the screen image to tape, and to load a 125 FOR K = - NL TO 0
changes in how the altitude is calculat­ previously stored image from tape.
ed. The distance R is calculated in line Another major change found in List­ 1 000 R = SQR(X.X + Y. Y)
1010 Z = 3. EXP( - R. R/4) - 1
1000; the altitude function in line 1010 is ing 2 is the addition of the PMODE 3
written in terms of R. (four-color, medium-resolution) op­
ADD:
tion. For some functions, a significant I 40 A( - K) = Z
BeUs and Whistles portion of the image falls below the first 1 55 GOSUB 3000
The program, with the modifica­ rope and cannot be seen in the two­
tions, is stm short and efficient. It is not, color version. The four-color option 2080 PSET( 128 - X I , 96 - Y)
however, very flexible. By adding some plots these points in a different color,
lines you can insert several nice features allowing the viewer to see the top and 3000 FOR K = O TO NL
into your program . bottom portions of the image. One can 3010 Z = A(K)

You can let user input determine the imagine the screen image representing a 3020 Y = K/LD
rubber sheet having differently colored 3040 GOSUB 2000
line density and the dot density. Re­
3050 NEXT K
member that each dot is the intersection grids on its top and bottom sides.
3060 RETURN
of a line of sight and a rope. A low line The plotting subroutine at line 2000
density (two ropes per unit distance), now plots all points that are higher than Table I. These changes and additions to
and a low dot density (eight) will greatly those previously plotted as before, and Listing I will result in a program that runs
reduce the time required to complete the those that are lower than any previously much more quickly. The savings in time are
display. On the other hand, the con­ plotted points are plotted in a second a result of having taken advantage of the
tours will be relatively far apart and will color. symmetry of the terrain.
be dotted rather than solid. Low densi- A peculiarity of the Color Computer

Drive 0 $375
TRS-8OC ® and TOP 1 00® SPECIALISTS For a limited time only , you can buy a CoCo
COLORFORTH ® drive e from S & N for only $ 3 7 5 ! !
, IS THERE LIFE AFTER BASIC? Yesl with COLORFORTH, a new, Includes:
high level language for the color computer. COLORFORTH, a * Your choice of TEC (RIS) or Tandon Drive
flgFORTH compiler, has an execution time as much as 10 to
* Radio Shack controller
20 times faster than Basic, and can be programmed faster
than Basic. COLORFORTH is highly modular for easy testing * Complete manual
and· debugging. COLORFORTH has been specially customiz­ * A two drive cable
ed for the color computer and requires only 16K. It does not * F i v e T r e e d i s Ke t t e s ! !
require E xt e n d ed Basic. When you purchase
D i s c: o u n t P r i n t e r s
COLORFORTH, you receive both cassette a nd RSjDlSK ver­
sions, the flgEDITOR and an extensive Instruction manual. Both Star Ge mini I e $399
versions a nd 75 page manual, all for NEC PC 5e23A E quivalent $535
only . . . . . . . . . . . . . . . . . . . . . . . . . . . S 49.95 Okidata 82A $485
Botek printer interface $65
MASTER MIXOLOGIST-The Bartenders' Guide®
Buy a Botel< interface with any printer and
This disk based program for the color computer contains
receive a $ l e discount.
recipes for over 150 of your favorite bar drinks-both alcoholic
and non-olcoholic. MASTER MIXOLOGIST Is menu driven for Sale - Real Keyboard Kit -- $ 1 e9
ease of use. Requires 16K and one RSjDOS drive. Get this one Type on a real keyboard for higher speed
today, It will be great for your next party . . . . . . . . S 19.95
and accuracy. Olr keys are in the same
DEALER and AUTHOR INQUIRES INVITED arrangement as the CoCo's and built to
f'*lse odd S 2.00 shipping T9XOS residents odd 5 % last. Ei hteen month uarantee ! !
Foreign orders must 'be In U.s. funds drqwn on U.s. bonks, or Maslercad and VISA -

Ord,r f r o. : NVS r,s i d,nts pl 'iS'


ARMADILLO INTL SOF1WARE S & N Ent,rpr i ses idd siles tiX .
P,O. BOX 7661 8 W i l son Court Pr i en subject to
AUSTIN,TEXAS 78 7 1 2 Spr i ng ViI I ' Y , NY 11977 ·ching, III i thout not i u .

PHONE(51 2)835-1 088 ( 914) 362-1713


.. 499 P l e iS' idd $3. 51 sh i pp i ng on il l ord,rs •
.. 4 78

.. See List 0 1 Advertisers on page 138 HOT CoCo June 1983 99


plete (a beeping signal will sound), press processed in PMODE 3 and then dis­ the grid white and the bottom red . The
the break key. played in PMOOE 4, something inter­ contrasting colors make a very attrac­
esting happens. The image is still a four­ tive display.
Lines 10, 15, and 4000-4040 provide
Type
color image with medium resolution,
PMODE 4, I :SCREEN 1 , I :OOTO 190
and press enter. but it appears in a color set that is not the option of loading a previously saved
normally available. In this instance, the display.
PMOOE 4 is normally a two-color background will be black (not possible Lines 20-80 allow user input related
mode. However, when a screen image is in normal PMOOE 3) with the top of to the graphics mode, line density, dot
density, and the viewing angle. Line 90
converts this viewing angle from degree
measure to radian measure and then
il DIM A ( 3 . n
1 il CLS : PRINT " DO YOU WANT TO LOAD A PREVIOUS LYSAVED D I S P LAY " , : IN calculates the sine and cosine of the
PUT " ( Y OR N) " ; A $ angle. These values are used in line 2000
15 IF A $ = " Y " THEN 4 il il il
2 il CLS : PRINT" GRAPH ICS PMODE" where the terrain height is converted in­
25 PRINT : PRINT " ( 3 ) M ED I UM RESOLUTION , 4 COLORS " to a screen height.
3il P R I NT " ( 4 ) H IGH RESOLUTION , 2 COLO R S "
3 5 PRINT : I NPUT " PMODE ( 3 OR 4 ) " ; M
Line 95 selects which graphics memo­
4il PRINT ry will be used, clears it, and puts the
4 5 INPU T " LINE DENS I TY ( MAX=8 ) " , LD video display into the graphics mode.
5il PRINT
5 5 INPUT " DOT DEN S I TY " ; DD Line 105 speeds up program execu­
6il PRINT tion by making use of a dual clock rate.
65 CLS : PRINT " SE LECT V I EWING ANGLE"
7il PRINT" il DEGREES I S FROM OVERHEAD"
As I understand it, memory operations
75 PRINT" 9il DEGREES I S FROM TH E S I D E " in ROM (especially the ROM chips con­
8 0 PRINT : INPUT"ANGLE I N DEGREES " ; A taining the Basic interpreter) are execut­
9 il A=A*3 . 1 4 1 5 9/ 1 8il : S =S I N ( A ) : C=COS ( A)
95 PMODE M , 1 : PCLS : SCREEN1 , 1
ed at twice the normal speed, while
1 il 5 POKE 6 5 4 9 5 , il operations in user memory occur at the
1 1 il FOR I = - 4 *DD TO il
normal rate. The net effect is to speed
1 1 5 MAX=-l il il : M I N = l il il : X= I/ DD : X 1 = I NT ( 3 il * X+ . 5 )
1 2 0 NL= I NT ( SQR ( 1 6 - X * X ) * LD ) up program execution.
1 2 5 FOR K=-NL TO il Some Color Computers will not op­
1 3 il Y=K/LD
135 GOSUB l il il il
erate properly under these conditions. If
1 4 il A ( -K ) = Z such is the case in your situation, simply
1 4 5 GOSUB 2 il il il
1 5 il N E X T K
delete lines 105 and 1 65 . Line 1 65 re­
1 5 5 GOSUB 3 il il il turns the computer to its normal clock
1 6 il NEXT I rate. This is required before attempting
1 6 5 POKE 6 5 4 9 4 , il
1 7 5 SOUND l il il , 2 any input/output operations with either
1 8 il FOR 1 = 1 TO 2 il : NEXT I a printer or a cassette recorder, neither of
1 85 IF INKEY $= " " THEN 1 7 5
1 9 i1 I F INKEY $= " " THEN 1 9 i1
which will work properly when the com­
1 9 5 CLS : PRINT " DO YOU W I S H TO SAVE SCREEN ON " puter is running with a dual clock rate.
2 il il INPUT " TAPE (Y OR N ) " ; A $ If, for any reason, program execu­
2 il 5 I F A $ = " Y " THEN GOSUB 5 il il il ELSE RUN
2 1 il CLS : PRINT " DON E "
tion is halted prior to line 165, press the
2 1 5 PRINT" PRESS ANY KEY TO CONT INU E " reset button on the rear of the com­
2 2 il I F INKEY $= " " THEN 2 2 il ELSE RUN
puter. Or, if you prefer, type POKE
l il il il R=SQR ( X *X+Y*Y)
lillil Z=COS ( 4 *R) / ( R/ 2+ 2 ) - 3 * R/ B+l 65494,0 and enter.
1 0 2 0 RETURN Line 1 10 counts the lines of sight I,
from X 4 to X O. Line 1 1 5 sets the
2 0 0 0 Y = I NT ( 3 0 * ( C *Y+S * Z ) + . 5 )
= - =
2 0 0 5 I F M = 4 THEN 2 0 5 0
2 0 1 0 I F Y <MIN THEN MIN=Y ELSE 2 0 5 0 initial values of MAX and MIN, calcu­
2 0 3 0 PSET ( 1 2 B +Xl , 9 6 -Y , 3 )
lates X, and scales it to the correct
screen value. Terrain X starts at 4. By
2 0 4 0 PSET ( 1 2 8-Xl , 9 6 -Y , 3 )
-
2 0 5 0 I F Y )MAX THEN MAX=Y ELS E 2 il 9 0
2 il 7 il PSET ( 1 2 8 +X1 , 96 -Y ) multiplying X by 30, the screen X values
2 il 8 0 PSET ( 1 28 -X l , 96 - Y )
2 il 9 il RETURN start at - 120 and go to + 120.
3 il il il FOR K = il TO NL Line 120 determines how many ropes
3 0 1 0 Z=A ( K )
3 0 2 0 Y=K/LD
will be crossed . As listed, the number of .
3 0 4 0 GOSUB 2 il il il ropes crossed is variable and depends
3 0 5 il NEXT K on X and Y. A display will be formed
3 il 6 il RETURN
4 0 il 0 CLS : PRINT" PREPARE TAPE RECORDER AND PRESS ANY K EY . "
using a circular base rather than the
4 0 1 0 I F INKEY$= " " THEN 4 il 1 il square base illustrated in Fig. 1 . This is
4 il 2 0 PMODE 4 , 1 : PCLS : SCREEN 1 , 1 frequently desirable due to the symme­
4 0 3 0 CLOADM
4 il 4 il GO TO 1 6 5 try of the terrain. If a square base is de­
5 0 il 0 CLS : PRINT" PREPARE TAPE RECORDER" sired, line 120 should read NL 4* LO.
=

5 il 1 il PRINT " PR E S S ANY KEY WHEN READY"


5 il 2 il IF INKEY $= " " THEN 5 il 2 il
Line 125 sets up the rope counter.
5 0 3 il CSAVEM " SCREEN " , 1 5 3 6 , 7 67 9 , il The Y value is calculated in line 1 30.
5 il 4 il RETURN The altitude Z is calculated in line 135
Program Listing 2. A highly modified version o!. the simple program in Listing I. It pro­
and stored for future use in line 140.
duces images like those in Figs. 8-11A. This version allowsfor user input, the ability to save This altitude is transformed, scaled, and
a display on tape, and the ability to load a previously saved display from tape. Taking ad­ plotted by the subroutine called at line
vantage of symmetry lets this program run much faster. 145 . The program then advances to the
next rope.
100 HOT COCO Jun� 1983
- C O M P U T E R S HAC K -
COLOR GRAPHICS EDITOR by Soft Sector C O M P U TE R S H AC K' S
Color G ra phics Edit o r (CGE) i s a mac h i n e lang uage program t hat BO O K STO R E
any person who does any program m i ng on the COCO must have. It
is a tremendous t i me saver. I t makes doing graphics fun. C G E is
desig ned to make writing high reso l u t i o n graphics programs for t h e
C O C O m u c h e a s i e r and faster. I t al lows you t o create on the screen
high reso l u t i on graph ics, such as game characters. Then you ca n
copy the n u m bers that ge nerate t h e c h a racters i n to t h e data area of
yqur program. If yo u have a d i s k system, C G E allows you to save t h e
n u mbers d i rectly t o a file i n the f o r m o f F D B statements or i n a basic
data stateme nt. The FDB statements can be loaded d i rectly into an
editor/assembler. I t comes o n Cassette but loads t o disk easily. ASSEMBLY LANGUAGE GRAPH ICS FOR THE
Only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $ 1 9.95
TRS-80 COLOR COM 'PUTER
By Don I n man $ 1 4 .95
INVOICE SYSTEM Written specifically for the TRS'80 Color Computer, this book
N ew program that keeps a f i l e of your c ustomers. Then you can print uses sound and g raphics to show how 6809 assembly lan­
a new i n voice with each p u rchase. Prints on N E BS forms or will print guage can be used to perform tasks that would be difficult or
its ow n form o n pla i n paper. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $39.95 impossible with BASIC. All of the explanations are hands-on, so
that the manual can serve as a tutorial. I ncluded are video

BILLI N G SYSTEM screen displays which explain each step of the process of
creating graphics. 288 pages.
MOD. I O R I I I, 4 8 k D I S K. . . . . . . . . . . . . . ... . . . . . . . . . . . . . . . . . $39.00
A b i l l i n g system writt e n by a bus inessman for his own use. It is
simple, fast a n d easy to use. Has a screen editor for q u i c k error PROGRA M M I NG THE 6809
correction. Prints out i nvoices, t h e n w i l l send a monthly b i l l t o each By Rodney laks & William Labiak $ 1 4.95
customer. I t will add interest or carrying charges. This is not a This book explains how to program the 6809 i n assembly
co m p l icated accounts receivable it is a simple b u t effective way to language, covering all aspects progressively and systematic·
keep track of who owe's you money . For the company the doesn't ally. Beg i n n i ng with the basics of prog ramming. Programming
do alot of credit b u s i n ess. the 6809 goes o n to explain registers and buses, su broutines,
t h e 6809 instruction set, addressing modes, l/O techniques and
devices, and finally, data structu res. With this knowledge you
TELEW RITER • 64 will be able to give your 6809 processor 1 6·bit periormance
Best word processor for the Color Com puter. with 8'bit economy. No prior programming knowlede i s required.

Tape . . . . . . . . . . . . . . . " . . . . . $49.95 Disk. . . . . . . . . . . . ..... . . . . . $59.95


TRS-80 COLOR PROGRAMS
DRAGONQUEST b y Tom Rugg and Phil Feldman $ 1 9 . 95

A new text adve n t u re by Charles Forsythe. You m ust rescue the Here are 37 fully documented programs ready to type into your

princess from the Smaaegor Monarch of Dragonfolk. All Machine color computer. These programs promise to be educational,

language. Fast, Exciting and only . . . . . . . . . . . . . . ' " . . . . . . . . . . $1 5.95 practical. and in almost all cases, fun. 332 pages.

MADN ESS AND THE M I N OTAUR TRS-80 COLOR COM PUTER GRAPHICS
b y D o n I n man $ 1 4.95
A classic adventure game u t i l izing two word commands.
Price . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... $1 9.95 E x plore the creative and imaginative blending of computers
and color using Color Computer Graphics. This book will enable
you to explore all the graphics capabilities of Extended Basic.
BUGOUT you will learn how to create interesting graphics to enhance you
own computer programs. The book also provides application
A compact but very powerful monitor for t h e 6809 microprocessor.
programs and useful subroutines. 303 pages
Only . . . . . . . . . . . . . . . . . . . . . . . . . . . .......... ....... . .. . .. ........ $1 9.95

COLOR COM PUTE R SONGBOOK


MISADVENTURE SERIES b y R o n Clark $7.95
MADAM ROSA'S MASSAGE PARLOR 40 of the world's best known songs, scored for easy playing on
Tape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $1 5.00 the TRS·80 Color Computer, including many favorite popular,
classical, fol k and seasonal mu sical selections. Some of which
WET T-SHIRT CONTEST include Dixie, Min uet, Greensleeves, Jin gle Bells, Yellow Rose
Tape . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $ 1 5.00 of Texas, etc. 96 pages

... See List 01 Advertisers on page 138 HOT CoCo Jun� ItJS3 101
When all the ropes up to and including tape at the beginning of the program. ditional Comments. "
the X-axis have been processed, the sub­ For displays 2 and 3, the major Display 2
routine at line 155 uses the stored alti­ changes to Listing 2 will be in lines Program Listing 2 has one shortcom­
tudes to process the upper half of the dis­ 1 10- 1 60, as these form the heart of the ing that you may have noticed. Most
play. When flnished, the program moves program. This part of the program graphs that you see advertised are im­
on to the next line of sight in line 160. flnds the points of intersection where ages viewed not from due south, but
Lines 1 75-1 85 provide for a beeping the tines of sight cross the ropes. rather from a little to one side of south.
tone to signal completion of the display. At this time, enter the program and Referring to Fig. 6, note that the lines
When large line and dot densities are experiment a little. Vary the line densi­ of sight are no longer parallel to the
used, the display takes a few minutes to ty, the dot density, and the viewing Y-axis. This causes several complica­
complete. angle. You should even vary the altitude tions. First, the X-value on the terrain is
Lines 195-205 and 5000-5040 let you formula in line 1010. If you do decide to no longer the same for each point on a
save a particularly pleasing display on enter the program and play with it, then given line of sight. Second, the screen
tape. These displays can be loaded from skip ahead to the section entitled "Ad- X-value is not the same as the terrain
X-value (although the screen X-value
does remain the same for any given line
of sight) . Third, while the Y-values will
9 DIM. Y ( 6 4 ) , Z ( 6 4 )
10 CLS : PRINT"DO YOU WANT TO LOAD A PREVIOUSLYSAVED D I S PLAY " l : IN still increase at a regular rate, the
PUT " ( Y OR N) " l A$ number of ropes crossed by a line of
15 IF A $ = " Y " THEN 4 0 0 9
2 0 CLS : PRINT " GRAPHICS PMODE" sight varies as you move left to right.
2 5 PRINT : PRINT " ( 3 ) MEDIUM RESOLUTION , 4 COLORS" Finally, you lose some of the beneflts of
30 PRINT" ( 4 ) H I GH RESOLUTION , 2 COLORS "
symmetry.
35 PRINT : I NPUT " PMODE ( 3 OR 4 ) " l M
40 PRINT In Fig. 6, I have selected lines of sight
45 INPUT " L INE DEN S I TY ( MAX= B ) " l LD that have a slope of - 4 relative to the
50 PRINT
55 INPUT " DOT DEN S I TY
terrain coordinate system. That is, as
. " l DD
60 PRINT you move up a line of sight, the Y-value
6 5 CLS : PRINT " SELECT V I EWING ANGLE " increases four times faster than the
7 0 PRINT" 0 DEGREES I S F ROM OVERH EAD "
75 PRINT" 90 DEGREES IS F ROM THE S I D E " X-value decreases. Consequently, as a
B 0 PRINT : INPUT"ANGLE I N DEGREES " l A line of sight crosses successive ropes, the
90 A=A*3 . 1 4 1 5 9/ 1 B 0 : S= S I N ( A) : C=COS ( A)
95 PMODE M , 1 : PCLS : SCREEN1 , 1
value of X will decrease by an amount
1 0 5 POKE 6 5 4 9 5 , 0 equal to one-fourth of the distance be­
1 1 0 FOR 1 = 0 TO 5 *DD
tween ropes.
1 1 5 MAX=- 1 0 0 : MI N = 1 0 0 : X1 = I NT ( 2 5 * ( - 5 + I/DD) + . 5 ) : X 2=- 4 + I/ DD
1 2 0 IF I (= 2 *DD THEN NL=INT ( I/DD * 4 *LD) ELSE NL= B *LD The variable LD is the line density
125 FOR J=0 TO NL (ropes per unit distance), so the distance
1 3 0 X=X2-J/ 4/LD : Y= - 4 +J/LD
1 3 5 GOSUB 1 0 0 0 : Y ( J ) =Y : Z ( J ) = Z
between ropes is IILD. One-fourth of
1 4 0 GOSUB 2 0 0 0 : NEXT J this distance is II4/LD (written in
1 4 5 MAX=- 1 0 0 : MIN= 1 0 0 : X 1 =-X1
Basic). Thus the terrain X decreases by
150 FOR J=NL TO 0 STEP - 1
1 5 5 Y=-Y ( J ) : Z = Z ( J ) 1 I4/LD for each rope crossed by a line
1 6 0 GOSUB 2 0 0 0 : NEXTJ : NE X T I of sight, while the terrain Y increases by
1 6 5 POKE 6 5 4 9 4 , 0
17 5 SOUND 1 0 0 , 2
I ILD for each rope crossed (see line 1 30
1 B 0 FOR 1 = 1 TO 2 0 : NEXT I in Listing 3).
1 B 5 IF INKEY $= " " THEN 17 5 The screen X-values (Fig. 6) will start
at - 5 and go to O. Note that for each
1 9 0 IF INKEY $= " " THEN 1 9 0
1 9 5 CLS : PRINT"DO YOU W I SH T O SAVE SCREEN ON"
2 0 0 INPUT "TAPE (Y OR N ) " l A $ line of sight, the terrain X-values always
2 0 5 I F A $ = " Y " THEN GOSUB 5 0 0 0 ,ELSE RUN
start at a number one larger than the
2 1 0 CLS : PRINT" DON E "
2 1 5 P R I N T " PRESS ANY K E Y T O CONTINUE" corresponding screen X-value.
2 2 0 I F INKEY $= " " THEN 220 ELSE RUN The number of ropes crossed by a
1 0 0 0 R=SQR ( X *X+Y*Y)
1 0 1 0 Z =COS ( 4 * R) / ( R/ 2+ 2 ) - 3 * R/ B+1 line of sight increases as the line of sight
1 9 2 0 RETURN moves from left to right, until the ter­
2 0 0 0 Y=INT ( 3 0 * ( C *Y+S * Z ) + . 5 )
2 0 0 5 I F M= 4 THEN 2 0 5 0
rain X-value is - 2, beyond which all
2 0 1 0 I F Y (MIN THEN M IN=Y ELSE 2 9 5 0 the ropes will be crossed . A new rope
2 9 3 9 PSET ( 1 2 B +X1 , 9 6 -Y , 3 ) will be crossed each time the initial ter­
2 0 5 0 I F Y >MAX THEN MAX=Y ELSE 2 9 9 9
(
2 0 7 0 PSET 1 2 B +X1 , 9 6 -Y )
rain X-value increases by 1 I4/LD.
2 0 9 0 RETURN The number of ropes crossed (after
4 0 9 0 CLS : PRINT" PREPARE TAPE RECORDER AND PRESS ANY KEY . "
the flrst rope) can be determined by
4 0 1 0 I F INKEY $= " " THEN 4 0 1 0
4 0 2 0 PMODE 4 , 1 : PCLS : SCREEN 1 , 1 flnding how far over the initial terrain
4 0 3 0 CLOADM X-value is (compared to - 4) and
4 0 4 0 GOTO 1 6 5
5 0 0 0 CLS : PRINT" PREPARE TAPE RECORDER" dividing by 1 /4/LD.
5 0 1 0 PRINT " PRESS ANY KEY WHEN READ Y · The increase in the X-value is found
5 0 2 0 I F INKEY $= " " T H E N 5 0 2 0 by dividing the current line-of-sight
5 0 3 0 CSAVEM " SCREEN " , 1 5 3 6 , 7 6 7 9 , 0
5 0 4 0 RETURN
number (I) by the number of lines of
sight per unit distance (DD): Increase =
Program Listing 3. By making the above changes in Listing 2. theprogram will generate dis·
IIDD. Thus the number of ropes (after
plays representing terrain as viewed from the southeast. See Figs. llB and 12. This pro­
the flrst) is given by INT«I1DD)/(1 I4/
gram runs slower than Listing 2 because ofsome loss in symmetry due to using slanted lines
LD», which is equivalent to INT(IIDD
of sight.
*4*LD). (See line 120 of Listing 3.)
102 HOT CoCo Jun� 1983
Beyond an initial terrain X-value of
- 2, all the ropes are crossed, and the C O M P UTE R S HAC K
above formula can be ignored since it
would continue to add more and more III
ropes.
While some of the advantages of
.
symmetry are lost, the left-right sym­ , .

metry is still retained, although the pro­ . 1 "' 11 '.


cessing is no longer quite as direct due to
the slanted lines of sight.
Listing 3 contains the changes neces­
sary to alter Listing 2 to produce display DON KEY KING
2. The display is, perhaps, more impres- ,
PAC D R O I D S COLORPEDE
USing t h e f o u r stages from t h e
With its space theme. the Super Colorpedt has a variety of bugs
sive, but at the cost of considerably Saucer lays destructomines and ranging from a tiny bettie to the
origi nal acrade game. with yo u r

more processing time. joystick in h a n d t ry t o j u m p the


the Super Bomb that disinte' gigantic colorpede. Colorpede
barrets. collect the pins.
Line 0 in Listing 3 provides for stor­ grates everyt h i ng In your path. has better graphics than Kater·
manuever your way past the
right up to the wall. The maze pillar but the sound is not as
ing Y and Z in arrays. These stored val­ fal l i n g jacks. and figure out t h e
changes every 1 0.000 points as good. Colorpede also has a more
ues are used in processing the right half difficu lty escalates. 1 ·4 varied and complicated play rou' crazy conveyor he'ts. Written
the
of the image. The size of the arrays has playe rs. COCO only. 1 6k line. COCO only 1 6K by Tom M ix, this ones sure to
been doubled because you must cross all Tape 51 9.95 Tape . . . . . $29.95 Disk. . . . . $34.95 become a classici COCO 32K

the ropes from Y = - 4 to Y = 4. In List­ . . $24.95 Disk. . . $27.95

ing 2 I stopped at the X-axis (Y = 0) and


used symmetry to do the upper half.
In line 1 10 the variable I is again used
to count lines of sight. They must now
be counted from terrain X = - 4 to
X = 1 because they are slanted. In line
1 I 5 MAX and MIN are initialized, and
the screen X-value is calculated. Recall
from above that the screen X-value re­ SHARKS TR EASURE "'"....,. ROBOTTACK
You can practically feel t h e sus·
mains constant along any given line M anuever your way around DOODLE BUG is a machine Ian·
pense mount as you dive through sc re en i n a last despera te
of sight, while the terrain X-values treacher ous shark
guage high resolution graphics
Infested tempt to save t h e human fan game for one or two players who
decrease. waters I n hopes of retrievi ng
As t h e robots g row in n u m t move I h e i r Ladybugs t h rOlJgh an
In line 120, the number of ropes riches beyond belief. If you are
use your lasers to elimin ever'changing maze gobbling
q uick. you may get.a c h a nce to
crossed (after the first) is determined . them a n d yo u r supe rior m dols and other items while aVOid·
use one of your three grenades
When X = 2 (i.e. , when I = 2.DD + 1),
-
and
ueverlng to avoid t h e i r deadly ing deadly enemy bugs and
with some extraordi nary
all the ropes (S.LD ropes after the first) m a n u evering you could make it
g r i p. skulls. Excellenl graphics · Simi'

a
lar t o Lock N' Chase ' 1 6K
are crossed. throug h thiS deadly obstacle R O B O TIAC K I S 1 000'0 mao
c h i n e language. 1 to 2 player
Tape . . . . $24,95 Disk. . . S29.95
J in line 1 25 is the rope counter. X course. Fantastic grapilies make
t h is game a m u st. COCO 1 6 K arcade action game for the en·
and Y are calculated in line 1 30, Z is $2 1 .95 tire fam ily. 1 6 K COCO.
Tape . . . D isk . . . $26.95
calculated in line 135, and Y and Z are Tape . . $24.95 D i sk . . . $27.95
stored . Line 140 sends the data to the
COLOR DI R'ECT FILE TRAN SFER
Tape version $24.95 Di s k version $29.95
Now a program for the Color Computer that allows you to download basic prog rams f rom
Bul let-BO systems. It will also send and receive prog rams from other Color Com puters, Model
I's and Model I l l's.
D i rect File Transfer ( D FD is a modem program which will handle the direct uploading and
downloading of machine lang uage, word processor files, text files, and basic programs
d i rectly to tape or disk with no conversion necessary. It is the program you must have to
download from any Bullet 80 system. OFT also has a chat mode, and has software controlled
half and/or full duplex.
COLOR TAPE COpy $1 5.95

��
By Bob Withers
There have been a few copy programs on the market for the Color Computer but none can
compare with Color Tape C opy. This program is designed so that you do not lose any of your
ROPES valuable programs or data bases.

We carry all the new games from all the leading manufacturers. Why buy from us? Two
reasons: ( 1 ) We w i l l ship your game to you within 24 hours. (2) If you buy more than 1 we
LINES OF SIGHT
save you a lot of money. On ALL software buy 2 and save 1 0% off the list price. Buy 3
and save 1 5% off the list price. Buy 4 or m ore and save 20%.
Fig. 6. Here the lines of sight cross the ropes
�........
at an angle. For any point, the value ofX on
the terrain coordinate system differsfrom the
� U lVl fiiil' U T � R 5 HAI:; K
1 69 1 E ason . Pontiac, M ichigan 48054
value of X on the screen coordinate system.
Notice that as the lines of sight go from
I nfo: (31 3) 673·8700 • O rders: CAU TOLL FREE (BOO) 392.8881 ___ 134

X= - 4 to X = 1 (bottom-most rope) on the VISA O K Please add $3 00 for


Master C h a rg e and shIpping I n t h e U S A $5 00 lor Canada o r Me"co
Proper postage outSide of U S · Canada ' MeXICO H o u r s 9 00 A M EST 7 00 P M
terrain X-scale, the corresponding screen
Dealera : We are dIstributors for a t l I tems I n thIS ad Wrote for our catalog and Droce l,st
values go from X = 5 to O.
S&& our olh&r ad on page 389.
-

... See List of Advertisers on page 138 HOT CoCo Jun� 1983 103
plotting subroutine and then moves to because the left and right halves o f the Display 3
the next rope. Lines 145- 1 60 process the display are no longer symmetrical. The The third, and final, display is de­
right half of the image using the values subroutine at 3000 is not used. It should rived by superimposing a rectangular
stored earlier. be deleted, although no harm will come grid on the terrain map as shown in Fig.
Lines 2040 and 2080 must be deleted i f you do not. 7A. As with display 2, the changes re-­
quired in the original program (Listing
2) involve the lines dealing with finding
Il DIM Y ( 1 6 ) , Z ( 1 6 ) the X and Y coordinates of the intersec­
III CLS : PRINT"DO YOU WANT TO LOAD A PREVIOUSLYSAVED DISPLAY " / : IN
tions of the lines of sight and the rectan­
PUT " ( Y OR N ) " ; A$
15 I F A $ = " Y " THEN 4 0 1l 1l gular grid. The altitude calculation and
2 1l CLS : PRINT " GRAPHICS PMODE" the plotting routines remain the same.
25 PRINT : PRINT" ( 3 ) MEDIU�1 RESOLUTION , 4 COLORS "
3 0 PRINT" ( 4 ) H IGH RESOLUTION , 2 COLORS" Listing 4 details the necessary chang­
35 PRINT : INPUT" PMODE ( 3 OR 4 ) " / M es. Using lines of sight parallel to the
41l PRINT
55 INPUT"DOT DENSITY " ; DD : DD= DD/ 2 : DX=1/4/DD
Y-axis lets you take fuD advantage of
61l PRINT symmetry. This is important due to the
65 CLS : PRINT"SELECT VIEWING ANGL E " increase in processing time resulting
71l PRINT" Il DEGREES IS FROM OVERH EAD "
75 PRINT" 9 1l DEGREES IS FROM THE SIDE" from the large number of points that
81l PRINT : INPUT"ANGLE IN DEGREES " ; A must be processed.
9 1l A=A* 3 . 1 41 5 9/1 81l : S aSIN ( A ) : C=COS ( A )
95 PMODE M , 1 : PCLS : SCREEN1 , 1
The processing of lines of sight is
I ll S POKE 6 5 4 9 5 , 1l complicated by the fact that these lines
1 1 1l FOR I-Il TO 7 cross the grid pattern at different
1 1 1 FOR K=1l TO 1
1 1 2 FOR J�1l TO DD-1 Y-values. The key is to find a repeating
1 1 5 MAX=-1 1l 1l : M INa1 1l 1l : X=- 4+1/ 2 +K/ 4+J*DX : X1aINT ( 3 1l *X+ . 5 ) : CCa16 pattern.
116 FOR L�1l TO 7
117 FOR N�l TO 2
So far, any line of sight has been
1 1 8 IF K=1l THEN F = ( - l ) �N* ( DD-J) *DX ELSE F= ( -l ) AN*J*DX handled in the same manner as all the
121l Yz-3 . 7 5+ L/ 2+F others . Now you must handle groups of
125 GOSUB l U ll
1 2 8 Y ( CC) =Y : Z ( CC ) = Z : CCaCC-1 lines as indicated in Fig. 7B. Each value
1 3 1l GOSUB 2 11 0 0 of I denotes a separate group of lines of
1 3 5 NEXT N , L
1 4 1l GOSUB 3 1l 1l 1l
sight. Furthermore, each group is divid-
1 4 2 NEXT J , K , I \ ed into segments, with each segment be­
1 4 5 X1=Il : MAX=-1 1l 1l : MI N = 1 8 8 ing processed in the same manner. As
1 5 0 FOR Iz-4 T O 4 STEP . 5
1 5 2 Y=I before, processing will proceed from
155 GOSUB 1 1l 8 8 : GOSUB 2 8 8 8 left to right and from bottom to top.
1 6 8 NEXT I
1 6 5 POKE 6 5 4 9 4 , 8 Notice in Fig. 7C that a line of sight
1 7 5 SOUND 1 8 8 , 2 crosses the grid at points equally spaced
l S 8 FOR I-I TO 2 0 : NEXT I below and above the middle of each
I S S IF INKEY $- " " THEN 1 7 5
1 9 8 I F INKEY $= " " THEN 1 9 11 block, and that as the line of sight
1 9 5 CLS : PRINT"DO YOU WISH TO SAVE SCREEN ON" moves from left to right, this spacing
281l INPUT " TAPE (Y OR N) " / A $
2 0 5 IF A $ : " Y " THEN GOSUB 5 8 8 8 ELSE RUN
frrst decreases and then increases. The
218 CLS : PRINT"DON E " magnitude of this change is constant as
2 1 5 PRINT" PRESS ANY KEY T O CONT INUE" the line of sight moves, and is depen­
2 2 8 IF INKEY $- " " THEN 228 ELSE RUN
1 8 11 0 R-SQR ( X *X+Y*Y) dent on the dot density. (In this pro­
1818 Z=COS ( 4 *R) / ( R/ 2 + 2 ) -3*R/ S + 1 gram I decided to leave the line density
1 11 2 8 RETURN
2 8 8 8 Y=INT ( 3 8* ( C*Y+S * Z ) + . 5 ) fixed because I found that increasing or
2 11 0 5 I F M-4 THEN 2 8 5 8 decreasing the line density degraded the
2 8 1 8 I F Y<MIN TH EN MINaY ELSE 2 8 5 1l result.)
2 11 3 8 PSET ( 1 2S+X1 , 9 6-Y , 3 )
2 8 4 8 PSET ( 1 2S-X1 , 96-Y , 3 ) To process a point first below and
2 8 5 8 I F Y)MAX THEN MAX=Y ELSE 2 11 9 8 then above the middle, I used a loop
287 8 PSET ( 1 2S+X1 , 9 6-Y)
2888 PSET ( 1 2 S-X1 , 9 6 -Y)
(FOR N 1 TO 2) and included a factor
=

2 8 9 8 RETURN of ( - I)tN in one term of the calcula­


3 11 0 0 FOR I laCC+1 TO 16 tion of Y (line 1 1 8 of Listing 4). When
3U0 Z"Z ( I I)
3 11 20 Y=-Y ( I I ) N 1 then ( - l)tN is negative, yielding
=

3 0 U GOSUB 2 8 8 8 the point below the middle. On the


3 11 5 8 NEXT I I
other hand, when N 2 then ( - l)tN is
=
3 8 6 1l RETURN
4 8 11 8 CLS : PRINT" PREPARE TAPE RECORDER AND PRESS ANY K EY . " positive, giving us the Y-value above the
4 8 1 1l I F INKEY $. " " THEN 4 8 1 8 middle.
4 8 2 1l PMODE 4 , 1 I PCLS : SCREEN 1 , 1 Since the spacing frrst decreases and
4 8 3 1l CLOADM
4 0 U GOTO 165 then increases, I used a second loop
5 0 8 8 CLS : PRINT" PREPARE TAPE RECORDER" (FOR K 0 TO 1) to keep track of the
=

5U8 PRINT " PRESS ANY KEY WHEN READY"


5 8 2 0 I F INKEY$ 2 " " THEN 5 8 2 8
difference. When K 0 (again see line
=

5 8 3 8 CSAVEM " SCREEN " , 1 5 3 6 , 7 6 7 9 , 1l 1 18), the spacing decreases as the line of
5UIl RETURN
sight moves left to right. When K I =

Program Listing 4. By making these changes in Listing 2. a display is produced using a rect­
the spacing increases.
angular grid rather than a series ojparallel ropes. See Figs. 13-15. This program also runs a lit­ In line 55 , the variable OX is the dis­
tle slower than Listing 2. tance between adjacent lines of sight.
Looking at Fig. 7C, notice that from
104 HOT COCO June 1983
one line of sight to the next, the Y coor­ - C O M P U T E R S H A C K-
dinate changes by this same amount
since the grid is composed of lines at an KRAfT JOYSTI,C KS!
angle of 45 degrees. Thus the X and the
First, t h e re was the RS Joyst ick.
I n expensive but it worked in a
fashion, t h e n came Wico with a
good solid joystick, and now
comes Kraft with the best joy­
stick ever for the Color Com­
puter. The Kraft stick plugs right
into the color com puter, and all
of the games work with it. The
Kraft joystick permits both spring
selfcente ring and no spring
loaded u n der switch control.
Tri m Tabs are also provided so
that the center position may be
redefined, a mu st in g ra p h i cs
work. The Kraft Stick is so well
made that it is guaranteed for
one f u l l year against anyt h i n g.
Fig. 7A. The terrain is now covered with a We are so s u re that you w i l l l i ke
rectangular grid of lines that will let you view t h e Kraft Joystick that we offer it with an u nconditional money back gu arantee. If you
the changing contours in two directions. d o n't l i ke it return it w i t h i n 1 5 days for a f u l l ref u n d . This pre m i u m stick has a list price
of $65.95 But as a special i n t roduct ory offer you can purch ase itfor only . .... $54.95
WICO CONVE RTER lets you use your Atari joysticks on the color comp uter
Now only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $1 7.95
WI CO JOYSTICK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $29.95

N EW PR I N TE R
At last a low cost printer f or t h e co l o r c o m p u ter. T h e new Seikosha dot matrix
printer t h at comes co mp lete, ready to p l u g into your CoCo for only $31 9.00.
l LOOP That's rig htl A 50 c p s printer, serial conv erter, and cables, all for t h e low, low price
of $31 9 .00 and its g u a ra n teed for one f u l l year.

New Low Price · Only $399 For the Best Printer On The Market!
Now c. Itoh has done i t again. They have taken the best se l l i ng pri nter u n der
$500 and lowered its price to only $42 9.95. And as a special disco u nt if yo u
I 0 'I ' I ' I ' I 4 I 0 I • I 7 send us a certified check for $399.95 we w i l l r u s h you one of th ese gems within
1 LOOP 2 4 hou rs. These are pare l l el pri n t e rs and have a o n e year g u arantee. If you ever
need servicing t h e re are ove r 5 0 0 service cef)ters t h roughout t h e U.S. This
Fig. 7B. Making full use ofsymmetry lets you printer has very good looking p r i n t i ng.
concentrate on the lower left portion of Fig.
The COCO has a serial printer port and t o use a parallel printer you m u st by a
7A. The lines of sigh t run vertically, and are
converter. Computer Shack now has a con verter that can store data in its
grouped to include a column of X's. The var­
memory u n til the printer is ready for it, freeing the com puter so t h at you can use
iable I is the group counter. Each line ofsight
it. This is an outstanding feature as most printers are not as fast as t h e
is processed by segments that are counted by
computer.
the variable L.
C. ITOH PROW R I T E R . . . . . . . . $429.95
. . . . . . . . . . . . . . . . ... . .. . . . .. .. . . . . . . . . . . . .
C. ITOH PROW RITER WITH C E RT. C H EC K . .. . . $399.95
. . . . . . . . . . . . . . . . . . . . . . . . . .
CO M P U L I N K S E R IAL TO PAR E L L E L C O N V E RT E R . . . . . . . . . . . . . . . . . . . . . . . $259.95
X-TRA 1 6 K OF M E M O RY F O R C O M P U L I N K (64k M A X) . . . . . . . . . . . . . . . . . . . . $30.00
S E R I A L TO PAR E L L E L C O N V E RTER NO M E MO RY . . . . . . . . . . . . . . . . . . . . . . . $69.95

MODEMS
At C o m p u t e r Shack we sell two different modems. The H ayes S m art M od e m at
$ 2 3 9.95 and t h e Anchor Sig nalman for o n ly $99.95.

The H ayes 300 baud is the one we use and recommend. I t has all of the
features any one could ask for. But if you can't afford this modem then we
wou ld l i ke to reco m mend the Anchor S i g n a l m a n a direct con nect 300 baud
modem. .... 453

K LOOP

I
Fig. 7C. One small block (containing one of
the X's) is seen to consist of individual dots.
The spacing (and hence J) is dependen t on the
selected dot density.
Y calculations Oines 1 1 5 , and 1 18- 1 20)
use this incremental distance. 20 PMODE4 , 1 : COLOR0 , 1 : PCLS : SCREEN1 , 1
In Listing 4 the hardest parts to ex­ 3 0 L1N E ( 0 , 9 6 ) - ( 2 55 , 9 6 ) , P SET
4 0 L1NE ( 1 28 , 0 ) - ( 1 2 8 , 1 9 1 ) , PSET
plain are the nested loops in lines 50 FOR 1=-4 TO 4
1 1 0-142. Refer to Fig. 7 as you read. 60 A= 1 2 8 +3 0 * 1 : B= 9 4
7 0 DRAW " BM" +STR$ ( A) + " , " +STR$ ( B ) + " D 5 "
The I loop, begun in line 1 10, counts 80 NEXT1
groups of vertical lines of sight from left 90 FOR 1=-3 TO 3
1 0 0 A= 1 2 6 : B= 9 6 -3 0 * 1
to right (Fig. 7B). Tbe variable K in line 1 1 0 DRAW " B M " +STR$ ( A ) + " , " +STR$ ( B ) + " R5 "
I I I is set at 0 for the left half of each 1 2 0 NEXT1
group (Fig. 7C). In line 1 1 2, J selects the 1 3 0 FOR 1 = - 1 2 0 TO 0
1 4 0 GOSUB 1 0 0 0
particular line of sight that is processed 1 5 0 Y=INT ( 3 0 * Z + . 5 )
in segments counted by L in line 1 16 1 6 0 PSET ( 1 2 8 + 1 , 9 6 - Y ) : PS ET ( 1 2 8 - 1 , 96-Y)
1 7 0 NEXT1
(Figs. 7B and 7C). 1 8 0 GOTO 1 80
Within each segment, N (line 1 1 7) is 1 0 0 0 R=- 1/3 0
set to select first the point below the 1 0 1 0 Z=3 *EX P ( -R*R/ 4 ) - 1
1 0 2 0 RETURN
middle and then the point above. This is
the innermost loop. Then the next seg­ Program Listing 5. A short program that willplot a cross-section of thefunction used in line
ment up is processed Oine 1 35). 1010. You can eliminate many possibilities by simply viewing this cross-section. Make note
When each segment, up to the X-ax­ of those functions that look promising and try them out in one of the display programs.
is, has been processed , the subroutine
call in line 140 processes the upper half
of the display for that line of sight. The processes the right half (NEXT K) in a sion involving R is placed inside the pa­
program then moves to the next line of similar fashion. Finally, when the right rentheses. This expression is the expo­
sight (NEXT J) until it has finished the half of a group is done, the program nent of the number "e" (about 2.7 1 8).
left half of a group. The program then moves on to the next group (NEXT I) It would be equally suitable, from a
and so on until all eight groups are pro­ graphing standpoint, to use some other
cessed. The NEXT J, NEXT K, and base such as 2 or 3. The function would
NEXT I statements are lumped into a then be written 2t( ) or 3 t( ), where
. '�!: : : : : : ! : : ; , , ; : ;: : : : ; : : : ; ; : : : : : : �: . � ,
" NEXT J,K,I command at line 142. again an expression involving R goes in
. . " .
." Lines 145- 160 process the Y-axis the parentheses.
, 1: ' : :. , ' . , , '
"
, " " , ::1,
. • • • • ! /,
. :!: :,' . . . . . . .. . . . . . " ', 't

. I, " ': .: : : .: : .
separately, as it is not included in any of If the base is a number greater than
. , '. . "" the groups . one, then the expression inside the
" " . . .. . . . . . . . . . .. . " ,
'. ..:
.
. .
. .
.. parentheses (the exponent) should be
Additional Comments
negative or zero. If the exponent is
1000 R = .75oSQR(XoX + Yo Y) In each program, the altitude func­ positive, the altitude win quickly
1010 Z = I + COS(R) - COS(2o R)12 tion is in a subroutine starting at line become too large to plot. Z = EXP
LINE DENSITY = 2 1000 . Unless a person has some knowl­ ( - R), Z = l .5 . 2t( - R.R), and Z = 2.3
DOT DENSITY = 8 edge of mathematics, it can be difficult t( - R.R/4) - 1 are all examples where
ANGLE = 75 DEGREES to know which expressions to use in line
1010. Probably the most frequently

Fig. BA . Notice that a lo w line density and a


used functions are trigonometric and
lo w dot density result in ropes that are
exponential functions.
spaced rather far apart, and that appear as In Basic the exponential function is
dotted lines. Even so, the general shape of the written EXP( ), where some expres-
display is apparent. Low densities require on­
ly a short processing time.

1000 R = 1 . 25.SQR(XoX + Y. Y)
1010 Z = 1 . 75.(COS(R) + .4oCOS(3.R»
+ . 25
DELETE LINE 2005
2030 PSET( l 28 + X I ,96 - Y)
1000 R = .9oSQR(X. X + YoY)
1 000 R = .75oSQR(XoX + Y.Y)
2040 PSET(l 28 - X I , 96 - Y)
1010 Z = COS(R) + CqS(2 oR)12 + COS(6.
LINE DENSITY = 8
10 10 Z = I + COS(R) - COS(2. R)12 R)/4:Z = 1 . 25oZ
DOT DENSITY = 64
LINE DENSITY = 3 LINE DENSITY = 4
ANGLE = 70 DEGREES
DOT DENSITY = 32 DOT DENSITY = 32
ANGLE = 75 DEGREES ANGLE = 70 DEGREES
Fig. 10. Program Listing 2 has been modified
Fig. BB. An increase in line and dot densities to show points on the top and the bottom
results in a better display. Note in line 1000 Fig. 9. Note that again R is scaled in line sides of the grid. Both sides areplotted in the
that the formula for R is multiplied by . 75. 1 000. A t the end of lin e 10JO the altitude is same color in PMODE 4. This display took a
This scaling lets you sho w more or less of the multiplied by 1.25 to increase the height of fair amount of time to complete because of
breadth of the terrain as desired. the display. the high densities used.

106 HOT CoCo Junc l983


the exponent is negative or zero. get. If you don't like it, you try again. I welcome comments from readers,
Remember that R is a distance and is Program Listing 5 contains a short and am willing to answer questions if I
always positive. The negative sign in program that will let you view a cross­ can. But please include a self-addressed,
each of the exponents makes the expo­ section of the graph that would result stamped envelope . •
nent negative, or zero at most. Each of from using a specific expression in line
these would produce a display resem­ 1010. Frequently you can dismiss an ex­
bling a mound. pression just by looking at this cross­ Delmar E. Searls lives at 1825 S.
The height of the mound is deter­ section, and with far less wasted time. fohnstone, Bartlesville, OK 74003.
mined by the multiplier (if any) in front. Use this program to test several ex­
The first would have a height of 1 , the pressions, making note of those that
second a height of 1 .5, and the third a look promising. Then, test the good
height of 2. In addition, the display for ones in a display program using a low
the third Z function would be lower on dot density and (for displays 1 and 2) a
the screen because a 1 was subtracted low line density. You may want to vary
from the height calculation. the viewing angle. Different expressions
The trigonometric functions (sine are a!1so likely to look better on one dis­
and cosine) produce the graphs that play than on another.
resemble ripples in a pond. In Basic You can alter the height of a display
these functions are written SIN( ) and by mUltiplying or dividing the altitude 1000 R = SQR(X.X + Y.Y)
function by some number based on trial 1010 Z = 2.5.EXP( - R.R/4)
COS( ), where, once more, an expres­
DOT DENSITY = 16
siQn involving R goes inside the paren­ and error. The total width of the screen
ANGLE = 75 DEGREES
theses. The values will range from 1 - display is constant, but you can scale
to 1 , with the sine function equal to zero the function horizontally by multiplying Fig. 13. A Simple Example of Display 3
at the origin, and the cosine function the right side in line 1000 by a number. (Listing 4).
equal to one at the origin. The range can Again, trial and error will determine the
be adjusted by mUltiplying the trig func­ best choice.
tion by some number or by some other Figures 8- 1 5 are examples of images
function (such as an exponential). produced by the programs listed in this
Most of the displays commonly seen article. Each figure includes the altitude
are combinations o f trigonometric function, the dot density, the line densi­
functions or of trigonometric and expo­ ty (where applicable), and the viewing
nential functions. This is where the trial angle. Additional comments are includ­
and error process enters in; you enter a ed where appropriate. These figures
function in line 1010 and see what you may give you some ideas for further
experimentation.
The figures were printed on a Radio
Shack Line Printer VII using a screen­
print program from the August 1982 is­ 1000 R = SQR(X.X + Y.Y)
sue of 80 Micro, p. 202. The printed dis­ 1010 Z = 1 .5 - 3.EXP( - R.RI2)
play has a smaller height-to-width ratio DOT DENSITY = 16
than the screen display; thus, each of ANGLE = 65 DEGREES
the displays shown will appear taller on
Fig. 14. A PMODE 3 example illustrating the
the screen.
use of two colorsfor the top and bol/om of
1000 R = SQR(X.X + Y.Y)
the grid. The diamond-shaped base is ob­
1010 Z = 2.EXP( - R).COS(3.R)
tained by inserting the following line into
LINE DENSITY = 4
Listing 4: 122 IF Y< - (X+ 4) THEN 135.
DOT DENSITY = 64
ANGLE = 75 DEGREES

1000 R = SQR(X.X + Y.Y) 1000 R = .75.SQR(X.X + Y.y)


1010 Z = 2.EXP( - R).COS(3.R) 1010 Z = 2.(COS(R) - COS(3.R)/3 +
LINE DENSITY = 4 COS(5.R)/5 ) + .25
DOT DENSITY 64 = LINE DENSITY = 5 1000 R = SQR(X.X+ Y.y)
ANGLE = 75 DEGREES DOT DENSITY 32 =
1010 Z = 1 . 5.(COS(R) - COS(3.R)/3) + .5
ANGLE 70 DEGREES
=
DOT DENSITY 32 =

Fig. I I. The samefunction ploUed using Pro­ ANGLE = 70 DEGREES


gram Listing 2 (Fig. I IA) and Listing 3 (Fig. Fig. 12. A second exomple ofafunction plot­
I IB). Figure IIA could have been produced ted using Listing 3 (display 2). The cosine Fig. 15. The circular base is obtained by add­
with a square base by changing line 120 in terms are the first three terms in the infinite ing this line to Listing 4: 122 IF
Listing 2 to read NL = 4 ·LD. series representation of a square wave. Y< - SQR(l6-X·X) THEN 135.

HOT CoCo June 11)83 107


UTILITY

BY RUSTY LE BLANG

DEMYSTIFYING SYSTEM
RAM
O ne of the few mysteries of the
Color Computer is what is in that
Playing POKE and PEEK The addresses I did find can add all
sorts of new features to the Color Com­
area of RAM that the Going Ahead with your Color Computer puter. The most important address is
with Extended Color Basic book calls 359, which usually contains the value
could lead you to some
"system RAM The Getting Started
." 1 26. I f you POKE 255 into it, the cursor
with Color Basic book defines only startling discoveries . will appear back on the screen, flashing
some of the addresses. as usual. But if you try to type anything,
With computer in hand, I systemati­ it will not be printed on the screen.
cally went through the area, POKEing, At first I thought the computer had
PEEKing, and EXECing at each ad­ from Radio Shack, I compiled the crashed and wasn't accepting keyboard
dress from 0 to 1023. After that, with listing in Table 1 . I included the ad­ input. When I typed SCREEN 1 and
the help of the EDTASM + package dresses that were in the Color Basic enter, however, the computer displayed
book so that programmers won't have the graphics screen and stayed there. I
to use several books to find a needed tried using graphics commands such as
System Requirements address. Circle and Line and to my amazement, I
As with the memory map in both Ba­ saw them work right there in the com­
sic books, the list of addresses in the mand mode. Usually, when the com­
16K RAM Color Basic book is not complete. puter prints something to the text
Extended Color 8a<iic
Many of the addresses there are to be screen, it automatically returns to the
Disk Color Basic
used with a Basic program, and altering text screen. After you change contents
their contents crashes the computer. of 359, however, the computer will not

Address Function Address Function

23-24 top of RAM 1 82 present PMODE number


25-26 start address of Basic program 234 drive operation (0-3)
3 1 -32 end address of Basic program 235 drive number (0-3)
55-56 name of last variable used 236 track number (0-34)
III DEVNUM -device number for CHROUT 237 sector number ( 1 - 1 8)
1 24 cassette block type 238-239 bu ffer address
125 cassette block length 240 disk 1/0 error codes
1 26- 1 27 'cassette buffer address 274-275 timer value
1 35 last key pressed ill program 282 upper/lowercase flag 0 = on, 255 = off
1 36- 1 37 cursor address 283-284 keyboard delay constant
148 cursor timer 338-345 keyboard rollover table
149- 1 50 line printer baud rate 346-349 joystick pot values
1 5 1 - 1 52 line printer delay 359 disable Print 1 26 = on, 128 = graphics, 255 = off
153 line printer comma field width 474-48 1 cassette file name
1 54 line printer last comma field 485-486 EXEC address of cassette-loaded machine-language program
155 line printer line width 487-488 load address of cassette-loaded machine-language program
1 56 line printer current position 5 1 2-730 free RAM usable by machine-language programs
1 57- 1 58 EXEC address of machine-language program 733-981 keyboard input buffer (noncom pressed format)
175 trace flag 0 = off, 79 = on 1024- 1 535 text screen memory

Table I. Memory Map oj System RAM

108 HOT COCO Jun� 1983


on the screen, along with some graphics
10 VERI FY ON characters that are equivalent to the OK
2 0 CLS : C L EAR 2 0 4 8
3 0 P R I NT @ 2 2 4 , " STANDBY FOR COLOR D I R ECTORY 1.0"
prompt. To return to normal use of the
4 0 FORX = 5 1 2T0 5 4 1 computer, POKE 1 26 into 359.
5 0 READA$
With the disk system installed, dis­
60 POKEX , VAL ( " & H " +A $ )
7 0 N EXT abling the Print function will work, but
8 0 DEFUS R 0 = 5 1 2 you won't be able to get the graphics
90 Z = P E EK ( 23 5 )
characters from the keyboard due to
1 0 0 F=FRE E ( Z )
1 1 0 D I MA$ ( 6 B ) : Y = 1 : P 1 = 1 : PO = 4 : T= 2 4 7 changes that the disk system makes in
1 2 0 FORX = 3 T0 1 1 that area.
1 3 0 D I SK I $ Z , 1 7 , X , A $ , B $ : C $= A $ + L EF T $ ( B S , 1 2 8 )
1 4 0 FORN=0T07
The set of addresses from 338 to 345
1 5 0 A $ ( Y ) =M I D $ ( C $ , N * 3 2 + 1 , 8 ) + " " +M I D $ ( C $ , N * 3 2 + 9 , 3 ) + " " is the keyboard rollover table. The ad­
1 6 0 R=ASC ( A $ ( Y » : I FR= 2 5 5 THEN A $ ( Y ) = " " : GOT02 2 0
1 7 0 A $ ( Y ) = A $ ( Y ) +CH R $ ( P E EK ( 1 5 4 7 + N * 3 2 ) + 4 8 ) + " "
dresses tell what keys are being pressed
180 IF P E EK ( 1 5 4 8 + N * 3 2 ) = 0 THEN A $ ( Y ) =A $ ( Y ) + " B " E LS E A$ ( Y ) =A $ ( Y ) + " at any one time. Unlike the INKEY$
A" function, PEEKing the address that
190 IFR=0 THEN A $ ( Y ) = " " : GOT0 2 1 0
200 Y=Y+1
corresponds to the desired key allows
210 NEXTN , X you to read whether a key is being
2 20 P 2 = I NT ( ( Y- 1 ) / 1 0 ) : I FP 2 « Y - 1 ) / 1 0 THEN p2=P2+1
pressed. This allows you to use repeated
230 CLS
2 4 0 P R INTTAB ( 4 ) " COLOR D I SK D I RECTORY 1.0" keys, something that can't be done with
2 5 0 P R I NTTAB ( 1 0 ) " D I S K D R I VE " ; Z the INKEY$ function. Table 2 shows
2 6 0 P R I NT @ 6 5 , " U S E D " ; 6 8- F ; " FR E E " ; F ; " PAGE " p1 " OF " P 2 : P R I NT
2 7 0 H = ( P1 - 1 ) * 1 0 + 1
the values that the addresses will have if
2 8 0 FORX=H T O H + 9 any key is held down.
2 90 I F A $ ( X ) = " " TH EN P R I NT : GOT03 1 0
300 P R I NTTAB ( 8 ) A $ ( X )
To test this, type in this small routine :
310 NEXT
320 K = PO * 3 2 + 8 : POK E 5 2 9 , & H 8 0 : A= U S R 0 ( K ) : PO K E 5 2 9 , & H 8 B 10 PRINT@O,;: FOR X = 338 TO 345:
330 E= ( P 1 - 1 ) * 1 0 +PO-3 .
340 I F P E EK ( 3 4 1 ) =T AND PO=4 AND P1 > 1 THEN P 1 = P 1- 1 : PO= 1 3 : A= U S R 0 ( K )
PRINT PEEK(X): NEXT: GOTO 10
: GOT0 2 6 0 ELSE IF P E E K ( 3 4 1 ) =T AND PO > 4 THEN A=USR0 ( K ) : PO=PO- 1 : GOT
0320
3 5 0 I F P E E K ( 3 4 2 ) =T AND PO < 1 3 AND E <Y - 1 THEN A=US R0 ( K ) : PO=PO + 1 : GOT After typing it in and running it, press
0 3 2 0 ELSE IF P E E K ( 3 4 2 ) =T AND P1 < P 2 AND PO= 1 3 THEN P 1 = P 1 + 1 : PO = 4 : A any key and the corresponding address
= U S R 0 ( K ) : GOT0 2 6 0
3 6 0 I F P E E K ( 3 4 0 ) = 2 5 1 THEN 3 8 0 will change according to Table 2. When
3 7 0 GOT0 3 4 0 you release the key, the address will
3 80 M I D $ ( A$ ( E ) , 9 , 1 ) = " . " : T$=LEFT$ ( A S ( E ) , 1 2 )
3 9 0 I F I NSTR ( A S ( E ) , " BI N " ) THEN LOADM T$ : E X E C
return to 255 .
400 I F I NS TR ( A S ( E ) , " BAS " ) THEN LOAD T$,R This feature can b e used i n arcade­
410 GOT03 4 0 type games that need repetitive 'key­
420 DATA BD , B3 , ED , C3 , 4 , 0 , l F , 1 , C 3 , 0 , 1 0 , ED , 8D , 0 , D , A6 , 8 4 , 8 B , 4 0 , A7 , 8
0 , AC , 8D , 0 , 3 , 2 6 , F 4 , 3 9 , 0 , 0
pressing. By PEEKing these addresses,
you need not constantly press a key­
Program Listing I just hold it down as long as needed and
then release it.
I have also included four programs.
print anything to the text screen and will more hidden extra. If you POKE the Three of them require Color Disk Basic,
stay in the graphics screen if it is used. value 128 into 359 and are viewing the and all require Extended Color Basic.
This opens up a whole new feature of text screen, you will see that any key The programs use some of the addresses
the Color Computer, something I have pressed (except the clear key, which will that I didn't explain, but their functions
seen only on Apple and Atari comput­ still clear the screen) will print a graphics in the programs are described in remark
ers. All graphics commands will work, character on the screen. statements that I included. DIR and ,
as will all the other Color Basic and Ex­ RO M PAK use machine-language This reverses alphanumerics and
tended Color Basic commands, except subroutines, so type them in carefully graphics. If you type "PRINT CHR$
the Print function. The feature has one and save them before running them. A (191)" and enter, an "A" will appear

.A\.ATARI
COMPIITEI
DISCOUNT PRICED D15:' $548
HOME COMPUTERS
Commodore 64
•ROM sCALL VIC 20. . . . . . .

110 HOT COCO Jun� 1983


mistake can crash the computer.
1 0 CLS : DEFUSR0 = & H D 6 6 C ' POINTS TO DSKCON
DIR 20 PRI NTTAB ( � ) " COLOR D I S K DRIVE " : PRINTTAB ( 6 ) " HEAD C LEAN ING DRIVE
R"
DIR is a disk-directory program that 30 PRINT@1 0 2 , " REMOVE PROGRAM D I SKS "
reads the entries of the directory track 40 PRINT @ 1 2 9 , " INS ERT CLEANING D I SK IN DRIVES "
50 PRINT @ 2 2 4 , ; : INPUT"DRIVE NUMBER ( 0 - 3 ) OR <ENTER> TO QUIT" / DR
into array A and allows them to be
$
viewed. DIR includes the name, exten­ 60 IFDR$= " " THEN CLS : END ELSE DR=VAL ( DR $ ) : I FDR<0 OR DR>3 THEN 5 0
sion, file type, and ASCII flag. DIR is 7 0 PRINT@ 2 8 8 , " H EAD IN POS I TION "
80 A=0 : B= 3 4 : C= 1 : GOSUB 1 1 0
designed so that it will work on the drive 90 A=3 4 : B= 0 : C=-1 : GOSUB 1 1 0
from which it was loaded or the last 1 0 0 POK E & H F F 4 0 , 0 : RUN
1 1 0 FORX =A TO B STEP C
drive used.
1 2 0 POKE 23 4 , 1 I S E TS D I S K TO NO OPERATION
The program prints the entries in 1 3 0 POKE 2 3 5 , DR I S ETS DRIVE NUMBER
pages, with 10 entries per page and up 1 4 0 POKE2 3 6 , X I S ETS TRACK NUMBER
1 5 0 PRINT @ 3 0 4 , X ;
to seven pages. After the initialization, 1 6 0 FORY=1T07 0 : A=USR0 ( 0 ) : NEXTY , X
which takes about eight seconds, the ti­ 1 7 0 RETURN
tle will appear on top of the screen,
along with the drive number being used, Program Listing 2
the number of used and free granules,
the page number, and the total number
of pages.
The entries will scroll down the screen
and the first entry will be highlighted in 10 CLS : PRINT " MAC H I NE LANGUAGE TRANSFER DRIVER FROM CASSETTE
inverted text (green on black). DIR 'uses TO D I SK " : PRINT" PROGRAM : "
20 FORX = 4 7 4T04 8 1 : NA$=NA$+CHR$ ( PEEK ( X » : NEXT : PRINT@7 3 , NA$
a machine-language routine to highlight 30 ST=PEEK ( 4 8 7 ) * 2 56 + PEEK ( 4 8 8 ) : EN=PEEK ( 1 2 6 ) * 2 5 6 +PEEK ( 1 27 ) : EX=PEEK
each entry for speed and convenience. ( 1 5 7 ) * 2 5 6 +PEEK ( 1 5 8 ) : ST=ST+EX-PEEK ( 4 8 5 ) * 2 5 6 - P E EK ( 4 8 6 )
Use the up and down arrow keys to 4 0 PRINT " START ADDRES S " S T : PRINT" ENDING ADDRES S " EN : PRINT" EXECUTIN
G ADDRES S " EX
move the black bar from entry to entry. 50 INPUT" HOW MANY COP I ES " ; NO : I FNO <=0 THEN END
If the bar reaches the top of the screen 60 FORX = 1 TO NO : PRINT@ 2 2 4 , " INSERT D I S K I N DRIVE " : PRINT " K EY < ENTER
> TO COPY " ; : L I N E INPUTA$ : I MNA $ , ST , EN , EX : NEX T : END
and there is a previous page, it will scroll
that page onto the screen and the black
bar will be on the bottom entry. Program Listing 3

If you reach the bottom of a page, the

P R O D U CTS F R O M R E NAISSAN C E GAM E D ES I G N S


.�c •• U I .,e l l U I
COLO R E D FONTS COLO R ED FONTS 2
f L IHu :[T H IH u .o n
• 224 User programmable characters t u l UN[ �( ( f u r�l �( r
I I A t: Ie S f! • 96 User-programmable characters
eIL." IL II' O... .I'IL II'
• 6 Pre-programmed font sets (Disk) I T AL I C 2 SET • 6 Pre-programmed font sets
� �y IIIYIJiIIII liMY
I
I • Epson and Okidata screen dumps ..tf l t S l ' Hf f l [ :t: I • Epson and Okidata font printer


included for freel
Combines graphics and text on the
.�C I I U l
l l lH u � [ T
'.. ::
\:�I:II)
.
.'e l l U I
H U I- u �[T
1 . • t , A i " 1 .4 t

f Uo T U i\E S E T
H I


program incl uded for freel
Creates highly detai led characters
same screen
' u l ....l �l l
COL.I'IL ,.,
� IVIft
f u l u�( S( r
C8&.II'IL 1'1
.1 l)flf 1t61 J .JJ .4e a
1 32K Di.k only $29 .96
$24.96 c....tte $29.96 diskette "'\� IIIlIY

" I'" ' . . •


.. .• ,_flLlMf, � BRICK ESCAPE
LA S E R TAN K D U E L
UII� :UbUII
• • • • • • •
" UWWIUJlUIll . • Two Grtlilt Gilmes in ontl
• Try to zap your friend before he zaps
you With his Laser Tank
• • • • • • . ",
�I ' , • Progressive - The walls steadily
• • • • • • •
.. . .�- - advance on you

«
[iCU (
Beware of the Free Mi nes because • • • • • • •
t'hey absorb your Fire &' .. . · u t, • Cavity - Trv not to BREAKOUT the
• • • • • • •• 1; 1' 2 extra balls
• Written in superfast Machine L U'J'l' I; UI J.
• • • • • • • • Written in superfast Machine
a
Language
• • • • • • •• ' U l t; 1 .' .,. . t Language
$ 1 6 . 96 c....tte S l 9.96 diskette ..
'-------__----' $ 1 6 . 96 ca...tte $ 1 9.96 diskette

EXTRA FONTS: Extra Fonts is the 6 p re-progra m med cha racter sets i n c l uded with the disk version of
"-
COLO R E D FONTS. Made for cassette' users . . . $4.95 c....tte only

Send Check or Money O rder to: Select either 1 6K or 32K


Renaissance Game Designs. P . O . Box 1 232. Montclair. N .J . • (20 1 ) 746-7836
N .J . R e.ident. include 6% ••Ie. Tex
Include $2.60 for S / H

.- See List of Advertisers on page 138 HOT CoCo Jun� 1983 III
next page will scroll down the screen ability. DSKCLEAN
and the top entry will be highlighted. To When you have selected the program
DSKCLEAN is a head-cleaning
go quickly from entry to entry, just hold you want, either in 'Basic or machine
driver program. When you purchase
down the up or down arrow. The pro­ language, press R and the program will
Radio Shack's cleaning disks, the sug­
gram polls the keyboard rollover table load and run. This is the only way to ex­
gested method for using them is to type
for input, so you have repeated-key it DIR, except to press the break key.
DIR, escape the command with an I/O
error, and continue the same procedure
until the disks have spun for 30 seconds.
10 PMOD E 0 , 1 : PCLEAR 1 : CLEAR1 0 , 8 1 9 2 This not only wastes time, but aiso
2 0 CLS
uses only a small area of the cleaning
3 0 PRI NTTAB ( 7 ) " P ROGRAM PAK COP I E R "
4 0 P R I NT disk, the area that corresponds to track
5 0 FORX = 5 1 1 T053 0 17. DSKCLEAN solves both problems.
60 READA$
70 POKEX , VAL ( " & H " +A $ )
The program will spin the disks for 30
80 NEXT seconds and move the head from 0 to
9 0 DEFUSR0 = 5 1 1
34, then back to O.
1 0 0 PRINT@6 4 , ; : I NP U T " ENTER MEMORY S I Z E ( 1 6 O R 3 2 ) " ; M E
1 1 0 IF M E < > 1 6 AND ME < > 3 2 THEN 1 0 0 The program will tell you to remove
1 2 0 I FM E = 3 2 TH EN ST= 2 4 5 7 6 ELSE ST= 8 1 9 2 all program disks and insert the cleaning
1 3 0 PO K E 6 5 3 1 5 , 5 4 ' D I SABLE CARTRIDGE I N T ERRUPT
1 4 0 L I N E I N PUT " I N S ERT PROGRAM PAK IN CARTRIDGE SLOT AND KEY <ENTE
disk into the drive you want cleaned .
R> " ; A $ Answer the prompt with either the
1 5 0 A=USR0 ( S T)
number of the disk or with the enter key
1 6 0 PRI NT" PROGRAM PAK DUM P E D "
1 7 0 I N PUT" HOW MANY COP I ES " ; C to end the program. Comments in the
1 8 0 I FC = 0 THEN 2 4 0 program tell what address is doing
1 9 0 FORX=l T O C
2 0 0 PRINT@ 2 5 6 , " POS I TION TAPE---PRESS PLAY AND RECORD"
what . The loop in line 160 is required
2 1 0 L I N E I NPU T " K E Y <ENTE R > " ; A$ because the drive is set to no operation,
2 2 0 CSAVEM" ROMPAK " , S T , ST+ 8 1 9 2 , ST and the computer will execute one pass
23 0 NEXT
2 4 0 END through the loop in a split second, so a
2 5 0 REM MAC H I N E LANGUAGE SUBROU T I N E loop of 70 is enough to get 30 seconds of
2 6 0 DATA BD , B3 , ED , l F , 1 , 1 0 , 8 E , C0 , 0 0 , A6 , A0 , A7 , 8 0 , 1 0 , 8 C , E 0 , 0 0 , 2 6 , F 6
,39,0,0
spinning time.

Program Listing 4 MLCOPY


MLCOPY will transfer any machine-

PRO-COLOR-FILE
I f you 're through playing games and are ready to ·
get serious about software, then P R O-CO LOR­
F I L E is for you. T u rn your T R S-80 32K Color

STRI P TEASE
Com puter D isk system i nto a powerfu l data base
manager.

We're serious abo u t PRO-CO LO R - F I L E . It's the only


program of i t s k i n d that g i ves so m uch fle x i b i lity and R M RTHEMRT 1 C R L
power to yo u r co lor disk at a price that w i l l f i t your I)'I V E R S 'tO N F O R
budget. I n fact, i t could be the l east e x pensive software M A TU RE G E N T L E M E N !
yo u ' l l ever buy.

PRO-CO LOR - F I L E is not j ust one program. It g i ves you


R A T E'Q '·R"
the a bi l i t y to create a ny a p p l i c a t i o n that req ui res i n for·
BY B R I T T MO N K , C D P
mation to be stored, searched, u pdated , sorted and
P.O. B O X 8 0 Z
EL ... R lR. OH 'I D Jf lJ 0 3 6
reported. You ca n custom design your own m a i li i n g l i st,
i n ventory, stock i nvestment records, t i me ma nager,
expense record�, i ncome records . . . . a n y t h i n g .

T h e best part about PRO-CO LO R - F I L E i s that you d o n ' t $ ilt . O O - 16K · C-A S S E T TE
have to be a programmer or e v e n k n o w a l o t a b o u t d i sk
i n put/output to use it. You design your appl i cation

Featuring :
programs i n a way that i s easy for y o u to u n derstand and
use. In fact, the more you use P R O-CO L O R - F I L E the
more you learn about data base development.

O n l y $79.95 + $2.00 Shi pping a nd Ha nd l i n g.


We accept V I S A , MAST E R C H A R G E , Checks or Money Orders. Hi gh Res G r aph i c s * Danc i ng
No C.O.D .'s please. Rh ythm & B l ues Mus i c
Call or write for more details: Ma c h i ne Language * Fast Ac t i on
D E R R I N G E R S O F TWA R E , Post Office Box 5300, F lorence, S .C.
29502. Pho ne : (803) ' 665-5676 after 6 :00 p.m. ( E DT!. Sol d in Pl ai n Brown Wr apper
PRO-COLOR-F I L E © 1 983 Dennis Derr inge r . Chec k or Money O r d er On l y
' T RS-80 i s a trademark of t h e Tandy Corp. ... 36 ... 470

112 HOT COCO Jun� Iq83


.------" guage routine to copy the program pak
338 @ H P X 0 8 enter
contents because the same routine in
339 A I Q Y 1 9 clear
Basic would take about five minutes to
340 B J R Z 2 break
dump the program . ROMPAK takes
341 C K S up arrow 3
342 0 L T down arrow 4
only a few seconds.
343 E M U left arrow 5 ROMPAK prompts you when to in­
344 F N V right arrow 6 sert the program pak, and after you
345 G 0 W space 7 / press enter, it will dump the program to
RAM ROMPAK prevents the program
.

VALUE: 254 a53 25 1 247 239 223 191 pak from autostart by masking the car­
tridge-interrupt input, which is the first
NO KEY SEEN = 2SS bit of address 65 3 1 5 .
Table 2. Keyboard Rollover Table Values.
Once the program i s in RAM it can ,

be disassembled or modified to the


user's requirements. · A good under­
language program from tape to disk. machine-language program that loads standing of machine-language pro­
After loading the machine-language low in memory. gramming is required if you want to do
program, run MLCOPY. MLCOPY If you run MLCOPY without load­ this. Also, the program will not run in
will print the program name and start, ing a machine-language program first, RAM because it was not designed to run
end, and EXEC addresses. It will then the EXEC address will be from the last in any area of memory other than 49152
prompt you on how many copies you machine-language program you loaded . to 65279. Once the program is copied, it
want made. If you answer 0, the pro­ The default address for the EXEC com­ will have to be rewritten to run in the new
gram will end. Otherwise, it will tell you mand, 46 1 52, will cause an FC error if area of RAM The machine-language
.

to insert the disk and press enter. you EXEC without having loaded a program starts at 8 1 92 for a 1 6K com­
It will then save a copy of the ma­ program or specifying an address. puter and at 24576 for a 32K computer.
chine-language program. If you want ROMP AK copies only 8K of any
more than one copy, it will tell you to ROMPAK
program pak because most Radio
insett another disk and press enter. The ROMPAK will copy the contents of Shack program paks use only 8K of the
program will continue doing this un­ any program pak from ROM to high ,possible 1 6K for the program. •
til it has made all the copies you re­ RAM. It will also copy a program pak
quested. Program Listing 3 is slightly to cassette on a 1 6K or 32K system. Write Rusty Le Blang at 2605
cramped so that it won't interfere with a ROMPAK uses a short machine-lan- Sedgwick A ve., Bronx, NY 10468.

COLORSPEAK
COLOR COMPUTER VO ICE SYNTHESIZER
TM

HiARDWARE FEATURES
N EW !
• A COMPLETE PHONEME BASED VOICE SYNTHESI ZER IN A CARTRIDGE STYLE PAK
• COLORSPEAK HAS ITS PROGRAM IN ROM , SO ITS INSTANTLY THER E ON TURN ON !
• COLORSPEAK HAS ITS OWN 2K RAM . IT REQUI RES NO M EMORY!
• USES THE VOTRAXtm SC01 PHONEME SYNTHESIZER CHIP
• WORKS IN ALL COLOR COM PUTERS.ANY MEMORY StZE, EITHER BASIC !

SOFTWA RE FEATURES
• T EXT TO SPEECH MODE :CONVERTS PLAIN ENGLISH TEXT 10 SPEECH !
• I NFLECTION MQOE: ADDS VOICE INFLECTION TO TEXT TO:SPEECH MODE
• PHONEME MOOE:ALLOWS PROGRAMMING THE SC01 DIRECTLY IN PHONEMES
• SPEUING MOOE: SPELLS TEXT AND PRONOUNCES MOST PUNCT UATION

USER FR I ENOLY !COLOASPEAK IS THE EASY TO USE VOICE SYNTHESIZER W ITH


ALL FEATURES IEASILY ACCESSIBLE FROM BASIC. SIMPLY PUT THE WORD OR PHRASE
TO SPEAK IN A STRING NAMED TA LKS .THEN CALL THE USR ROUTI N E TO SPEAK THE
TEXT! A LL OF BASICS STRING MANI PULATIONS ARE A PPLICABlE.COLOASPEAK COMES
WITH A DETAILED USER MANUAL AND PHONEME DICTIONARY.
PRICE S 169

mlUJliWlmo.lEall �£OOfI
USER MANUAL S4
PO BOX 25427 CHICAGO IL 10125 .... 140

.... See Lis/ 01 Advertisers on page 138 HOT CoCo Jun� 1')83 113
UTILITY

BY ROBERT P . BUSSELL

MERGE MANEUVERS
MADE EASY

A rticles explaining how you can


merge Basic programs by using
At last CoCo owners can until you have loaded all the program
into memory.
PEEK and POKE instructions are stan­
simplify the troublesome At this time you should enter the EX
dard magazine fare. These techniques task of merging their EC &H7D5D command. This routin
require that you write down memory will restore the Basic pointer to the firs
contents at every step. You must calcu­ Basic program libraries. line of the first program loaded ani
late new addresses by hand and follow combine all the programs into one pro
special procedures if the least-signifi­ gram. If you execute the LIST 0
cant byte of an address is 0 or I . You &H7DOO command. This routine will LLIST command, you will see the entir
must also make sure that the line num­ compute and save the first and last line program. The program automaticall
bers of the program to be merged are number for this segment of the merge. resolves all line numbers, allowing yOI
greater than the original program . You will then be given instructions to load Basic programs in any orde
After seeing a number of these pro­ for continuing or terminating the merge without regard to the current Iin
grams, it seemed to me that there must function. If you want to merge addi­ numbers.
be a better way to merge Basic programs. tional Basic programs, enter the EXEC Program Listing 1 contains the A5
&H7D3B command. Doing so will dis­ sembly-language source statements use
A Better Way play the • • • CLOAD Next Program to generate this merge utility. If yOI
The merge utility in Program Listing • • • prompt. Load each additional pro­ have a 1 6K computer, change line num
1 simplifies the task of merging Basic gram, continuing the above procedure ber 200 to ORG $3DOO. You should alSI
programs from a library of routines
stored on cassette tape. This routine
should also work on disk systems by us­ Program Listing I. Basic Program Merge Utility
ing the disk LOAD command in place
of the CLOAD command. 0 0 1 00 * R BRS IC PROGRRM MERGE UT I L I T Y
00 1 02 *
The merge utility has been written in 0 0 1 04 • COPYRI GHT DECEMSER 1982
• ElY
position-independent code and can be 00106
00108 • ROBERT P. BUSSELL

relocated elsewhere in memory. It is 001 1 0 •

00120 CLS EDU $R928 CLERR SCREEN


l o a ded into m e m o r y u s i n g t h e 00 1 30 RENUM EGU $8R3R ENTRY TO RENUM W I TH RLL I N PUTS SET
0 0 1 4 0 SCREEN EDU $R30R D I SP�RY RDDRESS
CLOADM command. This version o f 00200 ORG $7000

the merge utility was assembled a t ad­ 002 1 0 I N I T


00280 RNUM
LBSR
LERX
INST D I SPLRY
NUMTRB , PCR LORD MERGE
INSTRUCTIONS
TRBLE
dress $7DOO for a 32K computer. 00290 LDD _ 1 0 GET CONSTRNT
00300 STD $CF SET UP I NCREMENT
Once you load this utility, you can 003 1 0 ROOD ,X GET LRST L I NE USED
00320 STD $05 SET UP F I RST L I NE
begin the program-merge function. 00330 • COMPUTE LRST L I NE TO SRVE

Load the first Basic program using the 00340
00350 CLRR

CLOAD command. When you receive 00360 CLRB CLERR 0


00370 STD $0 1 CLERR STRRT L I NE
the OK prompt, enter the EXEC 00380 LOY $ 1 9 BE G I N RDDRESS OF PROGRRM
00390 LDD , x NEW L I NE VRLUE
00400 LNUM ROOD _10 INCREMENT
00405 LOY ,Y GET NEXT L I NE
004 1 0 CMPY _0 RT END ?
00420 ElGT LNUM NO, GET MORE
00430 STD , x SRVE FOR NEXT MERGE
00440 J M P RENUM LERVE ROUT I NE RND RENUMBER
System Requirements 00500 INST JSR CLS CLERR SCREEN
005 1 0 LERX TEXT, PCR GET MESSRGE
00520 I LOOP LDR , X + GET CHRRRCTER
00530 BEG I LOOPI NO MORE DRTR
Extended C.olor Basic 00540 JSR SCREEN D I SPLRY IT
00550 BRR I LOOP MORE TO GET
16K RAM
00:560 I LOOPI RTS RETURN
Assembler Optional 00600 MRG LERX FL I NE, PCR
006 1 0 LDD , x GET F I RST L I NE
00620 CMPD _0 1 ST PRSS?

Lis/ing continued
00630 BNE MRGI NO, CONT I NU E

114 HOT COCO Jun� 1983


From Computer Plus to YOU • • •

PLUS after PLUS after PLUS

i
Here 8re just a lew of OUI f ne offers . . .
BUY DIRECT call TOLL FREE 10' lull inlo,mation.

- R.S. AcoustIc Couple!' AC3 .... .....


Mode1126CK 1 Drlye $- IU. Modem I D.C. IU. Model til tST-Ortve 600
129

3370 R.S. Modem II O.C. london .,'roctI. MI


129

tR9 Color Computer 0rM 1


Mode1 1 2 601k 2 � 289
-....
199

,.. 1715 Color Compufef Df.....O ""


Mode1111'16« . ...
Dolly Wheel !!
MocMI IN 48« Primary Hard DIIk Mil 3099
MocMI I U 4INt
OWP"',0
2 Dtlk a RS232 c "..
1320
Smith Corona TPI DoIsy Wheel W
CoIof ComPllter 161( orC.
Primary Hard Dlik Mill
Con
C04oI' COmPUIie' 16K Cotl $2
EPf()n MXeo

>M� bo.lc 22
CCR-8're<XltcMr
Coli
Epaon FXeo

aCotOfComputer 321C-6MC 16K RAM N.te. 200 N.S. chip' 2>


C. C Joyttloks
CGP·H$
EPtOfIMX1O:J

..,,.dended bot'c 420 70


199

'M .....
315 6&lC Ram CNPl
699
DMP·1(10

Model 16 tOR'18K .... 3211.: MIClobutfer Inline 229


Pocnt�2 DMP·200 Coco FWl F'. 0.0,5.

MocM1162OR t2M .,.. SOPTW_


OM'''' 1010

... Brand Na� Softwar• •


DMP.:lOO 1�

m s.ncI tor UIHng.


OT·, Data T.rmlnal
OIlkSoto ao
OMP·2100
320
1779

- '"' IU. Sottwore 10'-' otf ll.I


PT-210 POttab.. Terminal
"...,., .....
lynx DIrK-I Conn.el M'fMlII 236 Oildota 63A 666 Potoll.' Printer Cobl.. are
HoywSmonModemll . 236 OIlldofo IWPofoll" 999
Hoye& Sman Modem ' 200 ...
available formotl eompy*l.
OkldofO 92 ICoIOoCOmpu,.. _'�ftI
<IR OktdofO 93 a59
510
0.. 0 CIO"dOO S

'26
NoYatton Smortcot'200
NOVOTlonJ.CAl P.C. Planerprln.... 180

Since 1913 -
We ha.e 'ha /owast possibla ..... 1 8
Fully Wa"anteed P,Ices A N D
a full complement o f RadIo Shack
Softwa,e.

Let us
BOVING?
know 8 weeks in advance. so that you won't miss a sin­
gle issue of Hot CoCo, MINI STANDARD
Attach old label where indicated and print new address in 5 W' DI SKETTES 5 PAK l O. PAK ·
space provided, Also include your mailing label whenever Soft Sector
you write concerning your subscription . It helps us serve you Single Sided

promptly.
SID Density $ 1 4.95 $26.95
Subscription Department ' 1 0 PAK w / c u s l o m l i b,ary c a s e . a d d $3.00
PO Box 975 - U PS S H I P P I N G -
( N o . P.O. Boxes pllease)
Farmingdale, N.Y. 11737
$3 00 per pack
- Canadian s h i ppmg m U l l i p l y b y 2 -

No. 1 Magnetic Media in the USA !


o Extend my subscription one additional year for only $1 9.97. - Write f o r v o l u m e prices -
o Payment enclosed O BiII me
Camlda and Me:dc u S22.97. 1 year only US Fund... Furt..'i).,!11 $3H.97. I year '1I11y US
Fund.., Drawn on US Bank.

If you have no kibei handy. print OLD acid,,,,,, here.

Name
Address
-J
"l City State____.s.-
Zip.______
CQ
______

:s print new address here:



'"" Name
'""
� Address
City _______ State___-k
Zip______
Hot CuCo P.O. Box 9i5 Farmin�dall'. NY l l i37

" See List 01 Advertise,s on page 138 HOT CoCo Jun� 1983 115
change lines 2{XX}-2020 of the prompt
Lisl;", COfIlirrlN!d
messages to 3DOO, 303B, and 3050 in­
00640 LDD t l 9 GET O R I G I NRL BRS I C POINTER
stead of 7DOO, 703B, and 7050. 00650 STD , x SRVE IN WORK I NG STORRGE

This program uses three routines con­ 00660 MRGI


00670
LDD t l B NEXT RVR I L RBLE LOCRTION
SUBD 12 COMPUTE NEW POINTER
tained in the Basic ROMs. The first call 00680 STD t l 9 NEW BRS I C POINTER
JSR CLS CLERR SCREEN
00690
is to $A928, which clears the display 00700 LERX LORD. PCR GET MESSAGE
007 1 0 LBSR ILooP D I SPLAY IT
screen and sets the screen pointer to the 00720 RTS DONE
00730 RESTR LEAX FL I NE . PCR
upper left comer. The next call is to the 00740 LDD . X GET F I RST L I NE

Extended Basic renumbering function. 00750


00760
STD t 1 9
CLRA
RESTORE BRS I C POINTER

This routine is called at a point after the 00770 CLRB CLERR D


00780 STD . X RESET POINTER
increment (address $CF), first line 110790 STC -2, X RESET NEW L I NE P_ge No. 01
008110 RTS DONE
number (address $05), and new line 11 1 800 LOAD FCC I••• CLOAD NEXT PROGRRM • • • 1

number (address $0 1 ) have been set. 01810


11 1 900 NUMTA9
FDB t0D00 MSG TERMI NATOR
FDB 0 HOLDS CONSTRNTS FOR MERGE
The initialization executed at address 0 1 9 1 0 FLINE FDB 0 HOLDS BAS I C POINTER
112000 TEXT FCC IYOU MAY MERGE RNOTHER PROGRAM BY EXECUTING EXEC &H7D3B. WHE
$7DOO performs three functions. First, N YOU RECE I VE THE CLORD PROMPT YDUCAN LOAD THE NEXT I
020 1 0 F C C I P ROGRRM. THEN E X ECUTE &H7D00. I
it initializes the line-number increment 02020 FCC IWHEN YOU RRE THRDUGH MERG I NG YOU SHDULD EXEC &H7D5D

and starting line number and displays I
02030
operator instructions. Next, the loop at 02040 ZEND FDB t0000 MSG T E R M I NRTOR
03000 END I NI T
label LNUM computes the value of the
last line number to be used in this seg­
ment of the merge. Finally, control is
transferred to the Basic renumber
routine, where all lines are renumbered III CHKSUH=9
2 9 FOR A % & H 7 D 0 0 TO & H 7 E 5C
and all references to GOTO and 30 READA $ : N%VAL ( " & H " +A $ )
GOSUB are adjusted . 4 9 POKE A , N
5 0 CHKSUH%CHKSUH+N
Execution of the subroutine at label 69 NEXT A
MRG (address $703B) resets the Basic 7 0 IF CHKSUH < > 2 6 2 9 5 THEN CLS : PRINT @ 3 2 , " BAD DATA VALU E . CH ECK &
REENTER" : END
pointers at addresses $19-$ l C (25-28 80 CLS : PRINT@3 2 , " GOOD DATA LOAD "
decimal) to the next available location 99 P R I NT " DO YOU WANT AN OBJECT TAPE "
for loading the next program to be 1 0 0 Q $ % I N K E Y $ : I FQ $ = " N " TH EN END ELS E I F Q $ < > " Y " THEN 1 0 0
1 1 0 PRINT" PUT TAPE IN RECORD HODE P R E S S ENTER WHEN READY " : I NPU
merged . The first time this subroutine is T Q $ : CSAVEH " HERGE " , & H 7 D0 9 , & H 7 E 5C , & H 7 D9 0 : END
executed, the value of working storage 1 2 0 DATA 1 7 , 0 , 2 7 , 3 0 , 8D , 0 , 8 1 , CC
1 3 0 DATA 0 , 0A , DD , CF , E3 , 8 4 , DD , D5
at label FLINE is tested. If this value is 1 4 0 DATA 4 F , 5 F , DD , D 1 , 1 9 , 9 E , 1 9 , EC
zero, the Basic program start address is 1 5 0 DATA 8 4 , C 3 , 0 , 0A , 1 0 , AE , A4 , 1 0
saved in FLINE. Execution of the 1 6 0 DATA 8C , 0 , 0 , 2 E , F 4 , ED , 8 4 , 7 E
1 7 0 DATA 8A , 3 A , BD , A9 , 2 8 , 3 0 , 8D , 0
subroutine at the label RESTR (address 1 8 0 DATA 5 B , A6 , 8 0 , 2 7 , 0 5 , BD , A3 , 0A
$7050) retrieves the Basic program 1 9 0 DATA 2 0 , F7 , 3 9 , 3 0 , 8 D , 0 , 4B , EC
2 0 0 DATA 8 4 , 1 0 , 8 3 , 0 , 0 , 2 6 , 0 4 , DC
start address of the first program to be 2 1 0 DATA 1 9 , ED , 8 4 , DC , I B , 8 3 , 0 , 0 2
merged and uses it to restore the line 2 2 9 DATA DD , 1 9 , BD , A9 , 2 8 , 3 0 , 8D , 0
pointer to the beginning of the pro­ 2 3 0 DATA 1 3 , 1 7 , F F , D 5 , 3 9 , 3 0 , 8D , 9
2 4 0 DATA 2 9 , EC , 8 4 , DD , 1 9 , 4 F , 5 F , ED
gram. 2 5 0 DATA 8 4 , ED , l E , 3 9 , 2A , 2A , 2A , 2 9
2 6 0 DATA 4 3 , 4 C , 4 F , 4 1 , 4 4 , 2 0 , 4 E , 4 5
If You Have No Assembler . . . 2 7 0 DATA 5 8 , 5 4 , 2 0 , 5 0 , 5 2 , 4F , 4 7 , 5 2
2 8 0 DATA 4 1 , 4D , 2 0 , 2A , 2A , 2A , 0 D , 0
I wrote Program Listing 2 for users 290 DATA 0,0,0,0,59,4F,55,20
without an assembler. If you want to 300 DATA 40 , 4 1 , 5 9 , 2 0 , 40 , 4 5 , 5 2 , 4 7
319 DATA 4 5 , 2 0 , 4 1 , 4 E , 4F , 5 4 , 4 8 , 4 5
use this program with a 16K computer, 320 DATA 5 2 , 2 0 , 5 0 , 5 2 , 4F , 4 7 , 5 2 , 4 1
make the following changes: 339 DATA 40 , 2 0 , 2 0 , 2 0 , 4 2 , 5 9 , 2 0 , 4 5
340 DATA 5 8 , 4 5 , 43 , 5 5 , 5 4 , 4 9 , 4 E , 4 7
350 DATA 2 0 , 4 5 , 5 8 , 4 5 , 4 3 , 2 9 , 26 , 48
20 FOR A &H3DOO TO &H3E5C
= 360 DATA 37 , 4 4 , 3 3 , 4 2 , 2E , 2 0 , 5 7 . 4 8
70 IF CHKSUM < > 26283 THEN . . . . . . . . . . . . . . . . 370 DATA 4 5 , 4 E , 2 0 , 2 0 , 5 9 , 4F , 5 5 , 2 0
380 DATA 5 2 , 4 5 , 43 , 4 5 , 4 9 , 5 6 , 4 5 , 2 0
1 10 . .. . CSAVEM"MEROE".
. .
3 90 DATA 5 4 , 4 8 , 4 5 , 2 0 , 43 , 4C , 4F , 4 1
&H3DOO , &H3D3B. &H3DOO :END 400 DATA 4 4 , 2 0 , 5 0 , 5 2 , 4 F , 4D , 5 9 , 5 4
360 (Change value 37 to 33) 410 DATA 2 9 , 5 9 , 4F , 5 5 , 4 3 , 4 1 , 4 E , 2 0
460 (Change value 37 to 33) 429 DA�A 4C , 4 F . 4 1 , 4 4 , 2 0 , 5 4 , 4 8 , 4 5
439 DATA 29,4E,45,58,54,20,50,52
540 (Change value 37 to 33)
440 DATA 4 F . 4 7 , 5 2 , 4 1 , 4D , 2 E , 2 0 , 5 4
459 DATA 4 8 , 45 , 4E , 2 0 , 4 5 , 58 , 4 5 , 43
The routine in line 70 of Listing 2 is a 460 DATA 5 5 , 5 4 , 4 5 , 2 0 , 26 , 4 8 , 3 7 , 4 4
479 DATA 3 9 , 3 9 , 2E , 2 0 , 57 , 4 8 , 4 5 , 4 E
quick check to verify that you have 480 DATA 2 9 , 5 9 , 4 F . 5 5 , 2 0 , 41 , 5 2 , 4 5
entered the data statements correctly. 490 DATA 2 0 , 2 0 , 2 0 , 2 0 , 5 4 , 4 8 , 5 2 , 4F
50B DATA 5 5 , 47 , 4 8 , 2 0 , 40 , 4 5 , 5 2 , 47
Lines 90-1 10 save the loaded utility pro­ 51B DATA 4 9 , 4E , 4 7 , 2 0 , 5 9 , 4 F , 5 5 , 2 B
gram to tape so that you can run it with­ 52B DATA 5 3 , 4 8 , 4 F . 5 5 , 4C , 4 4 , 2 B , 2 B
out rerunning the Basic program . • 53B DATA 2B,2B,2B,2B,2B,2B,45,58
54B DATA 4 5 , 43 , 2 B , 26 , 4 8 , 3 7 , 4 4 , 3 5
55B DATA 4 4 , 2 E , 2 B , 0D , B

For more information write to Mr.


Bussell at 104 Barley Court, Lexington Program Listing 2. Routine to Assist Owners Without an Assembler

Park, MD 20653.
116 HOT CoCo June 11)81
f··· ..········..··················· ··
J
:

POW ER BYTE SO FTWAR E TM i

Presents

!:; APP LlICATI ON SO FTWARE :


:
: Business and Home :
: for the
:
: • T R S 80 Co l o r Comp uter :•

: · T D P - 1 00 Co m p uter :•

: 65 Applications Available including :

H

:•
� THE ACCOUNTANT · General Ledger. Income $29. 95 �...
... Slalemenl & Balance Sheel
• $ 2 1 .95 •

OW
ACCOUNTS R E C E I V A B L E/PA Y A B L E · Creale
• Joumal for Currenl Accounls & Record o f Paid ACCls. •
• •
. • B U S I N E S S I N V E NTO RY $ 1 9. 9 5 AT H O M E I N V ENTORY $ 1 2.95 •
• O R D E R T R ACKER $ 1 9.95 CHECKBOOK BOOKY S I 2.95 .
• M Y PROFIT MARGIN S 1 6.95 THE STOCK T I C K E R $ 1 6.95 .
• B I L LI N G SO L V E R S 1 9. 95 TAPE •

DO
• CASH FLOW M O D E L S 1 6.95 U T I L ITY B I L L S A V E R $1 2.95 •
• TH E C L I E NT T IC K L E R $ 1 9. 9 5 THE BAR CHART $8 . 9 5 .
• I N CO M E & EX PENSER $ 1 5.95 M O T H E R ' S RECIPES S I 2.95 .
• $ 1 6. 9 5 S 1 2.95 •
:
B U S I N ESS THE MAILMAN

:
YO U
APPOINTMENTS G R A D E M Y KIDS $ 1 5. 9 5
• •
AND MAN Y , M A N Y MO R E ! !

: ALL PROG R A M S FOR CASSETTE & GUARANTEED TO LOAD :


:

- FR E E CATALO G
W I T H I NT R O D U CTO R Y SPECIALS
:

S P E LL



. R E L I E F?
• POWERBYTE SOFTWARE
:


• 2 C H I P LEY R U N •

l--.J WEST B E R L I N, NJ OB091
." 486
• If proofreading your word processing text leaves you
: (609) 346·3063 :
. ......................... ........... .
bleary·eyed , t hen rest your eyes with

SPELL 'N FIX


y�C lYle
SPELL 'N FIX proofreads your te xt for spelling and
typographical mistakes in the twinkling of an eye . It
looks up each word in the dictionary and reports

�MADE EASY S
every mistake. It finds errors that even experienced
proofreaders miss. And when it finds them, it lets you
fix them - fast . The result? Perfect te xt, every time.
WITH THE ELECTRONIC BREADBOARD
Without eye strain.
• Determine causes of circuit failure, reducing time spent
troubleshooting.
SPELL 'N FIX is compatible with all word processor
• Test and analyze analog circuits. programs. Available on disk or cassette for $69.29,
• Evaluate voltages, currents, impedance and frequency response of
cheaper than a new pair of bifocals. Price includes
any circuit.
• Save circuit designs on cassette tape.
20,000 word d ictionary; optional 75,000 word
• Learn and verify electronic theory by entering sample circuits. dictionary (strictly for the professional writer) is $50
And much more. This CAD program is one of the best you can buy.
additiona1.
Ideal for any electronic doughboy. Order your Electronic Bread­
board today .. TRS-80 " Color Computer 16K Cassette Tape Player ALSO AVAILABLE
044 I RC $49.95 Also available for Apple"
HUMBUG the ultimate deb ugger/monitor $39.95
CALL toll free: 1-800-258-5473 STAR-DOS disk operating system . . . . . . . . . . . $49.90
CHECK 'N TAX home finance pac,kage . . . . . $50.00
REMOTERM for use with a remote terminal . . $19.95
retVSc1!M NEWTALK voice debugging program . . . . . . . .
SHRINK our version of Eliza . . . . . . . . . . . . . . . .
$ 19.95
$ 1 5.00
Instant Software
Rt. 101 & Elm Street Send for catalog. We accept checks, COD, Visa or
Peterborough NH 03458 MasterCard. NY State residents please add sales tax.

STAR-KITS
P.O. BOX 209 - H
MT. KISCO, N.Y. 1 0549
(914) 24 1 ·0287 .... 432

.... See List 01 Advertisers on page 138 HOT CoCo Jun� 1983 117
HARDWARE

BY LEIGH H. FRENCH

MICROLINE 82A MEETS


CoCO
I recently purchased a Microline 82A,
and when I asked about interface
Buying a Microline 82A to colors on the wires because they are
not always the same.
cables I was quoted a price of $39 for a for your CoCo? Here's If you look at the DIN plug on the
made-to-order cable. I went to Radio how to build a cheap other end of the cable, you will see
Shack and looked into the serial-to-RS- numbers from one to four near the pin
232C interface for the Color Computer interface cable for it . connections. Using the ohmmeter, de­
at $ 1 9.95, but the Radio Shack version termine which of the colored wires con­
of the RS-232C interface is different nects to which pin.
from Microline's. Consequently, I de­ First set the meter to one of its resis­
cided to build a cable mysetf. tance scales. Place one of the test probes
If you have the tools in Table 1 and available in the CoCo technical refer­ on pin 1 of the DIN plug. Touch the
about an hour or less, and if you have ence manual and the user's manual for other probe to each of the bared ends of
worked with cables before, you can the 82A printer. the colored wires until a low resistance
make the cable for less than $ 10. You'll Remove one end of the COCO printer reading is found. You will get a low re­
learn a bit about your computer, too. cable either by desoldering the socket sistance reading on the wire that is at­
Check the parts list (Table 2) for from the cable or by cutting the socket tached to pin 1 . Do this with each pin on
those things you will need to buy from off with wire cutters. Strip off about the DIN plug and use pieces of tape to
Radio Shack. There is an optional cover 1 Y2 inches of the gray cable insulation mark each colored wire with its corre­
for the submini plug, but it is not re­ to expose the four colored wires inside. sponding pin number. (See Fig. 1 .)
quired for the operation of the printer. Remove 14 inch of insulation from the Once you have identified the wires,
All the following information is end of each colored wire. I will not refer you can snip the wire to pin 1 down to
the insulation, since ,it will not be used.
Save the wire that you cut off. Then fol­
lowing Fig. 2, solder the wires to the
submini-25 plug. Pay particular atten­
tion to the pin numbers, since there is a
possibility of voltages that are not com­
patible with the CoCo if you solder a
wire to the wrong pin. Finally, solder a
jumper between pins 6 and 20 (use the

System Requirements

4K RAM
Microline 82A Printer ,.

soldering iron
needle-nose pliers
small screwdriver
wire strippers/cutters
solder
flux (rosin)
ohm/voltmeter (optional)

Fig. I. Use an ohmmeter to test the DINplug connections. Table 1. List of Needed Tools

liS HOT CoCo June 19S1


1

ble yourself i s $7.94, plus tax. I think


Color Computer 82A printer that's quite a saving to you, and you will
pin 1- no connection learn a good deal about your printer
pin 2- data in ------ pin 1 1 superv data out and your CoCo . •
pin 3- gnd pin 7 gnd
pin 4- data out pin 3 data received
-- pin 6 dsr Write to Leigh French c/o HOT
jumper between CoCo, 80 Pine St., Peterborough, NH
-- pin 20 dtr 03458.

Fig. 2. Soldering Instructions


-
W
HB
$6.95
,:
Household


Bud e,
I Wo sheet

I
Part # Description Price
COLOR COM PUTER 1 6 KECB
PN 26-3020 Color Computer serial printer cable $4.95
A program t o provide a monthly f i n a n c i al
PN 276- 1 547 D-Submini 25 (male) plug $2.99 planning tool that becomes a permanent
PN 276-1 549 Hood (optional) $2. 1 9 record at month's end. Contractual loans
automatically up·dated with month's reo
malning and new balances. User detined
Table 2. Parts List from Radio Shack
variable expenses and budget categories,
yet operates without tiles! Provisions tor
one t i me expenses o r Income, works w i t h
any color c o m p u t e r printer. M a n u a l details
operatfon, contains program l i st i n g and
piece you cut off of wire 1 of the CoCo input at 600 baud and automatic line torm to gather financial I n tormatlon.

printer cable). Now you are ready to feed. I switch-selected the TRS-80 lan-
• Money back guarantee •
connect your printer. guage set (you can select 10 different
• Write for brochure on other progra ms '
At this point you will want to consult language character sets). I then turned • Include �5¢ shipping & handling '

the printer manual to learn how to set on the printer and sent it a few lines . It
Up the switches in the printer. Since I worked well. CoCoDA TA Enterprises
1215 Emeralda Drive
have Extended Color Basic Version 1 . 1 , So the total cost to you if you are will-
O r l ando, Florida 32808
I configured the printer for 8-bit serial ing to spend some time to build the ca- ,,543

Take command with I(fiIFT high performance joysticks'

1 ·800·231 ·6667
n
Kraft joysticks are precision, human'engi neered inst ruments that put you in control.
Exclusive, user·friendly Kraft features are the result of intensive design research and
over twenty years production experience. Other joysticks seem like toys after you've
felt the Kraft difference I
-
.lot a '.. ' � . " (
", � ' .. (.. ",. .. '
....... '(;
-j •• • • •
.

PATEN OED GIMBAL


DUAL·AXIS TRIM ,! ,tA'
CONTROL - MECHANISM - thoroughly
t -y .
a,
lets you tine _,_
proven in computer. model
tune curso r positioning tor aircraft. scientitic afld industrial ..·

unparalleled accuracy. remote control applications.

F LAT FIRE BUTTON BorrOM VIEW


designed for fatigue-free
operation. MODE SELECTiION
recessed toggle switches on
the bottom of the case let you
instanlly select "spring·
centering" and "free·floating"
modes on either axis.
LINEAR
Eliminates the need to open
POTENTIOMETERS
case for changing stick mode.
translate the movement ot the
(For mode change. hold stick to
gimbal into electricat· impulses
corner.)
,for more precise cursor control
and faster motion.

� $59.95 .Afol
RUGGED CASE - durable,
comfortable to handle and
color coordinated to your I�'ULR[] �I]LUTm��, ��L.
computer.
Soft ware Ce nter
ON E·YEAR LIMITED WARRANTY - a Kraft exclusive. Our
9949 H A RW I N HE, H O U STO N , TX 77036
joysticks have been tested without failure to over two million cycles. (71 3) 789-5443 T E L EX 794-250-C ROWNTEX H O U
Ask fOr other superior Kraft Products. .... 3 1 6 V I SA • MASTER OHARGE • A M E R I CA N EXPR ESS

.... See List 01 Advertisers on page 138 HOT CoCo Jun� 1983 1 19
GAME

BY JOHN P . KOCH

COLOR BACKGAMMON
FOR Two
I enjoy playing backgammon, so I
wrote this program that lets me play
If you like a little jumps to 1400 to put a yellow rectangle
on the board. Lines 1 350- 1380 put blue
it with another person on my Color color in your backgammon or red circles on the point; line 1 400 puts
Computer. game, try playing this a yellow rectangle at one position higher
Line 10 establishes four arrays. The than the last blue or red circle to cover
BR numeric array stores the location of version with a friend. up any circles that might have appeared
pieces in play or on the bar. Column 1 is there but were moved.
for blue's pieces and column 2 for red's. Line 90 draws a circle on the board There is room on each point to dis­
Arrays CB, CR, and CY store graphics and paints it blue; line 100 uses the GET play only six pieces. Any more are in­
displays for use with the PUT com­ command to store a rectangle contain­ visible, but the BR array keeps track
mand, which allows you to place pieces ing the b�ue circle in the array CB and of them.
on the board or remove them. Lines 20 then paints the circle red. Line 1 10 The program uses the random-num­
and 30 set values in the BR array for the stores the red circle in the array CR and ber generator to determine whether blue
initial placement of pieces on the board. then paints the circle yellow. Line 85 or red moves first and to simulate the
The program uses PMODE 3 rather stores a yellow rectangle in the array CY roll of two dice. Something the Color
than PMODE 4, which might produce for use in blanking out pieces when they Computer instruction manual does not
rounder circles, to provide a set of four are moved. Lines 1 3 1 to 1 54 draw the make clear is that those numbers are not
colors. A yellow game board is drawn numbers on the points. really random.
against a green background; lines 70 and The subroutine beginning at line 1 300 I ran a few tests by making the com­
80 draw horizontal lines across the bot­ uses a PUT command to display the puter print a series of random numbers
tom and middle of the board; GOSUB pieces on the board . Line 1 330 checks and found it gave me the same series
1440 draws the vertical lines separating the BR array for point P and if neither every time, provided I turned the com­
the points. column has a value greater than zero, puter off between each test instead of
just pushing the reset button.
My solution was to require the player
to enter a number at the beginning of
each game. Line 50 uses this number in
a FOR . . . NEXT loop, exercising the
random-number generator so that the
game program will start picking the
"random" numbers from some place
other than the beginning of the series.
The higher the number, the longer it
takes to ,begin the game, so line 40 won't
accept a number greater than 499.
In the game of backgammon the
players attempt to move their pieces, in
accordance with their dice rolls, around
the board from their initial placement to
any of the last six points and then off
the board. The first player to remove all
Program Listing

CLEAR 2 IU' : PCLEAR4 : CLS : DIM BR ( 3 8 , 2 ) , CB ( 1 2 , 1 2 ) , CR ( 1 2 , 1 2 ) , CY ( 1 2 , 1


System Requirements
lIrJ
2)
28 BR ( 6 , 2 ) - 5 : BR ( 8 , 2 ) -3 : BR ( 13 , 2 ) - 5 : BR ( 2 4 , 2 ) -2
38 BR ( 1 ; 1 ) -2 : BR ( 1 2 , 1 ) - 5 I BR ( 17 , 1 ) -3 : BR ( 1 9 , 1 ) -5 16K RAM
48 INPUT- INPUT A NUMBER SMALLER THAN 58 8 - , X : I F X > 4 9 9THEN48
Extended Color Bale:
58 FOR XX-lTOX : N-RND ( 6 ) : NEXT XX
68 PMODE3 , 1 : SCREENl , 8 : COLOR3 , 2 1 PCLS Listing continued

120 HOT CoCo Jun( 1983


his pieces from the board wins the Listing conlinued

game, but a player cannot remove any 7 B LINE ( B , 1 8 B ) - ( 2 4 B , 1 8 B ) , PSET : GOSUB 1 4 4 B


8 B LINE ( B , 9 B ) - ( 24 B , 9 B ) , PS E T : PAINT ( 2 43 , 9 B ) , 1 , 3
pieces if any of his pieces is farther than 8 5 GET ( 3 , 1 ) - ( 1 5 , 13 ) , CY
the fifth point from his exit point. 9B CIRCLE ( 9 , 7 ) , 6 , 3 : PAINT ( 9 , 7 ) , 3 , 3
l- B B GET ( 3 , 1 ) - ( 1 5 , 1 3 ) ,CB : PAINT ( 9 , 7 ) , 4 , 2
The players move in opposite direc­ 1 1 B GET( 3 , 1 ) - ( 1 5 , 1 3 ) , CR
tions. If a player rolls doubles, he uses 1 3 1 O $ - " E1 / D6 / L1 / R2 " I DRAW"BM7 , 8 2 / XO $ / "
1 3 2 TWO $-"D1 / E1 / R2 / P 1 / D1 / G4 / R4 " : DRAW"BM27 , 81 / XTWO$ / "
each die twice. 1 3 3 THREE$""D1 / E1 / R2 / P 1 / D1 / G1 / L1 / R1 / P l I D2 / G l I L 2 / :H 1 " I DRAW"BM48 , 81
/ XTHREE $ / "
1 3 4 FOUR $-"D3 / R6 / L2 / U3 / D6 " : DRAW"BM65 , 8 2 / XPOUR $ / "
1 3 5 PIVE$= " L4 / D3 / R4 / P 1 / D2 / G1 / L3 / H 1 " : DRAW"BM9 8 , 8 1 / XPlVE $ / "
1 3 6 S I X $."D1-/D3 / E1 / R3 / P 1 / D2 / Gl I L3 / H 1 / U 5 / E1 / R3 / P 1 " I DRAW"BM 1 8 6 , 8 1 /
XSIX$ / "
HIf a point has only one 1 3 7 SEVEN$= " R4 / D6 " : DRAW"BM12 6 , 8 2 / XS EVEN $ / "
, 1 3 8 EIGHT$ " " R 1 / R3 / F1 / D1 / G1 / L3 / G1 / D 2 / P 1 / R3 / E1 / U2 / H 1 / L3 / H 1 " 1 DRAW"B
piece on it, called a �blot, M 1 4 7 , 8 1 / XEIGHT $ / "
1 3 9 NINE $ = " L3 / U 2 / R4 / D6 " : DRAW"BM1 6 9 , 8 4 / XNINE $ / "
1 4 8 ZERO$,,"U6 / R4 / D6 / L4 " : ORAW"BM1 8 5 , 83 / XO $ / B / R4 / XZ E RO $ / ·
the opposing player may 1 4 1 ORAW"BM28 5 , 8 3 / XO $ / B / U5 / B / R4 / XO $ / "
1 4 2 ORAW"BM22 5 , 83 / XO $ / B / R4 / B / U6 / XTWO$ / "
�hit ' it by moving one of 1 4 3 DRAW"BM22 5 , 93 / XO $ / B / R3 / B / U6 / XTHREE$ / "
1 4 4 ORAW"BM2B 5 , 93 / XO $ / B / R3 / B / U6 / XPOUR $ / "
his pieces there. " 1 4 5 ORAW"BM1 8 5 , 93 / XO $ / B / R9 / B / U6 / XP IVE $ / "
146 ORAW " BM1 6 5 , 93 / XO $ / B / R3 / B / U6 / XS I X $ / "
147 DRAW" BM1 4 5 , 9 3 / XO $ / BR3 / BU6 / XSEVEN $ / "
148 ORAW"BM1 2 5 , 93 / XO $ / BR4 / BU 6 / XEIGHT $ / "
149 ORAW " BM1 B 5 , 9 3 / XO $ / BR6 / BU 4 / XNINE $ / "
15B ORAW " BM85 , 93 / XTWO $ / BR4 / X Z BRO $ / "
Only one player's pieces may be 151 ORAW " BM6 5 , 9 3 / XTWO $ / BR4 / BU 5 / XO $ / "
placed on a given point. If a point has 152 ORAW "BM4 5 , 9 3 / XTWO $ / BR4 / BU6 / XTWO $ / "
153 ORAW "BM2 5 , 9 3 / XTWO $ / BR4 / BU 6 / XTHREE $ / "
more than one piece on it, it is said to be 154 DRAW " BM5 , 9 3 / XTWO $ / BR4 / BU6 / XPOUR $ / "
"covered, " and the opposing player 2BB ' S ET UP
21B FOR P-1 TO 2 4 I GOSUB1 3 B B I NEXTP I GOSUB14 4 B I T-RND ( 2 )
cannot move there. If a point has only
22B ' ROLL DICE
one piece on it, called a " blot, " the op­ 23B D4"B : D1-RNO ( 6 ) : 02-RND ( 6 ) : I P 01-02 THEN 04-D1
posing player may "hit" it by moving 24B· 03=D4 : TT- 3 -T
31B Y� 1 84 1 IF ol-B· THEN 3 6 B
one of his pieces there. The blot is then 32B FOR X-B To D 1 * 1 2-12 STEP 1 2
removed and placed "on the bar . " 33B LINE ( X , Y ) - ( X+6 ,Y+6 ) , PS ET , BP : IP T=2 THEN PAINT ( X+3 , Y+ 3 ) , 4 , 1
Listing continued
The owner of the removed piece may

•••••••••••••••••••••••••••••••••••
• T RS - 8 0 + MO D I , MO D I I I , COCO •
• •
• GOLD PLUG 8 0 •
• •
• E l i m i n a t e d i s k r e b o o t s a nd d a t a •
• l o ss d u e t o o x i d i z ed contacts .
• at the c a r d edge connec t o r s • •
• GOLD PLUG 8 0 s o l d e r s to the •
• bo a r d ed g e connect or . Use your •
• e x i s t i ng c a b l e s . ( i f g o l d p l a t ed ) .
• •
• GOLD PLUG 8 0 Mod I ( 6 ) $ 5 4 . 9 5 •
• K ey bo a r d / E I (mod I ) 18 .95 .
• I nd i v i d u a l c o n n e c t o r s 9 . 95 .
• COCO D i s k Mod u l e ( 2) 18 .95 .
• D i sk D r i ve s ( a l l R . S . ) 9 . 95 .
• Gold D i sk Cable 2 D r i ve 29 . 9 5 •
• Four D r i ve Cab l e 39 . 95 •
• GOLD PLUG 8 0 Mod I I I ( 6 ) 5 4 . 9 5 •
• I n t e r na l 2 D r i ve Cab l e 29 . 95 •
• Mod I I I E xpa n s i on po r t 10 .95 •
• U S A s h i pp i ng $ 1 . 4 5 C a n/Mex $ 4 . •
• For e i gn $7 . T EXAS 5 % TAX •
• •
• E . A . P . CO . •
• P . O . BOX 1 4 •
• K EL L E R , T EX AS 7 6 2 4 8 •
• ( 817) 498-4242 v216 MC/V I SA •
• • • • * . + t r a d ema r k T a ndy C o r p • • • • • •
.- See List 01 Advertisers on page 138 HOT CoCo Junt 1983 121
Lisling conlinued I make no other move until he has reen­
348 SOUND5 8 , 2 I NEXT x tered the piece at his end of the board. If
358 IF D2-8 THEN 4 8 8 ELSEFORX-1T05 8 : NEXT the points on which his dice roll would
permit him to enter are covered, he
368 FOR X-98 TO D2*12-12+98 STEP 1 2
378 LINE ( X , Y ) - ( X+6 , Y+ 6 ) , PSET , BF : I F T - 2 THEN PAINT ( X+3 ,Y+3 ) , 4 , 1
3 88 SOUND2 5 , 2 I NEXT x can't move and loses his tum. Occa­
488 ' DRAW -FROM?-
sionally, even if a player has no man on
418 PAINT ( 1 8 8 , 2 8 8 ) , 1 , 1
428 ORAW-BM1 6 4 , 1 8 4 , R4 , L4 , 03 , R4 , L4 , 0 4 - the bar, his dice roll and the placement
438 ORAW-BM+ 8 , - 8 , U7 , R4 , 03 , L4 , F6 - of his opponent's pieces are such that
448 ORAW-BM+4 , - 8 , U7 , R5 , 07 , L5 , R5 -
458 ORAW -BM+4 , - 8 , U7 , F4 , E4 , 07 -
there is no point to which he can move
468 ORAW-BM+ 5 , -6 , U2 , R5 , 04 , L3 , 0 4 - any of his pieces. In that case, he loses
588
518
' PICK POINT
I F BR ( 8 , T» 8 THEN pc8 : GOT0658
his turn.
528 P $-INKEY $ : I F P $ = - - THEN528 The computer displays the dice roll in
538 I F p $ · - C - THEN1278 ELSE I F VAL ( P $ ) >2 THEN598 the mover's color at the bottom of the
548 I F ASC ( P$ ) >57 OR ASC ( P $ ) <48 THEN 6 2 8
558 PP$=INKEY $ : I F PP$ - - - THEN558 screen with the word "FROM?". The
568 IF ASC ( P P $ ) =13 THEN 5 9 8
578 IF ASC ( P P $ ) >57 O R ASC ( PP $ ) < 4 8 THEN6 2 8
588 P $ -P$+PP$
598 P-VAL ( P $ ) : I F P>24 THEN 6 2 8
688 ' CHECK LEGALITY
618 IF BR ( P , T ) >8 THEN6 5 8
628 GOSUB1 58 8 : GOT03 1 8 HOnly if the player wants
638 ' PICK D I E
658 I F 0 1 - 8 THEN 0-02 : GOT0838 to move from point one or
668 IF 02-8 THEN D-01 : GOT0838
678 IF 01-02 THEN D-01 : GOT08 3 8 two is it necessary to press
671 I F P < > 8THEN 7 1 8
672 IFT-2THEN 6 9 8 the enter key. If no legal
674 I F BR ( P+Dl , TT ) < 2 AND BR ( P+02 , TT) < 2 THEN718
675 I F BR ( P+01 , TT ) >1 AND BR ( P+02 , TT ) < 2 THEN 0-0 2 : GOT08 3 8 moves are available, the
6 8 8 IF BR ( P+D2 , TT) >1 AND BR ( P+01 , TT ) < 2 THEN 0=01 : GOT08 3 8
6 8 5 IFP-8 AND BR ( Ol , TT) >1 AND BR ( 02 , TT) >1 THENGOSUB15 8 8 : GOT01 2 7 8
6 9 8 I F BR ( 2 5-01 , TT) >1 AND BR ( 25-02 , TT) <2 THEN D-0 2 : GOT08 3 8
player presses C to forfeit
6 9 5 I F BR ( 2 5-02 , TT) >1 AND BR ( 2 5-01 , TT) < 2 THEN 0-01 : GOT08 3 8
6 9 8 I F P-8 AND BR ( 2 5-01 , TT) >1 AND BR ( 2 5-02 , TT) >1 THENGOSUB1 5 8 8 : G
the move. "
OT01 2 7 8
7 8 8 ' DRAW - O I E ? -
7 1 8 LINE ( 16 4 , 1 82 ) - ( 2 2 2 , 1 9 2 ) , PRES E T , BF
7 2 8 ORAW-BM16 6 , 1 8 4 , 08 , R3 , E2 , U4 , H2 , L3 -
7 3 8 ORAW-BM17 7 , 1 8 4 , 07 , B , R6 , U7 , R4 , L4 , 03 , R3 , L3 , 04 , R4 - player then picks which point he will
7 4 8 ORAW-BM+5 , -6 ; U2 , R5 , D4 , L3 , 04 - move from. Line 520 uses INKEY$ to
7 4 5 ' PICK DIE
758 O$-INKEY $ : IF 0$- - - THEN 7 5 8 check the keyboard for the number
7 6 8 IF O $ · - C - THEN GOSUB1 5 8 8 : GOT01278 pressed. Only if the player wants to
778 O-VAL ( O $ )
move from point one or two is it neces­
788 IF 0 < >01 AND 0 < >02 THEN GOSUB1 5 8 8 : GOT03 1 8
888 ' CHECK LEGALITY sary to press the enter key. I f no legal
818 ' op IS DESTINATION POINT moves are available, the player presses
828 ' CHECK DEST INATION POINT NOT COVERED
838 IF T-1 THEN OP=P+O ELSE OP=P-O
C to forfeit the move (line 530). Line
848 IF T-2 THEN IF P=8 THEN DP-25-0 580 combines the two numbers, which
858 I F DP<l THEN 9 4 8
are in the form of strings, to form one
868 IF BR ( OP , TT) >1 THEN 9 8 8
878 IF OP >24 THEN 8 9 8 ELSE IF O P < l THEN 9 4 8 string of two digits. Line 590 converts
888 GOT0 1 8 2 8 the string to a value and assigns it to the
898 FOR Z-l TO 1 8
988 IF BR ( Z , 1 » 8 THEN 1 8 8 8
variable P, for the point moved from.
918 NEXT Z : IF OP-25 THEN 1 8 3 8 ELSE FOR Z = 1 9 TO P-1 If the first number entered is higher
928 IF BR ( Z , 1 » 8 THEN 1 8 8 8
than two, the program jumps from line
938 NEXT Z : GOT01 8 3 8
948 FOR z - 2 4 TO 7 STEP-I : IF BR ( z , 2 ) >8 THEN1 8 8 8 Lisling COtIlinutd
530 to line 590, as there won't be a
second digit. Entry from the bar is re­
--------�-.....,-·I quired and therefore made automatic in
line 5 10.
After the point has been selected, line
610 checks whether the player actually
has a man on it. I f not, the program
TI R E D OF K I D GAMES O N goes back to request entry of another
point.
YO U R COLOR COMPUTER? If a valid move-from point has been
selected, the computer then asks which

REAL
die to use. I f there is only one die to use,
TRY lines 650 to 670 pick it automatically.
Line 750 uses INKEY$ to assign the
SOFTW ARE player's choice of die to variable D.
During blue's tum, line 830 adds the
Alchemist's Laboratory: Squeeze: MegaMaze value of the die to the move-from point
SEND FOR FREE CATALOGUE to determine the destination point (DP);
P.O. Box 40 1 , Hopedale, MA 0 1 747 ... 345 during red's turn, it subtracts the value
to determine the DP. Line 860 checks
122 HOT CoCo Jun� 1983
the destination point to see if it is cov­
Lisling rontinutd
ered. If so, it sends the player back (via
980 and 1 (00) to select a different move­
9 5 8 NEXT Z : IF DPa8 THEN 1 8 3 8 ELSE FOR Z = 6 TO P+1 STEP-1
from point. 968 IF BR ( Z , 2 » 8 TH EN 1 8 8 8
Once the program determines that 9 7 8 NEXT Z : GOT01 8 2 8
9 8 8 I F B R ( 8 , T) < 1 THEN 1 8 8 8
the move is legal, line 1030 subtracts
9 9 8 I F D1sD2 OR D1s8 O R D2-8 THEN 1 27 8
one from the number of pieces the BR 1 8 8 8 GOSUB1 5 8 8 : GOT03 1 8
array records on the move-from point, 1 8 1 8 ' REMOVE BLOTS HIT
1 8 2 8 IF DP > 8 THEN IF BR ( DP , TT) =l THEN BR ( DP , TT ) - 8 I B R ( 8 , TT) -BR ( 8 ,
and line 1050 adds one to the number of
TT) +1 : FORX=lT02 : S0UND 78 , 2 : S0UND 1 8 8 , 3 : NEXT
pieces on the destination point . I f the 1 8 3 8 BR ( P , T ) =BR ( P , T ) -1 : S0UND1 8 8 , 3 : S0UND7 5 , 2
opponent has a blot on the destination 1 8 4 8 I F DP>24 OR DP <l THEN FOR X=lT03 : S0UND88 , 2 I S0UND1 8 8 , 4 : NEXTX
1 8 5 8 IF DP< 2 5 AND DP>8 THEN BR ( DP , T) =BR ( DP , T ) +1 : S0UND7 5 , 2 : S0UND1
point, line 1020 subtracts it from the 11,3
destination point and adds it to 1 8 6 8 ' CANCEL USED DIE
1 8 7 8 IF D4>8 THEN D4-8 : GOTOl 1 8 8
row 0, where the array stores the men 1 8 88 IF D3 > 8 THEN D 3 = 8 : GOTOl 1 8 8
"on the bar. " 1 8 9 8 IF D=D2 THEN D2-8 ELSE Dl-8
1 1 8 8 ' D ISPLAY NEW BOARD POSI TIONS
Lines 1 070- 1090 cancel the die used,
1 1 1 8 IF P>8 THENGOSUB 1 3 8 8
and lines 1 1 1 0 and 1 1 20 execute 1 1 2 8 P=DP : I F DP >8 AND DP < 2 5 THENGOSUB 1 3 8 8
GOSUB 1 300 first with the move-from 1 1 3 8 ' CHECK I F GAME WON
1 1 4 8 FOR P-8 TO 2 4 : I F BR ( P , T » 8 THEN 1 2 1 8 ELSE NEXT P
point as P, then with the destination 1 1 5 8 SCREEN8 , 8 : CLS ( T+ 2 ) I PRINT @ 5 8 8 , ·YOU WON 1 · , I FORX=lT03 : S0UND1 8 8
point as P, to update the display of the , 2 : N EXTX : FORX=lT02 : S0UNDl 1 5 , 4 : NEXTX: SOUND1 48 , 5
game board . Line 1 1 40 checks to see if 1 1 6 8 GOTOl1 6 8
1 2 8 8 ' I NDICATE MEN ON BAR
the game is over. 1 2 1 8 IF BR ( 8 , 1 » 8 THEN LINE ( 2 4 4 , 7 6 ) - ( 2 5 2 , 8 4 ) , PSET , BF : ELSE PAINT (
If every point in the moving player's 248, 88) , 1 , 1
1 2 2 8 I F BR( 8 , 2» 8 THEN LINE ( 24 4 , 1 8 8 ) - ( 2 5 2 , 1 8 8 ) , PRES ET , BF : PAINT ( 2
column in the BR array has been re­
46 , 184 ) , 4 , 1
duced to zero, he has won the game. 1 23 8 I F BR( 8 , 2) -8 THEN PAINT ( 2 46 , 1 8 4 ) , 1 , 1
Line 1 1 50 clears the screen to his color 1 2 4 8 ' CHECK I F ALL DICE USED
1 2 5 8 IF D l > 8 OR D 2 > 8 THENGOSUB 1 5 8 8 : GOT03 1 8
and prints the message "YOU WON ! " . 1 2 6 8 ' OTHER PLAYER ' S TURN STARTS
I f h e still has pieces on the board, line 1 2 7 8 IF T=l THEN T=2 ELSE T=1
1 2 8 8 GOSUB 1 4 4 8 : GOSUB15 8 8 : GOT0238
1 250 checks to see if he has any dice re­ 1298 END
maining to use. If so, it sends him back 1 3 8 8 ' DRAW COUNTERS ON POINTS
1 3 1 8 IF P < 1 3 THEN Y=8 : X = ( P* 2 8 ) -16
to specify the next move-from point. I f
1 3 2 8 IF P>12 THEN X= « 25-P) * 28 ) - 1 6 : Y= 1 6 7
the player has used all his dice, line 1 270 1 3 3 8 XX=BR ( P , l ) : I F BR ( P , 1 ) =8 THEN XX=BR ( P , 2 ) : I F X X - 8 THEN 1 4 8 8
switches the values of T and IT, and 1 3 4 8 I F XX>6 THEN XX=6
1 3 5 8 FOR Z=l TO XX
1 280 goes back to line 230 for the other 1 3 6 8 I F BR ( P , 1 » 8 THEN PUT ( X , Y ) - ( X+1 2 , Y+ 1 2 ) ,CB ELSE PUT ( X , y ) - ( X+
player's turn. 1 2 , Y+l 2 ) , CR
1 3 7 8 IF P < 1 3 THEN Y-Y+13 ELSE Y.Y-13
The SOUND command is used at var­
1 3 88 NEXT Z
ious points in the game to add interest. 1 3 9 8 IF XX-6 THEN RETURN
When the dice are displayed, a tone 1 4 8 8 ' COVER MOVED COUNTER
1 4 1 8 PUT ( X , Y ) -( X+1 2 , Y+1 2 ) , CY
sounds to help the player count rus roll . 1 4 2 8 RETURN
Different notes signify entering a valid 1 4 3 8 ' DRAW VERTICAL LINES
1 4 4 8 FOR x=28 TO 248 STEP 28
move, rutting a blot, removing a piece
1 4 5 8 LINE ( X , 8 ) - ( X , 1 88 ) , PSET
from the board, or winning the game . • 1468 NEXT X : RETURN
1 5 8 8 ' BLOCK OUT DICE
1518 LINE ( 8 , 1 8 2 ) - ( 1 6 8 , 21 1 ) , PRESET , BF
1 5 2 8 IF BR ( 8 , T» 8 AND Dl=8 THEN P $ = · C ·
1 5 3 8 IF BR( 8 , T) >8 AND D 2 = 8 THEN P $ = · C ·
Address correspondence to John 1 5 4 8 IF BR ( 8 , T) >8 AND DI-D2 THEN P $ . · C ·
1 5 58 FOR X=l TO 4 8 8 : N EXT X I PAINT ( 1 8 8 , 1 9 1 ) , 1 , 1
Koch at 11 J W. Washington St., Chi­ 1 5 6 8 RETURN
cago, IL 60602.

8 Setting The Stand�;do;"""" o


8COLO RPE.D
Rainb w. E. R[]B[]T T.9�K t
nCassette-$29.95
1111 , lrolll ul Hie Jjlck the

o Dpe .8:' INTRODUCING


.it ,, \ /
Cassette-$24.95
_ TO ORDER:
Add $1 .50 lor

P.O. Box 1 035, East


V I SA, Me. Money Order.
sh ipping. $3.00 outside
2 weeks for c hecks.
U.S . 4°" tax In Michi gan.

Lan s i n g . MI 48823 • (5 1 7) 351 -8537


X -/lnt racolor COMMUNICATIONS ., 1 "0

.- See List 01 Advertisers on page 138 HOT COCO .June 11)83 123
GAM ES
For The TR S-80 Color
and TDP System 1 00

Fast Machine Code • H i - res Color G raph ics . Exciting Arcade Action and Sound

BEVOND THE CIME EON MOON T..

by Kevin Herrbol dt & T , m Ne lson


3-0 G R A P H I C A D V E N T U R E
A d e a d s t a r . . . A d e r l i c t vesse ll . . o r i s i t ? T r a p ped
w i t h i n you m u st ve n t u re the C O r r i d o rs ; d e f e n d you rse l f
a g a i nst t h e m e r c i less g a u n t l e t of a g e n t s o f t h e m a c h i n e
mind. A rea l - t i m e , h i g h - re s , 3-D sc i e n c e fiction
adven t u re g a m e of m i n d - b l o w i n g m a g n i t u d e .
1 6 K Tape $24.95 32K Disk $29. 95

3-0 G R A P H I C A D V E N T U R E

M a k e l o v e n o t wa r ? Not w i t h t hese s u l t ry F E M B O T S ' W h a t a


t a le y o u ' l l t e l l I F you l ive to t e l l i t ' Cold steel never f e l t so H O T '
T h e c o l o r a n d e x c i te m e n t of A R C A D E ACT I'O N c o m b i ned
with t h e soph i s t i ca t i o n , i n te l l ec t u a l c h a l 'l e n g e a n d s k i l l of a n
ADVENTURE G A M E d oe s n ' t f u l l y d e sc r i be t h i s cosm i c
shoot'em u p .
1 6K Tape $29.95 32K Disk $34.95

. . I . . . . .

" "

lUIS.
"

�" . r:l- .:]I - ·1 ·


" " " " "

r---
" - .1 .
_" _ . . I
....... .:II T..
by Kellin Herrboldt & Tim Nelson
by Tom Czarnec k i
3-0 GRAPH I C ADVENTURE
The O N L Y Ms. g a m e a r o u n d . A Clash steel w i t h t h y foe i n t h e a r e n a of g o r e . Proved
m us t for y o u r PAC-like g a me w o rt h y , g o in g u e s t of the e l u s ive Eye of D a z m o r . If ye
c o l lection. f i ndest the o r b , hast ye t h e m i g h t to wa rd off skem a n d
1 6K Tape $1 9.95 t h e fort i t u d e to restore t h e Eye? T h e u l t i m ate h i g h - re s ,
1 6 K Disk $24.95 3 - D q u est f o r e v e n t h e m ost e x p e r i e n c e d a d v e n t u r e r '

TAS·eo is a trademark 01 Tandy Corp.


1 6 K Tape $24.95 32 K D isk $29.95
6�L�r��� 1 - 8 01 0 - 3 2 8 -2 7 3 7
Free
Tol l

Fast Machine Code . H i-res Color G raph ics • Exciting Arcade Acti o n and Sound

� r.iTER[ EPTO R'·


by Sco t t Snyder

. Goes beyond " D E F E N D E R "


a n d " S T A R G A T E " t o offer the
most rea l i s t i c A R C A D E
s i m u la t i o n p o ssi ble. Wa r p
speed a c t i o n , m u l t i -c o l o red
terra i n a n d l o n g - ra n g e viewer
make t h i s g a m e tops.
1 6K Tape $1 9.95
32K Disk $24.95

by Dan N e l s on
W h y fly to V E G A S when you can have a
c a s i n o at h o m e l T h e V E GAS GA M E PA K is
�------t�I--'-- f i v e action packed g a mes with g reat
& sound
g ra p h i c s SLOT M A C H I N E -
BLACKJACK - U P A N D DOWN T H E R I V E R
- C R APS & K E N O .
1 6K Tape $1 9.95 1 6K Disk $24.95
"'II,�
TM
N.BB " � R

• • - -f:>
.�O o o

by Tom Czarnec k i

Fast paced maze · c h ase g a m e w i l l 1 6K Tape $1 9.95 by Tom Cza rnecki


e n terta i n the e n t i re f a m i l y . 1 6K Disk $24.95 Shades of smartbombs and h u rt l i n g comets! Defe n d i n g
y o u r p l a n e t f ro m i nv a s i o n w a s neve r so c h a l l e n g i n g .
D i s r u ptor f i re is y o u r m a i n defe nse aga i n s t t h e f i e rce a l ien
a t tac k s.

eolorOuesf
1 6K Tape $1 9.95 32K Disk $24.95

ORDE R I N G •
A D i v i s i o n of Softlaw Corp. 6 1 2/88 1 -2777 CUltomer lervlce and product IUpport call (612) 881-2777
9072 Lyndale Ave . So . , M i n neapo l i s, M N 55420 Make checks or money orders payable to Nelson
Software Systems. Personal checks a l l o w 3 weeks.
AUTHORS' SUBMISSIONS ARE ENCOURAGED MA I L O R D ERS: $2.00 U.S. Shipping ($4.00 CANADA
Available at Dealerl everywhere. $10 O V E R S EAS) Add $2.00 for C . O . D .
0/ 5 1 2
If you Dealer II out of Itock ORDER DIR ECTI ORDERS SHIPPED SAME DAYI
r----Graphically Speaking-------,

n this column, I will be concen­ familiar with programming the Color


Itrating on Color Computer print­
PLOT Computer.
er-graphics topics with business or
mathematical/scientific applications.
Some of these techniques can also be
FUNCTIONS ON PLOT (X,Y,M)
Most plotters use commands that
used to produce computer art. I will
investigate graphics in two and three
THE SCREEN move the pen from its current position
to a destination point (X,Y) that then
dimensions, including the removal of AND PRINTER becomes the new current position. The
hidden lines in three-dimensional point (X,Y) refers to a point on the
representations . usual rectangular (sometimes called
The theory will be accompanied by Cartesian) coordinate system. A move
by Delmar Searls
programs written in Extended Basic can be performed with the pen up (a
for at least 16K RAM. The programs blank move) or down. The latter, of
make use of various subroutines to course, results in a line segment being
perform the necessary -tasks. The sub­ drawn on the paper.
routines related directly to drawing an The destination point can be desig­
image on the TV screen are intention­ nated using absolute coordinates (ref­
ally written to simulate the operation erenced to the origin of the coordinate
of a graphics plotter, such as Radio system) or relative c oordinates
Shack's Color Graphic Printer. (referenced to the current position).
The application programs that I de­ The user also can reset the origin
velop can be used with a plotter by of the coordinate system if desired .
changing those lines that call one of Figures 1 -3 illustrate some of these
the graphics subroutines . This change options .
will involve replacing the GOSUB The first task is to write a subrou­
command with the appropriate com­ This column assumes that you have tine that will allow you to simulate a
mand for a plotter. Because you can a working knowledge of high-school plotter on the TV screen. You must
adapt the program for use with a plot­ geometry and algebra. Knowledge of provide for each of the following
ter, some of the graphics programs trigonometry is helpful, but not neces­ capabilities :
will not be very efficient when used sary. I also assume that you are • Blank lines (pen up)
with the TV screen. For example, the • Drawn lines (pen down)
program to draw circles is much slow­ • Use of absolute coordinates
er than the Circle command in Ex­ • Use of relative coordinates
tended Basic. • Change origin
4

1 , (2.1)
4 I
I

(4.3)
L: I
,
I
,

,
2 I
I
,

· 7t-- ---- ----


I

-4 2 3 4 -4 • 4 X
-,
-2
-2
(-2.-2)
-3 -.
Fig. 2. Line Drawn from Current Position
I
-4 (-2, -2) to the Destination Point with Rela­ -4
tive Coordinates (4,3). Notice that the A b­
solute destination point (2, 1) is four units
Fig. 1. Line Drawn Between A bsolute Co­ over and three units up from the starting Fig. 3. Origin of the Coordinate System.
ordinates (-2, -2) and (4,3) point. Moved to the Point (2, 1)

126 HOT COCO Jun( 1983


Graphically Speaklng_----I x, Y is the destination point.
r-
M = I indicates a drawn line using absolute coordinates.
Program Listing 1 is a well­
M = - I indicates a blank move using absolute coordinates.
documented subroutine that meets M = 2 indicates a drawn line using relative coordinates.
these requirements. Do not enter this M = -2 indicates a blank move using relative coordinates.
listing into your computer. Its only M = -3 indicates a blank move using absolute coordinates, and the destination point will
purpose is to help you follow the logic. become the new origin.
See Program Listing 2 (lines 10-16)
for a much more compact version to First, convert X and Y to integers (rounded off). SF is a scale factor which is discussed in the
type into your computer. text.

Start lOA XX = INT(SF * X + .5) : YY = INT(Y + .5)

There are a few minor tasks that


If X and Y are relative coordinates (i.e. M = 2 or M = -2), use the current position as the
prepare for plotting on the screen. reference point. SX and SY are the coordinates of the current position (screen coordinates).
You must set the high-resolution
graphics mode and clear the graphics lOB IF ABS(M) = 2 THEN SX = SX + XX : SY = SY-YY : GOTO 12
memory. While not necessary, it is de­
sirable to set the origin of the coordi­ Otherwise, X and Y are absolute coordinates and the origin (XO, YO) is used as the reference
nate system at the center of the screen. point.
By the way, the plot subroutine giv­
en above automatically adjusts for the I I SX ", XO + XX : SY = YO-YY

way the Color Computer figures the


Make sure the screen coordinates are within bounds.
vertical coordinate. Usually this is the
Y -coordinate that increases upward . 12 IF SX<O THEN SX = O ELSE IF SX>255 THEN SX = 255
With the Color Computer, the Y -co­ 13 IF SY<O THEN SY = 0 ELSE IF SY> 1 9 1 THEN SY = 191
ordinate increases downward. The
Start subroutine (lines I and 2 of List­ Form the string for the ORAW command.
ing 2) places the origin at the center of
the screen, and the coordinate system 14A PS = STRS(SX) + "," + STRS(SY)
is oriented in the usual sense: positive
X to the right and positive Y up. Perform the correct draw operation (blank move or draw line).

The Start subroutine also provides


14B IF M>O THEN ORA W "M" + PS ELSE ORA W "BM" + PS
for the input of a scale factor to be ap­
plied to the X-variable. You've prob­
I f necessary, reset the origin.
ably noticed that circles drawn on the
TV screen look like ellipses . If such a 1 5 IF M = -3 THEN XO = SX : YO = SY
I screen image is printed on the Radio 16 RETURN
Shack LP VII printer, it is more nearly
Program Listing 1. The PLOT (X, Y, M) Subroutine Simulates a Ploller Using the TV
circular but still slightly wider than it
Screen.
is high.
By selecting the appropriate scale
factor , you can draw true circles on
the screen, as well as true squares, true cated . You must measure, as accurate­ following formula :
regular polygons , and so on. If a ly as possible, the height and width of
screen image is to be printed on a the usable portion of the TV display
SF = (256/W)/(192/H) = (256 * H)/(I 92 * W)
graphics printer, a different scale fac­ (the green rectangle in text mode). The
tor can be chosen so that the resulting horizontal resolution is 256/width and
figures will have true shapes. the vertical resolution is 1 92/height. For my system this is about 1 . 2; it may
The oblong circles are caused by the The scale factor is found with the be somewhat different for yours .
difference in the horizontal and ver­
tical resolutions (dots per inch) on the
TV screen and the printer. Thus, an o PI = 3 . 14 1 592:GOSU B I :GOTOIOOO
increase in length �rom one dot to the I INPUT "SCALE FACTOR" ;SF:PMOOE4 , I :PCLS
next is different horizontally than it is 2 XO = 128:YO = 96:X = 0:Y = O:M = - I :GOSUBIO:RETURN
vertically . A plotter has equal resolu­ 10 XX = I NT(SF* X + .5):YY = INT(Y + .5):IFABS(M) = 2THENSX = SX + XX:SY =
SY-YY :GOTO I2
tions in both directions.
I I SX = XO + XX:SY = YO-YY
The correct scale factor is deter­
12 IFSX<OTHENSX = OELSEI FSX>25 5THENSX = 255
mined by djviding the horizontal
\ 3 I FSY<OTHENSY = OELSEIFSY> 19 ITHENSY = 191
resolution by the vertical. On the LP 1 4 PS = STRS(SX) +" ," + ST RS(S Y):I FM>OTHENO RAW " M " + PSELSEORAW
VII printer, the horizontal resolution "BM" + PS
is . 60 dots per inch and the vertical 15 IFM = -3THENXO = SX:YO = SY
resolution is 63 dots per inch. The ap­ 16 RETURN
propriate scale factor is 60/63 or ap­
proximately 0.95 . Program Listing 2. Listing 1 and a Start Subroutine
The TV screen is a bit more compli-

HOT CoCo June 1983 127


I
Graphically Speaking
I
_________ �
You can enter the start subroutine the square. The program will then
at either line 1 or 2. Entry at line 2 re­ draw the square. Write one version us­
: sets the origin to the middle of the ing absolute coordinates and one ver­
screen and performs a blank move to sion using relative coordinates.
that point. Entry at line 1 asks for the
scale factor, enters PMODE4, 1 , and Exercise 2
clears the graphics memory as well as Improve your program by allowing
setting the origin. the user to draw any number of
Last, line 0 assigns the value of pi squares. That is, after each square is
(ratio of th� circumference of a circle
to its diameter), runs the Start subrou­
drawn, the user can view the result and
add a square if desired. Do not clear n
tine, and branches to line 1000 , the the graphics memory between drawing
first line of the main program. Fig. 4. Bar Chart
squares. You can use the following
line to allow the user to view the screen
Example 1 and resume program operation when
One approach to drawing a square he is ready:
is to first identify the four corners.
Next, perform a blank move to the last Ln AS = INKEY$:IF A$ = " "THEN Ln
corner and draw lines to all four cor­ Sin ' · Y/R
COl ' - X/R
(Ln is the line number)
ners in succession. Program Listing 3 Ton ' - Y/ X

uses this approach. While perfectly While not very sophisticated, these
adequate, this program is very limited : examples and exercises will help you
In order to draw a different square, become more familiar with the con­
you would need to supply the coordi­ cepts of absolute and relative coor­
nates of the new corners. This means dinates. They will also give you prac­
changing up to eight different values, tice III using the PLOT(X ,Y,M)
two for each corner. subroutine.
A second approach is to draw the
square using relative coordinates , as in Example 2 Fig. 5. Three Basic Trigonometric Functions
Program Listing 4. This method al­ It might be useful to develop a
lows you to place squares all over the subroutine that draws rectangular
screen by performing a blank move to boxes. There are several different sets
the desired center and drawing the new of parameters that can be used to
square. locate a box and determine its size. If
the width and height of a box are 1-40.40) 140.40)
Exercise 1 known, it can be located by des­
Write a program that will allow you ignating the point at the center of
to input the length of one side of the the box or by designating the lower left
square, and the point at the center of corner (any specific corner would do).

1 - 40. -40) 140.-40)

1000 DATA 40,40 , 40,-40 , -40,-40 -40,40


,

1001 :
1002 : REM READ COORDINATES OF CORNERS
Fig. 6A. Square Drawn Using Rectangular
1003 :
1010 FOR I = I TO 4 : READ X(l) YO) : NEXT I
,
I Coordinates (X, Y)

lOl l :
I
1012 : REM GOTO GRAPHICS SCREEN
1013 :
1020 SCREENI , I
1021 :
1022 : REM EXECUTE BLANK MOVE TO FOURTH CORNER
1023 :
1030 X = X(4) : Y = Y(4) : M = -I : GOSUB 10
103 1 :
1032 : REM DRAW TO ALL FOUR CORNERS IN SUCCESSION
1033 :
1040 FOR 1 = I TO 4
157. 2 25·)
1050 X = X(I) : Y Y(l) : M I : GOSUB 10
= =

1060 NEXT I
1061 :
1070 GOTO 1070
Fig. 6B. Square Drawn Using Polar Coor­
Program Listing 3. Drawing a Square Using A bsolute Coordinates dinates (R, e)

128 HOT CoCo Jun( Iq83


l-SOO-334-SOl!
dra
DB-LB. DlQUIBIJlS DlVr.tJiD

prn
we ·


a divisionofl'U'l'UlU!l HOU8l!I
..... 245 p.o.box 3470, chapel bill , north carolina 27514, 919-967-0861

'" See List of Advertisers on page 138 HOT CoCo June ,1983 129
Graphically Speaklng ___�_____ --I 2n Radians is Equivalent to 360 Degrees

Alternately, one can determine of each bar (box) is the same, and that
location and size by specifying the the lower left corner always has a
Angle in Radians = Angle in Degrees • n
coordinates of either pair of opposite Y<oordinate of zero (assuming that I SO
corners (corners that lie at opposite you move the origin to the lower left
ends of a diagonal). Regardless of the of the chart).
approach used , it requires four values Angle in Degrees = Angle in Radians • 1 80
to determine location and size. A Trigonometry n

Boxes subroutine is given in Program Elements of trigonometry are used Table 2. The Relationships Between Degree
Listing 5 . Notice that the subroutine so frequently in computer graphics Measure and Radian Measure
can be entered at three different places that you need to have some under­
(line 30, 3 1 , or 32), corresponding to standing of the basic concepts. The
the three methods of determining definitions of the trigonometric func­ the three basic trigonometric func­
location and size. tions are based on the coordinates of a tions. Notice that the location of a giv­
point lying on a circle of radius R en point can be determined from X
Exercise 3 centered at the origin. For this reason, and Y (its rectangUlar coordinates)
Write a program that will draw a they are sometimes referred to as cir­ and also by R and e (its polar coor­
bar chart similar to Fig. 4. Make up cular functions. dinates). Table 1 provides the relation­
your own data. Notice that the width Figure 5 illustrates the definitions of ship between polar coordinates and
rectangular coordinates.
The relationship between rectangu­
Converting Polar Coordinates to Rectangular Coordinates:
lar and polar coordinates is signifi­
X = R·COSe , Y = R·SINe cant. Consider the square in Example
Converting Rectangular Coordinates to Polar Coordinates: 1 . As you proceed from corner to cor­
R = SQR(X·X + Y·Y) , e = ATN(Y/X) ner, each coordinate changes at one
Note: ATN is the arctangent function. The arctangent of Y IX' is the angle (e) time or another (see Fig. 6A). Further­
whose tangent is Y IX (i.e., TANe = Y IX). more , sometimes the change is positive
(an increase) and sometimes the
Table 1. Relationship Between Polar and Rectangular Coordinates change is negative (a decrease).
Now consider Fig. 6B, where the
corners are expressed in terms of polar
coordinates. Notice that the value of R
is constant and that the value of e
varies at a uniform rate. Thinking in
terms of polar coordinates can greatly
simplify some of the difficulties in

) writing graphics programs . (Of


course, for the plotter to recognize the

l data , the polar coordinates must be


transformed into the appropriate rec­
tangular coordinates, as in Table I .
But the computer can handle tha t.)
To better appreciate this point, try
to write a program that will draw a
regular hexagon (a six-sided figure

The call for authors is out! with all sides and angles equal). Do it
without using any trigonometry (no
polar coordinates). The di fficulty is in
Wayne Green Books an n o u nces a J u ly 1 , 1 983 dead­ finding the vertices or corners of the
l i n e for s u b m i tt i n g man uscri pt propos als fo r t h e u pcom­ hexagon.
One might successfully resort to •
i n g p u b l i c ati'on l i st . Ideas for book- l e n g t h m a n u s c r i pts trial and error, or use the familiar
about any m i croco m p uter system or area of electro n i c s compass-and-straight-edge approach
w i l l b e considered. I n ad d i t i o n to payment and roya lt ies, on a piece of graph paper. Someone
quite familiar with geometry might re­
we offer our d i st r i bution c h a n n e l s and t h e m a rket i n g
call the properties of a 30-60-90 tri­
s u p port yo u r book deserves. angle and apply these properties to the
Send proposals or req uests fo r a copy of our Wr iter's problem. It could be done, with some
G u i d e to: difficulty, without trigonometry. Now
write a program that will draw a
Ed itor, Wayne Green Books
seven-sided regular polygon. Without
Pet erboro u g h , N H 03458. trigonometry , your options are re­
Or cal l to ll·free 1 -800-343-0728. duced to trial and error.
Consider the hexagon problem us-

1 30 HOT CoCo Jun� 1983


ing polar coordinates . For any regular NS is the number of sides. Thus, for Example 3
polygon, the value of R is constant. a regular hexagon the angle 9 changes You can use polar coordinates to
The value of 9 changes uniformly by by 60 degrees from one vertex to write a program that will draw a regu­
an amount equal to 360INS, where the next. lar hexagon . Since 9 is not part of the
alphabet, I will use A to refer to the
1000 L '" 80 : REM LENGTH OF ONE SIDE OF SQUARE angle. With R and the initial angle A
1 00 1 : fixed, Program Listing 6 performs a
1002 : REM GO TO GRAPHICS SCREEN blank move to the first vertex. The
1003 : angle is incremented and a line is
1010 SCREEN 1 , 1 drawn from the first vertex to the sec­
lOl l : ond. The angle is incremented again,
1012 : REM BLANK MOVE TO FIRST CORNER (UPPER-RIGHT) and a line is drawn from the second
101 3 :
vertex to the third.
1020 X = Ll2 : Y = Ll2 : M = -2 : GOSUB 10
This process is repeated six times
1021 :
until a line is drawn from the sixth ver­
1 022 : REM DRA W TO FOUR CORNERS IN SUCCESSION (USING RELATIVE
COORDINATES)
tex back to the first, thereby complet­
1023 : ing the hexagon. Notice (line 1040)
1030 X = -L : Y = O : M = 2 : GOSUB 10 that in Basic all angles are expected to
1040 X = O : Y = -L : GOSUB IO be measured in radians, not degrees .
1050 X=L : Y=O : GOSUB 10 Tab!\e 2 outlines the two systems of
1060 X=O : Y=L : GOSUB 10 measure and lists the conversion
1070 GOTO 1070 formulas.
Enter Program Listing 6 and run it.
Program Listing 4. Drawing a Square Using Relative Coordinates
Don 't forget that the subroutines must
also be in memory. Change the initial
value of A to 30 degrees and run it
again. Notice that two opposite sides
Entry at line 30 req uires the coordinates of the center of the box are now vertical, whereas before two
(X,Y), the width of the box (W), and the height (H). The lower left opposite sides were horizontal . Try
corner (X I , Y I ) is calculated. varying R and the initial value of A.
Try varying NS (the number of sides).
30 XI = X -W/2 : Y I = Y-H/2
Exercise 4
Entry at line 3 1 requires the coordinates of the lower left corner (X I , Modify Program Listing 6 to allow
Y I ) , the width (W), and the height (H). The upper right corner (X2,
you to input the value of R, the initial
Y2) is calculated.
angle A, and the number of sides NS.
3 1 X2 = X I + W : Y2 = Y I + H
The program will then draw the poly­
gon, and allow you to view the result.
Entry at line 32 requires either pair of opposite corners. A blank move
is performed to the first corner (X I , Y I).
Exercise 5
Further modify the program to
32 X = X I : Y = Y I : M = - I : GOSUB 1 0 allow you to input the rectangular co­
ordinates of the point at the center of
The directed distances (positive i f u p o r t o the right, negative i f down the polygon.
or to the left) to the oppusite corner are calculated.
Exercise 6
33 DX = X2-XI ; DY = Y2- Y I
A circle can be approximated by a
These directed distan.:es are used as relative coordinates to draw lines many-sided polygon. The larger the
to the opposite corner. The first line is horizontal and the second is circle, the larger the number of sides
vertical. The value of M is set in line 34 and stays the same for the next required. On the TV screen, a good
four lines. circle can be generated by drawing a
50-sided polygon. On a plotter, with
34 X � OX ' Y = 0 : M = 2 : GOSUB 10 its larger surface area , it might be bet­
35 X = 0 : Y = DY ; GOSUB 10 ter to use 100 sides. Write a subroutine
that will draw a circle of given radius
Finally, lines are drawn in the opposite directions to complete the
R centered at a given point (X, Y).
bolt. Again, the filst line is horizontal and the second is vertical.

Example 4
31> X - - DX : Y = 0 : GOSUB 10
3 1 X = O : Y ." D\ ; G0SUB I0 For the last example, consider a
31\ REH JRN computer version of a popular string­
art project: J9in each vertex of an
Program Listing 5. Boxes Subroutine n-sided polygon with every other ver­
tex . Since you will be referring to each

HOT CoCo Jun� 1983 BI


Graphically Speaklng _____________�_-_
___,
vertex several times, it is best to store
1000 R = 80 : REM SET R the values of the coordinates in an
1010 A=O : REM INITIAL ANGLE
array.
1 020 A = A.PI/180 : REM CONVERT TO RADIANS
The calculations and array storage
1030 NS = 6 : REM SET NUMBER OF SIDES
are performed by a loop at the begin­
1040 DA = 2.PI/NS : REM ANGLE INCREMENT
1050 SCREEN I , I ning of the program (see Program
1051 : Listing 7). A blank move is made to
1052 : REM BLANK MOVE TO FI RST VERTEX (OR CORNER) the first vertex, and lines are drawn
1053 : from the first to each of the remaining
1060 X = R.COS(A) : Y = R.SIN(A) : M = -I : GOSUB 10 vertices. Next a blank move is made to
1061 : the second vertex, and lines are drawn
1062 : REM DRAW TO EACH VERTEX IN SUCCESSION from the second to each of the remain­
1063 :
ing vertices and so on.
1070 FOR I = I TO NS
Notice two things. First, after each
1080 A = A + DA : REM INCREMENT THE ANGLE
1090 X = R.COS(A) : Y = R.SIN(A) : M = I : GOSUB 10
line is drawn, a blank move is executed
1 1 00 NEXT I to return to the starting point for the
1 1 1 0 GOTO 1 1 10 next line. Second, it is necessary only
to connect each vertex with the re­
Program Listing 6. Drawing a Hexagon Using Polar Coordinates maining vertices. For example, when
you start using the second vertex as the
initial endpoint, you have already con­
nected it to the first vertex, and when
you start using the third vertex as the
Input data. NS is the number of vertices (which also corresponds to the number of sides of
initial point, it has already been con-
the polygon formed by connecting all of the verticals in succession). R is the radius.
I nected to vertices I and 2.
1000 INPUT "NUMBER OF SIDES " ; NS Exercise 7
1010 INPUT "VALUE OF R";R As noted above, Program Listing 7
requires a large number of blank
Go to the graphics screen. moves. This is not too objectionable
on the TV screen where blank moves
1020 SCREEN I , I . and draws are executed quite rapidly.
On a plotter, however, a blank-move
Set the initial angle to zero, and set the angle increment to 360/NS (converting to radian operation takes as much time as a line
measure). draw and both are somewhat time­
consuming, especially for a large
1030 A = O : DA = 2.PI/NS figure.
Modify Program Listing 7 so that it
Dimension the array to be used to store the coordinates of the vertices. Calculate the vertices requires a minimum number of blank
and store the results, incrementing the angle after each calculation (in preparation for the moves. For a polygon whose number
next calculation). of sides is prime (such as 3, 5, 7, 1 1 ,
1 3 , 1 7 , 1 9) the blank move to the first
1040 DIM X(NS) , YeNS) vertex is the only one required .
1050 FOR I = I TO NS
1060 X(l) = R. COS(A) : Y(I) = R.SI N(A) Next Time
1070 A = A + DA
In the next column, I will consider a
1080 NEXT I
program that draws an ellipse. Such a
program can also be used to draw a
Join each vertex to all of the vertices beyond it. Notice that a blank move is executed each time circle, which is merely a special kind of
to get back to the initial vertex. Also notice that this process only continues up to the next to the ellipse. I will show you my solution to
last vertex (NS- I). This is because there are no additional vertices beyond the last.
Exercise 7 , as well as present a few ad­
ditional ideas in the study of computer
1090 FOR 1 = I TO NS-I
graphics.
1 1 00 FOR h l + 1 TO NS
1 1 10 X = X(I) : Y = Y(l) : M = -I : GOSUB 10 The next column will also feature a
1 1 20 X = X(J) : Y = Y(J) : M= I : GOSUB 1 0 program I call SPIROGRF that oper­
1 1 30 NEXT J ates just like the toy of a similar name.
1 140 NEXT I It includes a four-color option, and
you won 't want to miss it. In the
Allow the user to view the finished result. meantime, don't forget to do your
homework . •
1 1 50 GOTO 1 1 50
Write Delmar Searls c/o HOT
Program Listing 7. String Art CoCo, Pine St., Peterborough, NH
03458.

132 HOT CoCo Jun� 1983


C()L()l? r:LI:X i()ftwar-e
COLOR COMPUTE R SOFTWAR E
SUPER SLEUTH D I SA S S E M B LE R Each 599·FLEX
COM PLETE YOU'R WORD PROCESSOR

S P E L L- R I T E
(specify for 680x/6502 5 1 0 1 ·0 S/9
0' lor Z80/8080/5)

C R O S S'A S S E M BLERS Each S50·FLEX THE Cassette Spel l i ng Verlilier


(specify f o r 680011 ,6805. 555'O S/9
6502,Z80, or 8080/5)
You've got the best word processor. Now comp lete your system with
DEBUGG I N G S I M ULATO R S Each S75·FLEX the best spelling v e r i l i e r . Spell-Rite is a conve n ie n t . last way to i n s ure
(specify l o r 6805 o r 6502) 5 1 00'O S/9 that all 01 your documents are letter perlect. Spell·Rite was designed
8502·TO·8809 A S S E M B L E R XLATOR S75·FLEX speciNcally lor cassette·based word processors. Like Yours'
S85'OS/9
8800·9 & 8809 PIC X'LATO R S Both S5O-FLEX Spell·Rite is easy to use. c o m p l etely menu d r i v e n .
S75'OS/9
FULL S C R E E N TSC XBASIC PROGRAMS FOR FLEX Spell· Rite i s F a s t l You c a n v e r i ly a 1 000 w o r d d o c u m e n t i n u n d e r 9
(wilh full cursor cOnlrol) m i nutes · inc luding cassette 110.
MAILING LIST S 1 00
I N V E NTORY I M R P S 1 00 S p e l l ·R i t e i s complete. It comes w i t h i t s o w n 10.000+ word dictionary
TA BULA RASA SPREADSHEET S1 00 which you can expand. Also included is a superb manual.

X'BASIC/XPC UTILITIES AII S25


(reseQ. )(,el, XPc sOrl gen)
S p e l l ·Rite works w i t h any word processor that generates ASCII tape
f i l es . such as Color S c r i p s i t Super Color Writer and Telewriter 64. 32K
Computer Systems Consultants, Inc. 01 RAM and Extended Basic are required.
1 4154 Latta Lane
Conyers, Georgia 30207 Cassettes and manual 559.95
404·483·1 7 1 7 /4570

DISK BASIC A,I D


Prog rams I n source on 5" /8" disk. DISK BASIC
Detailed printed m a n u a ls provided.
MADE BETTER
Call for catalog or d e a l er In formation.

VISA and MASTER CARD accepted, Add 5% Shi pping Y o u r C o l o r Disk Basic i s one 01 t h e m o s t p o w e r l u l B a s i c s on a n y
US F unds Only 01 the e a s i e s t t o
FLEX� Technical SysI8ms COnSUilaniS c o m p u t e r . A d d D i s k Basic Aid a n d i t atso b e c o m e s one
use' The Basic A i d p a c k a g e will make devetoping and e n t e r i n g Basic
... 223
OS/9 � Microware

programs a snap. Here are just SOME of the great leatures Basic Aid
contains.

• Full Screen Editing • Cross Reference


• Automatic Line Numbering • Automatic Key Repeat
• 2 Key entry o f Basic keywords • User delinable keys

PLUS. Label supportl This u n iq u e Basic Aid leature is a vast


i m provement in the Basic language. Label any line you want and
use that label in all calls t o that line. Forget about l i ne numbers.
j u st call routines by name like this

"ON A GOTO ENTERCHECKS. PAYABLES. EXIT""


A real t i m e saver. And lor trans p o r t a b i l i ty Basic Aid will convert
all labels t o line n u m bers .

These and other great leatures make Basic Aid a 'must" lor anyone who
w r it e s or modifies Basic progr�ms. Basic Aid r u n s on 32K o r 64K Disk
s y s t e m s. 11 comes with complete documentation and our new. heavy
duty keyboard overlay.
Sel l i n g Hot CoCo will mak e
Disk Basic Aid 549 95
money for you. Consider the facts:
Fact # 1: Selling Hot COCO increase;
store traffic-our dealers tell us
that Hot CoCo is the hottest­ SPECT R U M - ST I C K
selling computer magazine on Put the joy back I n to color computing W i t h the Spectrum S t i c k This
the newsstands . heavy duty j o y s t i c k g i v e s you a true feel 0 1 c o n t r o l And I t comes w i t h
Fact #2: There is a direct correlation be­ a n e x t ra long c a b l e a n d power o n / o l l LED
tween store traffic and sales- increa-;e the num- ..... the feeling 01 this joystick is superb." March 1983. 80·Micro
ber of people coming through your door and you'll increa-;c TX: add sales tax 539.95
sales.
Fact #3: Fact # 1 + Fact #2 = INCREASED SALES, which
means more 'm oney for you. And that's a fact . Send check or money order lor total pu rchase price. plus 5 1 50 S & H
C ,h a r g e c a r d s ' Include all e m boss ed information
'd Spell-Rite 0 Disk BaSIC Aid
For information on selling Hot CoCo, call 800-343-0728 and
o Speclrum Stick 0 Send Free Catalog
speak with Ginnie Boudrieau , our bulk sales man ager. Or SEND to P O flox 1 80006
write to her at Hot CoCo, 80 Pine Street , Peterborough, NH Austin. Texas 78718
03458 . ( 5 1 2) 837·4665

Name
80 Pine Street

nH@1T CoCo Peterborough, NH 03458 Addr�s__


� ____________________

A
800-343·0728 ---
-- ... 1 54

... See List 01 Advertisers on page 738


HOT CoCo .JulI� (1)83 133
PRODUCT NEWS Edited by Mark Reynolds

allows the user to add serial for each player , younger


ports, parallel ports, disk children can compete on an
controller, and other com­ equal basis with adults.
patible cartridges to the Co­ The program includes an
Co and operate with any i n t r o d u ct i o n , p r o m p t s ,
Color Basic computer with messages, and unique audio
any memory size. attention getters .
The BT- 1000 connects to Alphabet Soup i s cur­
the Color Computer rently available on cassette,
through the cartridge slot and a disk version should be
by means of a 4O-wire rib­ out soon . The game sells for
bon cable and a buffer car­ $ 1 4.95, ppd. Colorspell, a
tridge. Additional features program for a 1 6K machine
Basic Technology 's BT-/OOO Expansion Interface Unit. include a large internal without Extended Basic, is
power supply, internal available for $ 1 0.95 , ppd.
V oice Recognition the name of one of the
memory decoding, gold For more information,
CoCo's nine colors, and the
For the CoCo screen will be painted that edge connectors, socketed write Creative Technical
I Cs , and four 24-pin Consultants, 16-8 Sangre de
Voice recognition is now color. In Voice Calc, you
RAM/ROM sockets. The Cristo , P . O . Box 6 5 2 ,
available for the 1 6 K vocally enter arithmetic
sockets may be supplied Cedar Crest, N M 87008
TRS-80 Color Computer as problems and Voice Calc
with 8K of factory-installed (phone number unavail­
ColorSoft Software Co. in­ will display the solution.
static RAM. able) . •
troduces Color Talk to Me, Color Talk to Me is great
for professional program­
The BT-looo costs $270, Reader Service ",, 558
by Cary D. Perttunen. or $300 with the installed
Color Talk to Me can use mers, since ColorSoft soft­
8K of static RAM. For fur­
your voice, via your cassette ware will market original A Stock Market
ther details, contact Basic
recorder's condenser micro­ programs using Color Talk
to Me. It is also ideal for
Technology, P.O. Box 5 1 1 , Analysis Program
phone, as an alternate Dept. S, Ortonville, MI
means of input for any of making computer programs Fundgraf is a program
48462, 31 3-627-2002 . •
your existing Basic pro­ more accessible to disabled for stock market investment
Reader Service "" 553
grams. With a little prac­ persons. analysis that allows a
tice, you can attain from 80 The Color Talk to Me graphic or numerical com­
to over 90 percent accuracy software package is avail­ parison for any stock or
able on two cassettes for Alphabet Soup
for most applications. Over fund. It reports buy and sell
200 words can be stored in a $49.95 (plus $2 shipping Alphabet Soup is a com­ signals back to you, based
1 6K CoCo. and handling) from Color­ petitive spelling game for on the calculated moving
Included in the package Soft Software Co. , 1 1 764 from one to five players, average during a user­
are the Color Talk to Me Raintree Court, Utica, MI with provisions for nine selected time period (up to
machine-language subrou­ 48087 (phone number un­ skill levels . It is written for �eeks). It allows an in­
tine, the Basic subroutine available) . • machines with 16K of mem­ vestor to co mpare the
that can merge Color Talk Reader Service ",, 550 ory and Extended Basic. relative market per for­
to Me with your existing The game can be played mance of funds, stocks, or
programs, and complete in­ by anyone old enough to indices.
structions on how to use spell a few simple words. After receiving the ap­
and incorporate Color Talk An Expansion The program generates a list propriate data, the com­
to Me in Basic programs. of from 5 to 14 letters . The puter can analyze any or all
Interface Unit
Two application pro­ player then has 200 seconds of the funds in the files and
grams, Screen Painter and The BT-l ooo Expansion or less to spell as many get a graph of prices, calcu­
Voice Calc, show how Col­ Interface Unit is a five-slot words as possible from the lated moving averages, a
or Talk to Me can be used. bus extender for the Radio given letters. By choosing plot of annual percentage
In Screen Painter, you say Shack Color Computer . It the appropriate skill level growth rates, and a tabula-

134 HOT CoCo June 1983


TH E M I C R O C O M IPUT E R B U S I N ESS
WI LL G R OW FROM $ 1 0 TO $ 1 00 IB I LL I O N
I N TH E N EXT E I G HT YEARS!
AIRE YO U R EADY TO CAS H I N ?
The m i c ro computer business is predicted to grow from its present $ 1 0 billion to $ 1 00 billion before 1 990' I m agine the
possibilities this opens for you ! No matter where you live, if you're starling up Of presenlly in business, no other Ind ustry offe rs
you more opportunities!
Now, finally, all the inside information you need 10 secure a prosperous future in this dynamic industry is available in
one place - THE COMPUTER ENT R E P R E N E U R MANUA'L! - An Immense information source, compiled by our Inquisitive research
t e a m , aided by a panel of experts and business people from all areas of the computer Industry!
We present lhe inside story of more than 1 00 lucrative computer businesses you can enter, where you'll find the real
opportun ities for the eighties: from one man operations like Programming Author, Word Processing Center or Consulting, to
Systems House, Service Bureau, Computer Store etc! Many al little or no inveslmenl' All the invaluable facts and figures:
How to start, Capital needs, Profit estimates and Margins, How to Sell and Ma rket, How missing lechnical or business
experience need not stand in your way, Source of Suppliers, etc! Details thai could lake years to find out on your own'
We'll show you inside tricks, like how to never again pay reta i l for computer products and consumer electronics, even for
one item - right now, w h i l e you're starting your business! How to get free merchandise and trade show Invitations, etc. This alone
w i l l more than pay for the manual! You'lI read actual case histories of other computer entrepreneurs . so you can learn from their
m i stakes, and profit from t h e i r success stories! Where you'lI be one year from now depends on your actions today! Let US
show you how to take the first crucial steps!
Order now and t a k e advantage of our l imited introduction special, THE COMPUTER ENTREPRENEUR MANUAL, and a
six month subscription to THE COMPUT'ER ENTREPRENEUR REPORTINEWSLETTER ( so YOU're always up-tO-date with t h e
industry ) , both f o r only $29.95! Y o u m u s t b e convinced o n how easy y o u c a n strike it r i c h i n t h e micro computer business · o r yOl'
may return the manual for a full refund wilhin thirly days' USE OUR TOLL FREE NUMBER TO O R D E R !

EV E RYTH I N G YOU N E E D TO K N O W
T O S U C C E E D I N TH E C O M PUTER B U S I IN ESS
IS ALL IN TH I S MAN U A U
THE COMPUTER ENTREPRENEUR MANUAL has the answerS to all your question I a bou t
selecting, slartlng and succesfully running a computer buslnels! There has never been such a
comprehensive collection of know-how and Information about thiS business In one place! A l l the
facts you need t o plan and acheive your goats , n easy-to-fOl low, step-by-slep Instruct ions!
These are some 01 the 100-plus businesses covered I n PART ONE of the manual. With the
facts on How to start and run, Start-up Cost ( Even how to operate o n a shoestring ) , What profits
to expect, Wholesale prices, 'Mark-ups, Suppliers, future outlook, case hlltor les for each, etc:
Systems House, Software Aulhor ( who to sell to and who to aVOid ) . Service Bureau, Soft­

l__=-___ ..JL._-- _
_
ware Publisher I How to find programs that sell. Word Processing Service, Consulting and Con-
_ sultant Broker ( use your skills or those of others, make $ 1 50 - S I OOO a day!), The Incredible
Games Business. Computer Store ( Franchises : Pro and Contra, or a low Inventory store in your
home! ) , OEM, Hardware Mfg, Data base and Telelext Service ( big prospects! ) , Used Com­
puters, Repairs, Rent-A-Computer, Promote Fests and Trade Shows, Turnkey Systems,
Bartering, M a i l Order, Compile and rent mailing lists, Specialized Data Headhunting and Temp Help Service, Tech Writer Shop, Custom Eng ineering, The
h i g h l y profitable Seminars and Training Business , and m a n y more!
Many new Ideas and ground lloor opportunities! Interviews and success stories on companies of all sizes! Privy Info on the profits made: How some
computer store operators net S 1 00 - $250,OOO! Llnle known outl,ts thal .nade their owners m i l l ionaires, one of these low·key companies. making Simple boards.
went from nil to $20,000,000 and 1 00 employees In four years! Programmers that make $300,000, Thousands of micro mil lionaires in the makong. etc'
Whatever your goal' I S . Silicon Valley Tycoon, or just a business at home - we guarantee you'lI lind a business t o suit you - or your money back!
'PART TWO of the manua' I S loaded With the knOW-how and "streelfightlng" savvy you need. both as a novice or business veteran, t o get started . to stay
and to prosper in the mIcro computer bUSIness! A goldmine of Information i n clear and easy-la-use instruClions: How 1 0 prepare your Business Plan. Outside
financing, The m i stakes you m u st avoid, How to hire and manage emptoyees, Incorporallon ( w hen. and how to dO i t cheaply ), Surviving bad times, Record
Keeping, how to estimate your market before you start, Use multiple tocatlons to maximize prollts, how to promote and stay steps ahead of the competi­
tion! How to get free advertising, free merchandise, free advice, Power negotiating w,th suppl!ers to double your profit marglna, etc! Even how to keep a
present job w h ile slartlng a business part time!
Don't miss this opportunity to be part of thiS great Industry - the next success story could be your own! Order the manual today! Part one and two
bound In a deluxe ring binder, where you can also collect our newsleller ( free for six months with the manual - a $32.50 vatue! ) - all for only $29.95!

Order by phone (Credit cards only), or use the coupon:


:I.I 1 1 1 1 1 l l l l l l l l l lI l l l I lIlIlIlIllI lItlllllllllllllllllll l l l l l l l l l l l l l l l

Mall to THE COMPUTER ENTRE PRENEUR PUBLISHING CO.


PO BOX 456, Grand Cantrat Station, New York, N.Y. 10163

THE COM PUTER ENTR E PR E N EU R N EWSL 'ETTE R - Please send me THE COMPUTER ENTREPRENEUR

ALL THE LATEST I N S I D E BUSI N ESS N EWS! CALL TOLL FRE E ! MANUAL, a nd the s i x month free subscription to
THE COMPUTER ENl1'IEPRENEUR REPORT/NEWSLETTER,
CHARGE IT!
NOWI SIX MONTHS FREE WITH YO U R M A N U AL! Credit Card Orders
All for only $29.95, plus $3 for postage/handling ( NY resi­
dents: add $2.64 for sales tax ). If t decide not to keep the
manual. I may return it w i t h i n 3 0 days for a full refund.
You're always anuned to Ihe Industry. and your
manual kept up-to-date, With our newsletter! Each 'I ssue has ( M C , VISA only )
the latest business news, Ideas, new suppliers, our in· accepted 24 hours/day NAME:
dispensible "watchdog" column on profits, discounts
( d o n ' t m i s s mfg's promos, like recenlly. when top "ideo moni­ 1 -800-227 -3800
tor sold at $80 . that's hall whotesale, one third of the retail
ADDRESS:
Ask lor extension 1 1 35
price! ) , the com petition, the big deals, etc! Feature storoes
In Cal ifornia call CITY, STATE, ZIP:
w i th start·up mfo and case histories on new m i c ro busi­
nesses! 1 -800-792 -0990 o Check o r M.O. enclosed Charge to 0 VISA 0 MC
You'll gel invitations 1 0 trade shows and conventions. CARD#
the usage of our advisory service and our discount buying
service for your purchases I E x p . Date:
Y o u ' l l find many items In our newsletter thai will save
the cost of your manual many times over! SIGNATURE:

© 1982, THE COMPUTER ENTREPRENEUR


' RODUcr NEWS� ______________________________ �

tion of the percentage Electronic


change in price (adjusted
for dividends paid, if any) Spreadsheet
for any time period. You Transformation Technol­
can compare funds by su­ ogies recently released the
perimposing one graph over C.C. Calc electronic spread­
another. sheet for the TOP and
Fundgraf will operate on TRS-80 Color Computers
the TRS-80 CoCo with Ex­ with at least 32K. Arith­
tended Color Basic and 16K metic operators including
for the high-resolution exponentiation are sup­
graphics. ported along with summa­
A tape version of Fund­ tion, formula duplication,
graf is fu rnished with and repeating labels. Spe­
at t ime documentation and a sam­ cial features include hidden
cl k cal l er ple set of data for the Dow formulas, a screen printer,
Industrial Average and six and an operator-specified
no-load mutual funds. This decimal place.
program can plot data for C.c. Calc will print re­
up to 70 weeks and can ports in regular or narrow
create data files for seven print. Extra-wide reports
stocks or funds. It sells for Can be printed in sections. A
$49.95 , plus $2 postage and printer is recommended .
handling. Files can be shared with
A disk version is fur­ other programs through a
nished with documentation standardized data exchange
and a sample set of data for format.
the Dow Industrial Aver­ c.c. Calc costs $25 for
Basic Technology 's BT-J020 Real-Time Clock/Calendar
age, Dow Transaction Av­ disk or cassette. Order from
erage , and 30 no-load Trans Tek, 1 94 Lockwood,
mutual funds. This version Bloomingdale, IL 60 108,
can plot data for up to 200 3 1 2-35 1 -1 2 1 0 . •
weeks and can create data Reader Service ",552
files for 52 funds. It sells for

MUL T I PO R T $69.95 , plus $2 postage and


handling. A Tape
FOR THE Co l or Compu ter For more information,
Editor/Assembler
The m u l t i port expansion
contact Parson's Software,
1 1 8 Wood shire Driv e ,
Parkersburg, W V 26 1 0 1 ,
The CORES-64 Tape Ed­
b o a r d a l l ows up to fou r C O L O R itor / Assembler supports
C O M P U T E R p e r i p h e r a l s t o b e a tt a ched 304-424-5 1 9 1 . • the T RS-80 CoCo and
t o the c o m p u t e r at o n c e . A n y o f t h e Reader Service ",557 TDP-l00 systems that have
fou r p o r t s c a n b e sele cted with a at least 16K of memory.
However, in a 1 6K system,
single P O K E comman d . A LED indicates 3-D Ghostmania
t h e :p o r t c u r r e nt l y s e l ecte d . only 3K of workspace is
Try to outwit pursuing available to the program­
D i s k s and a b s o l u tely anyth i n g designed
ghosts in a three-dimension­ mer. In a 32K system, 1 9K
for the COLOR C O M P U T E R expan sion
al maze of hallways. 3-D is available, and in a 64K
port can be used with the IMUL T I P O R T .
Ghostmania, a game of system, there is over 52K of
I ma g i n e h a v i n g a D I S C , PR I N T E R , M O D EM,
st rategy , memory , and workspace available. It does
V I D E O T E X . and a C L OCK C A R T R I D G E
motor skill, is written for not require a disk system or
a l l �!,_-_ �i�4! w i t h y o u r computer . O r h o w FLEX.
machines with 1 6K. It in­
a b o u t f o u r R O M - C A R T R I DG E S for up to cludes 30 skill levels, high­ This version of CORES
6 4 K of e xt r a soft ware . T h e combinat ions resolution graphics, and adds a few enhancements to
a re l i m i t l e s s ! T h e M U L T I P O R T comes easy commands and in­ the versatile features of
assembled and tested f o r $ 9 9 . 50 CER-COMP's Text Editor.

..
structions. No joysticks are

To order
MAPLE
send check
LEAF SYS T E M S
or M . O . t o : �
The o pt i o n a l A C a d a p t e r i s $ 1 4 . 9 5 ; s hipping· $ 5 .00 required.
The price is $29.95 from
Educational Arcade Sys­
It edits text files rapidly and
is compatible with Basic
ASCII-formatted tape files.
P. O. B o x 2 1 9 0 , s t a t i o n ' C ' VIS4 ... 92
tems, 5350 South 3600 W., The Editor itself includes
D ow n sv i e w , O n t a r i o M/C & V I S A c a l l : Salt Lake City, UT 84 1 1 8, over 25 commands, such as
CANADA M 3N 2S9 (416) 7 36 - 1 5 0 4 801 -969-4139 . • string search and replace,
Reader Service ",551 and line- and automatic

1 36 HOT COCO Jun� 1983


PRODUcr NEWS __�___ --, .-----"
line-edit modes. Automatic It comes equipped with
line editing allows you to an internal nickel-cadmium
skip forward and backward battery. four jumper-select­
to review and edit. All able address ranges. and 50
screen editing immediately bytes of battery-backed,
updates the screen so you general-purpose memory.
know exactly what you are The battery will maintain

TAN DON
doing at all times. The operation of the clock for a
Editor also has commands minimum of two weeks. It
to copy or move single lines recharges when plugged into
or blocks of text from one
place to another.
the computer cartridge slot.
The Clock/Calendar fea­
DISK DR'IVIES
for your COCO
The Assembler supports tures a l OO-year calendar, a
the full complement of 6809 1 2l24-hour select, an auto­
instruction set with all ad­ matic leap year, and day­ Features
dressing modes. and it will light savings compensation.
cross-assemble 6800 source It costs $ 1 09, plus $2.50 for Fully so ftware compatible
code to produce 6809- shipping. For further details 6ms track-to-track
compatible object code. It contact Basic Technology,
40 track s
also supports the standard P.O. Box 5 1 1 , Dept. S,
assembler directives. The Ortonvil l e , M I 48462, Higher quality
listing includes line numbers 3 1 3-627-2002 . •
for easy location of errors in Reader Service ",554
DRIVE 0 $449.
the source file.
DRIVE 1 $249.
The tape includes a dem­
They Call Me
onstration program listing
and source file to help an­ Sister Honky-Tonk PRINTERS
swer questions and allow
Strip Tease (rated "R") is STAR GEMINI 10 $3 79.
the novice to work with a
an adult math puzzle in
known program. STAR GEMINI 1 5 $5 1 9.
which the player attempts to
The CORES9 standard
crack a nonrandom algo­ OKIDA TA 80 $349.
Editor/ Assembler comes
rithm using three digits
on tape for $29.95 . The PRO WRITTER $469.
(one, two, or three) .
C O R E S 9 u pgrade to GX 100P $249.
The beautiful-and au
CO RES-64. including a
naturel-"Miss Byte" is
new manual. costs $ 1 4.95 . BOTEK PARRALLEL ADAPTER $69.
hiding behind a billboard.
and the CORES-64 64K
I f the player correctly guess­
enhanced Editor/ Assem­ 16K CHIP SET $ 14.96
es one of the three digits
bler (on tape) sells for
that the computer has 64K CHIP SET $64.
$34.95 . There is a $2.50
chosen, a strip of the bill­
shipping and handling WICO JOYSTICK $25.
board disappears , revealing
charge on all orders .
a strip of "Miss Byte. " WICO-COCO ADAPTER $ 1 7.95
For more information.
When the last strip of
please contact CER­ HA YS SMART MODEM $239.
billboard has disappeared,
CO M P . 5 5 66 Ricochet
"Miss Byte" performs an VERBA TIM SS/DD 10box $26.96
Ave . •Las Vegas . NV
undulating dance-in high­
89 1 10. 702452-0632 . • W2" 0fAI WATTS U. FOIl A 0u07l"
resolution graphics-ac­
Reader Service ", 555
companied by electronic ON ANY co.cn'M MODUCT
rhythm and blues.
� CAlia, lfOttWy 0It0M..
Program�able This game is sold on
Clock/Calendar cassette and is for CoCos PEIISONAL ClfEClCS IIEOUIIE 3 WEEKS
with 16K of memory. It is
The BT- 1 020 Real-Time written in machine lan­
Clock/Calendar can add
date and time to files. pro­
guage, and does not require
Extended Basic or joysticks.
COMPUK'IT
grams. and reports. This This red-hot item sells for 1-800-23 1-667 1 Otdw line
new programmable periph­ $ 1 4, ppd. (Does that include
1- 7 1 3-480-6000 t«:IrnIcM .".
eral plugs directly into the sin-tax?) from Britt Monk,
cartridge slot of the TRS-80 CDP, P.O. Box 802, Elyria, 1 6206D HICKOR Y KNOLL
Color Computer or into Ba­ OH 44036 (phone number
HOUS TON, TEXA S 7 7059
sic Technology's BT-1 OOO unavailable) . •
Expansion Interface Unit. Reader Service ", 556

... See List 01 Advert/se,s on psge 138 HOT CoCo Jun� Iq83 137
.---_ llU®1f COCO�------,
I ndex to Advertisers
Reader Service Number Page Number Reader Service Number Pege Number

107 Aardvark " " . , " " " , , 61 283 Endicott Software " " " , . , ' . " " " , . , ' , ' , 31
26 Access Unli mited , , , . , " , 13 262 Frank Hogg Labs , , , . , , , • , , , ' , ' • ' • ' • . . . . , GIV
'
227 Accolade Computer Products , , , , , , ' . , ,41 379 GamesterSoftware " " " " ,.,.,." " " . " 20
19 Adventure International . " ' , . , " ..... ,," " ,5 54 Gimlx , , . , , , , , , , , , , , , , , . . . . , , , • . • . . ' , , , 148
4 99 Armadillo Int'l Software , , , , , , . , , • , , ' , , , . , , , 99 9 H & E Computronics, . , . , . . , , , , , , • , , , , , ' , , 1 39
493 Atomic Clly Electronics . , , , , . , , , • , • , , , ' . , , , 98 359 Homebase ComputerSystems . , ' , , , 76
248 Basic Technology " . . . . , . , ' , . , , 30 HOT COCO Bulk Retail , , , , , , ' . ' , ' , ' , , , 133
553 BaSlc Technology . " , " , . . . , . . " , , 1 34 HOT CoCo Foreign Retail " " ' " , , , 88
554 Basic Technology , , 1 37 HOT COCO Subscriptions " " , , , , 10
1 84 Baudy HouseComp, Producls , , ' , ., . ,. , . , 43 HOT CoCo Subscription Problems , , , . 1 42
Bottom Line. The , , , , . , , , , , ' , , , 1 45 215 lIume Design " , , , , , , , ' , , 66
74 Brantex. lnc. , . . . . . " ....... . . " , 21 Instant Software " " " , . , .. , . , ," , 97 , 1 1 7
470 Brill Monk CPO , . . . . . . , 1 12 249 Intellectronlcs " , , 73
140 Bumblebee Software , , 1 13 198 Intracolor Communlcations , , , , , • , . , , , , 1 09, 123
556 CO P " , " " 137 101 J & M Syslems . . . , , , , . , , , , . , , , , , , , ' , ' , ' , . 57
1 66 Cet>Tek " " , ' . . " . . "",, . . . . . . ' .. , , 98 42 JPC Producls . . . . . " " ' ' ' ' ' , . . , 4 1 , 85
335 Cer·Comp " , , , , , . , . . . . . , . . . . . . . . ' , , , , 57 66 Kelco Inl'l Corporation , ' , , , , , , , 62
555 Cer·Comp . , . . " " " " , .. , , , , , 137 172 Liberty H i l i Software , , , , , . . . . . . • . . . . , , , , , , 53
Change of Address , " , 1 15 92 Maple Leaf Systems , , , , 136
1 56 Chal1anOQga ChOQ Choo Software , " , . " " , 76 241 Mark Data Producls " ,. " " , . " . , . " " , 7, 95
102 Chromasel1e Magazln e " " " " " , ' " , 65 132 Micro 80 . . . . . . " . " . . . . " . .115
350 CoCo Warehouse . , . . , " ," " . ' .. , . ' . " " , 88 96 Micro Management Systems " " . , • . . • . . . , 1 10
543 CoCoDATA Enterprlses " " , . , . , . " " . , , . 1 19 316 Mi cro Solutions " ' " " " " , . , • . . " " , 1 19
121 Cognllec . . . . . . . . '... . . . . 35 191 MlcroTechnlcal Products " " , . • ,." " , 22
1 Color Computer News . , , . , . . . . . . . , . , ' , ' , , 59 125 Micro Works ' ' ' ' ' ".... , . . . " " , , 79
512 Color Quest , , . ' . , , , , , 124, 1 25 203 Mlcronlx Syslems Corp" " " , . " " " , , , 17
267 Color Software , '" " " " , 63 231 MITRONIX " ., . , " " . ' . " '. . , , , 22
74 Color Software Services " " ' , . , " ' " , 21 Nanos Systems Corp, . , ' , ' , , ' . ' . ' , , , , , , , , 1 44
550 Colorsoft Software Company , . • , , , . ' , 1 34 1 28 Nelson Software " " , . • ' . ' . , " " . 1 4. 1 5
17 Colorware , , . , , , 74, 75 320 Parsons Software , ' , 1 42
455 Compukit , , , , ' , ' , , . 137 557 Parsons Software , , " ', ...... ,. . " , '36
483 Compulek , , , 65 124 Perry Computers " " " ' . . . . ' • . . " 73
549 Computer Enlrepreneur Pub, Co" The, , . " , , 135 486 Powerbyle Software , ' ,117
116 Computer Island " " " , 87 80 Program Siore, The , , . . ' , , , , , , 89
420 Computer Peripheral Resources , , , . 97 245 Programmer's Institute . , ' , . , ' . 129
.
18 Compuler Plus ' " , , , 9, 1 1 5 345 Real Software . . . 5 7 , 122
1 09 COmputer Shack . . . . . . . . " . . . . . . . . . " . 1 01 64 Renaissance Game Design . . . . 111
134 ComputerShack . , , 1 03 478 S & N Enterprises , " " " . " . . . . " " " , , 99
453 Computer Shack , , 1 05 510 Scol1 TassoAssoclates . . , , . 142
S07 Computer Systems Center ' " , , , , 39 83 Screen Play , , , , , . . . , . • , • . • " . CII, 3
223 Computer Systems Consultants . , , , 133 87 Soft Sector Marketing , , , , , , ' , . ' , . ' • ' , . 71
255 Computerhouse, The , , . . , , , , 91 327 Software Support, Inc, , , , , , ,83
369 Compulerware , , CIII " ,9 SpeclraI Assoclates " " " " . , . , . , SO, 5 1
1 05 Goosol, lnc" " " " ' , " , 23 525 Speclrum Projects , , , • . • ' , , , , , . 26
558 Creative Technical Consultants , , , . , . . 134 432 Slarklts " " . , " " " " " , . . . . • . . . , . , " " 117
536 Cybertron " ,." " , . " " , , . . , , . , , . . 65 434 SlrlctlyColor Software " " , . . . . . • , ' , . , ' , .. 11
213 Data-Comp " " " " , ., ........ . . , • • ' . , , , , 77 144 Sugar Software , , , , , , , ' , , , . , ' • . • ' • ' , , , , . . 73
304 Dataman, The . , , , , , , , , , . , , . ' . , , • ' , , , , , , 20 285 Sun Research . , , , , , , . , . . ' . , , , , , , , , ,87
36 Derri nger Software , , , , , , , . , • , • ' , , , • ' , , , , , 1 12 456 Sunlock Syslems " . " , . . . . . , . . . . . . . . , . , ,41
412 Double Denslly Software " " . " , " , , 65 230 Synergetic Solutions " " " " ' " . . , , 121
216 EAP Company " . . , , " " " " . . . . . . . . . . 121 38 9 T C E Programs, Inc, . , , , . , ' , ' • . • ' . , . , , 18
401 E & G Umlor Enterprises " " " ', . • . • . . " " , 88 177 Tom M ix Software " " " " " " . " , 69
551 Educational Arcade Systems , . , . " , . " " , , 1 36 552 Trans Tek , . , , , , , , . , , , , , 1 36
154 Elgen Systems , , , , , , , , , , , . , , . , , • , . , , , , , . 1 33 29 Washlnglon Computer Service , , " , ,81
8O MIcro Subscriptions ' . . , . . . , . ' . " . " ' " , 27 Wayne Green Books " , , 1 30
159 Electronic Specialists , . , , , , , , , , ' , ' , . , • , , , , 97 156 York 1 0 Compulerware " , " " " . 47

·Thls advertiser prefers to be contacted directly.

For further Information from our advertisers, pie... use the R.ader Service card.

1 38 HOT CoCo Junt 1983

b
You've i nvested a lot of time and
money i nto your computer . .
BUSI N ESS PAC 1 00
It's time tha t in vestment paid off! Now A vailable for the
TRS-80 C% r Computer!
TH E COLOR ACCO UNTANT Includes Inventory Control, PayroU, Accounts Rec:et4ble,
Accounts Payable, Checkbook Maintenance, and more.
Comes with 128-page uaer's manual.
I nt ro d u ci n g T h e 'Co lor Accou ntant (from T h e Program­ Interest apportionment by Aule of 78's . Annuity computation program
mer's I n st itute), the only complete personal financial • T i me between dates • Day of year a particular date falls on . I nterest
package specifica l l y desig ned for the TRS-80 Color rate on lease . Breakeven analysis . Straightline depreciation . Sum of
the digits depreciation • Declining balance depreciation - Double
C o mputer. T h is u n i q ue package i ncl udes:
declining balance depreciation • Cash flow vs. depreciation tables
• Print checks with daily register - Checkbook maintenance program
1. Complete Checkboo k 6. Color Graph Design
• Mortgage amortization table - Compute time needed for money to
Maintenance Peckage (graphl any Illes)
double, triple, etc . • Determine salvage value of an Investment . Aate
2. Chart 0' Accounts Maintenance 7. Check Search
of return on Investment with variable inflows . Aate of return on invest­
3. Income/Ell pen.. Accounts 8. Home Budget Ana lY111
ment with constant inflows . Effective interest on a loan . Future value
4. Net Worth Statement 9. Dec'.'on Maker
of an investment (compound Interest) • Present value of a future
5. 1 0. Mailing Lilt
amounl • Amount of payment on a loan
PaymentS/Appointments
• Equal withdrawals from
Calendar
Investment to leave zero over . Simple discount analysis . Equivalent
& nonequivalenl dated values for obligations . Present value of deferred
After the initial setup, THE COLOR ACCOUNTANT requires less
annuities . Percent markup analysis for Items . Sinking fund amortiza­
than an hour of data input each month. tion p rogram . Value of ,a bond . Depletion analysis . Black-Scholes
The checkbook maintenance program is Ihe key to the enlire options analysis . Expected return on stock via discounts dividends
package. Once your checkbook is balanced, the checkbook summary • Value 01 a warrant . Estimate of future earnings per share for company
• Compute alpha and beta variables for stock . Portfolio selection
file will automatically update Ihe home budget anal ysis, net worth,
model . Option writing compuLations . Value of a right . E.xpected value
and income/expense statemenls. You can then graph any file, record
analysis . Bayesian decisions . Value 01 perfecl lnformatlon . Value 0'
bills and appOintments, make deCisions. print a mailing liSt. analyze additional informat ion . Derive ulility function . Linear programming
various accounts or stocks, and even calculate taxes. solution by simplex melhod . Transportation melhod for tlnear pro­
All programs are menu-driven and allow add/change/delete. Each gramming . Economic order quantity i nventory model . Single server
queueing model • Cost-volume-pro/lt analysis • Conditional profit
file and statemenl can be listed to screen or printer, and saved to
tables . Opportunity loss tables . Fixed quantity economic order
quantity model • Cost-benefit waiting line analysis . Net cash-flow
cassette or diskette. THE COLOR ACCOUNT ANT also comes with 40
pages of documentation that leads yo'! step-by-step through the entire analysis for simple i nveslment . Profitability index of a project - Weight­
package. The TAS-80 COLOA E.xt. Basic requires 1 6 K for this package. ed average cost of capital . True rale on loan with compensating
balance required . True rale on discounted loan . Merger analysis

$74 95 $79 .95


computations . Financial ratios for a firm . Net present value of project
• Cassette Diskette •. Laspeyres price index . Paasche price index . Construct seasonal
quantity i ndices for company . Time series analysis tlnear trend . Time
series analysis moving average trend . Future price estimation with
inflation . Mailing list system . Leller writing system (links with mailing
list system) • Sorl rists of names . Shipping label maker . Name label
maker . DOME business bookkeeping system - Compute week's lotal
Send $2 For O u r hours from timeclock Info . • In-memory accounts payable system
• Generales invoices on screen and print on printer - I n-memory
New 64-Page Catalog (#1 1 ) inventory control system . Computerized telephone di rectory . Time
use analysis . Use of assignment algorithm for optimal job assignment
Which Contains • I n-memory accounts receivable system . Compare 3 methods of
More Than 500 Software Prod ucts. repayment of loans . Compute gross pay required for given net . Com­
pute selling price for given after-tax amount . Arbilrage computations
(Catalog II provided FREE with any order)
• Sinking lund depreciation . Computerized UPS zone table - Type
envelope with return address . Automobile expense analysis . I nsur­
ance policy file . I n-memory payroll system • D i lution analysis . Loan
amount a borrower can afford . Purchase price for rental property
To Order: • Sale-leaseback analysis . I nvestor's rate 01 return on convert able
Write or call Toll-Free (800) 431 -2818 bond

1 00
( N .Y.S. residents call 9 1 4-425-1 535)

Ready-To- R u n
:L[lf:1PlJTR[l�ILS�.
50 NORTH PASCACK ROAD B u s i n ess P rog ra m s
S99.95
SPR I N G VALLEY, N.Y. 1 0977
• •<IeI 53 for .fupp,ng i n uPS .re.. add 55 10 CANAOA MEXICO
only
• or

• ackf � for C,O D. or non-UPS atelS • add proper peslage etsewheJ8

• (Available o n diskette o n ly)


Also available for T R S-80 Models I , l l and I I I , A pple, Atari ,
30-0AY MONEY BACK GUARANTEE Osborne, Kaypro, a l l Commodore Comp uters and most
. .. ALL PII ICes AHD PlCIFICATIONl IU8.ll!CT TO CHANGE ... CP/M systems .
DlLIYIRY IlURJICT TO AVAILAIIILITY

'" See List of Advert/sers on Page 138 HOT CoCo Jun( 1983 1 39
Re:FLEX

T
I
here are those of you who have
A GUIDE To any of the general FLEX commands .
upgraded-or who may wish to
upgrade-your CoCos to use a FLEX
THE The extension can be one of three­
CMD for command program, TXT

FOUR FLEX
system . To date, there are four suppli­ for text, DATA for data. The drive
er.s of such systems-Atomic City numbers can be 0-3 for four disk
Electronics, Data Comp, Frank Hogg drives and are normally placed after
Laboratory, and Spectral Associates . SYSTEMS the command.
Some of these products are similar in Here is the CATalog command, the
certain ways, and in some ways they by David Was/er first command most users learn:
are very different. I .CAT.CMD, 1 . The first number is
Over the next few months, I plan to is written to the disk. the disk-drive number and isn ' t
look closely at each of these systems, The FMS has a standard way of necessary i f the command i s o n the
to run as many programs as possible sending directory information to the system drive, which is normally zero.
on them, and to report the results. I disk. It is called the file-control block The three characters following the
also intend to get into the heart of (FCB). The FCB sends 24 bytes to the command are the extension. The com­
FLEX and its jump tables to learn disk directory about the me: 8 bytes ma separates the command from the
what they do. As a result, I should for file name; 3 bytes for extension; I drive number.
have some helpful information for byte to read, write, delete and catalog­ The following are the general FLEX
FLEX users on how the different ver­ protect the disk; 2 bytes that contain disk-resident utilities:
sions of CoCo FLEX work, and how the starting track and sector; 2 more • APPEND-merges two Or more
they vary. bytes that contain the ending track files into one. To invoke, type in the
The company that led the way for and sector; 2 bytes for file size in sec­ command APPEND, (first file name),
implementing FLEX on 6809-based tor; and 3 bytes for file starting date. I (second file name).
computers was Technical Systems will cover FMS in a later article. • ASN-assigns the system drive and
Consultants, or TSC ( I I I Providence The FLEX DOS system must be working drive.
Road, Chapel Hill, NC 275 14). The able to communicate among the dis­ • BUILD-lets you create a small text
TSC FLEX09 is not compatible with play, the keyboard, input and output file for STARTUP or the EXEC com­
the Color Computer, but the four (I/O) routines, and the FMS. The mand.
above-mentioned firms used the TSC FLEX DOS doesn't have to be rewrit­ • CAT-displays all the file names on
FLEX09 as a basis for their versions. ten, but the communications routine the disk.
must be, and that can take care of the • COPY --copies files on the disk to
What Is FLEX? keyboard, the display, and disk I/O. another disk.
FLEX is a disk operating system In the case of the Color Computer, • DATE-displays or changes the
that requires a minimum of 8K of free you must write a routine that uses the date register.
memory from $COOO , and a minimum MC6883 and the MC6847 for the dis­ • DELETE-deletes a file from the
of 1 2K of free memory from $0000 up play, a printer routine that uses the disk by removing the file name from
for system use. In the case of the Color 682 1 , and a boot-up routine that will the directory.
Computer, you have free memory from load FLEX and execute it. • EXEC-executes a series of com­
$(XXX) to $FlXX) in memory map I . FLEX DOS is also easy to use. You mands written as a text file.
FLEX DOS i s divided into three only see the FLEX logo or the three • I-inputs characters from a disk me
major parts: file-management system pluses ( + + + ) that tell you that the instead of the keyboard.
(FMS), disk operating system (DOS), DOS is ready for the next command. • JUMP-is like a GOTO. To in­
and utiHty command set (UCS). The utility command set consists of voke, type JUMP and a four-hex­
The file-management system is the 25 utilities. All four sources of the number address; press the enter key
link between the DOS and the disk Color Computer FLEX supply these and it will jump to the address.
drive. You are usually unaware of the utilities with their FLEX. • LINK-tells the boot loader where
fact that the FMS controls all the ftles To invoke a FLEX utility, enter the the FLEX system is on the disk.
that go to the disk. Nor do you know command, the extension, and the • LIST-displays the control of a text
how many sectors it requires, or how it drive number. The command can be file or Basic me to the tenninal.

140 HOT CoCo Jun( 1983


Re:FLEX _-------�---__,
• NEW DISK-formats a new disk. log. Radio Shack puts the catalog on resides in an EPROM. All the other
• O-routes the display output to track 1 7 . versions of Color Computer FLEX
name fIle on the disk. FLEX writes a sector t o the disk dif­ must bring it in from disk to execute it.
• P-routes the display output to the ferently than Radio Shack does. I will Atomic City's system has a real
printer. get deeper into this area in the coming 80-by-24 display that uses an MC6845
• PROT-gives you the ability to months . chip and a parallel-printer interface
protect a fIle from the delete or write All four versions of the CoCo port. Finally, you get a complete
command. FLEX support a NEWDISK com­ source listing from the EPROM. The
• RENAME-changes a me name. mand. Atomic City only offers a sin­ EPROM is called the Wolfbug Moni­
• SAVE-saves a section of RAM to gle-density disk at this time. Frank tor, and by using the following single­
the disk. Hogg has NEWDISK or NEW­ key entries you can call the accompany­
• S A V E . LOW-is the same as DISKA.CMD, and he provides two ing routines from the monitor:
SAYE, but loads the program into NEWDlSK commands because some • A-is an ASCII duinp of memory.
lower memory instead of the utilities drives cannot support 1 8 sectors per You are prompted for the starting ad­
area. This utility lets you save a pro­ track on double-density disks. dress and 15 rows of 1 6 characters; a
gram in the utilities area. Data Comp and Spectral Associates total of 255 addresses is displayed.
• STARTUP-lets you do something also have the NEWDISK.CMD, but • B-transfers Basic and Extended
special during the after-boot load. Spectral , in the double-density mode, Basic into RAM with no return to
. 1TYSET-sets the terminal control uses the FLEX BOOTLOADON FLEX.
character and the formatting code. command. When using the Data • F-boots FLEX in while in the
• VERIFY -veri fies every sector Comp system, you must use the monitor.
written to disk. MAKESYSTEM command after the • G-is a GOTO routine. You are
• VERSION-displays the version NEWDISK command. . prompted for a starting address.
number of the command or utilities on • H-is the same as A command, but
the display. Atomic City Electronics hex information is displayed .
• XOUT-deletes all commands with Atomic City FLEX09 conversion is • M-lets you examine and change
an extension of OUT. the most unique of all Color Comput­ memory.
ers and the closest to the original The Atomic City disk-controller
The Disk FLEX09 system . In fact, it requires board (Photo 1) measures about
Obviously, the disk is an essential the TSC FLEX09. It has an EPROM 8-by-9 inches and fits on top of the RF
part of the DOS. FLEX disks are quite in upper memory from $FOOO to shield. The heart of the disk controller
different from ,the Radio Shack disk. $FBB4. It uses an MCl 468 1 8 , a bat­ is the 1793 chip, the same as that used
The FLEX disk must have track ° tery-powered CMOS clock with 50 in the Radio Shack disk controller.
single density, whereas Radio Shack bytes of RAM from $FF8E to $FFB8 . However, it is not compatible with any
has double density over the whole It doesn't use the Radio Shack disk Radio Shack software , but it is fully
disk. And, FLEX puts the boot load controller, although the other versions FLEX09 compatible.
on track 0, while sectors 1 , 2, and 3 are of Color Computer FLEX09 do. It also supports a real 80-by-24 dis­
for the system information record , On power-up, the program that play design around a MC6845 chip,
which tells DOS where the free sectors puts the Color Computer into memo­ which greatly expands the power of
are. Sectors 4-9 contain the disk cata- ry map 1 and then brings in FLEX the Color Computer. And it has a real­
time clock, which is battery powered
and software controlled , with a paral­
lel-printer port.
Installing the disk-controller board
is easy-just open the Color Comput­
er case (which voids the warranty) and
place the board over the RF shield. In­
stall the 4O-pin ribbon connector into
the cartridge port and follow the in­
structions provided .
The following are the disk-resident
commands that Atomic City provides:
• RXBASIC.CMD-transfers Basic
or Extended Basic from ROM to
RAM and then executes it.
• CLOCK.CMD-displays the time
and day of the system clock on the
CRT display.
• CLOCKSET .CMD-prompts you
for the month, day, and year. When
you press the enter key you are
prompted again, this time for the hour
Photo I. The A tomic City Disk-Controller Board and minute. If the hour is past 12

HOT CoCo J u n ( 1983 141


Re:fLEX _____________________ ----.

noon, you must add 1 28 to it. For ex­ installation disk, a utilities disk, and a After all the files have been copied, the
ample, 1 p.m. would be entered as 129 general FLEX09. FLEX prompts you with + + + , and
hours.. The installation disk is the fIrst one you type EXEC APENDI .
• DEMON.CMD-lets you examine y o u w i l l u s e . It c o n t a i n s the APEND 1 creates the system disk by
and change disk information. After RSDISKO . B I N , RETERMIO . BIN, appending the terminal keyLoard and
you enter DEMON.CMD, you are SDC.CMD, NEWDISK.CMD, and disk 110 routine to the FLEX.CORE
prompted for a drive number, track, APPEND J .TXT files, which are and renaming it FLEX. SYSTEM.
and sector number. At this time you needed to create the FLEX. SYSTEM Data Comp tells you at this time to re­
can examine or change the disk infor­ disk. move the disk from the drive and turn
mation. The utilities disk contains 14 resi­ the computer off. Then turn the Color
Atomic City's version brings the dent disk commands and nine text Computer back on and reinsert the
Color Computer the closest to a real files . Later on I will exp�ain more new FLEX disk. Type RUN"FLEX" .
FLEX system, if there is such a sys­ about the utilities. In a few seconds, you will be
tem. It offers the user a 80.by-24 dis­ The third disk contains the general prompted for the date. After entering
play, a real-time clock, and a parallel­ FLEX CORE with the normal FLEX this, the FLEX sign-on logo will ap­
printer port. utilities. pear ( + + + ) . You are now fInished
When Atomic City solves its dou­ To create a FLEX. SYSTEM disk making the system disk.
ble-density problem and achieves under Data Comp's F-MATE, insert Now make a back-up of the
some compatibility with Radio Shack, the installation disk into drive 0 and FLEX.SYSTEM disk. However, you
it will be the most powerful Color type RUN "FLEXLOADER" . This is must first make a new disk-type
Computer FLEX conversion. a boot-load program written in Basic, NEWDISK 0 and press enter. After a
and it loads a machine-language pro­ few seconds, you will be asked a series
Data Comp gram named RSLOADERIBIN. This of questions about the new disk. Be­
Data Comp's version of FLEX is is chained to another machine­ fore answering the fIrst question, re­
called F-MATE and is the most inter­ language program on the disk and move the utilities disk.
esting Color Computer FLEX. It pro­ then to another Basic program that After you have entered all the data,
vides some unusual, powerful utilities. tells you what the system is doing. the specifIed drive will begin to format
These utilities let you transfer a Radio The program prompts you for the a new disk. When this is completed,
Shack file to FLEX and a FLEX me to general FLEX disk. At this time, in­ remove the disk and reinsert the utili­
Radio Shack OOS. sert this disk in drive 0 and hit enter. ties disk. Use the SDC.CMD to copy
You can also read the Radio Shack The system loads in the general FLEX the newly made FLEX.SYS disk to the
disk directory and repair a bad disk, and prompts you for the date. After new disk.
using the DISKEX.CMD. Data Comp entering the date, you will see the three The following are disk-resident
includes these utilities in their general pluses ( + + + ) , which tell you you are commands on the utilities disk:
package. in FLEX. . CCBAS I C . CMD-moves Basic
When you receive Data Comp's Now, you want to make a FLEX. and Extended Basic from ROM to
FLEX 9, you cannot run it. First, you SYSTEM disk. Insert the installation memory and provides patches for the
must create a file called FLEX System disk in drive 0 and use the SDC.CMD remaining disk-resident commands.
from the general FLEX core. (single-disk copy routine) to copy all • FLEX-returns you to FLEX
Data Comp FLEX 9 comes with an the files to the general FLEX disk. OOS.

TRS-80 ·8ubscnption.
� Problem? �
TA K E THE G U E S S W ORK OUT OF
• •
STOCK & FUND
I NVESTI NG
rutroGRAl' 11 ne. computer prO, rail which not

only craphe anrS analy, .. tunrSa Or .tock but aho
....te. dee1e1oM on .hen to buy and .ell. U .. :JOur
fRS-80 Coler Computer (TN tardy Corp . ) .. . yalu­
••
CO M P U T E R
able 1"" .. t n1: tool.

••

CRAPHS the procn .. ot :Jour rund. or ,tock, D I SC O U N TS


11n. or C9nlhnt percent �th
• SUPERIMPOS!S ror cOlllp.rhon,
- •
.. ., sraph or any other rund • Factory D i rect Hot CoCo does not keep subscrip­
• CA.LCULATES ovn any ,lven tI .. .panl
.. percent price chane. • Best Prices Anywhere tion records on the premises,
.. the aov 1ns: ayerac. therefore calling us only adds time

I
· INDICATES BUY arwS SELL Illnab
• No Ou t-ot-State Taxes

� k:'�� �:n:: y� t. ....


l . r ..iiii. ..... ..
.. ..
U<
lo c -�
�.·-""II· ;O·C""K""
..."","" I . 100% Rad i o Shack Warranty and doesn't solve the problem.

HOT CoCo
Kroupa of' lev en tor
up to 7 0 ka .
••• ..
�R��=�:;T
T ,. - ", a
... ... C;o.1�UY
6:':"''i'��
co,-o
1 "'
: )-( • Free Price List
Please send a description of

--- S 4 9 . 9 5 T,..� .- . .... . _:1 "---- 1..


�� I
the problem and your most recent

�J6·�:�:to��·r r!··����-
;2·�;o:�=t
D I 8K- • • address label to:
SCOTT TASSO
or up 2 00
1 ! ! :�II � .. �.'ITU
ASSOCIATES
...._
. tlA.Oll _tlI l_1 COllI"

--- S 6 9 . 9 5 I I I I I
-Sa.ph data ani detailed lnatrucUona f'urnhhed .
-80th verdone require 1 6 K !;lthnrhd Bade . 1 75 E North Delsea Drive
•POll' .on lnlorru.Uon UN S . A . S . E . Subscription Dept.
-For your PUNDGRAP prolr.. .. nd the price indi­ Vineland, N.J. 08360
oated above pI ... . $2 . 00 harwSl1ns: tOI
PO Box 975
Farmingdale, NY 1 1737
,
P A R S O N S S O f T W A R E . D E P T. C 800-257·0426
... 5 1 0
1 1 8 WO 0 D S H I R E D R I V E
... 320 NJ 609·691 · 71' 00 Thank you and enjoy your subscription
PA R K E R S B U RG . W V 2 6 1 0 1

142 HOT CoCo June 1983


Re:FLEX ____________________ --,

• LOAD-loads a Basic program • SAVEROM.CMD-saves the ROM memory .


from FLEX disk. to disk. • NEWDISK.CMD-formats a new
• SAVEM-saves a machine-lan­ • SDC.CMD-single-disk copy rou­ single- or double-density disk.
guage program to FLEX disk. tine that lets you use one disk to copy • P. CMD-is the system printer
• LOADM-Ioads a machine-lan­ a file. routine.
guage program from FLEX disk. • USERKEY.CMD-Iets the user set . PUTBOOT. LDR-makes a newly
• DISKEX.CMD-is a powerful util­ the new control-key value. made disk boot able for FLEX.
ity program. It lets you examine and • SDC.CMD-is a single-disk copy
modify the contents of the disk with Frank Hogg Laboratory program.
one of the following single-key entry Frank Hogg Color FLEX has been • SETUP.CMD-Iets you set the sys­
commands: on the market the longest and has the tem up according to your preference.
D-specifies the disk drive you wish most software support. It is also the . XSCREENS.CMD-is the high­
to examine. easiest to use. After you receive it, just resolution screen rout i ne.
S-sets the display scroll value. put it in your drive and type RUN
A-puts you in a new disk com­ "FLEX " . Spectral Associates
mand . Making a new system disk i s done a Spectral Associates' FLEX09 con­
C-modifies the contents of the little differently than it is with the version, FLEX + , is quite different
disk data that was read into memory. other systems. After you have made a from the other approaches. First, you
N-brings in the next disk sector . new disk and the formatting is com­ must use their Supercharger (see
P-brings back the previous disk plete, you must use the PUTBOOT. Photo 2) . According to Spectral Asso­
sector. LDR utility. This puts the Color Com­ ciates, this design allows access to the
F-Iets you follow the chain of data puter FLEX boot on the disk. This full 64K of RAM used in the series E
from one sector to another. The pro­ utility is copy-protected , so you must board without modifying the Color
gram ends when it reaches the last use your master disk every time you Computer and voiding the warranty.
sector. make a system disk. My Color Computer was the
R-is similar to the P command, Here are the disk-resident utilities D-board version, so I upgraded it to
but R rereads it off the disk. for the F-rank Hogg system: an E board . To date, I haven't
W-writes back to the disk what • CBASIC.CMD-Iets you jump to encountered any problems with
you might have modified under the C Basic with no provisions to use the disk. FLEX + . The Supercharger must be
command . • EXT.CMD-is the external ter­ inserted between the Radio Shack disk
X-gets you back to FLEX. minal utility that lets you use a serial controller and the Color Computer.
• DISKRATE. CMD-Iets you set the terminal . This is an extremely power­ To bring Spectral Associates'
disk-drive number and the rate at ful routine. FLEX + u p , j ust e n t e r R U N
which the disk drive will step at either • HELP.CMC-is another powerful "FLEX + " and press enter. After a
6ms, 1 2ms, or 3Oms . program that helps you by providing couple of seconds, the screen displays
• MAKESYS.CMD-is used after an outline of the utility. the Spectral Associates sign-on mes­
the NEWDISK command to create a . INT.CMD-returns to Color Com­ sage with the version number, 1 .25 . At
FLEX system disk. puter from the EXT mode. this time, you are prompted for the
• MEMEX.CDM-is used to modify • LINK. CMD-informs the boot month, day, and year. After entering
and examine RAM memory with the loader where the FLEX operating sys­ these, FLEX + prompts you with the
following single-key entries: tem resides on the disk. normal logo, + + + . Now you are in
S-sets the new scroll value. • MOVEROM .CMD-transfers Ba­ Spectral Associates' FLEX + world .
A-displays hex addresses you set in. sic and Extended Basic from ROM to The FLEX + world is somewhat
C-Iets you change the contents of
memory.
X-gets you back to FLEX.
• NEWDISK.CMD-formats a new
single- or double-density disk.
• P.CMD-directs the output to the
printer.
• RSDIR. CMD-reads the Radio
Shack directory .
• RSREAD.CMD-copies a Radio
Shack Basic file to a FLEX disk by us­
ing a byte-by-byte method and no date
conversion.
• R S B I N . CMD-copies a Radio
Shack binary file to a FLEX disk
using the same method as the
RSREAD.CMD.
• RSWRITE.CMD-copies a FLEX
disk to Radio Shack disk with no date
conversion. Photo 2. Spectral Associates' Supercharger

HOT COCO Jun� 1983 143


Re:FLEX ___�_________________ --,

different from the others. FLEX + character. starting w i t h A D D R I through


recognizes only one disk driver after The NEWDISK command , in the ADDR2 to ADDR3.
power-up. You must use the DRIVES double-density mode, writes a boot­ e P-lets you move the Monitor pro­
command to tell the system you have load for the Color Computer, eliminat­ gram to a block of memory. To in­
more than one drive. After entering ing the MAKESYSTEM command. voke it, type P(ADDR l ) and press
DRIVES.CMD, the screen displays FLEX + has a powerful and com­ enter.
the following message: pact monitor that can be relocated . To e S-examines and modifies. To in­
invoke the monitor, type M0N and voke, enter ADDR I .
ANY DOUBLE SIDED DRIVES? press enter. e T - d i s p l a ys t h e c o n tents o f
HOW MANY DRIVES (1 -3)? The monitor supports the following ADDR I through ADDR2 in ASCII.
PROPER DISK IN DRIVE O? single-key entry commands: Non-ASCII characters are displayed
e A-stores the ASCII value of each as periods.
The HIRES command is a resident key; you must enter them in consecu­ e V-is a byte-for�byte comparison
of the FLEX + system . (It is not on tive addresses. To terminate this com­ starting at ADDRI through ADDR2
the disk, but is attached to FLEX + , mand, press the enter key. To invoke with ADDR3, and so on.
so on boot-up it is loaded into memo­ this command, type in A (ADDR1 - e X-displays the contents of the A,
ry.) When you type LORES, the the starting address in hex) and press B, D, X, Y, U, P , C rebisters and can
HIRES causes 5 1 columns by 24 lines the keys. modify them.
of display to return to 16 columns by e O-displays the contents of memo­ e Y -searches all 64K for a string of
32 lines. Direct cursor addressing, ry from (ADDR l ) to (ADDR2-the data up to 256 bytes long. You invoke
clear, end-of-line, end-of-screen, ending address) in hex. this command by entering Y(byte l ,
home, and cancel line are some of the e F-fills memory with a set value. byte2, . . . byteXX).
important features of the HIRES Invoke this command by entering F The following disk-resident utilities
display. (ADDR l), (ADDR2), and the value. are Spectral Associates commands:
The keyboard software can gener­ e G-(GOTO), is a powerful com­ e DBASIC.CMD-transfers Basic,
ate every ASCII code from the Color mand. In addition to a GOTO com­ Extended Basic, and Disk Basic to
Computer keyboard . Generate the mand, you can also set break points. RAM . There is no return to FLEX.
control code in the usual manner by e H-displays the di fferences of e DRIVES.CMD-Iets you tell the sys­
holding down the shift and up-arrow ADDRI and ADDR2 in hex. tem if the drives are double or single sid­
keys and hitting the desired single e M-moves a block of memory ed, and how many of them there are.
Re:FLEX ___�__-------- -
----,-- -=_------,
'
e DUPO.CMD-is a single-disk copy be objective. I have not been able to is only single density at this time-a
routine. It prompts you for all files on test much software to see what runs big drawback .
the disk; otherwise, you must enter and what doesn't. Frank Hogg supports a serial termi­
each file name individually. Atomic City and Spectral Associ­ nal through the utilities program
e NEWDISK. CMD-NEWDISK ates use the FLEX interrupts , which called EXT, which uses the RS-232
lets you format a new single- or dou­ can only be tested out by running soft­ port. Atomic City comes standard
ble-density disk. When making a dou­ ware that requires interrupts. with an 80-by-24 display. By setting a
ble-density disk, only the NEWDISK Data Comp and Frank Hogg re­ switch, you can use normal video out­
utilities put the FLEX boot-up pro­ quire the Radio Shack disk controller put. Atomic City is the only system
gram on the disk, eliminating the and the 64K upgrades, plus their ver­ with a real-time clock.
MAKESYSTEM command. sions of FLEX. In the coming months, I plan on
e P. CMD-is the print command . Spectral Associates requires an running Fortran, Forth, Pascal, and C
e PBASIC.CMD-transfers Basic E-Ievel board with the Radio Shack languages ; word-processor and busi­
and Extended Basic to RAM Enter­ . disk controller, their Supercharger, ness programs; and as many utility
ing EXEC&HCDOO and hitting enter and FLEX + . programs as possible. I also hope to
returns you to FLEX. Atomic City requires their disk-con­ provide jump-table information on all
e PLA Y . CMD-is used when a troller board and TSC general FLEX. four sources of Color Computer
binary file needs Basic. To invoke All four companies use the same FLEX . •
PLAY.CMD, type PLAY. (binary file general FLEX utilities from TSC. You
name) and press enter . PLAY will can find differences in the extra A tomic City Electronics ' address is
load Basic and Extended Basic and utilities they all provide. 3195 Arizona A ve., Los Alamos, NM
modify them to run in RAM Then it . Data Comp and Frank Hogg pro­ 87544. The address for Frank Hogg
brings in the binary file and exe­ vide you with utilities to read and write Labs is 770 James St., Syracuse, NY
cutes it. a FLEX file to Radio Shack and back. 13203. The addressfor Data Comp is
Atomic City and Spectral Associates P. D. Box 794, Hixson, TN 3 7343. The
Conclusion have no FLEX conversion to Radio address for Spectral Associates is 139
All four FLEX suppliers have done Shack or from Radio Shack to FLEX. Harvard A ve., Tacoma, WA 98466.
an excellent job of bringing FLEX to Data Comp, Frank Hogg, and
the Color Computer. After comparing Spectral Associates can handle single­ Write to David Wasler, Box 2919,
the different versions, it is difficult to or double-density disks. Atomic City Fullerton, CA 92633.

PRIIITII RS PIIl rIft ..


Okidata .'orollne ••
'824.88 UPS D.Lln.D

;,ur� 2
.: .. ::E
C.llo/I F·l0 S,.rwrlle,. 40 _
Pa_ or RS-23IC. . . It .- .
�:"u:..c!,0�'.:::L.
F·l0 Tractor . . . . . . . __

DaI.,.,.. .r

Mlcrollne 93. . . . . . . . . . . . . . . . . . . . . . . . . . . ........

c. Itoh F-1 0 .farwrlter


$1 378.88ups D.LlnR.D Ollaywril., 2000 w/Cllble
(48K bull..,. . . . . tun..
SMeIl_r . . . . . . . ..
Forma T,aclor . . . . . . . . " ....
me.. I nfor·mation & Order.
D .... lo
DIabIo 820. . . . . .1 ...... ·
(803)-881 -9855
. . . . . ......... , "\. Orders Only: (800) -343-0728
"r ."ronl..
, - --- ---� . No H idden Charge.
t r
:��i�:�:�i'�':Pt��g��;�:��it��:��r.���:��s ���:;:�g'o��de�'�
accepled ( $ 1 0 fee added)-No purchase orders accePted-No foreign Of
APO orders accepted-Minimum $50 per order-This ad prepared in
February prices are subjec1 10 change.
OurComputer Showroom Js now opsn in..Amhelst. NH

0._15.. . .... ... =



Gemlnt l0. . . . . . . . . . . . . ....,..
wIRS-23IC . . . . . . . . . .
..
w/RS-23IC .. . . . . . . ft..

Specify Parallel or R8-232C. 40 cpa


MILFORD, NH 03055 0 TELEPHONE (603) 881 ·9855

HOT CoCo Jun( 1983 145


FLEX - 08-9 LEVEL ONE - U N I ,FLEX - 08-9 LEVEL TW
ONLY GI M IX Systems can be configured to run any of these.
GIMI X systems ut i l ize the most powerful 6809 operat i n g systems: F LEX, U n i F L EX, OS·9 LEVEL O N E and TWO ·· the systems
the PROs use. This means a wide select i o n o f software to choose from as wel l the abi l i t y to develop sophisti cated, m u l t i ·
user/m ult i·tasking prog.rams on y o u r G I M IX System.

The G I M I X C LASSY CHASS ISTM consists of a heavy·welght aluminum mainframe


c a b i n et w h i c h provides more than a m p l e protection for the e l ectronics and 1 or 2 o p t i o n a l
5 V. " drives.
Bac kpanel connectors can be added for conve n i e n t connect ion of 'term i na l s , pri nters,
d rives and other peripherals.
A 3 position locking keyswitch enables users to disable the front panel reset button to pre·
vent accidental or unauthorized tampering with the system.
The GIMIX system mother board provides f i fteen 50 pin slots and eight 30 pin I/O slots . .
the most room for expansion o f any SS50 system available. The o n board baud rate
generator features 1 1 standard baud rates, 75 to 38.4 K, for maximum versat i l ity and com pat i b i l ity with other systems. Extend·
ed address decod i ng al lows the I/O block to be addressed anywhere i n the 1 megabyte address space. All components feat ure
Gold plated connectors for a l i f et i me o f s o l i d connections. All boards are f u l l y b u ffered for max i m l,l m system expansion.
Each GIMIX M a i n f rame System i s eq u i p ped with an i n d u st ri a l quality power s u p p l y feat u ri n g a ferro-resonant constant
voltage transformer to i n s u re against pro blems caused by adverse power i n p u t cond i t i o n s such as A.C. l i n e voltage f l uctua·
tions etc. The s u p p l y provides 8 volts at 30 amps and p l u s or m i n us 16 volts at 5 amps, more than e n o u g h capacity to power a
f u l ly loaded system and two i nternal drives.

The 2M Hz G I M I X 6809 P L U S C P U boa 'rd i n c l udes a t i m e of day clock with battery back·up and 6840 pro·
grammable t i m e r to provide the programmer with conven i e n t , accurate tim e reference. Later add i t i o n of 95 1 1 or 95 1 2
arithmet i c processors i s provided for o n the board. The u n i q u e GIMIX d e s i g n enables software s e l ec t i o n o f either OS·9 or
FLEX, both i n c l uded in many com ple te GIMIX systems.

GI M I X STATI'C RAM board s req u i re no c o m p l i cated refresh t i m i n g cyc les or clocks for data retention.
G I M I X mem ory boards are g u aranteed for 2 M H z operat i o n w i t h no wait state or clock stret c h i n g req u i red.
Our low power N M OS RAM req u i res less than 3/4 amp at 8V for a f u l l y p o p u l ated 64K board. For c r i t i c a l s i t uations, our non­
volat i l e 64K byte CMOS stat ic RAM boards with built i n battery back·up retain data even with system power removed. A f u l ly
charged battery w i l l power t h i s board for a m i n i m u m of 21 days. A write protect switch perm i t s CMOS boards to be used for
PROM/ROM em ulation and software d e b u g g i n g .

The G I M IX 'DMA control ler leaves the processor f r e e t o perform o t h e r tasks d u r i n g d i s k transfers · an i m por·
tant feature for mu l t i ·user / m u l t i · tasking systems where processor time al location is critical. The DMA board w i l l accomodate
up to 4 drives 5 '14 " or 8" in any co m b i nation r u n n i n g s i n g l e or d o u b l e density s i n g l e or d o u b l e headed. Programmed I/O Disk
Contro l lers are also avai l a b l e .

G I M I X systems a r e desig ned with u l t imate RELIABI LITY i n m i n d . You can choose from the b e l o w featured s y s t e m s o r
select from o u r wide variety o f components to b u i l d a c u stom package t o s u i t y o u r needs.
GIMIX 2MHz 6809 System i n c l u d i n g : CLASSY CHASSIS, 6809 PLUS CPU BOA RD, 56 KB STATIC RA M , 2 S E R I A L PORTS
W / CABLES, G M XB UG MON ITOR, FLEX, and OS-9 LEVEL 1 . . . . $3248.49 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

FOR TWO 5 V. " 40 TRACK DSDD DRIVES ADD . . . . . $ 900.00 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

GIMIX 1 28KB WINC HESTER SYSTEM i nc l ud i n g : CLASSY CHASSIS, 6809 PLUS CPU BOA R D , 1 28KB STATIC RA M , 4 S E R I A L
PORTS W/CABlES, 5 '14 " 80 TRACK DS DD FLOPPY D I S K D RIVE, 1 9 M B 5 '14 " W I N C H ESTER H A R D D I S K, OS9 L E V E L 2, E D ITOR
A N D ASS E M B L E R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $8998.09
50HZ Versions A vai/ab/e, 8" Drives Avai/able - Contact GIMIX for Prices and Informa tion.
The Sun Never Sets On A GIM/X!
GIMIX users are found on every continent, including Antarctica. A representative group of GIMIX users
includes: Government Research and Scientific Organizations in Australia, Canada, UK and in the U.S.;
NASA, Oak Ridge, White Plains, Fermilab, Argonne, Scripps, Sloan Kettering, Los Alamos National Labs,
AURA. Universities: Carleton, Waterloo, Royal M i l itary College, in Canada; Trier in Germany; and in the
U.S.; Stanford, SUNY, Harvard, UCSD, Mississippi, Georgia Tech. Industrial users in Hong Kong,
Malaysia, South Africa, Germany, Sweden, and i n the U.S.; GTE, Becton Dickinson, American Hoechst,
Monsanto, A" ied, Honeywell, Perkin Elmer, Johnson Controls, Associated' Press, Aydin, Newkirk Electric,
Revere Sugar, HI·G/AMS Controls, Chevron. Computer mainframe and peripheral manufacturers, IBM,
OKI, Computer Peripherals Inc., Qume, Floating Point Systems. Software houses; Microware, T.S.C.,
Lucidata, Norpak, Talbot, Stylo Systems, AAA, HHH, Frank Hogg Labs, Epstein Associates, Softwest,
Dynasoft. Research Resources U . K .. M i c roworks. Meta Lab. Computerized B u s i ness System s.

GIMIX I n c . reserves t he right t o change pricing and prOduct


speecilicalions at any time without lunher notice.

GIMIX" and GHOST® are regislered trademarks 01 GIMIX Inc.


FLEX and UniFLEX are trademarks 01 Technical Systems Consultants Inc.
1 337 WEST 37th PLACE
C H ICAGO, I L L I N OIS 60609
(3 1 2) 927·55 1 0
I:lmlXlnc. The Compt/ny thet del/rers

OS·9 is a trademark of Microware Inc. TWX 9 1 0-221 ·4055 ... 54 Quality Electronic products since 1 9 75.
© 1982 GIMIX Inc.

146 HOT COCO Jun� 1983

You might also like