Professional Documents
Culture Documents
.
.
June 1983 USA $2.95
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
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
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
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.
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
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
... 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-
- .
".
-I
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.
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 ____ _
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.
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)
10 MB .... . . . .. $1695.00
COmpanyName _____
Md�
• _____
•
City State Zip
• MEDIA FOR LESS � •
_______ _____ _____
REVIEW CONTENTS
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 .•
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.
,., 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
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!
were taken of the politician's beautilu I daughter and the local footba l l • DYNAMIC ELECTRONICS SOFTWARE
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
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
-'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
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
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
• 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 �---------------------.
\
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
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
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 .
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.
'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
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
-
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.
*
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 ''')
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 "
"1r:===r= ===::=;:�51
r:-:-��:;.ol
IIIIII
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
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
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
- -
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 .
O R D E -R YO U R DYNACALC TO DAY !
Computer Systems Center
Che.terfleld, MO 83017
.... 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
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'
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
. . . . . . $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
�
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
Y' See List 01 Advertisers on page 138 HOT COCO June 1983 43
GAME
BY CHARLES LEVINSKI
CAVE HUNT
�
I
s p e ciallY b p e . '_B
O U g h out th e ta ; ea ve rton , OR
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 • • •
- -- 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 rd�
a�
== N� · ________ ____ _______ _ E�� ______ _
o�
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
32 K ARCADE GAMES -
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
.- -
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
.•
CIRCUS . . . . . . . . . . . . . . . . $ 1 0 .00
Develops Reading Skills
• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •
•
(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
BY RALPH TENNY
TAPE RELIABILITY
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.
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
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?
SEND FOR
�.
TEXT PRO II Features Over 70 Commands In All. Disk ... $79.95 CHECK-VISA-MASTERCARD
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
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
.
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 .... - _ _ _
N am e :
A d d re a a '�_______________________________________________________________________________
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
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
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"
BY NORMAN MANCHEVSKY
Program Listing /
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%
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
System Requirements
+ 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
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
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
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
... 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�
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.)
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.
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
.... 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
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.:!: .. .
... .. . . .. . . . . .. .
. . . .
. . ... . . .
. . . . .. ...... .... . . .. .. .. .. . . .. .. .
. . . . . . . . . . .. .. .
. .. . . . ... .
. .. ...
. . . ... .. .. . . . . . . ....
.. .... .... .. . .... .... .... . . . . ... . .
OunkeYN\UnkeY A ND
STA AFIAE
32K 1 6K
'" 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
spring-loaded door.
COLORWAREUGHTPEN
• Same size and specifications as Radio Shack ROMpak
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
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.
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
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
" See List 01 Advertisers on page 138 HOT CoCo Jun( IQS3 77
UTILITY
BY JERRY HOGAN
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
'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
System Requirements
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
�
, . starting at $20 . 00
. . . .
•
.
•
. .
.
• •
.
•
.
• •
.
•
.
•
•
.
• • . . • . . .
�
W
;
W
Dealer inquiries invited. �
� <
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
. ..
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
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.
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.
" 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 "
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.
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 =
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
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
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 mation.
© 1983 The Program Store,
White Flint Mall, Rockville Pike, Rockvi lle, Md.
Coming Soon to Boston, Philadelphia and Pittsburgh. Inc. _
___
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
System Requirements
16K RAM
Exteaded Color Buk
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
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.
1
·
RE.� \...
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 .
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
___ 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 __________
________________________
,., 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 =
/-�
�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
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 -
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.
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
... 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 , .
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
... 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
=
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
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.
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
.A\.ATARI
COMPIITEI
DISCOUNT PRICED D15:' $548
HOME COMPUTERS
Commodore 64
•ROM sCALL VIC 20. . . . . . .
•
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
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
.- 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.
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.
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.
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 ,
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
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
Lis/ing continued
00630 BNE MRGI NO, CONT I NU E
i
Here 8re just a lew of OUI f ne offers . . .
BUY DIRECT call TOLL FREE 10' lull inlo,mation.
>M� bo.lc 22
CCR-8're<XltcMr
Coli
Epaon FXeo
'M .....
315 6&lC Ram CNPl
699
DMP·1(10
'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 -
Name
Address
-J
"l City State____.s.-
Zip.______
CQ
______
" 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
Park, MD 20653.
116 HOT CoCo June 11)81
f··· ..········..··················· ··
J
:
•
POW ER BYTE SO FTWAR E TM i
•
Presents
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 ! !
�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
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
�
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
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 •• • • •
.
� $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
•••••••••••••••••••••••••••••••••••
• 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.
.- 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
3-0 G R A P H I C A D V E N T U R E
. . I . . . . .
" "
lUIS.
"
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 '
Fast Machine Code . H i-res Color G raph ics • Exciting Arcade Acti o n and Sound
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
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-------,
1 , (2.1)
4 I
I
(4.3)
L: I
,
I
,
•
,
2 I
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)
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).
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)
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
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-
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
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)
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.
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
A
800-343·0728 ---
-- ... 1 54
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!
�
: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
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:
..
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
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
For further Information from our advertisers, pie... use the R.ader Service card.
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
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
'" 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.
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.
•
••
I
· INDICATES BUY arwS SELL Illnab
• No Ou t-ot-State Taxes
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
�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
;,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
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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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.
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.