Dale’s Atari 800 Games › ACE newsletters

ACE newsletter, March 1984

The newsletter of ACE, the Atari Computer Enthusiasts of Eugene, Oregon. Read the scanned issue (PDF).

Scanned from my own copy of the newsletter. I sent my scans to Kay Savetz in 2021, and Kay put this one on the Internet Archive as ACE_1984_03.

In this issue:

Below is the text of the whole issue as read by machine OCR (Tesseract) from the scan. It hasn’t been corrected, so expect mistakes, especially in program listings. The PDF is the real thing.

Page 1 (scan)

Avani
e Ny Computer

ENTHUSIASTS
3662 Vine Maple Dr Eugene OR 97405

MARCH, 1984
Mike Dunn & Jim Bumpas, Editors

Ft ale Rierthee Mertie

etter reee tent cece Rieter Rent cee Hit reams titan sso iter saan “Rent “Rta!

Sydney Brown: KONG
a fantastic new game from Australia

Page 2 (scan)

News and Reviews

by Mike Dunn, Co-Editor

This month we continue having some very nice games. Sydney
Brown from Australia has sent a number of very fine games from
Australia for us. The first is KONG which is of commercial quality, as
are many of his games. If you have a compilier, the game might be as
good as any on the market. Another fine game from Stan Ockers, as
usual very nicely done, in ACTION! This game is also a very nice clim-
bing type game. Also in ACTION! is a Demo program from the author
of ACTION!, Clint Parker. More programs in PILOT, and some machine
language utilities.

| notice the last issue of Softside not only doesn't have anything at
all for Atari, there are no listings at all — no reason given either. Since
most of us subscribe to Softside for the programs, and there are no
programs, | wonder what it all means. | recieved a very beautiful book
from Reston! Ashton-Tate, Through the Micromaze, a Visual Guide
from Ashton-Tate, by Wayne Creekmore ($10). An outstanding work of
art, it is a beginners guide to computers and their applications.
Designed for the business computer user, | could recommend it for
any one.

For the first time since | have had an Atari, | am writing an article on
a non-Atari computer. When we began the ACE Newsletter about 4
years ago, | had to write a simple word-processor since none for the
Atari had been released. Using the DOS as an Editor and a simple
BASIC program for a text formater, the first issues of ACE were hatch-
ed. About 9 months later, the first wordprocessor for the Atari was
developed, Text Wizard by DataSoft. This very easy to use, versatile
program became the mainstay for us. About 6 months later came Let-
ter Perfect, a more powerful program, but which uses non-Atari DOS
files, so Text Wizard remained the best for the newsletter. About a
year and a half ago, Stan Ockers sent us TinyText, the first public do-
main text editor particularily designed to send in articles for the
newsletter on cassette. This has been gradually upgraded by Stan and
others to a much more powerful wordprocessor. AtariWriter was
released last year, and is now the one | use the most for the newslet-
ter, although | still prefer Letter Perfect for longer papers. | now have
the Austin Franklin 80 column board version, and having 80 columns Is
a nice advantage.

Now | have an entirely new kind of peripheral for my Atari. A NEC
'8201A Lap computer, very similiar the Radio Shack Model 100. This is
a small notebook size machine with a built in 40 column by eight line
LCD screen, a very nice keyboard, and several built in programs, in-
cluding a nice text editor. It is powered by re-chargable batteries, and
using CMOS memory, your files stay in place when the machine is
turned off. It includes a fine terminal program for communicating with
a modem (not included as in the Radio Shack) or with another com-
puter, a very powerful BASIC, and a fine cassette based storage
system using filenames and searchs your cassette to find the pro-
gram. Any casette recorder can be used, but the one designed for it
even has a highspeed search function! Another option is a 32K bubble
memory cartridge which acts as a memory disk drive. It can be remov-
ed and will hold its files for 6 months without additional charging.

‘What does all this have to do with my Atari? | find the screen on the
desk is a more natural way to write and | can carry the unit around and
write in my office or whereever. Then, using a RS-232 “null” cable (a
modem cable with leads 2 and 3 reversed on one end), | can load the
s right into my Atari for final Editing and printing. The easiest way
to do this is to use Atari Writer, and “Load” from "R1:”, sending the
file from the NEC using the built in telecom program. Very easy and
very fast. After using this nice portable machine, | think this is what
the next generation of home computers will be like — much more han-
dy than the big monsters we all have! A truly useful item.

You can now get an official ACE Iron-On Patch from us. George
‘Suetsugu took the offical ACE logo given to user groups by Atari and
‘our cover for the April 1983 issue, and made iron-on patches. One will
be included for free with each order from the exchange library, or $1.00
for extras. Get them from our librarians, Ron and Aaron Ness, 374
Blackfoot, Eugene, OR 97404.

BUMPAS REVIEWS

More on the new drives:

With the help of the folks at Computer Palace and my friend Nick
Chrones, I've had the opportunity to play around with the 3 new drives:
the ASTRA 1620, the TRAK AT-D2, and the INDUS GT. I’m personally
using the Indus, but my opinion of the other two drives has improved
over the past couple of weeks.

I'm not going to discuss the compatibility problems caused by com-
mercial software which use illegal entry points to the operating
system. | think the Indus is a little more compatible than the other two,
but | admit this opinion is 2d hand. | am going to discuss compatibility
problems between the drives in double density mode. In single density
mode each of the drives can read and boot a disk formatted and writ-
ten with any of the other drives.

In double density mode, | have found some problem booting disks
‘on one drive which were formatted and written on another drive. | did
not discover any problem in this area on the Astra. And disks format-
ted and written on the Astra seem to boot fine on either the Trak or the
Indus. And disks formatted and written on the Trak seem to boot
perfectly well on the Indus. However, several disks formatted and writ-
ten on the Indus failed to boot on the Trak. We tried several operating
systems, including DOS 2.0, DOS XL versions 2.2 and 2.3, and MYDOS
version 3.5.

We found we could boot a DOS on the Trak and then read files on
another disk. These files run just fine, Next, we formatted a disk and
wrote the TADS modified DOS 2.0 (explained in the Trak documenta
tion). A disk formatted and written according to the Trak documenta.
.n boots and runs fine on each drive. My conclusion is the Trak is
slightly less compatible in the double density mode than the other two
drives. If you experience any compatibility problems, just boot up the
Trak according to its documentation, and then read in files from the in-
compatible disk separately.

‘The Astra and the Indus both provide the user with a version of DOS
XL. The Astra comes with version 2.3 and complete documentation.
The Indus comes with version 2.2 and almost no documentation, and
the information provided has some errors. I've heard the Indus people
will provide full documentation to users requesting it. I've made my re-
quest, but have not received it yet. There are differences between the
two versions. Version 2.3 with the Astra has four additional files:
DOSXL.XL with 58 sectors, and 3 command files of one sector each:
NOVERIFY.COM, VERIFY.COM, and RS232FIX.COM.

The Indus comes with a disk containing a word processor produced
by Elcomp. They also promise to send a spreadsheet and database
manager, but these were not included with the Indus when | bought it,
if you aré considering buying the Indus and the software is an induce-
ment to you, | advise you to think again. Buy the Indus ONLY because
it's the drive you want.

It is a nice drive. It's the quietest of all 3. The front panel buttons
permit you to protect an unprotected disk, to cycle through 3 density
modes (610 single, 815 double, and 1050 dual), to display the track be-
ing read, and the error number of any error detected by the drive. The
Astra provides only a busy light. The Trak provides lights to show
single or double density mode and the track being read. Each of the
drives will automatically switch to the mode used by a disk inserted,
but the mode of the Indus can be altered by using the switch on the
front panel, The others cannot do this, although all three provide soft-
ware control over the density modes. The Trak and Indus have dip
switches in the rear panel to select the drive number from 1-4,

‘The power switch on the Indus is in the rear (the others are in the
front). This is inconvenient, and the power cord connection is next to
the switch on the outside edge. Its connector is not very positive, so |
find myself disconnecting the power when trying to turn the power on.
The front panel is pretty full, but there should be room for a power
switch someplace. The indus also provides a fancy plastic lid which
closes over the front of the drive. This probably helps keep dust out of
the drive, but you have to remember to use it.

Advanced Programming Tools
(Tricky Tutorial no. 14, by Educational Software, 4565 Cherryvale Ave.,
Soquel, CA, $30)

This is an excellent aid for learning to program better. The 51-page
manual takes you step-by-step, explaining the use of the USR func-
tion.

‘Seven routines are provided, with complete documentation of all
the coding required to produce the subroutines. These routines may
be used in programs you write. All they ask is for you to give them
credit if you use them.

The tutorial is helpful if you want to create and use other machine
language routines in your programs. The TT#14 disk also contains a
very good character editor and another program called “LINKBAS”.

Page 3 (scan)

This program alone makes the disk a worthwhile addition to
anyone's library. LINKBAS takes binary data from a compiled
assembly language routine, moves it to a string variable to be used as
a USR call in a BASIC program, and even generates the actual BASIC
code automatically! All the user has to do is ENTER the generated
code into the program.

These tutorials are getting better and better. ES! deserves our ap-
preciation for these excellent programs.

The Programmer's Toolkit
(Sure Soft, 8177 S. Harvard, suite 428, Tulsa, OK 74137, $30)

This program is a little misleading. The documentation suggests the
user consider this disk as something akin to a toolbox used by a
carpenter to build a house. However, this toolbox must be left inside
each house the carpenter builds.

The disk contains over 30 machine language routines and about 40
demonstration programs for using the routines. The advertizing and in-
troduction to the documentation lead one to believe one may use
these machine language routines in one’s programs. Well, you can, if
you boot up the Toolkit disk before you load and run any BASIC pro-
gram using the supplied routines.

So, actually the programmer is not putting these routines into any
Program one might write. Users will not learn much about programm.
ing by using this disk unless the object code can be disassembled to
study the machine language routines. But if the user has the skill to do
this, he probably already has his own personal “tool kit" of most of
these routines. Some of the more interesting routines include a string
editor, right and left justification, and a routine which searches a str-
ing for the occurence of a sequence of 1 to 256 characters. This is a
good program to excite a user about the possibilities of machine
language routines in BASIC programs.

If you don't mind not being able to share the programs you design
with others and are content to have to boot up “The Programmer's
Toolkit" before loading and running any of your programs which use
the routines supplied, then this disk does a creditable job.

CARRIER FORCE
erlin Rd., Bldg. A-200, Mountain View, CA 94043, $60)

(SSI, 883

Carrier Force is a fun-to-play hide-and-seek naval wargame for one
or two players. It is really 4 games in one. Players may choose to play
‘one of four campaigns: Coral Sea; Midway; Eastern Solomons; and
Santa Cruz. In the one-player mode the Atari plays the Japanese. Four
levels of difficulty may be played. The game-turns are hourly, and each
campaign will end in about 4 days, if the players do not end it sooner.

The four games are played on one of two maps, each of which is a
grid of hexes approximately 30x30 covering almost 4 million square
kilometers each. The maps scroll across approximately 8 screens. The
islands are green, the sea is black, and the task forces are blue (USN)
and yellow (IJN).

SSI claims every ship and aircraft is represented in this game. |
don't doubt the claim. Players may move each individual ship and
plane. Aircraft may be armed with bombs for attacking either ships or
land bases. Planes must be readied on the runway before they may
take off. Weather is a factor as one must watch wind direction and
cloud cover in order to most efficiently use the forces available.

A large red cursor is used to make moves on the screen. In the
2-player mode, both players cannot watch the screen at the same time
except during the joint combat phase at the end of each turn. I've been
unable to get very far into any 2-player scenario except for Midway,
because it crashes on me. But the solitaire games work fine. SSI has a
good reputation, so if it is a bug you can be sure they'll fix it

Most of the coding is in BASIC, so it should be relatively easy to

ify the composition of the task forces to create hypothetical
scenarios. | plan to enjoy Carrier Force for quite awhile.

Last summer, Consumer Guide magazine called Mike Dunn to ask
him to write a book of reviews of top Atari software for a fall publica-
tion. Mike said he had no time and suggested they ask me. They
wanted someone from the famous ACE to do the job. So they did. And
| did. | put together a team of reviewers from among ACE members in
California and Oregon and we finished the work in less than 3 months,
The book of reviews of the Best Atari Software (wire-bound, $5) has
now been on the market for over a month. The book is the result of the
work of about 2 dozen ACE members in Oregon and California. It con-
tains reviews of nearly 200 pieces of the best software as of
September, 1983. We did more than 200 reviews, but they omitted
about 30 of them, including Data Perfect, Armudic, Synassembler, and
some other good items. They also failed to credit all the people work-
ing on the project. Even my name appears only in small print on an in-
side page. Each reviewer wrote about the items they reviewed. | re-
wrote each one at least twice. And editors re-wrote each review at
least twice more after | sent them off. Nevertheless, the book is one of
the most helpful of its type on the market — especially given its
reasonable price,

— Jim Bumpas

THE RETURN OF HERACLES

Quality Software $33

The Return of Heracles is a graphics adventure exploring Greek
mythology. One to four players may become an ancient Greek hero,
heroine, or even a winged horse. You move your character around in
ancient Greece, gathering gold, slaying opponents, sharpening skills,
and trying to complete the twelve tasks set by Zeus, head god of
Olympus. Several heroes may work together, and a single player may
control several heroes at once. There are nineteen heroes at the begin-
ning, but others may be found along the way. But once a hero is dead,
he can't be resurrected.

The Oracle of Zeus is where characters discover the twelve tasks of
Zeus. Players must travel to the Oracle and approach the sacred tree
of Zeus. Then he reveals a task. Tasks do not have to be done in the
order assigned by Zeus. The Oracle of Delphi can help the players.
Players must first travel there, and for a suitable offering of drackmae
(gold), she will give a clue to help. Sometimes the clue isn't for the
task Zeus has currently assigned. If players can't handle the current
task, they can go back to the Oracle of Zeus and get a new one.

An interesting feature is that, after start, the game is almost totally
controlled by joystick. The exception is the SYSTEM RESET button
Pressing this will start the game from the very beginning (if THE
RETURN OF HERACLES disk is in drive #1). You can use the joystick
to move your character, stop, rest, defend or attack. Using the KNOW
THYSELF option, a player can examine his traits, his weapons, and his
armor. Other commands include add hero, desert, change message or
Monster speed, save game, and drop armor or gold.

The combat system is quite good. By using probabilities based on
dexterity, weapon skill, size, and speed, a well-rounded combat
system is created. A touch of luck is included as characters always
have a small chance to hit or miss. Also, weapons can break at the
wrong time, or a lucky hit can do more damage than normally possible.
The two types of combat are normal (using a sword), and hand-to-hand
(using a dagger). You must be adjacent to a player in order to attack it,
and in the same space as an opponent for hand-to-hand. You must
always attack a hand-to-hand opponent before an adjacent one,

The instruction book includes a glossary of important characters
and places, and a chart with ability scores of everybody in the game.

The graphics are excellent. Sounds are also quite good. It is obvious
the writer did some research for all the names and places. It is very
well done. This is for the true adventurer, but at the intermediate level,
A bit of Greek mythology helps too. An’excellent buy.

— Aaron Ness

FROM THE LIBRARY

This past month has, again, been a busy one. The inquiries
generated by the article in the December issue of Antic continue to
come in. We have noticed a large increase in the number of requests
for cassettes. Most seem to be from people who received their com-
puters for Christmas.

For those of you who are new to the computer, we will pass along
this hint from the Jacksonville (Fla) ACE Newsletter. Don't take a
chance on ruining your tape or the pressure roller in your cassette
recorder. As soon as you have finished loading or saving that program
- HIT THE STOP/EJECT BUTTON. It is possible to “dent” the tape or
get a flat spot on the pressure roller if you leave the play button down
without the recorder operating.

New items this month: “Official” ACE iron-on patches. See the April
1983 newsletter cover. These are about 3 inches square and come in 4
colors. We have obtained a small supply and will send one free with
each disk or tape ordered during the month of March. Please specify
Ted, green, blue, or black and if possible we will send that color. Addi-
tional copies will cost $1.00 each.

Thanks to the efforts of Jim Carr and Deloy Graham, we now have
documentation available for the Source Codes Disk and Utility Disk
#2.

Things to watch for in the near future: a disk of goodies in FORTH, a
disk of games in ACTION, and perhaps, another utility disk.

Things we need: We have requests for programs in chemistry,
physics, and math programs for geometry and above. If you know of
any programs of these types that are public domain, let's get together.

Let us know what kind of programs you need. Just drop a note to
the editors, the library or leave a message for the SYSOP on the
bulletin board. We will try to see what we can find.

— Ron Ness

Page 4 (scan)

ERACE

The Incredible Laboratory
Strategies in Problem Solving

The Incredible Laboratory (Sunburst Communications, $49) gives
you the chance to create your own monsters (some quite silly) by com-
bining chemicals from lists provided, Each chemical will alter the ap-
pearance of a body part, such as head, eyes, arms, etc. There are six
different possibilities for each body part so there are many possible
combinations to try and produce.

Even though making a particular monster is very challenging, there
is much more to be learned from this program. The Incredible
Laboratory was designed to help students learn about the trial and er-
ror process and to help them develop. good note taking skills.

In the lower level of play, a given chemical will produce a constant
effect, and-it is up to the student to determine what the effect is. By
selecting chemicals, or by leaving them out of the “foumula”, the ef-
fect of the different chemicals can be learned. Good note taking will
be a big help in keeping things in order.

When you think you know how to control your experiments and
make a particular monster, the challenge mode of the game can be us-
ed to test your skills.

The graphic drawings of the monsters are creative without being
gruesome. The laboratory and the monsters are very well done and add
to the quality of the program.

There are five different levels of play from novice to scientist. In the
upper levels more chemicals are used, They may be combined to pro-
duce new effects, and each time the program is run their effects
change. The challenge round can accommodate two players, and each
of the three main levels has a challenge round.

The ground rules given as the instructions at the beginning of the
game are not very complete and can lead to some some confusion of
the objectives of the game portion of the program. But the teacher's
guide has all the information needed to run the program and get the
most out of it. There are several aids and lessons included that will
help introduce the student to the processes of trial and error and
organized note taking. Although the program is intended to be used ir
the classroom, with the help of a parent it can be just as effective in
the home. | strongly suggest the manual be read and the supporting
material used as needed to get the most out of this program.

‘As with the other programs | have seen from Sunburst Communica-
tions, the documentation of the program is outstanding. Ifthe program
is used as suggested in the teacher's quide a great deal can be learn-
ed while making monsters.

‘Some criticism has come up because all of the chemicals are not
names of real chemicals, but then have you ever seen a real monster?

The Incredible Labratory is intended for use by those in the third
grade and older, with a reading level of at least the third grade. Adult
supervision and instruction will be necessary at times. The program
requires 48K, a disk drive, joystick is optional, and will run on all Atari
computers.

— Robert Browning

SPARE CHANGE

(Broderbund Software, $32)

Occasionally, a software company will release a game that's a lot of
fun to play, maybe a little strange, and hilarious to watch. If this kind
of game interests you, then this is your disk.

‘As the owner of the Spare Change Arcade, you must keep your sup-
ply of game tokens in hand. But that's not always easy. Especially
when two “Zerks” which escaped from a video game are out to steal
all your tokens and put them in a piggy bank so they can retire.

You must move your animated man under a token machine and grab
a token. Then you drop it in your token bin. If all the token machines
tun out, you can go snatch a dollar from the cash register and reload
the machine. Sound simple? Not really, when those two Zerks are fran-
tically checking machines, and taking them from your bin.

The Zerks will cooperate to keep you from taking back the token.
They will pass it back and forth, and dodge your man in an effort to get
the token to the piggy bank. They have a number of methods for
depositing the token in the bank. Sometimes they will drop-kick it in,
or just toss it. Fortunately, they are very poor shots, and miss frequer
ly.

‘There are ways you can get back at them, though. There is a jukebox
which will play a nice tune. While the Zerks dance wildly to this tune,
you're collecting tokens! There are many other funny ways to delay
the Zerks, but you'll have to find them.

The graphics and sound are very well done — especially the
musical scores. Overall, this is a very good game, and | hope to see it
on this year's best seller list.

— Tim Ebling

Review: RAINY DAY ACTIVITIES FOR THE ATARI
(Nancy Kozak Mayer, £4.D., Reston, $12.95)

The author, Nancy Kozak, aptly describes Rainy Day Activites for
the Atari as a book “designed to make the shortest possible program
listings so that parents or older children would not have to spend so
much time typing in the program that there would be no time left over
for having fun." And, thus she has provided parents and young
children, aged 3-9 years, with program listings (none over 20 lines long)
for vidoegames, letter, word and number games, musical activities,
and graphics.

The intent of this book is not to teach programming, but to make
available over 50 simple program listing for children (and their parents)
to successfully type and enjoy. Miles, my 5-year-old computer en-
thuisiast son, was able to list the shorter programs with ease. The sug-
gested variations for many of the programs gave him the opportunity
to systematically change programs. This is a real plus, since he is in-
clined to list all programs he works with and randomly change listings
just to see what will happen. Additionally, the book offers clear in-
structions including a “how it works”, and “how it looks” section with
each listing.

As user friendly as this book is, some skills in programming and
knowledge about how one’s computer works are needed. My
knowledge of computers centers around using word processing pro-
grams, data base systems, and evaluation and use of programs
created by other, more patient souls with programming skills. Luckily,
Miles, my five-year-old, knew the Basic command for saving programs
to disks, and had enough knowledge about program errors and pro-
ofreading and Basic editing commands to debug incorrectly listed pro-
grams. He patted his mother on the shoulder and said, “Mom, it's pro-
bably easier to list programs on rainy days."

Rainy Day Activities for the Atari is a recommended addition to the
library of families who own Atari computers. It could be especially
useful for families who have little programming background, and/or
young children beginning to program. The book can be independently
used by a 5-year-old (with good reading skills). It offers a variety of ac-
tivities, including some interactive games for more than one child (or
parent). Listings are short, and often program variations are provided.
Of course, the ultimate test is. . will your child use it. My son, Miles
says he thinks other children will like and use Rainy Day Activities.

— Alice and Miles Erickson

PILOT'S MEASURE

by Carl Schwartz (ACE of Cleveland, 1/84)

Measure is a PILOT program designed for children. It provides prac-
tice in measuring or guessing the size of a line. While the ‘lesson’ part
‘of this program is simple the reward can provide a iarge variety of
designs. The turtle is told to DRAW, TURN, and repeat (the drawing) a
certain number of times. The entire drawing routine is located on line
76.

Programming in PILOT is easier and faster than BASIC. If you have a
child from five to twelve, or have some difficulty writing original
BASIC programs, perhaps PILOT can help. Since PILOT uses more
English type statements it can provide a user friendly environment for
a beginner. For example, instead of using a number, PILOT's version
of GOTO (called J, for jump), tells the program to jump to the “LABEL
(YOU give it a name). Also strings do not need dimensioning, text input
is greatly simplified, and a LOGO like (moves according to his own
current direction) turtle quickly draws your graphics. For the more ex:
perienced user large print screens and many of Atari BASIC’s POKES
(called Pointers) are supported.

‘A personal note: | am a special education teacher looking for good
public domain software. Due to the special needs of the children in my
school most commercial software is useless. Please write me at the
Ashtabula County Board of Mental Retardation, 2506 South Ridge
East, Ashtabula Ohio 44004, if you have a program we could use or you
want a list of software we have found useful.

‘We have about 30 programs available for trading!! My students read
(those who can) at about a preschool to 1st grade level and may have
physical handicaps requiring special adaptive devices (for example a
mounted joystick). These teenagers are not handicapped by a negative
attitude, and once a job (or lesson) is learned they can do it well.

4

Page 5 (scan)

Sydney Brown: KONG

HRD COD) THEM
294 GOTO 297
295 LOCATE ¥,¥#1,Z:COL@R C:PLOT X,¥I¥:

DN=1:GOTO 297

Pia Be ATARI COMPUTER EXTHUSISTS
REH VINE MAPLE DE

REM

299 POKE 53256,126-H1:G0TO 208
POSITION 5,@:? #6; "i":POSITION 5,1
1FOR W=1 TO 49: NEXT W
410 POSITION 5,@:? 16; "hk": POSITION 5,1
2 M6;"lwsFOR Wel TO 14:MEKT W:RETURN

999 GOTO 999
IF CT=@ AND PEEK(53255))1 THEN RE

POKE S3251,H:POKE 53246,81:P0
KE 53249,89 4
SETION 45, “;POSITIO TURN
2 96 )5C;:IF ML) THEN FOR Wi T 1082 CT=CT#iiIF CT=5 THEN 1028

O M-L:POSITION W123? 86;"9P";:MEMT 1662 PSCV,Vt11)=JS:H=HtND:IF CT=1 THEN
4 SOUND 6,21,6,8

208 ST=STICK(! STOAS THEN GO 1005 RETURH

SUB ST#18+1000: SOUND @,35+108HC,6,41P0 1018 CT=8:S0UND @, Q:IF HO=-1 THEN

PSCY, 411) =L 75: RETURE

1019 PSCV,U411)=R25: RETURN

1958 GOTO 1078

1060 GOTO 1078

1078 IF (U-139/220INT(CV-139/12) THEN
RETURN

=6:¥=1:0! 1072 IF H(28@ THEM HD=1:N=Ht4:POKE 532
250 PP=PEEK(S3255):1F PP=2 OR PP=3 OR S1,HiIF MC:

PP=6 OR PP=7 THEN GOSUB 2000 1875
260 PP=PEEK(53263):1F PP=4 THEM 3000 ©1898 GOTO 1118

270 IF WC=1 THEN 289 1108 GOTO 1118

200 EX=EM+itIF E1=1 TH 1118 IF V=5 TMEM 1117

O1Mi=6 ALLL IF (¥-239/12O TNT CCV-133/12) THER
281 IF DM1)@ THEN 285 RETURN

282 LOCATE H1#D1,¥1,Z:COLOR CA:PLOT M1 1112 IF V=13 AND H=14¢ THER RETURN
sYAtIF Z=119 OR Z2=128 THEM Z=32 A113 IF W>5@ THEN I=H-4:POKE S32
283 M1=K1+D1:COLOR 119:PLOT M1,Yi:Ci=Z Si,H:IF WC=1 THEM MS=LLS:RETURM

iF OR NA=8 OR R=INTCZONRNB(O)? 1115 MS=LZS1RETURN

THEM Di=-bi:DM1=1:G0TO 287 1130 RETURN

284 GOTO 267 1140 IF CT)® OR PEEK(53285)=0 THEM RET
285 LOCATE Hi, Yiti,Z:COLOR CL:PLOT Xi, URE

VALVA=VIL:COLOR 120:PLOT K1,¥i:Ci=Z:D 1141 IF PEEK(S3255)()4 THEM RETURN
MI=DNLt1:IF DWI=4 THEN DNA=| 1142 HE4B4INT COH-44)/8)*8:POKE 53251,
287 IF Y1=22 AMD DH1)@ THEM COLOR Ci:P :PS<V,U+13.
LOT MA, ¥i:K1=6:VA=2:E1=1:D1=4:DM1=0:C1 1143 IF V)17 OR
=32 =U-2:SC=SC+SHLL:POSITION 15, |
288 GOTO 298 1145 IF MC=@ THEM MS=C1S:RETURN

289 IF EX(80 THEM 298 1146 IF WC=1 THEN MS=C2$: RETURN

290 IF EW=1 THEM EN=8:GOSUB 49@:K=6:PO 1149 RETURN

KE 77,8 2080 ML=ML-1:FOR W=159 TO @ STEP -7:50
291 IF DN)® THEM 295 UND @,49,8,INTCH/10) :POKE 712, 254"RNDC
292 LOCATE X#D,¥,Z:IF Z2=119 OR Z=120 T
WEN Z=32
293 COLOR
LOT x, ¥it=i

KE 53278,@:1F CT=@ THEM P$(V,U#i3)=R5
205 MC=MC+1:SOUND @,0,0,@:IF HC)4 THEM
wee

210 IF STRIGCO!

OR CT)@ THEN GOSUB 1

i AMD ABS(M1-K)(Z THEM EW=1:

EL:

GOSUB 48

2028 POSITION
OSUB 28100+180HL :GOSUB 28500

2040 IF ML>@ THEN 198

2099 GOTO 6888

3008 POKE 53258,12@:RESTORE 32760:FOR
E774 TO 783:READ A:POKE CBX256+H, A:RE
aT WH

381@ POKE 53251, 128:PS$(5,16)=HS

3020 FOR KK=1 TO 2:FOR Heid TO 7 STEP
-LIFOR WH=15 TO @ STEP -1:50UND @,H,10
/WAIMERT WHIMERT Hi NEXT KK

3058 COLOR 3Z:PLOT 5,@:PLOT 5,4

3051 FOR W=O1 TO 217 STEP 6:POKE 53248
,MiPOKE S3249,H#B:FOR A=15 TO @ STEP -
L:SOUND @,120,8,0:50UND 1,122,8,8

3052 FOR ‘JO 4:WERT B:NENT A:FOR A=
1-70 14:NEXT @

3054 IF WO1G5 THEM NEXT HiGOTO 3057

3056 NEXT Z:MEXT @:WEXT W

3057 FOR Wi TO 100:MERXT WiFOR W=255 T
0 10 STEP -3:SOUND @,H,10,4:NEXT W
3058 FOR W=i TO LL#2:5I
FOR @=45 TO 6 STEP -1:50
EXT W

3068 FOR Wi TO SOQ1MEXT W:L=LtitLL=LL
#411F L)3 THEM L=3

3998 POSITION @,0:7 M6;"K":GOSUB 20108
3998 GOSUS 2O198+1E0KL FOR W774 TO 78
‘FIPOKE CBR256+H,@:MEMT W:PS(5,Vti1)="9
VIPRETETOREROORET TROT

3999 GOSUB 20508:RESTORE 3206@:FOR We7
74 TO 783:READ Q:POKE CB¥ZS6+H, A: NEXT
M:POKE 53278,:G0T0 198

5008 POSITION 15,61? %5;5C:POSITION @,
2rIF SC)MS THEM HS=SC

SITIOM 14,4:7 26;HS;:POSITION 14,317 @
635¢;

5998 POSITION 8, 2:
om"

5995 IF PEEK(S3279)<)6 THEN P@KE 711,1
‘WT CRMD (03169416412 :60TO 5995

5997 7 M5;"K":GOSUB 20100:COSUB 20580
5998 GOSUB 20200:FOR W=774 TO 783:POKE
PS(S,V+Laa =

065" _A_ GG

10880 DIM wea case, ©2524) , LIS C4
2), L2S (12), RAS (12) ,RZG C12) , JS CL2) WS EL

Page 6 (scan)

D
au

1 CB=PEEK(106)-4:POKE 166,CB:G0SUB
:A=CBEZ561FOR Te Sit

2 IF B)431 OR B)327 AMD BC368 THEN
READ DIPOKE A+B,D:GOTG 10018

LOBOS POKE A+B, PEEK (5734648)

16010 WENT B:POKE 54279,CB

10820 FOR MECBNZS6+512 TO CBH256+1024:
POKE W,G:NENT W:POKE 5325! KE 5325
7,8

10030 POKE 53248, 81:POKE 53249,89:POKE
53250,126:POKE 53251,52

18840 FOR H=S2i TO S36:READ A,B:POKE C
BX256+H, A:POKE CBRZ56+H#128,B:REXT W

HOON DSS 1 Sd/ 90" 2 C2E="9984 uP
AN foe LLS= tO OT xi] PL ZS
Fal

10851 RIS="9OLLEEEse": RZS=9PLLEet E
14s": $=" 1 ooorer 85-908 RBERD
ct

10060 VT=PEEK (134) #256¥PEEK (135) 10T=PE
EK (140) +256"PEEK (144) : OF =256%CB+896-AT
1 US=INT (OF 7256) :02=0F-256%03

18061 POKE UTZ, UZ:POKE UTE, VSiPOKE V
T#4,128sPOKE UT#5,@:POKE UT#6, 128; POKE
vT#7,8

POSITION 0, 10:7 6; "ama

hi

IF PEEK(S3279) (06 THEM 10110
10128 50
18586 GRAPHICS 17:POKE 768,136: POKE 70
9,26:POKE 718,222:POKE 711, 98:POKE 712
1O:POKE 756,CB

10518 POKE 559, 46:POKE 53277,3:POKE 7@
4,40:POKE 705,48:POKE 706,78:POKE 787,
a

10668 GOSUB 2011
SUB 20
10999 RETURM

20800 GRAPHICS 181POKE 710,22@:POKE 71
2,18:FOR H=@ TO 18 STEP 2:POSITION 7,W
17 86;"K OM GUINEXT W

20810 SOUND 8, POKE S3768,7:POKE
53765,166:POKE 53760, 254:POKE 53761, 16
8:POKE 53764,127

20099 RETURN

20180 FOR W=2 TO 28 STEP
wi? 6;
POSITION @,25:7 W5j"_AAA a.c.e.AA*
20118 COLOR 94:PLOT 19,23:POSITION 7,0
m6; ALAM: POSITION 7,157 18;"—

GOSUB 201084100". 160

r
20111 POSITION 19,217 #6; "":POSITION
19,312 86;"H"sPOSITION 19,457 065"

20115 POSITION 5,
At? 6,
20120 POSITION 0.
e,. wes"
20199 RETURN

20288 FOR W=8 TO 20 STEP G:F H(ZO THE
M M=O:POSITION X,M:? 96; "Es POSITION ¥
MHL1? 86; "HP UPOSITION ¥,Ht2:? 26; "ER"
20205 N=19:POSITION K,W:? @5;"":POSIT
TOW X,MEL:? 96; "P:POSITION K,WH2:? 26
"

22 6 sew POSITION

20299 RETURN

20300 FOR H=8 TO 28 STEP 6:8=16:POSITI
OM K, bi? 96; sPOSITION KWL? 86)"
“:POSITION M,WEZ1? 86;HR"MERT W
20318 FOR W=5 TO 20 STEP 61N=3:POSITIO
8 ,Ms? 86 ;°TP:POSITION K,WEL:? 06;

SITION K,WtZ:? 86; INERT

28320 POSITION 4,7:7 #6i"y zy By Bz
y":POSITION 4,13:7 #6;"y [OB z By z 2"
POSITION 4,19:7 96;"z y iy [atc™
20399 RETERH

20400 FOR H=2 TO 28 STEP 6:H=19:POSITI
ON K, Wi? 26; :POSITION X,WELI? 265"

SITION M, WZ? WO; "ER MENT W

20410 FOR W=S TO 20 STEP 6:H=@:POSITIO

WOM, Mi? 86 5;"H POSITION K,WeL:? 86
SITION K,bZ:? 6; "HP sMEXT W
20428 POSITION 2,7:? MG;"zz My vy z
yy":POSITION 3,13:7 @6;"z yy zzy Of

Be:POSITION 3,19:? 96;"Wizz y BE zy fe
20499 RETURE

20508 FOR H=4 TO 16 STEP G6:FOR wet TO
7

20518 M=INTCRMD(O)*20) :LOCATE 8,6, Z:1F
20032 THEN 20510

20520 POSITION X,W:? 36; °C": NENT WHIRE
AT WiRETURN

32608 DATA 16,56,56,120, 112,112, 224,22

102, 213,213,245, 213,74, 52

32005 DATA 16,56,56,56,28,28,12,12,14,
14,6,6,7,6,2,3

32010 DATA 255,255,255, 255, 255,255,255
1255, 24,36, 90,90, 98, 90,36, 24

32015 DATO 60,295,195,255,195, 255,195,

68, 24,36, 90,98, 98,98, 36,24,22,12,0,54,

54,0,219,219

32020 DATA 0,8, 255,129, 255,1
29,129,129, 255,129,129, 56,16, 284,186,1

86,40,40,108

32030 DATA 255,255, 48,24,12,6, 255,255,
255, 255,6,12,24,48, 285,255

32058 DATA 2,0, 255, 3,2
53,7, 284,18, 252,29,120, 31,176, 31,192,3
1,192, 248,192, 240,224, 192,248, 32,32
32068 DATA 28,93, 73,127,28,82,127,20,2

0,54
32760 DATA 28,62,127,127,63,31,15,7,3,
10,8
Steve Monn:
THE GREEN MACHINE

1 REM FROM (RECUR

2 REM BY Steve Monn

18 REM

100 7 CHRS(125)

118 ? "ENTER THE SCREEN COLOR DESIRED
2 “USE THE COLORMUMBER, PLEASE": TRAP
ALOSINPUT COLOR

128 IF COLOR(® OR COLOR1S THEN ? “ENT
ER @ COLOR FROM @ TO 15, PLEASE.":G0T0
118

130 ? CHRS (125)

140 7 “ENTER THE NUMBER OF FLASHES PER
SECONDFOR THE CURSOR "7: TRAP 140;1NPU
T FPS

158 IF FPS<1 OR FPS)68 THEN ?
VALUE FROM 1 TO 68, PLEASE.
160 FPS=INT(68/FPS)

178 GOSUB 1678

188 POKE 1654, COLOR*16

198 POKE 1577,FP5

200 END

1078 FOR T=1536 TO 1536445

ENTER
(oTO 148

1098
1108 RETURW

A110 DATA 104,169,17, 144,
1120 DATA 141,42,2,169, 30,141, 26,2
1130 DATA 96,169, 208, 141,198,2,141,208
1148 DATA 2,169,216, 141,197,2,173,243
A158 DATA 2,41,2,73,2,141,243,2

1168 DATA 169,10,161,26,2,96

Listing 2

nO STA 982064
PLAC STA 99208¢
LDA a LOA #6D4¢
STA 60228 STA $0205¢
LDA e806¢ LDA $82F3<
BTA $822% ‘AND 09626
LDA a61C¢ OR #9826
TA $821K BTA SO21AC
RTS LOA O68F(
errcerk STA $8210
LDA e908 RTRC

Page 7 (scan)

Carl Schwarts MEASURE
PILOT program from Cleveland ACE

2 POS:5,5

2 TiHi, I'm a measuring progran..

at

4 T:Who are you? \

5 A: SNAKE

6 P0S:5,15

7 T:0k, SMQME lets go...

8 :Pick the length of wy line in inche
5. (and press

9 PAcHR<1) +228
18
11 HMEASUREOVER UMENEE

12
13 *MEQSURE E(e0)@):

“- Adjust the number (15)
if your TV is not a 13in -
17 GRICLEAR

18 GR:TURNTO 90

19 Crv=2\7%10-15

20 GR:TURNTO98;GOTO-65,:V ;DRAM %0
24 GR:TURNTO9®;GOTO-65,HV+i ;DRAN 10
22 *REDO Ecmn)i):

2345 or 6

thoriz

26 , CCA C MND aN

27, JU:¥TRYMORE

28 , JOUT)4 :*DONE Ino of 7
29, UY:#600

3O , JOSTCL1) MEASURE

ui, Et

32 HTRYMORE T:TRY AGAIN SHAME
33, Par3e

34, J:#REDO

37 THG00D ANSWER
38 CMT=HTHL

39 Crms=8

48 *LOOP SO:mS

46 DONE 50:8Z

47 crmz=(16- Cree #10

48 T:SMAME, MISSED tH and got uz
fi.

49 Parise

50 JOM 0) :xREPEAT

SL TOm=e) sua

S2 JCMH=8) :#REWARD
53 Crto=toti
54 Er

55 R
56 *REWARD GR: QUIT

POS:5,5

T:OK, SHAME, LETS PLAY @ DRAWING GO

59 :Tell me three things...

Pa:z28

61 POS:5,18

62 T: (Use numbers and press ?

66 TiLength to draw (1-100)
asap

GRIDRANND

T:Turn angle (1-98)

TURNTO BT;DRAW 25; TURW
AHS ; TURNIG ; DRAWS

7; GOTO @,@;TURNTO @
75 ¥REPETITION 20, MP

GR: DRANG ; TURNL 8B;

OUT ; TURNZ7O+RT

7601
» CrmP=mpeL

1 SCQRDHPD REPETITION
83 50:
T:SWAME' SHTGHING ATTURK BOLONG WRTRT

85 Ri-
#REPEAT PAI68
50:
88 T:

89 at

90 MY
(JAY HHEASUREQVER

T:50 long, SHAME.....
93 Pas170

Again 7(¥,\

ry
rj

96 Riby Carl Schwartz 5/83
97 R: Designed for pre-schoolers
98 R: adjust line LENGTH for your TV

OX 52, KINGSVILLE, ONTO 44048

Ken Waible: DICE PROBABILITY

LL REH 08H RRO BHBEREBHEBOE
2 REM * ATARI COMPUTER EWTHUSIATS *

REM * = 3662 VINE MAPLE *
4 REM * EUGENE, OR 97405 *
5 REM ® $18.68 YEAR *

*
*
10 REM KEN E. WAIBEL *
AL REM ® FEB. 1984 *
12 REM THBHERCRHEHERE RRB HR OHI
15 SUB 608

28 CLR

3e 7 "R":REM Number of rolls
32717
Lis (yes/no)"; :G0SUB 5t
me “How many

ice rolls";

36 INPUT MUM: MUMBER=NUM+MUMBER
37 IF R=89 THEN POKE 201,27

38 FOR H=1 TO MUM

REM ROLL DICE

48
az
“
“6
58
54
56
38
39
se
6
63
oa
65
66
67
68
69

DICEZ=INT (RMD (O)*6+1)
TOTAL=DICE1+DICEZ

REM Adds the die

‘IF R=89 THEM PRINT TOTAL,
GOSUB TOTAL+6@
MEXT X

GOTO 186

REM COUNT DICE
T2=T2#1: RETURN
TS=T34L: RETURN
T4=T441 RETURN
TS=TS#1:RETURK
TS=T6+L: RETURN
T7=17#1 :RETURM
TS=T8+1: RETURN
T9=THAL RETURN
7@ TLO=T10+1 RETURN
7A TAI=TAL+1 RETURN
72 VAZ=TAZHL RETURN
168 REM PRINTING
162 C=3:60SUB 680
105 POKE 201,10

8

REM TOTAL=2
REM TOTAL=2
HREM Etc, etc.

118 7 :? “What now?"

ry i-Print to screen”
uaz" 2-Print to printer’
167" 3-Add wore dice rolls"
1872" 4-Start over"

ize?" S-End Program"

122 GOSUB 568

GOTO

124 IF R=49 THEM OPER 22,
150
126 IF R=5@ THEN OPEN u2,
158

oa

"p:™:G0TO

GOTO Page 12

Page 8 (scan)

MEN=3 SCORE=-e8

Rnd=125

HI=e

LUL

IF (y-16) MOD 1698 AMD (x-22) MOD 1288 THEN

i

Stan Ockers: RATS REVENGE

4 RATS REVENGE IW ACTION!
4 by Stan Ockers

J ACE Hensletter, 3662 Vine Haple
4 Eugene, OR 97465 $12 year
4 March 1984

NODULE | RATS’ REVENGE
CARD pabase, dest, source, cnt, sourcel,
source2, sources, score, saxscore,
radpts, dlist=368
itk, Vv)", col, rom,
consol=53279, dir,all,
dirt,blkflg,dir2,
dir3,pos,posl,pos2,pos3,
level ,dotecat,hitflg,aen, omflg
BYTE ARRAY ratup=[6 66 126 66 24 66
126 98 126 66 36 182 8 63,
ratrt=[6 32 56 168 62 16 58 126 126
128 128 44 4B Ol,ratital6 4 26 54
124 8 92 126 36 36 28 52 12 91,
cursor=(34 28 8 26 34],bugupel8 36
24 OO 126 66 24 66 90 66 24 bo
6 O),bugrt#C6 48 32 128 168
56 16 56 56 68 56 44 48 62,
buglt={@ 12 4 3854 28 8 28 28 68
28 52 12 61,allowed(132),saveall (133),
hortop={3 32 32 32), vertopsl3 32
4 321,allbot#{3 7 6 71,newall=l3
135 6 135), herbot=(3 7 7 71,
dote (132), blk#f3 32 32 32],
newbot=[3 135 135 135)
INT delx,dely,delxi,dely1,delx2,
dely2,delx3,dely3,x,y,x1,y1,
x2, y2,x3, y3,an,ay
PROC Init()
‘SetBleck (al lowed, 132, 6)
Set Block (dots, 132, 1)
FOR cnt#i TO 18
DO allowed{cnt)=76 OD
allowed (9)#72 allowed(11)=68
RETURS

PROC Painit()
BYTE ARRAY #il={63 83 65 85 65 85 65
85: 6.68 8 255 Si 204 255 235 255
6 24 68 68 24.6 255 2556008
$6 255 255 66 6)
papage=Peak(164)-14 pabase=papage? 256
Poke($4279,papage) Poke(35?,62)

rows (y~42)/16 col=(x-56)/12
pos#i2trowtcol all=allowed (pos) &15
IF stke@ AMD dir=4 THEN dir=8
ELSEIF stke4 AND dire® THEN dir=4
ELSEIF stk=l AND dir=2 THEN dirt
ELSEIF stk=2 AMD direi THEN dir=2
FI
IF (dir & 3))08 THEN stk==a 12
ELSE stke=t 3 FI
IF(stk & all) THEN dirsstk FI
WHILE (dir & all)=8
00 diredir REH 1
IF dire THEN dir*@ FI OD
IF diret THEN dely=-1 delx=®
sourcebugup
ELSEIF dir#2 THEN dely=1 delx=
sourcebugup
ELSEIF dir=4 THEN dely=@ delxe-1
sourcesbuglt
ELSEIF dir#8 THEN dely=8 delxs1
sourcesbugrt FI FI
xatdely y==tdely

Poke(53277,3) Poke(53248,x) Poke(784,92) RETURN
Poke(785, 262) Poke(706, 258) Poke(787, 186)

SetBlock (pabase+i024, 1824, 0)
Hoveblock (pabase, 57344, 1024)
Poke (756, papage)
FOR cote# TO 39
DO Poke(pabasetcnteS6g, fil(cat)) OD
FOR cnt#6 10 28
DO Poke(dlisttcat,4) OD
RETURN

PROC Ding (BYTE pitch,CARD dly)
BYTE loud
CARD wait
FOR loude@ TO 15
DO Sound (8, pitch, 16, 15-Loud)

FOR wait#i to dly DO OD OD

Sndrst()

RETURN

PROC Tracks() § leave trail
BYTE newpos,z
IF newpos()pos THEN
newpos*pos vapos NOD 12 wepos/i2
relocate (3#v+2,28w+2)
IF 287 THEN
rndpts==+25 Position(21,6)
PrintC(rndpts)
Position(S#v+2,2¢wt2) dotecnt=2-1
IF allowed (pos)&64 THEN Print (nenbot)
ELSEIF allowed (pos)&16 THEN
Print{newall) FIFI FI
RETURN
PROC Move() § wove the bug
stkeBtick(6) ! 15

8

PROC Hovel() § decide rat #1 sovesent
BYTE nua,coll,rowl
IF (y1-16) NOD 1698 AND (11-22) NOD 1259 THEN
rowl=(y1-42)/16 colls(x1-$6) /12
post=12#rowi+col! all2allowed (posi?
IF Rand(15))19-level THEN
aveyoul IF ax(O THEN axe-ax FI
aysy-y! IF ay THEM ays-ay FI
IF axday THEN
TF (xtdn) THEN dirt=4
ELSEIF (x1(x) THEM dird=8 FI
ELSE
IF (yl<y) THEN dirt=2
ELSEIF (yldy) THEN dirtel FI FI
FI
WHILE (dirl & all)=®
DO dirt=dirt RSH 1
IF dirt=@ THEN diri=8 FI OD
IF dirt=i THEN delyl=-i delxi=
sourcel=ratup
ELSEIF dirl=2 THEN delyl=l delxi=@
sourcel=ratup
ELSEIF diri=4 THEN delyl=8 delxt=-1
sourcelratit
ELSEIF dirt=8 THEN delyi=
sourcelsratrt FI FI

felxi=t
RETURN

PROC Hove2()
BYTE nua,col2,rou2
IF (y2-16) MOD 1658 AND (12-22) MOD 1286 THEN
row2=(y2~42)/16 col2= (12-56) /12
poa2=120row2+col2 all=al lowed (pos2)

Page 9 (scan)

IF Rand(15)>16-level THEN

axeunu2 IF ax( THEN axe-ax FI
aysy-y2 IF ay<@ THEN aye-ay FI
TF anday THEN

IF (x2)x) THEN dir2e4

ELSEIF (x2¢x) THEN dir2e8 FI
Lee

IF (y2y) THEM dir2=2

ELSEIF (y2)y) THEN dir2=1 FI FI

FI

WHILE (dir? & all)=8

DO dir2=dir2 ROH 1

IF dir2e@ THEN dir2=8 FI OD

IF dir201 THEN dely2=-1 delx2=8
source2*ratup

ELSEIF dir2=2 THEN dely2#1 delazed
source2=ratup

ELSEIF dir2e4 THEN dely2=9 delx2e-1
fource2=ratlt

ELSEIF dir2=8 THEN dely2=@ delx2=1
sourcezsratrt FI FI

RETURN

PROC NoveS()
DYTE nua, col3,row3

TF (y3~16) MOD 1699 AND (x3-22) MOD 1286 THEN

rowS=(y3-42)/16 col3=(x3-56)/12
pos3=12¢row3+colS al lal lowed (poss)
IF Rand(15))18-level THEN
axenexS IF ax<@ THEN ax!
ayty-y3 IF ay<@ THEN ay:
IF axday THEN
IF (x3)n) THEN dir3=4
ELSEIF (x3¢x) THEN dir3=@ FI
ELSE
AF (yS¢y) THEN dirS=2
ELBEIF (y3)y) THEN dir3e1 FI FL

Fl
WHILE (dir3 & alld=@
DO dirSedir3 ROH 1
IF dirS=@ THEN dir3=@ FI OD
IF dir3=1 THEM dely3e-1 delx3=8
source@ratup
ELSEIF dirS=2 THEN daly3=1 delxSeo
sourcel=ratup
ELSEIF dirS=4 THEN dely3=@ delx3e-1
sourced=ratlt
ELSEIF dirS*B THEN dely3=8 delu3=1
wourceseratrt FI FI
RETURN

PROC Update() } all players aove
DO UNTIL veount=128 Od
Poke (53248,x) dest=pabasetié2ity
NoveBlock (dest, source, 14)
ulemtdelul yletdely! Poke(S3249, x1)
dest=pabaset!286+y1
NaveBlock (dest, sourcel, 14)

PROC Bkgd() § draw ladders & girders
Graphice(#) Poke(752,1)
FOR pose@ TO 131
DO xpos MOD 12 y=pos/12
alleallowed (pos)
Position (3éx#2,2¢y¢1)
TF all&48 THEN Print (vertop)
ELBE Print(blk) FI
Position (S#x+2,2#y+2)
IF allkb4 THEN Print (horbot)
ELSEIF al1&32 THEN Print (vertop)
ELSEIF al1&16 THEN Print(allbot)
ELSE Print (blk) FI 08
FOR xe! 10 38
DO Position(x,23) Put (13) OD
RETURN

PROC Dly(CARD @axcnt)

CARD cnt

FOR cnt=1 to aaxcnt DO OD
RETURN

PROC Saveaaze()
Opan(1, "D:NAZE*, 8,
FOR pose 10 132
DO saveall (post!) =allowed(pos) OD
saveal] (9) #132 PrintD(1,saveall)
Close(1)

RETURN

PROC Cleanscr() § get rid of players
FOR cnt#=53248 10 53251
DO Poketcnt,#) OD

RETURN
PROC Openup() } pos. above peraitted
IF allowed(pos-12) & 112 THEN

‘allowed (pos~12)=#22 allowed (pos) ==21
FI RETURN

PROC Opendn()
IF allowed (posti2) & 48 THEN
allowed (post12)==21 al lowed (pos)==12
FI RETURN

PROC Opentt()
TF allowed(pos-1) & 8@ THEN
allowed (pos-1)=#18 allowed (pos) ==24
FI RETURN

2aatdelu2 y2enédely2 Poke (53258, x2)

dest=pabaset1S34+y2

MoveBlock (dest, source?, 14)

n3eatdelx3 y3=atdely3 Poke (33251,x3)

dest=pabaset!792+y3

MoveBlock (dest, source3, 14) Tracks()
RETURN

9

PROC Openrt ()
TF allowed (pos+l) & 88 THEN
allowed (pow+1)==24 allowed (pos)==28
FI RETURN
PROC SetbarQ ; create screen
BYTE key
x=78 y=61 source=cursor
dest=pmbasetie24ty Poke (764,255)
SetBlock (pmbaseti624, 256, 0)
Position(e, 0)
Printe"(4) (22¢3) | 49405) save")
Print@*(6)Exit (arrows)"?
PROC Rats)
po
Poke(53248,x) dest=pabase+i624+y
HoveBlock (dest, source, 5)
DO key=Peek (764)
UNTIL kay()253 OD
SetBlock (dest,5,8) Poke(764, 259)
TF key=t5 AND y(181 THEN Yasti6
ELSEIF key=14 AMD y)61 THEN y=s-16
ELSEIF key=7 AND x(178 THEN xe=+12
ELSEIF key=6 AMD x70 THEN x==-12
FI
IF consol=5 THEN EXIT FI
col=(x-58)/12 rowe(y-45) /16
pos*12¢rowtcol
Position (3#col +2, 26rowtl)
TF key=31 THEN
Print (blk) allowed(pos)=8
allowed (pos-1)=2&247
allowed (post!) ==4251
allowed (pos-12)=28253
allowed (pos+12)==4254
ELSEIF keye3@ THEN
allowed (pos)=64 allowed (pos~12)==#4253
Openrt() Openit () Opendn()
Print (hortop)
ELSEIF (key=26) THEN
allowed (pos) #32 allowed (pos-1)==8247
allowed (post!)==&251 Openup()
Opendn() Print (vertop)
ELSEIF (key=24) THEN
allowed (pos)#16 Openup() Openda()
Openit() Openrt() Print (vertop)
FL
Position(3#col+2, 2#row+2)
TF key#31 THEN Print (blk)
ELSEIF key=38 THEN Print(horbot)
ELSEIF key=26 THEN Print(vertop)
ELSEIF key=24 THEN Print(allbot)
FI
IF key#29 THEN Saveaaze() FI
IF kay=27 THEN EXIT FI
‘DO UNTIL PEEK(764)<kay OD
oD

RETURN

Page 10 (scan)

PROC Loadaaze()
Open(1,"D:NAZE*, 4,6) Input#D(1,saveall)
SCopy$ (allowed, saveall, 2, 132)
allowed(§)=saveall (1) Close(t)

RETURN

PROC Contact () 5 hit a rat
FOR v=36 to 268 STEP 5
DO Dingty,v) OD
hitflgat
RETURN

PROC Rndover() } coapleted screen
FOR v56 to 268 STEP 5
‘DO Ding(250-v,v) OD
RETURN

PROC Ganeover (2
Graphics(18) Position(6,4)
Printo(6, "ie Gveie"?

Position (@,9)

Printh{6,"press START to play")
DO UNTIL consel=6 0D

DO UNTIL {consol&73=7 OD RETURN

PROC Scorecard()
Position(#,@) Print(*MEN=") PrintB(een)
Position (4,8) Print(*SCORE*")
PrintC(score) Position(17,8)
Print (*Rnd=") PrintC(rs
Position(26,6) Print("t
PrintC(saxscore) Position(33,@)
Print (*LVL#") PrintB(level)
RETURN

PROC Play()
BYTE ARRAY Ivll#£72 78 76 76 78 76 76
78 76 76 78 68 6 35 seeses
a 1 76 218

6 Seeeesse 7429 78
7h 76 78 29 7868 339350935
$25 782188

$6935
29 76 7b
mu88 § $9,
Lvl4s072 78 76 76 78 76 78 76 76 76 78
68 6 25 76 76 23 6 27 76 76 76 2188
$0027 76 236006808 74 76 7631
7b 31 7b 76 76 § 25 76 76 23 8 27
76 76 7 21 $27 76 23
9674 76 76 31 76 31 76 76 76 71
25 76 76 23 6 27 76 76 7b 218

27:76 2366009980872 29 7629

TF ommflg=@ THEN
IF level)8 AND level<4 THEN
FOR v=8 TO 132
DO allowed(vi=lvit(v) OD
ELSEIF level>S AND level<7 THEN
FOR ve8 10 132
DO allowed(v)=lvi4(v) OD
ELSEIF level>d THEN
FOR ve# TO 132
DW allowed(v)=lvi7(v) OD FI FI
Bkgd() Painit() Scorecard()
x56 y=42 dirs sourceeratrt
SetBlock (pabase?i624, 1924, 0)
yl=42 dirt=4 sourcel=ratlt
source2eratlt
y2e42 dir2=4 delxel
y3=42 dir3=4 source3eratit
poss# posi=i1 pos2#11 pos3e1i
dely=@ delyl98 dely299 dely3=6
delxiz=-1 delx2=6 delx3e@ x1=184
x2e8 x3=8 dotecnt=#
FOR cnt## to 131
D0 weal lowed (cnt)
IF wh THEN dotecot=s+1 FI OD
wa(level-1)N0D 3
IF w8 THEN x28184 delx2e-1 FI
IF w>1 THEN x3#184 delxSe-1 FI
DO FOR cnt=1 TO 16-level
DO DO UNTIL vcount@=1 OD
UNTIL vcount=128 0D
Hove) Hovel() Hove2()
Wove3() Update()
IF dotecnt=@ THEN Rndover {)
EXIT FI
TF ((x=x1) AND (yay) OR
(009x2) AND (y2y2))0R
((xex3) AND (ysy3)) THEN
Contact() EXIT FI
Poke(77,6)
oD
Cleanscr ()
IF dotscnt=8 THEN level=e+!
IF levi THEN level=9 FI
score=strndpts rndpt:
IF aaxscore<score THEN
aaxscoreescore FI
ELSEIF hitflg=1 THEN men==-1
rndpts=8
IF aen=$ THEN Gapeover() EXIT FI
FI
oO

10

RETURN

PROC Rats()
DO

Graphics(18) Pesition(4,1)

Printo(6, “Rafi Bevilce"?
Position(6,3) PrintDECs," REGULAR
PrintD(6,"option CREATE")
Position(9,5) PrintDEC6,“PLAY OWN"?
Position(@, 7

elect LUL f23456769")
iON, 93 Print (6, "start"
Position(1,11) Poke(dlistt16,6)
Printe(6, "WRITTEN IN
w=3 level=1 owflg=@ score=8
naxscore=@ rndpts=8 nen=3
vo

DO UNTIL (consal87)<>7 OD
IF consol#3 THEN position (7,«)
PutD (6,52) weet
TF web THEN we3 FI
Position(7,w) PutD(6, 178)
Ding(121,600)
ELSEIF consol=5 THEN
Position (16+level,7)
PutD(6,48¢level) level==+i
IF level#1@ THEN level=t FI
Position (1#+level,7)
PutD(6,17b+level) Ding (68, 606)
ELSEIF consol=6 THEN
IF wed THEN Init) Bkgd()
Painit() Setbar() Cleanscr()
EXIT
ELSEIF we5 THEW Loadaaze()
ownflg#1 Play() ownflged
Cleanser () EXIT
ELSEIF we3 THEN
Play() Cleanser () EXIT
FI
FI
BO UNTIL (consol 7)*7 0D OD 08
RETURN

Meeting

Weds March 14, 7:30
South Eugene High
Cafeteria

Page 11 (scan)

C. Mueller: String Search Routine

ns

(69020 ADTOT
o9es8 EMDTOT
0048 ADBE
60930 LENS
90968 POSIT
90861 5

OR $6600

+EQ SCB SADR(TOTS)
oE@ OCD 4EMD TOTS
«EQ 606 SADR (888)
EQ $B8 = }LEN(886)
+E0 604 = SPOSITION

(99662 }PULL ARBUNT PASBED BY USR

$9063 |
90078
99808
19690
es
oni
128
138
14s
158
60166
$0178
0188
19198
50208
90216

96220 STA ADSE

0236

28

we

268

9278

0280

9298

99308 NEXTCH
ase

9320

6336

90340 CHEKCH
66358

19368

0370

69308

69598

9408

69419 NOMATCH
9420

A368

Co)

6458

5940s

60476 INC
69488

wi

90508

69518 WOFIND
99528

W530

(69546 FOUND

PLA

PLA

STA ADTOT#1
PLA SLSB/ADRITOTS)
STA ADTOT#! §

PLA $M8B/LEM(TOTS)
cle SCLR CARRY FLAG
ADC ADTOT+1 ADD THE ADR(TOTS)
STA ENDTOT#!
PLA

ADC ADTOT
STA ENDTOT
PLA

STA ADBS+1
PLA

48 ARBUNTS
$MBB/ADR(TOTS)

SHBB/ADR (889)
JL8B/ADR (858)

PLA

PLA

STA LENS
Lon

TY

STA POSIT
STA POSIT#L
Loy #8

INC POBIT
BRE CHEXCH
IWC POBIT#1
LOA (ADTOT),Y SCONPARE CHARACTER OF TOTS WITH S58

CHP (ADSR) Y

BNE NONATCH $60 10 WOMATCH IF NOT ECUAL

INY JF EQUAL INCRENENT Y TO CHECK NEXT CHARACTE
CPY LENSS j1F Y=LEW(SS¢) THE HATCH 19 FOUND

ee FOUND

BEN CHEKCH 460 CHECK WEXT CHARACTER

LOA ADTOT#1 SCHECK IF WE ARE AT THE ERD OF TOTS

CHP ERDTOT#1
BNE IK

LDA ADTOT
HP ENDTOT
BE@ NOFIND 51F THE ENO OF TOTS THEN MATCH WOT FOUND
IWC ADTOT —SINCRENENT TOTS

BNE NEXTCH SSTART LOOKING FOR A MATCH AT NEXT TOTS(X, 1)
IWC ADTOT#1

BNE NEXTCH $START LOOKING FOR A MATCH AY NEXT TOTS (xX)!
Loa #9

STA POSIT
STA POSIT#L
AT8

J THROM AWAY HSB OF LEN(SSS)
SLEN (888)

INITIALIZE TO TOTS(8,6)

INCREMENT TOTS(X,X)

41F WOT THEM GO INCREMENT TOTS

SRETURN A ZERO TO BASIC

SRETURN POS. OF 886 IN TOTS TO BASIC

11

@ REM BY C. MUELLER,
18 DIM TOTS¢zZ 595 (255)

20 TOTS="THIS IS @ TEST OF A MACHINE L
ANGUAGE STRING SEARCH

3e FOR I=1 10 8

40 TOTS (LEW (TOTS) +19=T0TS

56 WEXT I

6 TOTS {LEM (TOTS) #1)="ATARI COMPUTER"
70 2 “ENTER SEARCH STRING; :1.S5$"

86 POS=USR (1536, ADRCTOTS? ,LEM (TOTS), AD
R(S5$2, LEN(55$)2

85 IF POS=@ THEN ? “STRING MOT FOU!
END

98 2 32-85 558;"°=TOTSC";POS;"
LEM(S5$)-13")"

95 END

408 FOR I=1 TO LEMCTOTS?

110 IF TOTSCI, I#LEM(SS$)-13=55S THEN 1
58

128 WERT I

136 STOP

ase?

Greg Menke:, FUNCTION KEY [from Feb issue)

Post

16 $Function Key Asseably listing

oy
V2.8 12/12/83
48 jBy Greg Henke
oy
oy
76 jLising in Atari Asseabler Editor
86 }foraat.
wy
$100 #8088
O118 LDA 12 tget Lo byte of DOSINI
6126 STA DOSINI Jand store it
#136 UDA 13 Snow get the Hi byte
9149 STA DOSINIGL sand store that too
6156 JSR INIT initialize VBI and new RESET vector
#166 RIB Sraturn to DOS
$178 BRK fend
9188 5

6196 DOBINI .BYTE 9,6
6200 INDEX .BYTE 6
$219 5

9228 RESET JGR INIT
6238 INP (DOBINID
9240 5

6258 INIT LOX @ROUTINE/256
9260 LOY GROUTINEL255

Six the RESET vector
Jand return

iHi byte of VBE
jLo byte of VBI

9278 LDA #6 Juse iesediate sade

6 ISR SEASC fand start it

9296 LOA GRESETE255 —jLo byte of new RESET address
6306 BTA 12 Sstore it

0318 LDA GRESET/256 Hi byte of new RESET address
#328 STA 13 sstore that

Page 12 (scan)

9568 |
9570 SELECT LOX @8ELCT/236

9338 RTS return

JHi byte of SELECT aessage 9340 3

9586 LOY @SELCTE25S Lo byte §S50 EXIT JMP SEAS sexit VBI

6598 INP PRINT Sprint it 9306 5

8 5 6376 ROUTINE LDA 763 get ATASCII code for last character printed
9618 OPTION LOX #OPTON/256 SHi byte of OPTION sessage 9380 CHP #1 Sis it CTRL AZ

9626 LDY BOPTONE25S © jLo byte 6399 DRE EXIT ina, exit

638 5 He}

6648 PRINT STX SCC jstore Hi byte $416 LDA 53279 sget CONSOL valve

9658 STY SCB istore Lo byte 6420 CHP a7 tis anything pressed?

6668 LDA 80 5 $430 (SEO EXIT sao, exit

9678 STA INDEX sclear the print index nny

$680 LOOP LOY INDEX Iget the offset $436 CHP Ab sis START pressed?

0696 LDA ($CB),Y jnow get the character 0466 DEQ START Jyes, goto START routine

9708 INC INDEX badd 1 to offset 76 CHP AS sis SELECT pressed?

6719 CHP a6 tis this the last one? $488 BEQ SELECT Syes, goto SELECT routine

9728 BEQ DOME byes, exit 490 CHP AS 41s OPTION pressed?

S730 JGR SF GAS $no, print the character 9508 BEC OPTION tyes, goto OPTION routine

6746 JHP LOOP $90 back and get another character #516 JNP EXIT iseveral keys are dow, so exit
9750 DONE JNP EXIT sexi #526 5

768 5 9536 START LOX @STRT/256 sHi byte of START aessage

6778 STRT .BYTE 136, "You hit START*,#
9786 SELCT .BYTE 156, "You hit SELECT*,@
6796 OPTON .BYTE 134, "You hit OPTION", 6

Dice Probability (Con’t)

128 IF R=5i THEM GOTO 3@

430 IF R=52 THEN RUM

132 IF R=S3 THEM EMD

13471? 3? :60TO 108

156 TRAP 184

152.727 3?

154 PRINT 12; "HUMBER", "@PPEQRED", "EXPE
cTED"

ASG PRINT 252,72, CINTCC1/Z6)SNUMBERTO
“52

ASS PRINT 82;3,13, CIMT ((2/36) HUMBERTO
+53)

16 PRINT 82; 4,14, CINT(C3/36)*HUMBERHG
502

162 PRINT 02;5,T5, CINTC (4/36) *HUNBERtO
+50)

164 PRINT 8256, 16, CINTC(5/36)*NUMBERTO
15

166 PRINT 257,17, CINT((6/36)50UMBERtG
592

168 PRINT 12;8,18, CINTC(5S/36) "HUMBERTO
+52)

170 PRINT 82; 9,79, CINT((4/36)*HUMBERTO
50)

172 PRINT 82;10, 718, CINT( (3/36) HUMBER
+8.5))

174 PRINT 2;44, TAL, CINT (2/36) HUMBER
+6.592

176 PRINT 82;12, 712, CINTCCL/36) *HUMBER
+8.5))

#546 LOY BGTRTE25S
#359 INP PRINT

jlo byte of seae
igo print it

178 PRINT H2j;"

188 PRINT 82;"

"

182 PRINT #2;"

MBER

184 CLOSE uz

198 GOTO 108

500 REM OPER KEYBOARD
502 OPEN M1,4,0,"K:"
504 GET @1,8

5@6 CLOSE wi

508 RETURN

608 SETCOLOR 1,C,2:SETCOLOR 2,C,10:SET
COLOR 4,C,18

616 RETURN

1008 SAVE "D1DICEPROB"

10006 REM SAVE ROUTINE

Dice rells = ";mu

Total rolis= “;Mu

FLash: Education Software 4565 Cherryvale,
Soquel, CA 95078 makers of the excellent
“Tricky Tutoriale’ 6s giving a 30B

discount sf you mention ACE.

12

Page 13 (scan)

THE GREEN FLASHER

(reprinted from the December, 1983 issue of Frederick ACE Newslet-
ter)

If you read the last article, you now have (and | hope understand) a
technique to change the screen colors in GR.O. | mentioned a “secret”
reason for using one of the Atari's interrupt timers to initiate the
routine. The secret, if you haven't guessed, is to include the option to
cause the cursor to flash. Just think. A green screen with a flashing
cursor — this is starting to sound like the option list on a 3270.

The new portion of the program will work using memory location
755 ($02F3 in hex). This location is mainly used to control the visibility
of the cursor. POKE 755 with 1 and the cursor disappears. POKE a 0
back in and the cursor reappears. A side effect of the invisible cursor
is the loss of the “inverse video” capability. As a side note — try
POKEing 755 with 5. Not very useful, but interesting.

If we an change 755 back and forth between 1 and 0, we can cause
the cursor to “flash”. We already have a time driven interrupt in the
screen color routine. We only need to add logic to flip the value of
location 755 to flash the cursor. Keep in mind the side effect | men-
tioned. Any inverse video characters will flash along with the cursor.
You may or may not appreciate this, but that’s how it is.

| want to clear up some confusion from the “Green Screen” pro-
gram. To get a good green on black you will have to lower the
brightness level. At normal brightness the display is white on green.

This routine is relocatable. If you have some favorite area to stash
machine language code, you merely need to change the address the
BASIC loader uses to stash the DATA values. You must also change
the address which gets loaded into the address vector for Timer2.

Listing 1 is the BASIC loader. Listing 2 is the Assembly language
code equivalent. Please use standard care and save the program
before you attempt to run it as any error in the DATA statements will
likely cause the dreaded lockup. When you run the BASIC program,
you will be asked for the color of your choice. Respond with the
number of the color of your choice from the standard list of color
values. You will next be asked to enter the number of flashes per se-
cond you desire. My preference is 5, but you can experiment and find
your own favorite.

The Green Flasher will continue unaffected by GRAPHIC com-
mands and DOS calls. It may be simply detached by pressing SYSTEM
RESET. If detached, it may be restarted by X = USR(1536). Good luck
and happy flashing.

— Steve Monn

Rats’ Revenge

| haven't had time to put any special touches on this game, but it
should provide a good foundation for any climbing-chase type games.
The same approach could be used in a Pac-Man style game. In fact,
that's the way this game started out but | think the climbing style is
more interesting.

The screen is divided into a matrix of positions, (12X11) where
changes of direction can take place. The array ‘allowed’ holds bytes
describing which directions are permitted. The lowest four bits con-
tain ‘ones’ for permitted directions which are compliments of the nor-
mal joystick directions. The high four bits indicate which type of
girder/ladder combination is present at any intersection.

You can create your own scene and save it to disk. The ‘play own’
option will then recall it and you can play it at any level you select. |
haven't figured out how to save under a user provided filename yet.

It is quite challenging to provide a proper chase algorithm. In the
one | wrote, the rats seem to either ignore you or latch on for dear life.
Once they caught on, they were impossible to shake and it was im-
possible to complete the screen if there was more than one dead end.

| compromised by skipping part of the algorithm at random times.
‘The rats are made to increase their |.Q. with level by comparing a ran-
dom number to one dependent on the present level. You may notice all
three rat moving routines are identical and they should be able to be
replaced by one using indexed variables. | tried, but each time | did,
the program compiled but locked up when run. Rather than blame the
language, | simply took this as an indication I'm stil learning to use
Action!

— Stan Ockers

KONG

This March issue of ACE contains the BASIC listing for the game of
KONG. Kong has kidnapped your fiancee and he has placed her at the
top of a partly constructed building and it is up to you to rescue her,

‘On your way up, you must jump over bricks and barrels while trying
to avoid all the barrels Kong throws at you. Use Joystick 1 to make the
man walk and climb the ladders. To jump, press the fire button and
push the joystick in the direction you want to move. Jumping is not
permitted while on a ladder or on a yellow ail slick.

Bonus points are scored by reaching the top of each level and
points are scored for each ladder climbed. Each successive level
becomes harder and scores higher points and larger bonuses.

Hint: The barrels do not go all the way to the end of a level before
coming down, so keep an eye on them.

- Sidney Brown

ML SORT

(reprinted from the November, 1983 Huntsville Atari Users Group
News Letter)

| want to show you how to use a machine language subroutine in
BASIC. I've chosen a search routine which is short, easy to use, and
extremely fast. Get your assemblerleditor out and type in Listing 1. |
use Synassembler. If you use the Atari Assembler/Editor, the only
changes you need to make are the equates which use an “=” instead
of “EQ.” and Line 10, which should be changed to:

0010 * = $0600
‘Assemble the program, correct any syntax errors and save the source
file. The save the object file from locations $0600 to $0660 according
to your assembler manual’s instructions.

Take a look at the source code listing. See all the PLA instructions
at the beginning of the routine? They are taking the information off the
stack as placed there by a USR call from BASIC. This means we must
know exactly what parameters are to be passed from BASIC and their
order. This routine is written to find a small string in a large string by
comparing the Small search string to the same number of characters
in the large string, starting with the first character in the large string
and incrementing the start by one until a match is found or the end of
the large string is reached. We want the BASIC program to pass the
addresses and lengths of the large string and the search string to our
ML routine. So we pull these from the stack (notice the order of most
significant byte and least significant byte). We use the length of the
large string (TOTS) to calculate the end of the string (ENTOT). Once we
have these addresses and lengths the actual routine to do the search
is very simple. The value returned to BASIC when the RTS is executed
is the value at zero page addresses $D4 and $D5, which | am calling
POSIT. Therefore we place the position of the search string within the
large string into these locations and return to BASIC. If a match is not
found we place a zero into $D4 and $D5.

Listing 2 is a test of the subroutine from BASIC. Reboot with BASIC,
go to DOS and binary load the object file (cassette users refer to the
method found in the Atari Assembler/Editor Errata Manual for loading
object files). Go back to BASIC and type in Listing 2. Save the program
before execution since a problem in the ML routine can cause a
lockup. The BASIC program creates a long string of the same words
over and over, and then puts “ATARI COMPUTER” at the end. Notice
the parameters which must be passed in the USR calll at Line 80. Run
the program and search for “ATARI”. It should take less than one se-
cond, Then type “GOTO 100" to see the same search performed with
the BASIC search routing at Line 100. Be prepared to wait awhile.

This little routine can be used in almost any program requiring a
search. You culd use it to search for anything in memory — not only
within a string. Just pass the starting address for the search and the
number of bytes to search in place of the ADR(TOTS) and LEN(TOTS).
You can find multiple occurances of your search string by using the
USR function over and over again — just changing the starting point
for the search.

Of course, to use this search you must binary load the object file in-
to memory first.

— C. Mueller

13

Page 14 (scan)

TIDBITS

Reading the Keyboard

This month I'll cover a few more PEEKS and POKEs and relate some
methods of getting input from the computer in a program,

If you have an application where you want to have the cursor disap-
Pear, you can just POKE location 752 with a 1. To turn the cursor back
on, simply POKE a 0 into 752.

In many programs | have written, | have found it necessary to read
the keyboard in such a way as to produce immediate action upon
Pressing a key. If a simple INPUT statement is used, the computer will
wait for the return key to be pressed before it continues. | know of two
ways to avoid this delay. The first is a little more complicated than the
second, and has both advantages and disadvantages. This method in-
volves first OPENing an input/output control block for input from the
keyboard. Then one simply uses a GET# statement to read the
keyboard. This example program illustrates the technique:

10 OPEN #1,4,0,"K:":REM open the keyboard for input
20 GET #1,A:REM the computer will put the ASC value of the key
Pressed into the variable A. Note: It will not print anything on the
screen.

30 IF A= ASC("Y") THEN BRANCH ACCORDINGLY:REM compare the
keypress to what you desire.

40 GOTO 20:REM loop back for more

The advantage of this method is it gives us the ASC value of the
keypress, so we don't need to do any translating. The disadvantage is
the computer will stop and wait for a keypress, which may not be any
good in some situations.

The other method requires the use of the internal code of keypress
location (764). First you find out the internal code of the key you want
the program to react to, then you simply test the value in location 764
to see if it is the one you want. To find the internal code, use this sim-
ple immediate-mode program:

FOR A=0 TO 1 STEP 0:? PEEK(764):NEXT A

Now push the keys you want to use, and record the values the com-
puter prints. Then in your program you just need to PEEK 764, com-
Pare it to the value you wanted, and branch accordingly. With this
method the computer will never stop executing the program to wait for
the keypress,

Reading the console keys (START, SELECT, and OPTION) is similar
to the second method of reading the keyboard. In fact, one does the
same thing exactly except the location used is 53279. Incidently, to
clear location 764, POKE it with a 255, and to clear location 53279,
POKE it with an 8. To make the little speaker inside the computer
click, POKE 53279 with 7.

Next time | promise to deal with disk drive tricks.

— Dale Lutz
Canada

BYTES, BITS & NYBBLES

(reprinted from the August, 1983 issue of Keeping PACE)

| wish to present a tidbit of Machine Language (ML) and call your at-
tention to a little known and poorly documented method of incor-
Porating ML subroutines into a BASIC program. Let's start with a very
simple ML routine and look at the various ways it may be incorporated
into a BASIC program. the ML routine listed here does nothing more
than add 5 to a value INPUT from the keyboard. It only works for single
byte values (0-255) and wraps around so 255 +5 = 4 (this is called MOD
256, but that's another story).

Machine Assembler Language
Key Strokes to Produce

Decimal ML code  Hexcode = mnemonic
68 (lowenh]
18 [CTRLIX]
68 (lowenfh]
68 (lowenthy
69 (lowenfi]
05 [CTRUIE]
90 (Atari key) (CTRLI[M]
00 ICTRUL)
06 [CTRUIF]
60 [CTRL

The general form of a USR function is: Z= USR(laddress of start of
ML subroutine], [1st parameter], [2d parameter], [etc.)). When the USR
call is made the OS loads the stack with the return address, passes
the parameters (two bytes for each), and caps it off with a single count
byte of the number of parameters passed. The above subroutine pulls
off the count byte (PLA) from the stack, clears the carry bit of the
status register (CLC) so we start with a clean slate, pulls off the most
significant byte of the parameter passed from the stack (PLA) (we'll
discard this value), pulls off the least significant byte of the parameter
(PLA), adds (ADC) 5 (#05) to the lo byte of the parameter passed, stores
the result (STA) into memory location 1536 ($00\$06), and returns from
the subroutine.

To establish the ML routine in a BASIC program, you are generally
instructed to do some variation of one of the following:

1. POKE it into a reserved memory area — i.e., page 6.

40 GOSUB 100

15 GRAPHICS O:POSITION 5,5:? “INPUT A “INPUT A.

20 Z=USR(1537,A)

30 POSITION 5,10:? A;" + 5=";PEEK(1536)

40 END

100 FOR X=1 TO 10:READ BYTE:POKE 1536+ X,BYTE:NEXT
X:RETURN.

101 DATA 104,24,104,104,105,5,141,0,6,96

2. POKE it into a space above your BASIC program (making these
changes to Program 1):

5 DIM ES(1):REM E$ should be the last thing dimensioned

20 Z=USR(ADR(ES) + 1,A)

100 FOR X=1 TO 10:READ BYTE:POKE ADR(ES) + X,BYTE:NEXT
X:RETURN

3. Assign it to a string by program control (making these changes to
Program 1):

5 DIM E$(10)

20 Z= USR(ADR(ES),A)

100 FOR X=1 TO 10:READ BYTE:ES(X,x)= CHRS(BYTE):NEXT
XcRETURN

If you've used ML subroutines at all you are most likely familiar with
these methods. Now try this:

10 GRAPHICS 0:POSITION 5,5:? “INPUT A ‘“:INPUT A

20 Z=USR(ADR("...*... "),A:REM ..."..." is the sequence of key
strokes as indicated in the table above

30 POSITION 5,10:? A;" +5";PEEK(1536): 2: ?

40 END

You'll notice | PEEKed the answer. Normally “Z” will hold the
answer (taken from 212,213 — lo,hi), but in this case “Z” is equal to the
memory location of the first byte of the ML subroutine within the
BASIC Statement Table. After all, if you've got the byte sequence set
up in the BASIC Statement Table why write it out again in some other
memory area? In addition, if you need to call the ML subroutine
elsewhere in a program you can use the value of "2" to locate it —
USRIZA).

On pages 10-17 of “De Re Atari”, number 19 states “Small assembly
routines can be stored in USR calls" and gives one example. That's it
— the total documentation of this elegant and memory-efficient
method for calling short ML routines.

The advantages of this method are two fold: It saves time and
memory by using the routine from the BASIC Statement Table (since
you don't have to POKE the subroutine into memor
used to make the USR call (Z= USR(ADR("..")) can be used to make a
later call (X=USR@)).

— John David McFarland II1

14

Page 15 (scan)

VECTORS & ADDRESSES

(reprinted from the November, 1983 issue of the Atari Computer Club
of OKC)

Now it's show & tell time for my latest how-to in ML. In spite of all
the great things | said about the Synassembler last time, | am NOT
selling my Assembler-Editor cartridge (Atari). | still have use for a
VERY compact, simple Assembler in incorruptable ROM. This means
it rarely crashes when | change an operating parameter.

As l've mentioned before, almost everything in the Atari Operating
System (OS) is vectored. The reasoning is that if a ROM must be
changed (revised) then every piece of software jumping to the loca-
tions may not be able to find the place it's supposed to go. Either the
routine has been moved, or since it is not common to leave much extra
space in ROM, it may have been moved around somewhat to make
room for another routine which had to be added or fixed. The solution
in the 400, 600, 800, 1200, 1400 series is to have pointers. The pointers
(called vectors) are places holding the locations of the actual routines
or hardware addresses. These are “guaranteed” not to be moved by
Atari. So, even if it IS redundant to jump to a location merely to tell you
to go to another location, there is a method to the madness. If
something does get changed on the destination end (to which the vec-
tor points) the original software program doesn't need to be changed,
just the address in the vector. All the original program has to do is
remember where the vector is and go there, Atari will take care of the
rest.

Another side benefit of this is there is really no reason a person who
is aware of the operations can't change the vectors to point to their
own routines first. For example, when a key is pressed, it generates an
interrupt request to the CPU. This means “stop what you're doing and
checkout the keyboard if you're not too busy.” Normally, the CPU will
then jump through or go to a vector telling it where the keyboard
routine is in the OS. HOWEVER, put your own routine in, cange the
pointer (or vector) to point to it, and instead you can go to your own
routine.

WHY? As it infers in De Re Atari (the inspiration for this stuff): He
who controls the keyboard controls the system. If the system goes to
your routine 1st, your routine (another name for a short program) can
change anything about keyboard input. My program simply checks to
see if the key pressed is CTRLW. If not, it goes back to where the
original vector went. If it makes it through the 1st “filter” (IS a CTRL-W)
then the rest of the routine executes.

Again, WHY? The reasoning behind this involves modems and me.
‘At 300 baud | have no problems — if you want to stop everything from
going by for a moment, you hit CTRL-S (called X-Off). This suspends
the sending of data until you hit CTRL-Q (X-On) to go on. Fine! Now |
work with a larger system using 1200 baud and 80 column lines. At
1200 baud the words are appearing on the screen (via the phone) 4x as
fast and long lines of text don’t end at the edge of the screen but wrap
around, making some words hard to read. By the time | can look down
at the keys and put my slow fingers on the CTRL and S keys, what |
wanted to read — | said I'm slow! — is gone. So'l redefined one of the
keys as above so that if CTRL-W is pressed, it'll get through the filter
and cause my code to check flags (to see what was sent last) and then
tell the CPU (lie to it) and tell it the key pressed was either a CTRL or
CTRL-Q (always opposite of the one sent last time). The next benefit of
ths is | can now hit one key and the modem stops sending. Hit another
and it resumes. Now, why go to all this trouble? Well, of course this is
only a how-to. You don’t have to do anything as insignificant as this.
It's elegant and you don't have to modify or even know what the pro-
gram does. Just pick any key it doesn't normally use and redefine it

Only 3 other things ought to be mentioned. When the OS gets (and
responds to) one of these interrupts it 1st pushes whatever value it
was working on before interruption (the accumulator) onto a temporary
storage location called “the stack”. This is just a group of locations
used for temporary storage. Before RTI (ReTurn from Interrupt) you
should put it back as it was (PLA or PuL| Accumulator from stack). The
Atari Assembler reserves 2 memory locations for an address when it
sees a label, so what | did was LDA with 8 bits of the Vector destina-
tion and put it into part of the space left blank for JMP during the first
pass of the Assembler. | then repeated this for the other half of the ad-
dress (addresses are 16 bits long and the accumulator only 8). This is a
very often used method of “moving a vector” because, even if Atari
changes the ROMs and destination address, you're still going to
wherever the vector said and you don't even have to know what the ad-
dress in it was. The third note is that none of the codes for the keys are
yet ASCII. The OS was in the process of getting info from the keyboard
‘and that info is in the internal form or the actual value produced by the
keyboard matrix. As always, there are lots of comments in the code to
tell you play-by-play what's going on.

Parting Note: | don't charge for the programs | write in these pages
(they're about as sellable as a board with a hole...HEY!...), but if you
ever want to use a close derivative of one in your programs, newslet-
ter, or magazine, | just love to see my name in print (I'm a ham), so you
might mention ‘lil ol me. Thank you.

15

;VKEY.SRC—TOGGLES BETWEEN SENDING CTL‘S OR
CTL-Q (STOP & START FOR TELECOMM) WHEN CTL-W
(FOR CONTROL-WAIT) IS PRESSED. THIS WORKS BY
RE-ROUTING KEYBOARD VECTOR

;ADAPTED FROM PG. 8-15 OF DE RE ATARI

(NOTE THIS IS INTENDED AS AN AUTORUN FILE—NOT
A BASIC USR CALLED FUNCTION

CH=$2FC

KBCODE =$D209

VKEYBD = $0208

INOTICE ORIGIN!!!!

$3FD ;| PUT IT IN CASSETTE BUFFER—IF YOU
WANT TO USE CASSETTE—BETTER MOVE IT!

START SEI ;SO WON'T BE BOTHERED WHILE MOVING
VECTOR (INSURANCE)

LDA VKEYBD ;STEAL KEY VECTOR

STA JUMP +1 ;& PUT IN AT END.

LDA VKEYBD +1 ;OF MY CODE

STA JUMP +2

LDA #REP&255 NOW GET ADR

STA VKEYBD ;OF MY STUFF

LDA #REP/256 ;& PUT IN INTERRUPT

STA VKEYBD +1 ;VECTOR FOR KEYBOARD

CLI ;RE-ENABLE KEY INTERRUPTS

RTS ;BACK FOR REST OF DOS IF AUTORUN FILE—EL
CRASHO OTHERWISE (BUT ATARI DEBUG
RECOVERS—SO OK
ToT

ITH

REP LDA KBCODE ;CHK CODE

CMP #$AE ;CTL-W?

BNE JUMP ;NAH! SEND IT ON

LDA FLGB ;SEE WHAT | SENT LAST TIME THROUGH
EOR #$FF ;FLIP FLAG (DID IT 1ST SO | WOULDN'T
HAVE TO DO IT FOR EACH CASE AFTER BRANCH)
STA FLGI
BNE STP ;
0 BEFORE XOR, SO I GO TO ROUTINE TO SEND CTL-S
{DOESN'T MATTER A LOT WHAT FLGB WAS BEFORE
THOUGH...ALWAYS SEND ONE OR THE OTHER —TOG-
GLE— SO IF IT DOESN'T

;WORK 1ST TIME JUST PRESS CTL-W AGAIN)

GO LDA ASAF ;IF NOT STP-THEN

STA CH ;SEND A CTL-Q

PLA |RESTORE A REG.(O.S. PUT IT ON STACK WHEN
INTERRUPT OCCURED)

RTI

STP LDA #$BE ;SEND CTLS

STA CH
PLA ;RESTORE A REGISTER (SEE ABOVE)
RTI

JUMP JMP JUMP ;REAL O.S. VECTOR GETS MOVED TO
ARG. OF JMP HERE

FLGB .BYTE 00 ;FLAG BYTE

;THIS IS LOAD ‘N' GO VECTOR SO IT WILL START RUN-
NING AS SOON AS ENTERED BY DOS

$02E0
.WORD START

Page 16 (scan)

TYPESETTING
FROM YOUR COMPUTER

ATARI OWNERS: If you have a modem, text editor, and com-
munications program to send ASCII files, you should consider
the improved readability and cost savings provided by
TYPESETTING your program documentation, manuscript,
newsletter, or other lengthy text instead of just reproducing it
from line printer or daisy-wheel output. Computer typesetting
by telephone offers you high quality, space-saving copy that
creates the professional image you want! Hundreds of type
styles to choose from with 8 styles and 12 sizes "
And it's easy to encode your copy with the few typesetting
commands you need,
COMPLETE CONFIDENTIALITY GUARANTEED
— Bonded for your protecti
PUBLICATION DESIGN, EDITING, & PRODUCTION

Editing & Design Services

30 East 13th Avenue Eugene, Oregon 97401
Phone 503/683-2657

Best of ACE books

Volume 1 are bound issues of the ACE Newsletter from the first issue,
Oct 80 to June of 1982

Volume 2 covers July 1982 to June 1983
Only $12 each ($2 extra for Airmail), Available only from:

George Suetsugu
45-602 Apuapu St
Kanoehe, HI 96744

SortFinder 1.2

Composite index of Atari related articles from 5 popular computer
periodicals from Apr ‘81 to June ‘83, including ACE. Only $6 for ACE
member from:

Jim Carr, Valley Soft
2660 S.W. DeArmond
Corvallis, OR 97333

a

Aral

Computer

# ENTHUSIASTS
3662 Vine Maple Dr Eugene OR 97405

FIRST
CLASS
MAIL

Atari Computer Enthusiasts
AC.E. is an independent, non-profit and tax exempt computer club
and user’s group with no connection to the Atari Company, a division
of Warner Communication Company. We are a group interested in
educating our members in the use of the Atari Computer and in giving
the latest News, Reviews and Rumors.

Al our articles, reviews and programs come from you, our members,

Our membership is world-wide; membership fees include the A.C.E.
Newsletter. Dues are $12 a year for U.S., and $22 a year Overseas Air-
‘mail and include about 10 issues a year of the ACE Newsletter.
Subscription Dep't: 3662 Vine Maple Dr., Eugene, OR 97405,

President . . Kirt Stockwell
“4325 Sean , Eugene, OR 97402 / 503-689-5355

Vice Pres. ad Larry Gold
Eugene, Or 97405 / 503686-1490

Secretary .... ....Bruce Ebling
1601 River Loop #1, Eugene, OR 97404 / 503-688-6872

Librarian... ce Ron and Aaron Ness
374 Blackfoot, Eugene, Or 97404 (603)689-7106.

Coditor ..... -Mike Dunn
"3662 Vine Maple Dr., Eugene, Or 97405 / 503-344-6193,
Cokditor....... -Jim Bumpas.
“4405 Dillard Rd,, Eugene, Or 97405 (503-484-9925

E.RA.C.E. (Education SIG Editon. Ali Erickson

295 Foxtail Dr., Eugene, Or 97405 / 503-687-1133
E.RA.C.E. Corresponding Secretary ... . -Robert Browning
90 W. Myoak, Eugene, OR 97404 / (503)689-1513

‘Send 27c stamps or coin (50c overseas) to the Ness’ for the new, up-
dated ACE Library List —new in Feb 84!

Bulletin Board

(603) 343-4352
On line 24 hours a day, except for servicing and updating. Consists of
a Tara equipped 48K Atari 400 with a TARA keyboard, 2 double-density
double sided disk drives with an ATR 8000 interface, 2 double density
Percom disk drives, an Epson MX80 printer, a Hayes SmartModem;
running the ARMUDIC Bulletin Board software written by Frank L. Hu-
band, 1206 N. Stafford St, Arlington, VA 22201. See the Nov ’82 issue
for complete details.