Dale’s Atari 800 Games › ACE newsletters

ACE newsletter, May 1982

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_1982-05.

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)

. Atari
A \Computer

if ENTHUSIASTS
3662 Vine Maple Dr Eugene OR 97405

May 1982
Mike Dunn & Jim Bumpas, Co-editors

Too Much Adventuring—by Tom Ettel

Page 2 (scan)

News Bites
~by Mike Dunn, Co-Editor

Stacy Goff has resigned as president of ACE because of his
need to travel alot} our new president is Kirt Stockwell, an
instructor in Computer Science at our local Junior College.
Kirt has written several articles on Structure in programming
and Random Access, and will continue to do this, Marc Beniof
now is programming for Automated Simulations, and will write
for AIN.T.LC, as well as ACE, Jerry White is writting
articles for many publications, Stan Ockers will be found in
AWN.T.I.C, and M.A,C.E, as well as ACE in the future,
Speaking of M.A.C.E, (Michigan A.C.E,), they have taken a much
different way than ACE, and have become a magazine with
advertising, Bulk Mail (I just got the March issue!), and great
articles, The March issue has a superb article 11 pages long
on the new GTIA chip that is must reading for anyone
interested, (M.A,C.E, POB 2785 Southfield, MI 48037 $15
year, $2 issue [March],

In this issue, we have our first original hardware article, a
Cassette interface board that will allow you to use any stereo
cassette deck with your Atari, The schematic was sent to me
by one of our Australian members, and I copied it the best I
could, Recommended for advanced hobbiests until I find out
more about how it works, Let me know how it works for you,
More hardware articles would be very much appreciated by all.

This week Earl Rice and Marc Cator of the Atari User
Support Group came to Eugene to speak to our local members
and answer questions, It was an informative and pleasant
evening for all; next they go to Portland and Seattle before
heading back to Sunnyvale,

NEW BULLETIN BOARD
by Alan Ackezman
MICROBITS
434 W ist
Albany,OR 97321
(503) 967-9075

I am pleased to announce a new bulletin system for Atari
owners with modems, The Bulletin Board will offer many of the
standard services (e.g. Messages,News) and some new ones.
One of them, the Question and Answer service, will allow you
to get help on your computer related problems such as
programming,equipment and rumors, Our other new service,
Ordering, will allow you to buy things from the comfort of your
home, We will offer the best new products, reduced prices and
specials as soon as they happen, and we have free delivery on
all items, In the near future, program downloading and
uploading will be implemented.

You can call the Microbits Bulletin Board at (503) 967-9075.
The hours are from 6:30 pm to 9100 am every day of the week.
If the computer does nat answer on the first ring the system is
not operating for some reason. We would appreciate it if
people using the system would send comments and suggestions
for improvements and new features to SYSOP using the
message function,

This is not the ACE Bulletin
Board!

va
:
:

He | Be BE

PEPE

is:

Benioff At Large — Mr. ATARI
By Marc Russell Benioff

Becuase the West Coast Computer Faire is just behind us,
there is not too much ATARI news, So, I decided to review
four of my Favorite games that I picked up this month. The
games that I will review are! 1)Threshold, 2)Millipedes,
Action Quest, 4)Trivia Trek. All of these games are superior,
and really show what this machine is all about.

Threshold is by On-Line Systems, Ken Williams
("Mr.On-Line" as known among the ranks) told me at the show
that,"Atari Threshold is much better than Apple Threshold,
‘The main reason is because of the superior sound," I had
played Apple Threshold many a time at my friend’s house who
has an Apple, It had already become my favorite Apple Game,
When I booted it up on the ATARI, I nearly, not quite, fell off
my chair, This game is EXACTLY like the Apple version, and
the sound (done by John Harris) is great! The game itself is
written by Warren Shraeder. Threshold begins as huge winged
creatures fly above you as Galaxians, if you will, These are
not normal Galaxians, but highly advanced, in patterns that
will aut do most arcaders the first time, These birds are only
the first of 24 levels of creatures that attack in various
patterns, After every four levels, your fuel is restocked, and
the mother ship gives you a kiss, Does this sound awesome?
Well, it is! But, there is a hitch! You must have 48K, and one
disk drive. But, besides that minor "flaw" if is my favorite
game right now. Throw away Galactic Chase, throw away Space
Invaders, THRESHOLD IS HERE'! As soon as I can get past
the 16th level I will tell you, but it gets a bit hairy right
around there!!

If you like ATARI Coin-Op Centipedes, YOU WILL LOVE
MILLIPEDES!! For those of you who don’t know what
Centipedes is, it is little Centipedes coming down to get you.
‘You must shoot these guys, and score points, while avoiding
ticks, flees, and scorpions. This version is even better than
the version to be released by ATARI in July. These bugs fine
‘scroll across the screen, contrasting the course movement done
by the soon-to-be released ATARI version on 8K cart, To
acheive this fine scrolling, the author had to use one screen
Page for the mushrooms, and a second page for the centipedes,
and unfortunatly when he did this he created a slight flicker
flipping between the screens, but besides this minor flaw,
Millipedes is great. Ahh, but you ask, "WON'T ATARI SUE
THEIR PANTS OFF?" YES!! That is why the product is being
discontinued, and only 500 copies are out there!! Do not
fret-On May 10,1982 they will start shipping a new version
called Train Robber, with the same routines, but different
graphics!! Who are they? They are Software Street in Chino,
CA. See adresse at end of article,

The third game I have recently received is ACTION QUEST!
I have to tell you, I love ACTION QUEST!! It goes on ANY
ATARI machine with a cassette! In Action Quest, you are on
an adventure in a Haunted House. This just isn’t any
adventure, but, if you will, an arcade adventure! You are a
ghost trying to climb up five levels of rooms (6 rooms per
level), and eventually tryink to escape. The things you have to
accomplish in Action Quest are strange. In same rooms you
have to shoot at things, while at others you must solve a
mystery to unlock the prize in that roam. Oh, yes, the abject is
to go into a room, touch a certain object, and leave without
being killed. Sound easy? WRONG!! If you do not have an
adventure mind with arcade reflexes forget it!! I have gone
though the entire game, solved every mystery, and it took me a
total of 3-5 hours! But, even though I have solved it, and know
exactly what to do, I still go back and play it all the time!
Action Quest is a NEW game from anew company called JV
software, Jack Verson wrote the game, and is currently
working on a sequel,

Page 3 (scan)

Trivia Trek is by Jerry White, and is being sold through
Swifty Software, When I get tired of playing my arcade games
and want something to stimulate my mind while still being
entertained, I turn to Trivia Trek! TT is aquiz, You are given
a category, or you can choose one, any must answer questions
on that topic, The answers you choose are multiple choice, and
response is controlled by the joystick, or key board!! There
are mucho categories located on the Z disk program, but when
you are through with those (in about 4Z years), you can design
your own with a built in utility. Pretty neat, Hun! From the
same company that brought you My First Alphabet, and from
the man you have bought such games asi Name that Song, Trick
Tutorials 6 and 7, and Sunday Golf, bring you TRIVIA TREK, I
am sure the thinkers will enjoy Trivia Trek!

Other games I have recently recieved, and regard as top
natch aret Apple Panic, Deluxe Invaders from Roklan, and
Nominoes Jigsaw Puzzle from Artworx.

Recently I wrote a review of a game called, "Ali Baba" from
Quality Software, I basiclly said it was a game with great
sound, and graphics but to play you needed, "NERVES OF
STEEL!" Bob Christenson, owner of QS, approached me at the
SF Fairey and said he didn’t like my review. Well, I told him, “I
didn’t like your game, I paid $45, and 1 AM ENTITLED TO MY
OPINION" He said that he agreed with me, about having the
right, but still disagreed. I told him I would put this
paragraph in my column, and would remind people that reviews
Ido are my opinion, and nat anyone elses. I still dan‘t like the
game, and still is $45 sitting in my disk box, never to be used
again, Maybe I'll reformat it, then I will have lost only $40, of
course that is my opinion.

Feel free to quote me on any of my reviews. And I will
have romors and facts next month in Benioff At
‘Large-Mr.ATARI.

MARC RUSSELL BENIOFF

So ae? ES TS SS. Ss
DISKSC AN

Author! DAVID YOUNG

If you ever wanted a powerful utility for examining and/or
modifying sectors or files on a disk, this is it! I was first
impressed with the documentation, It is on the disk} you print
a full 14 pages of very readable user guide and an excellent
tutorial about Atari disk data structures.

‘The program itself is menu driven, and very user Friendly.
There are default values for all requested input, and you may
specify sectors in decimal or hex» You can display directory
information (names, starting sectors, status, etc.) or display
the contents or any sector (hex or characters at your choice),
Changing data in a sector only requires positioning the cursor
(screen editor), changing the byte(s) on the screen, and giving a
write command, The most advanced feature my DISKSCAN,
though, is the ability to do an on-screen disassembly of any
machine language portion of the Disk, You display a sector,
tell the disassembler where to start, and watch the assembly
language appear on screen beside the sector data display! Not
only that, but DISKSCAN has an in-line assembler so that you
can input assembly language to add or modify machine language
at any place in any sector,

Another handy feature is the ability to dump any display to
the printer, There is not space here to do more than mention
some of the other features, such as search part or all of disk
for a 1 or 2 byte sequence} transform section of code to a load
file} image segments to another disk} etc. I believe this to be
the most powerful tool yet for anyone who wants to get on
really intimate terms with his disk based software

DISKSCAN is marketed at $45, but David is making it
available to club members for $25 postpaid, when ordered
through him, at 421 Hanbee, Richardson, TX, 75080, Make
checks payable to CDY Consulting,

Requires 32K (24K if you don’t use the optional
assembler/disassembler features).

‘Bill Halberstadt

Newark, DE 19713

505 Lark Drive 3

Letter Perfect—-ROM
version #2¢
LwJ.K, Enterprises
P.O, Box 10827
St, Louis, MO 63219-0827
(31498946124

WOW! Imagine pluging in a neatly packaged ROM, having
your DOS and program booted instantly! The new Letter
Perfect ROM does that and more} it is the first ROM based
business program for the Atari, and the first ward-processor
that can be configured for any parallel printer, After turning
on your computer, you are asked 1f you want one of the default
printers (Atari/Centronics 737 & 739, Epson, Qume/ Diablo, or
Diskette, If you choose a default printer, you instantly get
the LP menu and proceed. If you chose the diskette, a program
that was previously programed by you is loaded in, and your
ready to go. With the printer program disk, you program it by
answering a series of questions such as giving the CHR$
number for your printer for underlining, types of fonts, etc.
‘You can also change the default values for the Atari and o'
printers for such things as the top margin, !ine spacing, etc.
Very easy and very handy way to configure LP to work with
any printer. And you don’t have to wait for the DOS to load
in!

‘The new LP ROM also has added several useful commands
to the last version, You can add in the editor special print
charactors for the control of your printer by using CONTOL-V,
then a letter, number or CHR$ command. You are now able to
easily scroll backwords one page at a times Goblal replace
with or without prompting 1s now allowed, The handiest new
command allows you to chain files together, with the new file
starting exactly where the old stops, maintaining all the
format information of the first files

The ROM comes very attractively packaged, well
documented, and includes MailMerge, a $30 utility that allows
you to merge a mailing list, change the file from LP to DOS
files and back again, as well as other handy utilities. This
enables you to use any file with LP; however, the new LP
appears to be incompatable with disk-version LP’s!, It will
soon be available in an 80 column format compatible with the
BIT-3 80 column board reported last month (BIT-2, $120 Penn
Ave, So-Suite 548, Minneapolis, Minn, 55431 (12)8 155),
LiJ.K, will have a special package price for the two.

DataPerfect, the new database “sister” to LP should be
ready soon and mates with LP for form letters, etc:

Is LP worth all that money? If you want a powerful, very
easy to use wordprocessor that does just about everything,
comes on a ROM for instant use, can be configured easily for
any parallel printer, and is compatable with a database, I
would say so. LP is particularly good for long documents such
as books because of the ability to page and chain chapters, a5
well as to screen format by page, I have had as many as 25
pages in memory at one time with no problem or slowing of the
program. Wath the Chain function, you couid write a book as
long as you would like, When the 80 column version comes
out, with the BIT-3 board, there will be no competition!

Dunn

ELCOMP’s Winfried Hofacker

Page 4 (scan)

FILE-IT 2, & Review
(Swifty Software, PO Box 641, Melville, NY 11747} $50,
Written by Jerry White)

Review by Stacy A, Goff

FILE-IT 2 is a collection of programs intended to allow basic
record-keeping on your Atari Computer, It requires an Atari
with a minimum of 1 disk drive, and 32k ef memory. A printer
15 recommended to gain full value from the system, although
once-a month access to a friend’s printer can be workable,

With this ‘database system’ there are three record-types you
may use} all are simple formatting of S0-column card-images
(shades of the old days!)t
»  Free-form entry (you must keep track

of the positions for each field)
* Financial formatting for financial transactions
* Mailing list formatting
As well, one program on the disk allows you to print disk index
inserts.

FILE-IT 2 uses an in-memory record-keeping method (as
appased to anote/point keyed random access method) to store
and save all data, On a 40k Atari system this allows up to 304
records in one file, On a 32K system one can have 202 records,
The advantage of this in-memory system is that file
manipulations, such as sorting, record modification, scanning,
listing and deletion are more efficiently done, The
disadvantages include file size limitations, and the length of
time it takes to read and write theentire file at session
beginning and endy

On to specifics abaut the three subsystems.

FREE-FORM ENTRY —- This is the original FILE-IT program,
and allows you a free-form 80-column record which you format
and fill in however you wish, This approacn has unlimited
flexibility, but the record Formatting must be consistent if the
information is to be listed with any meaning, A nice feature
would allow the first record to be a data mask, which defines
the format of all fallowing records, This data mask could be
printed on the screen any time records are added, displayed or
changed. The file manipulation capabilities are reasonably
good, and may be used with the formatted files of the other
two record types, These capabilities include sort, print, select
records, list (2 records at a time), fix or delete records. The
sort is painfully slow} the system could use a scan feature
(display or select all records containing xxx; or xxx in yy
positions).

FINANCIAL RECORDS -- Here is the best part of the system,
from my point of view. With prompting, you enter date,
accounting code, income and expense figures, and two
transaction descriptions, You may then produce a monthly
Revenue/Expense report, as well as year-to-date summaries,
Finally, you may barchart your monthly balances, on the screen
and optionally, the printer, All records may be manipulated
with the capabilities explained above, so transactions may be
sorted, etc. Some validity-checking is done, although I
managed to put alpha and special characters into positions in
the value fields. The program does not discern between 12/31
and 12/82, so you must seuregate your files by calendar year
sn order to have meaningful reports, The reports are extremely
well done.

MAILING LIST -- Using a Specially modified version of the
entry and listing programs to allow formatted mailing list
entries, this is a handy addition to the package, although user
modification 1s not possible (for instance, addition of a
comments field). Again, all file manipulations of the free-form
entry program are allowed,

OVERALL COMMENTS! In addition to the observations above,
some general comments are in order!

* I would not consider this a true database management
system (of course I have not seen a true DMS yet for any
microcomputer), Instead, I would consider this to be a good
card-image pidgeon-hole system, with flexible data
manipulation features.

* The documentation is good} a schematic showing how the
various parts of the program interact would be helpful.
Appendix 1, page 3 was blank in my copy of the documentation,

* The programs support the use of Axlon’s new Ramdisk, an
advantage if you are doing a lot of updating of the same file,

4

* Error trapping is a little inadequate or confusing at times}
especially when dealing with maximum file capacity--there
should be a ‘memory full’ message,

+ The system needs an option for a quick index to data files
on disk each time you are asked for a filenames

* A start-up package, which allows the programs to be
configured to a one-drive or multiple drive system, would
eliminate the painful repeated ‘drive#’ prompt.

% Imight prefer to chart my income or expense in the
bargraph, rather than my net. Negative figures should be
plotted, rather than ignored,

%* The human engineering is fairly good, but could be cleaned
up, especially in the multiple switching of disks back and
forth. I tried putting programs and data on the same disk, and
this cleaned things up considerably, but leaves little room for
data,

* The financial system and mailing label systems can handle
more than the 304 record maximum, however if you wish to
perform any file manipulations using the sort, list, fix etc.
features, you must use the select feature to build a smaller
working file,

CONCLUSIONS: If you are a beginning user, or are now moving
from games to practical applications, FILE-IT 2 is a useful,
although unsophisticated addition to your program library. For
its $50 pricetag, you recieve a disk full of useful programs,
Much more sophisticated programs are available, but they cost
twice as much, and are not tailored to such specific
applications as is FILE-IT 2,

MicroCue
Printer Spooler
POB 7624, Atlanta, GA 30357

(404)874-8366

I recently picked up a Printer spooler for my
Atari/Centronics 739 printer, but unfortunately the instruction
book had been lost by the dealer, I called the company, who
was extremely helpful} and when I hooked it up wrong, they
could tell me on the phone which wire was shorted out, A
printer spooler allows you to send data to a buffer at computer
speeds, then start printing while you get your computer back
for other purposes. It's almost like having two printers, it
speeds everything up so much, They have several models from
3the basic 16K one port to 256K 4 port. The model I have will
allow input serial/parallel, and output serial/parallel, so you
can use a word-processor designed for parallel output with a
serial printer. You can also program it with the new model
(not mine) to convert charactors, so any word-processor could
be used for any printer!! Prices range from $299 to $899, Well
worth looking into, espcially if you want to use a slow
letter-quality printer with any of the available Atari
Word-processors.

M, Dunn

INSTEDIT

"“Instedit" is an excellent character generator program
written in Basic and machine language, Sheldon Leemon is the
author, and he won Zd place in Atari’s 1981 competition with
this one, It’s available from APX, Box 427, 155 Moffett Park
Drs Sunnyvale, CA 94086 for $17.95, It requires a joystick.

‘A 2i-page user's manual is provided which fully explains
all the powerful functions available when using this program,

The screen displays 6 colors and an 8x8 grid in which to
design or modify characters. One of 15 different commands
may be executed upon the pushing of a key. One may (Edit,
(Slave, (L)oad, (Wirite an entire character set. One may also
operate upon a single character? (A)tari returns the Atari
character set} (B)lank out the character} (C)opy any other
character onto the one being modified} (Invert it} (Mirror it}
(Restore the character originally chosen to edit} or, (Twist
the character through 90 degree turns,

The screen prompts you with "Which character to edit?" (or
copy) when (E) ar (C) is pushed. The 4 cursor arrows allow you
to move the character around on the &x3 grid, The joystick
moves the cursor on the grid, and the trigger places or removes
ablock of color, When a letter is chosen to edit, the screen
also keeps an example of the original character, and its ASCII
code number, in the upper right hand corner.

Page 5 (scan)

The lower half of the screen keeps a continuous display of
all current characters in the set. A 4-line window at the
bottom also displays the current character being created in 5
different modes simultaneously, The <OPTION> key lets you
enter and exit a "memo pad" mode which you can use to print
strings of characters and build larger characters by combining
them. This mode supports character modes not even available
in Basic.

This program performs for me a very powerful utility
function. I’ve not been able to discover any bugs or problems
trying to get the program to do what the manual says it can do,

=~ Jim Bumpas

SANTA CRUZ SOFTWARE’S
PLAYER MISSILE GRAPHICS
TUTORIAL

REVIEW
by
Chuck Ross

This Tricky Tutorial from Santa Cruz Educational Software
is number 5 in their series of tutorials on programing with
your Atari,

‘The program begins very at a very basic level and procedes
to explain to the uninitiated about player-missile graphics,
The programs are self-prompting and effective as tutorials.
All together there are 14 programs on DISK or TAPE and about
50 pages of documentation including complete listings of all
the programs so you can scan the code easily while learning
about player missile graphics. Some of the areab covered are
memory area of PM graphics, how to draw players, using
missiles as players, movement of players (including animation),
size selection, resolution (single/double), priority and colision
registers.

Included in the package is a game using some of the
techniques you will learn in the tutorial. Also a PM graphics
design program, which displays all five possible players and
moves them for multiple-color-player, All in all a very good
package (expecially for those who have gotten lost in the
numerous PM magazine articles),

So long For now.
‘Your ACE exchange Librarian
Chuck Ross,

see MINI-REVIEWS###
by Steve Berg
Philipine Islands
RASTER BLASTER
BUDGE Co. 3835
32K DISC

Well you pinball wizards can now save your quarters and gas
and play at home with your ATARI and Raster Blaster. This
budge co. game is identical to the apple version you've seen
advertised, It will allow one to four players and you control
the flippers using two joystick fire buttons, It has an easy
and hard version and best of all the action is suprisingly
Ppinball-like. It has nice but not super sound effects. I
recommend it for all of you who can not pass up that arcade
without leaving a few quarters behind,

CROSSFiRE
Online Systems
‘32k Disc $30

Crossfire is an excellent one player chasem/shootem game
where you are being chased around horizontal and vertical
"streets", Using the joysticks (or keyboard) you can move and
shoot in four directions. Each of the approximently 12 chasers
must be shot four times before it is destroyed. Each time you
clear the screen you get anew batch and fewer bullets before
you must reload, It is a great arcade game at which
sooner (probably) or later you'll be wiped out.

SAVMOV REVISITED
by
Ed Chastain

This article further discusses the use of SAVMOV from the
January 1982 issue of the ACE Newsletter. Several people
have had difficulty understanding what starting address to use
with their disassemblers, When I wrate the January article, I
assumed the people interested in using it had knowledge of the
structure of cartridge programs, Unfortunately, this is not
always the case, Prompted by a phone call from Randy in
Florida, I am now providing additional background on cartridge
programs. Those who have the Operating System reference
manual should look at Chapter 10 as a reference for this
article, There are six bytes in a cartridge program which
provide additional information about the program for the
Operating System, These addresses are $EFFA through $BFFF
in the cartridge. After running through the SAVMOV process
they correspond to addresses $SFFA through $SFFF.
Addresses $EFFA and $BFFB, contain the value of the low and
high bytes of the cartridge’s starting address. This value is
also the starting address where you shauld run your
disassembler, Address $BFFC always contains a zero, this is
how the Operating System verifies there is a cartridge
present. Address $BFFD 1s the option byte, used by the
Operating System to determine if it should boot DOS or not.
Addresses $BFFE and $BFFF contain the value of the low and
high bytes of the cartridge’s initialization address. This value
usually points to an RTS (assembler instruction). If there is
an initialization routine then you should run your disassembier
at the value stored there, Please remember $A--~ will be at
$4——-, and $B--~ will correspond to $5---,

When running your disassembler, all short branch
instructions (BMI, BNE, BEQ, etc.) are based on the relative
displacement (+ or - so many bytes from wnere you are at).
They will be shown by your disassembler as addresses between
$4000 and $SFFF, Remember only the relative displacement 15
important, not the actual address shown,

The JMP and JSR assembler instructions generally use
actual addresses, i.e, $xxxx. This address will not be changed
by the disassembler, For example, if your disassembler says
IMP $BC1D, this means JMP $SC1D in the relocated program,
‘The value $BC1D will not be changed since it is an absolute
address and not a relative displacement,

Scattered among the cartridge addresses will be text or
data which are used by the cartridge program for error
messages, character sets, etc. When your disassembler runs
through one of these areas, since it is data and not machine
instructions, it will appear as meaningless garbage, If your
disassembler has a text or ASCII mode, then try it, you may
then better understand what that section is,

1 REM A STRANGE PROGRAM BY A STRANGE PROGRAMMER
PAGE 1

2 REM BY JERRY WHITE

10 GOTO 30

20 POSITION 0,0:FOR ME=1 TO 959:?
CHRS(INT(RND(0)#155);3NEXT MEPOKE 766,0:RETURN

30 GRAPHICS O!POKE 752)1{POKE 710,0:POKE 764,255:POKE

82,51? 1?
40 2 1? "RANDOM INSANITY BY JERRY WHITE”
5071?" PRESS ANY KEY TO BEGIN"

4071?" THEN PRESS ANY KEY TO STOP"

70 IF PEEK(764)=255 THEN 70
80 X=PEEK(106)~1!Y=PEEK(75¢}POKE 764,255

90 GRAPHICS 0!POKE &2,0:POKE 83,29:POKE 766,1!POSITION
0,01GOSUB 20

100 POKE 756,INT(RND(0)*X)SSETCOLOR 2,INT(RND(O)#16),0
110 P=INT(RND(0)#240}+5:FOR V=8 TO 0 STEP -0.2:POKE
709/INT(V#2)

120 SOUND 0,P,10,ViSOUND 1,P+2,10,V:
2,P+4,10,VISOUND 3,P+6)10,ViNEXT V
130 IF PEEK(764)=255 THEN 100

140 POKE 756,Y:POKE 764,255:GRAPHICS 0:POKE 82,21? 17
"STRANGE, WASN'T IT?END

SOUND

5

Page 6 (scan)

ORK”!

ms SEE ait

ab t. 26 Et

i See See NEPARSS

bi eee Pit

Het BATS #233
by
Stan Ockers, Lockport, IL

In the March ‘82 issue of ‘Softside’ you'll find an excellent
program called ‘Quter Space Attack’ by Sheldon Leemon, This
program uses a number of specialized techniques including an
interesting way of handling Player Missile Graphics. The
method used is to locate the player missile area where a set of
strings are stared in memory, Using string operations one can
then insert players, move them vertically, or erase them quite
easily. About the only disadvantage of this method is it’s not
hooked into the vertical blank interrupt so movement is not as
‘flicker free’ as it might bes

I've used this method in a program I call ‘Bats’, Line 140
sets up the PM area} the string F$ is used to make sure the
player missile area falls on a 1K boundary (double line
resolution). Notice how easy it is to clear an area of memory
asin line 170, The missiles are used as insects and a very
simple vertical blank routine is used to update their horizontal
positions every 1/60th of a second Wines 179-190), The cavern
is made by redefining a few characters in the character set and

This program handles a problem which has bothered me for
some time, If you once initialize PM graphics and then do a
Graphics command (GR, 2), you end up with the player missiles
being vertical stripes which run the full length of the screens
Reversing the PM initialization doesn’t seem to help, The
problem is the chip which feeds the screen, It has some
registers which are normally being filled by ANTIC during PM
graphics. This chip can be disconnected from ANTIC (0 in
53277) but the registers still have information in them which
results in the vertical lines, These registers (53261-53264)
have to be cleared with pokes as in line 1000, PM graphics is
then reinitialized after the graphics mode change (line 2000)

‘You may have noticed a lack of attention to color in some of
my programs, There are two reasons for this! (1) Colors vary
from set to set and the ones I choose might not look quite
right on your set} and, (2) I normally use a black and white set
and am more interested that things show up well in black and
white, T have just used the default colors in ‘Bats’ and there
is plenty of room for improvement.

ing these to print in GR. 2 mode.

1 REM ##0teeneneanannersenenee

3 REM # te
4REM* ACENEWSLETTER  #*
SREM* MAR 1961 wet

6 REM ** 36627 VINE MAPLE DR #*
7 REM ## EUGENE, OR 97405 ¥#
SREMs# $10YEAR = ##

9 REM Retteeneeteneaeeeererees
20 REM #40xeeneenneneseeenae
20 REM3* BATS — #*

40 REM #* 5,0, 2-82 #2

50 REM #teseeeterenerereenee
100 DIM 228(32FOR I=1 TO 32:
READ At27$()=CHRS(A)\NEXT LG
QSUB 32000CLR

102 DATA 104)104,133,204,104)1
33,203)104)133,206,104,123,205,
1162y4,160,0

104 DATA 177,203,145,205,126,2
08,249.230,204)230,206,202,208
1240,96

110 GOSUB 3000

130 TRAP 1201? "# PLAYERS "#!P
OKE 764,255:INPUT NP

13 REM ** PM GRAPHICS #*

139 REM ## SEE MAR ‘82 SOFTSID
EP, 49 +

140 DIM D$(1),FS(QNT(ADRIDS)/
1024)+1)#1024-ADR(D$)-1),PM$(3
84),M$(128),P$(128),MM$(2)

150 RESTORE 140:FOR I=1 TO 8iR
EAD AIMM$(D=CHRS(A)INEXT I
{gO DATA 8,9,12)124848,1921

9%

170 PM$=CHRS(0)1PM$(384)=CHRS(
ONPM$(2)=PM$iM$=PM$iP$=M$
172 REM ** MISSILE COLORS ##
174 POKE 704,14:POKE 705,39PO
KE 704,541POKE 707,70

179 REM #* VBI ROUT, TO MOVE M
ISSILES #*

180 FOR 1=1536 TO 1566tREAD At
POKE LAiNEXT I

190 DATA 104,160,14,162,6)169,
7,76 s9Z)222,90 120,150 )180)162
piuauawtreseaa. WS

4,76,98,225
199 REM ## BAT IMAGES #*

200 DIM BATDNS(5):BATDNS:
R I=2 TO 4}READ A'BATDNS(L,=
CHRS(A)NEXT I

210 DATA 24,145,66

cA

That's it!

220 DIM BATUPS#(S);BATUP$=P41

RI=2 TO READ AIBATUPS(L)
CHRS(ANNEXT 1

230 DATA 66)165)24

250 POKE 54279,ADR(PM$)/256iPO

KE 55946:POKE 53277,31POKE 62

3,4:A=USR(1536)

259 REM ## STALACTITES AND STA
LAGMITES #*

260 DIM C$(42),US(42:C$="88 He
SBE EE USS") (ER
“FOR I=1 TO 14:C$(+14)=CHRS(
ASC(CS(1))-32)

270 US(I+14)=CHRS(ASC(US(D)-3

DIC$HI+28)=CHRS(ASCICS +12

81U$(1+28)=CHRS(ASC(US +12

8)NEXT I

272 DIM P(NP),SCORE(NP),TOTAL(

NP),BN(NP),BONUS(NP)

275 W=7!P=0!POKE 82,0

278 FOR I=1 TO NPISCORE()=0:T

OTALM=0:EN()=3:BONUS()=100

O!NEXT IINXTCV=300#NP

279 REM ** CHANGE WIDTH OF CAV

ERN +

280 IF W>3 THEN W=W-1

282 GOSUB 480

284 P=P+1tIF PNP THEN P=1

286 IF BN(P)=0 THEN 264

287 M$=PM$:FOR I=0 TO 3iMs(¥ST

454W+W#(3-D)=MM$(Z4I+1 28142)
sNEXT I

289 REM #* MAIN LOOP #*

290 POKE 656)1!POKE 657,223? *
Pull Joystick"

295 IF STICK(0)<>13 THEN 295

299 REM ## SCORECARD +#

300 ? CHRS(125)GOSUB 700:POKE
656,0!POKE 657,26:? “PLAYER #

“SP

301 POKE 656)1;POKE 657,24?

Round Total"iGOSUB 840

306 POKE 53248,30:YPOS=YST+20:

POKE 53278,0:T=0:DIS=12

310 FOR XPOS=47 TO 200POKE 53

248,XPOSIIF STRIG(0)=0 THEN YP

O8=YPOS-1:P8(YPOS)=BATUPS$
320 IF STRIG()=1 THEN YPOS=¥P

OS+11P$(YPOS)=BATDNS

330 IF PEEK(53256)>0 THEN POKE
1546, 0STOTAL(P)=TOTAL(P)-100%

GOTO 420 6

~Stan

340 IF PEEK(S3257)>0 THEN POKE
1547,0:;GOSUB 900

350 IF PEEK(53258)>0 THEN POKE
1548,0:GOSUB 900

360 IF PEEK(53259)>0 THEN POKE
1549,0%GOSUB 900

970 IF PEEK(S3252)0 THEN 420
390 NEXT XPOS!PS=PMS

295 IF SCORE(P)¢300 THEN 306
400 TOTAL(P)=TOTAL(PHSCORE)
{SCORE(P)=0:GOSUB 870

402 IF TOTAL(P)>BONUSIP) AND B

N(P)<4 THEN BONUS(P)=BONUS(PH+
1000!BN(P)=BN(P)+1:GOSUB 700:D
1S=10'T=30:GOSUB 630

403 FOR I=1 TO 30:GOSUB 880:FO

RJ=1 TO SONEXT JIGOSUB 860iN

EXTI

404 IF P=NP THEN 280

410 GOTO 284

419 REM ** LOSE A BAT ##

420 DIS=10:T=9:GOSUB 630

430 YPOS=YPOS+1iP$(YPOS)=BATDN
$iPOKE 53278,0SOUND 1,YPOS)10
WO:F PEEK(S3252)=0 THEN 430
445 GOSUB 640:P$=PM$!SCOREP)=
O'BN(P)=BN(P)-1;GOSUB 70011F B
N(P)=0 THEN POKE 656,0POKE 65
7,63?" “GOSUB 660

460 GOSUB 850:FOR I=1 TO NPUF
BN()20 THEN 403

470 NEXT IiGOSUB 1000:GRAPHICS
17{POSITION 5,21? #4}"GamE Ov

‘OR I=1 TO NP!POSITION 3,2

2 #6}"Player #°xT5

4722 #63" = “STOTAL(DINEXT I

SPOSITION 3,23:7 #6;"PRESS ANY
KEY";

475 FOR I=1 TO 300:NEXT 1:GOSU

B 4SSiIF FL=0 THEN 475

476 GOTO 275

479 REM *#* DRAW CAVERN #*

480 GOSUB 1000:GRAPHICS 2;GOSU

B 2000!POKE 77,0

490 DL=INT(RND(O}(8-W))+1:YST

=8e(DL#1)

500 FOR X=0 TO 19{GOSUB 590:¥=

OIFOR I-R+7-DL TO R+éiPOSITION
XoY1? HOICSCDIY=¥ +1 NEXT T

510 FOR I=1 TO WiPOSITION X.Y

2 eos IY=YHUINEXT I

920 IF DL+W>=10 THEN Y=Y-1iPOS

ITION X,¥1? #6}""GOTO 540

Page 7 (scan)

530 GOSUB S90:FOR I=R TO R+
L-WIPOSITION X,¥:? #63081
Y=YHINEXT I

550 IF DL>=10-W THEN DL=9-W:GO
70570

560 DL=DL+INT(RND(O)#3)-1

570 NEXT X

580 RETURN

590 REINT(RND(0)#6)*7+1 RETURN

629 REM ** SOUND SUBR’S ##
630 FOR I=15 TO 0 STEP -1:S0UN
DO,1,DIS FOR J=1 TO TNEXT
JINEXT LRETURN

640 FOR I=10 TO 2 STEP -2:SOUN
DO,RND(O*255,2,1SSOUND 1,RND
(0'#255,8,SFOR J=1 TO 30:NEXT
SINEXT I

650 SOUND 0,0,0,
ORETURN

455 RESTORE 69711
‘UB 664:RETURN
660 RESTORE 690:L5=Z0:LL=10
684 FL=0

665 READ I,J:IF 1-3 THEN RETUR
N

OUND 1,0,0,

:LL=5:GOS

666 IF 1=0 THEN 670

667 IF PEEK(53775)255 THEN FL
=1RETURN

669 SOUND 0,1,10,10:SOUND 1
2106

670 FOR I=1 TO JiFOR K=1 TO LS
{NEXT KINEXT L:SOUND 0,0,0,0:5
OUND 1,0,0,0

675 FOR I=1 TO LLiNEXT GOTO
665

680 RESTORE 692:LS=12:LL=12:GO
SUB 664

481 IF FL=i THEN RETURN

682 RESTORE 694:GOSUB 664

683 IF FL=1 THEN RETURN

68h RESTORE 692:GOSUB 464

485 IF FL=1 THEN RETURN

685 RESTORE 696:GOSUB 664

687 IF FL=1 THEN RETURN

688 FOR I=1 TO 300:NEXT I:GOTO
680

690 DATA 243,4,243,4,243,1,243
4204421714217 4,243,1,243
14)29541)243)6,3,3

692 DATA 243,1,217)1,204)1,182
91)162)1,204)1,162)1,0)1,173)1

#217 4117341051,182)1,230,1,1
82)1,051.

693 DATA 243)1,217,1,204,1,182
1)162y1,204)1,162)1)12141,3,3

G94 DATA 136y1,162)1,204,1,162
111136 /4,3)3
696 DATA 162,1,204,1,162,1,121
14243 )443,3
697 DATA 81,4,85,2,102,1,108,1
9121 y6)108)1,102)181,2,81,2.8
5,2,102,1,108,1,121,8
4698 DATA 108,2)91,2,102,2,108,
2y121414128,1,121,1,108,1,102,
2)121,2581,4,102,4,121,8,3,3
499 REM ** SUBR, TO INDICATE B
ATS LEFT +#
700 POKE 656,0:POKE 657,63? "
‘POKE 657,6:FOR I=1 TO
BNP)? "+ "NEXT RETURN
850 POKE 656,1sPOKE 657,51? SC
ORE(P)}" "“SRETURN
$60 POKE 656,1:POKE 657,123? T
OTALIP);" “SRETURN
870 POKE 65¢,1:POKE 657;'
“RETURN
880 POKE 656,1!POKE 657,12:? "
“SRETURN
900 GOSUB 630:POKE 53278,0:SCO
RE(P}=SCORE(P}+25:GOTO 850
999 REM ## SUBR. TO REMOVE PM
GR, ##
1000 POKE 53277,0:POKE 54272,0
SFOR 1=53261 TO 53264:POKE 1,0
iNEXT {RETURN
1999 REM ## SUBR. TO INSERT PM
GR. #
2000 POKE 53277,3;POKE 559,46
START=(PEEK(106)+1 3POKE 756,5
TART
20097 REM ## ALTER DISPLAY LIST
*
2010 A=PEEK(S60}+2564PEEK(S61)
2020 IF PEEK(A)}(>46 THEN A=Ati
iGOTO 2020
2030 POKE A,70:POKE A+3,4:POKE
A+4,6:POKE A+5,6,
2040 RETURN
2000 ? 17 1? CHRS(I25):2 "+ +
+HeH+ BATS +t ete eet
3010?" The object 1s to fl
y your bat"i? "through a caver
1 eating flying"
3020 ? "insects along the way,
The only"? “control you hav
e is the FIRE"!? "button. Pus
hit to go up."
3030 ? “Release it and your ba
t starts"? "to Fall's? 17"
A round lasts 300 points or"

Fred Thorlin of AaPxX

3035 ? "until you lose a bat.
Each time"!? "you hit a stila
ctite or a"

3040 ? "stilagmite you lose on
e bat";? “and points earned fo
that round."

3050 ? "Each insect you eat sc
ores points"!? "but do not eat
the bright insect the"

3040 ? “color of your bats, it
1s poison!":? "Eat
u lose round points
00 more and a bat!"
2065 7 “PRESS ANY KEY"IGOSUB 6
3? CHRS(125)2
30702" after a time the ca
vern will"? "become narrower
and scores for the"

2080 7 “last round will be ada
ed to totals"? "Every 1000 p
aints you are given"

3090 ? "another bat, 4 maximum
+ Lose"t? “all your bats and
you are out,"

4000 2 "The game is over when
everyone is": “out of bats,
Everyone uses thes? "leftmost
joystick"? :RETURN

31999 REM ## CHANGE CHARACTER
SET +

32000 POKE 106,PEEK(106)-5iGRA
PHICS O:START=(PEEK (106)+1)#2
S{POKE 756,START/256:POKE 7
1

32010 ? “INITIALIZING «s+
22020 A=USR(ADR(ZZ8),57344,ST A
RTMRESTORE 22100
22030 READ XGIF X
ORE ‘RETUPN
32040 FOR Y=0 TO 7:READ 2:POKE
X+4Y+STARTZINEXT YiGOTO &
22100 DATA 32,255,255,127,127,
126)62,62,60

32101 DATA 40,60,28,28,24,8.3,
88

32102 DATA 48,255,127,126,60,5
624,83

32103 DATA 56,3)24,28)124,124,
254,254,255

32104 DATA 64,601 26,1264126y1
26/1 26)127,255

22105 DATA 72)16)16)16)16)16,2
4 160,40

32106 DATA 80,255,255,255
255,255)255,255

32107 DATA 88,0,24,24,165,145,
66 s66,0

32108 DATA -1

1 THEN REST

Page 8 (scan)

Chicken Dressing
by Hank Hirschfeld, Northvale, NI

One of the things that is nice about arcade games is the
ability to save high scores after the game is turned off, This
is something that can be incorporated in many of the games
that are on disks The ability to open and close files on a disk
allows us to set aside a portion of our disk for maintaining
high score data, Having only owned my computer for a few
months, I'm sue that many of you will find ways to improve on
this concept, In fact, my purpose is to have more programers
put this feature in future games on disk. I must credit the
article in the April 1982 issue of Creative Computing called
“Using Disks with Atari BASIC" by Johnson and Humjphrey for
stimulating my interest.

As an example, I have made a program which can be merged
with the very popular Stan Ocker’s CHICKEN game, The exact
changes will vary from game to game} you will have to adapt
the program as required, but that’s most of the fun anyway!

Thave incorporated a way to keep the high score, generate
a sound indicating a new high, and a way to return the high
score to 0 using a code,

HHS is the high score on the disk
SCORE is a variable for the game score
HIGH is a variable for the high score
XX is a delay loop for the sound

Line 250-Brings high scare on disk into program at the start

Line 719-Compares score with disk high score} if we have
set new high we will go into suroutine

Line 731-IF you hold down OPTION, SELECT and START at
the same time right after "CHICKEN’S DEAD" and hold dawn
until "press fire button" appears, you will reset high score on
disk to zero.

Line 920-End of game, returns to 719 to make comparisons
of scores,

Line 9000, 9010-Opening of file to obtain high score on disks

Line 9020-Compare scores

Line 9040,9050- Write new high score to disk

Line 9060-9080-New high music

Line 9200, 9210-Writes zero score to disk and removes
previous score,

‘You must also establish a file on the disk for keeping this
data, the file used in this program is called
“DUCHICKEN.DAT, To do this, type the following with your
disk inserted, use direct mode so line numbers are not needed?

OPEN #7,8,0)"D1:CHICKEN.DAT"
then press RETURN and typet
INPUT #7,0:CLOSE #7
then press RETURN,
Tf you look at your DOA menu, the file should be there.

749 REM CHICKEN DRESSING by Hank Hirschfeld
250 GOSUB 9000

719 IF SCOREDHHS THEN GOSUB 9040

731 IF PEEK(53279)=0 THEN GOSUB 9200

920 GOTO 719

9000 OPEN #7,4,0,"D1:CHICKEN.DAT"

9010 INPUT #7,HHS{HIGH=HHS

9020 IF HHS>SCORE THEN GOTO 9100

9030 CLOSE #7

9040 OPEN #7,8,0,"D1:CHICKEN.DAT"

9050 ? #7;SCORE‘HHS=SCORE
9080 XX=0

9070 SOUND 3,200-XX,10,81XX=:
9100

3080 GOTO 9070

9100 CLOSE #7:RETURN

9200 OPEN #7,8,0)"D1\CHICKEN.DAT*
9210 ? #7}0ICLOSE #7/RETURN

X+iIF XX=200 THEN GOTO

I leave it up to others to incorporate listing more than one
high score and allowing the insertion of the initials of the
players with high scores,

PICTURE THIS
review by Ruth Ellsworth

David D. Thornburg is the author of this cleverly written
introduction to computer graphics. As stated by the author,
the book is for kids of all ages, and the text is presented with
a rare sense of humor that holds the interest of the young and
old alike, The illustrations are simple, and the text clear, yet
a spirit of excitement and discovery is sustained throughaut.

PICTURE THIS! begins with the most basic instructions and
takes the reader through the creation of simple pictures to
simple games, Several geometric concepts are introducted
using the discovery methad of teaching, giving us the
opportunity to "play detective" which the children found
particularly delightful. They also were very excited about the
way in which the author taught them how to draw simple
pictures and then to move their creations across the screen, I
was very impressed with the step by step method of
instruction used, and the way that the author taught by
example the annotation of programs (see the demonstration
PILOT program), It greatly increased the childrens’ ability to
write their own programming because they could review their
own programs and see what they had done and why,

We encountered only three problems in the entire book
which I list here in what we considered their increasing degree
of difficulty caused by the problem. There were several
printing errors which misplaced pictures in relation to the
text, The author failed to teach the kids that a pragram begun
in AUTO could be continued simply by typing AUTO followed by
the number with which they!wished to restart the program.
Repeated use of the system reset key is encouraged which is
Poor programming technique and quickly becomes a bad habit,

Tused this text on my own kids and borrowed sundry
friends, It was our conclusion that this book is a definite
MUST for anyone owning the Atari PILOT program. I would
further suggest that it be used as the first introduction to
PILOT for either children or adults, followed by the PILOT
student manual which is adaptable enough to be used as a
second text,

HARDWARE

The circuit diagram was sent to me from one of our many
Australian members. I could not call him to ask questions! IF
one of you brave souls could make it, let me know of your
experiences, etc. Would really appreciate a printed circuit
diagram that I could put in the Newsletter for all. Maybe
someone could even make a kit and sell to members for a
nominal price,

Parts list

Misc.
1 x IC LM324N Quad OP AMP
4x Silicon Diodes, Low power

Resistors (Ohms)

1x 820
Zxik

Sx 47k
Lx 56k
1x7,5k
1 x 10k
2x 15k
1x 56k
1x 82k
1x 240k
1x 270k
2x 330k

Capacitors (Disk Ceramic)
4 x 820pF
1x 47pF
1x inF
2x4,70F
2x 3anF
2x OluF

io
ig

1 x Svolt relay
1 x jiffy box

Page 9 (scan)

Cassette Recorder Interface for the Atari
4007200 Computer

by Denis Biddle, Australia

Compe Oceabee Recorden
Dad tir 21 |e Pivvaee
tsa ake
ine Bua Pit
| cuoowel
¥
3 a pwS

% YT KQ Hg kD yan ke

Yet 9

a Oua ve

if sHee sola
i Tow

cndawel ' PSS

Ka. B
Gwe eee
Wy

= ab ccr ey

494 Ground

Computer Contnailed Auto oulore oF Cussete mitee fopticws!) _ 8 Motor control of cassette and

+5 volts for external
rotmelly open tones

5 Data output, conect directly
to record in of cassette.

Relay
Revoed
notes 1 +SU Adjust record level for ne
\ distortion
=o we

cessetie

3 Data input, connect to the
decoder

Audio input, the left channel
=m: Dain of your recorder,

NOTE

Do not connect the ground of the computer to the ground of the
recorder

‘Use shielded wire to interconnect between computer and
recorder

There are 5 wires going to the cassette recorder, 2 for motor,
1 for Audio, 1 for right channel record, and 1 for replay

9

Page 10 (scan)

2e ae

STRUCTURE IN Basic
By Kirt E, STockwell

Ahh Yess, the Venerable Control Break, my wife had one
just before they took her aways

As you looked at the mock listings in the last structure
article. you probably asked yourself (you didn’t 27 ) what
happens when the first record is read in, since the first record
read in CAN NOT match the OLD record, What is required
here is to make provisions for the first record to be dealt
with an the lowest control break level . In last months article,
that would be the DISTRICT processing, which simply
processes a single record, A simple method of accomplishing
this is to do the reading and testing for control breaks in a
loop , which will access all needed modules. The INITIAL reac
will be outside af the loap, as will the call to the lowest level
of the contral break modules. Note that in virtually ANY
control break program, there should be an INITIAL READ that
is performed OUTSIDE of the main processing loop. This
simplifies the problem of how to handle the first records

Another consideration is whether you are printing or
displaying output. Many of the programs we write at the
college have no visual output, but simply read records and
process them accordingly; building 1 or more NEW files from
the information contained in the original file. These programs
present problems of their own, but do avoid the problem of
haw to handle visual output.

When printing the results of a control break program on
paper, it is almost always required that there be several
headings, errar messages, headings for totals, and, of course,
the data line itself, All of this output takes a lot of setting
up, but also complicates the program, You also have to look
out for little details like | Don’t let the print run off the
bottom of the page, Don’t change pages in the middle of your
smallest unit of control break» Be sure to put a heading at
the tcp of each page, as well as a page number. If using a
video terminal, don’t print more lines at one time than the
screen can hold, Pause ( or wait for input ) before printing
more,

All of these considerations can complicate the program, BUT
need not be too troublesome if you remember to write the
entire program in modules. Above all else, that is the key
consideration in STRUCTURED programming, and is essential
in control break programs. Now, look at the mock listing in
last months issue, anc use it as a basis for writing a control
break program. Then, if you can do that, start adding frills,
like headings, fancy output and whatever. If you keep things
structured properly, you should have no trouble,

What happens. though, when you run out of records to read
7? Well, on the ATARI, you get an ERROR condition, which
normally would blow the program up. But we need to learn how
to deal with that, as the last record is an important trigger,
as it 1s used to break out of the work loop, Once out of the
loop, we can access the FINAL-TOTALS routine, which will
then process the last record stored in the OLD RECORD areas
We can then drap through to the close-out routine, which will
close the files and take care of any minor details,

Remember that the INITIAL READ and PROCESS , the call to
the FINAL-TOTALS, and the call to the CLOSE-OUT ROUTINE,
should be in the MAIN-BODY. Everything else shauld be in
modules. As arule, the smaller the better, but don’t get
crazy.

Ponder on these things, my children and come back next
month, Bye!

10

RANDOM ACCESS
PROCESSING
by Kirt E, Stockwell

PART 2

Now that we know what a key file is and what it does, we
need to learn how to build one. It should be stressed, at this
point, that it is very difficult t9 build or use a KEY file
without using modular programming, which we have discussed
in the STRUCTURE articles.

‘The program should execute the module that loads each
record, This module should prompt for the input for EACH
field in the record, and ideally should be trapped for
erroneous input, Upon returning from this module, the
program should access the module which will extract the key
information fram the record and then write the record to the
disk.

‘The crucial command in this module is the NOTE instruction.
Tf you wish, you can use variables called SECTOR and BYTE.
It may also be a good idea to use STRING variables called
SECTORS and BYTES, This will facilitate processing and
lessen the possibility of confusion when writing the program.
‘The tricky part of the NOTE command is that it must
IMMEDIATELY PROCEED the writing of the record to disk,

When the NOTE instruction is used before the write to disk,
the ce@omputer will place the values for the SECTOR and
BYTE, that identify the begining point of the record, in the
variables SECTOR and BYTE. It is from here that the
KEY-FILE RECORD is built. As mentioned in the previous
article, the values in SECTOR and BYTE are numeric, and will
need to be converted to strings using the STR$ function. LET
me emphasize at this point that, if you want this to work, you
MUST first load the entire KEY$ string (however large it is )
with blanks, or you will get some truly incredible results when
you attempt to convert back to numeric (which is required to
Use the POINT command), When the conversions are
completed, the sector and byte strings must be inserted in the
appropriate places in the KEY RECORD. When this is done,
the KEY DATA, (name and room number, for instance) must be
extracted from the record just written to disk. This
information dlso needs to be inserted in the KEY RECORD,

‘You will notice that the KEY RECORD need not be written
to disk immediately, as it is in the form of one LARGE string,
and there is room in memory for it in its entirety. You can
write each record of the KEY FILE to disk as it is loaded if
you desire, but unless your electrical power is unreliable, this
is a waste of machine time and will run the disk drive
needlesly, On the other hand, you MUST be sure to write the
KEY FILE to disk before powering down or clearing memory,
or all of your work will hae been in vain,

‘The sequence of events as I prefer them is as follows:

LOAD RECORD (in subroutine)
EXECUTE ‘NOTE’ COMMAND

WRITE RECORD TO DISK

CONVERT SECTOR TO STRING
CONVERT BYTE TO STRING

STORE SECTOR, BYTE IN KEY$
EXTRACT KEYS FROM DATA

(such as NAME and UNIT)

STORE KEYS IN KEY$

LOOP BACK TO LOAD NEXT RECORD

Of course, this is just a basic outline, and will have to be
worked into the framework of the program you want to write,
Same of the program considerations you will have to examine
are} Will all data be entered at one time ? Will KEYS or
RECORD NUMBER be used to UPDATE or EDIT a record ? Is
anyone going to use the program or the files created by it
other than yourself ?

Page 11 (scan)

Let's look at the NOTE command as it would be used in the
program, In this example, I use the PUT and a loop to write
the record to the disk, because the ATARI DOS limits string
length in DISK I/O to a smaller figure than the size (300
bytes) of the strings that are my records. ( also, it eliminates
the complications that can arise from mixing strings and
variables in a disk record.)

1000 NOTE#1, SECTOR, BYTE
1010 FOR L=1 TO 300

1020 X=ASC(DATAS(L,L)

1030 PUT #1,X¢

1040 SECTOR$=STR#(SECTOR)
1050 BYTES=STRs(BYTE)
1060 2=RECORDNUMBER#30
1070 KEY$(Z+25,2+27)=SECTORS
1080 KEY$(Z+28,1+30)=BYTES
1090 NAME$=DATA$(1,20)
1100 UNIT$=DATAS(21,24)
1110 KEY$(2+1,2+20)=NAMES
1120 KEY$(2+21,2+24=UNITS
1130 RETURN

One last detail! The NOTE must identify the same IOCB as
the PUT or PRINT command (whichever you use), If you don’t
know what an IOCB is, dig out your DISK OPERATING
SYSTEM REFERENCE MANUAL and poke around,

Do you have your copy of DE RE ATARI YET 72? If not, why
7

‘More for you good people next months

ES £5 FESS
a RF & FE

THE FORTH ACE
by Charles Andrews, Springfield, OR

Here it is again, that strange animal called FORTH. You
know, it’s only strange if you havn’t tried learning it yet, I
hope none of you skipped aver last months column, or this
months, It's for everyone, including those of you without
FORTH yet. Perhaps some of you are simply waiting for a
reason to get FORTH:

HOW ABOUT A FREE DISK SPEED CHECKER ?

It’s a good one too! Double-precision, with a rounded
result, that’s quite accurate, So instead of buying that $30,00
program with acute graph Go pick up fig-FORTH from your
dealer ( $29.95 for APX program ). It’s still incredible to me
to get another complete language and operating system, with
50 much power, for such a bargains

want to thank and give credit to the BAY AREA ATARI
USER GROUP, which published the essence of this program in
their April issue, I only made slight changes to improve the
accuracy and to demonstrate the readability of FORTH
programs,

Idon’t want to bog any of you down with details of FORTH
syntax, but here are a few of the major points!

FORTH defines new programs by starting with a colon,

The first word listed after the colon "!" is the name of the
new function:

There must be a space separating all words, ( Even the tis a
word )

All words that follow in the definition are now performed by
the single function name.

The definition is finished with a semi-colon.

Example
tname built from other words }

By choosing descriptive names for the functions your program
can be very readable,

Comments should be added for pragram readability and
documentation. Comments appear between parentheses,
Comments are completely ignored by the computer and DO NOT
take any RAM.

Comment
(anything for HUMAN understanding )

This brings us to our program. FORTH comes with a dick
screen editor which is most efficient for writting your
programs, The scorce code, which can be very readable, 1s
saved on disk including comments and cocumentatian.
Corrections or changes can be easily made, You then LOAD
the disk screens, Then the program is completely compiled into
memory and available at any time by name,

Example! RPM <Return>

The comments are ignored when compiled and the program
can remain in memory taking very little space. This program
uses 263 bytes of RAM, To save typing you only need to
include the comments you want, Here is my example to you of a
readable program, The numbers on the side of the screens are
not line numbers, FORTH doesn’t use any. They are simply
editor ID numbers for the disk screens,

SCR # 30
(RPM DISK SPEED CHECKER )

2 ( PROGRAM FROM )

3 (BAY AREA ATARI USER GROUP )

4(SAN JOSE, CA 95117)

5 ( APRIL 82 NEWSLETTER )

6 (BY Alan Griesemer & Steve Bradshaw )

7

8 (ARTICLE AND PROGRAM MODIFICATIONS )
9 ( BY Charles Andrews, Springfield, OR )

10 (FOR! THE FORTH ACE )

11 (MAY 82 ATARI COMPUTER ENTHUSIASTS NEWSLETTER )
12 (2662 VINE MAPLE DR, EUGENE, OR 97405 )
14--> (LOAD NEXT SCREEN )

15

SCR #31

0 (RPM) BASE @ DECIMAL

1 (RETAIN PREVIOUS BASE & COMPILE FROM DECIMAL )
2

320 CONSTANT RTCLOCK

4 ( LOCATION OF ATARI OS CLOCK )

5

6} CURSOR-OFF 0 755 C!}
7}CURSOR-ON 2 755 C!}

8{PAGE 125 EMIT} (CLEAR SCREEN)
9

10} DISPLAY ( LOCATION & OUTPUT )
11 10 (ROWCRS) 84 Cl}

12 6(COLCRS)85 '3

13" =" (PRINT) }
14

15 -->

SCR # 32

0 (RPM - CONT)

1
2: COMPUTE (RPM OF 16 DISK READS )
57600 0 ( DOUBLE-PRECISION NUMERATOR )
RTCLOCK C@ ( DENOMINATOR )
U/ ( DOUBLE-PRECISION DIVIDE )
>R ( REMOVE INTEGER RESULT )
100 > (TEST REMAINDER )
IF 1 (ROUND UP)
ELSE 0 (NO CHANGE )
10 THEN R> ( RETURN RESULT )
11 + (SUM ROUNDED RESULT )
12
12! READ-SECTOR ( READ SECTOR 320)
14 PAD 3201 R/W
i)

wareuEe

SCR # 33,
0 (RPM ~ CONT)
1}RPM (THIS IS THE PROGRAM )

2 BASE@ DECIMAL

3 (RETAIN CURRENT BASE & OUTPUT IN DECIMAL )
4 CURSOR-OFF PAGE

5 BEGIN ?TERMINAL 0= WHILE

Page 12 (scan)

6 (REPEAT AS LONG AS FLAG = 0)

7 READ-SECTOR (TO SEEK HEAD)

8 0 RTCLOCK C! ( RESET TIMER)

9 16 0 DO READ-SECTOR LOOP

10 (READ DISK SECTOR 16 TIMES )
11 COMPUTE DISPLAY
12 REPEAT ( TEST FLAG THEN REPEAT IF TRUE)
13. CURSOR-ON BASE !}
14 (RESTORE CURSOR & PREVIOUS BASE END)
15-->

SCR #34
0 (EXECUTE RPM & INSTRUCTIONS )

1
Z}DELAY 320000 DO LOOP} (4 SECONDS)
3

4 PAGE ." COMPILING COMPLETE " CR CR

5 ." RPM WILL RUN AUTOMATICALLY "CR

6." HIT ANY KEY TO STOP PROGRAM "CR

7."O0K" DELAY

8

9 RPM

10

11BASE! FORGET DELAY iS

12 ( RESTORE THE BASE THAT EXISTED PRIOR TO
COMPILING )

13

14 (RPM IS NOW IN YOUR VLIST & WILL RUN ANYTIME)
15 (ENTER RPM <Return>)

Call or write anytime ~~ Enjoy
-- Charles Andrews ~~

P,Q. Box 1613, Eugene, OR 97440
phone (502) 747-9892

-Not as fancy as Tony Dobre’s excellent “Tachmaster"
available from Swifty, but it seems to work welled,

SEE RUTH GIVE A
DEMONSTRATION OF PILOT
AT OUR NEXT MEETING IN
MAY!!

Atari Computer Enthusiasts

AiCsEs is an independent. conputer club and user’s group with no connection to the
Atari Company, a division of Harner Communication Company. He are @ group
interested in education our menbers in the use af the Atari Conputer and in giving
‘the latest News, Reviews and Rurorss

All ourdarticles, reviews and
programs come from you, our
members.

Qur membership is world-wide in scope} wenbership tees include the A.C.E.
Newsletter, published about $10 a year, Dues are $10 2 year for U.S., and $20 2
year Overseas Airnail,

President-Kirt Stockwell, 1810 Harris #139, Eugene, Or 97403 503-686-2470
Secretary-Charles Andrews, POB 1613, Eugene, Or 974401613 503-747-9892
Librarian-Chuck ard Jody Ross, 2222 Irarwood, Eugene, OR 97401 503-343-5945

Editors Hike Dunn, 3682 Vine Haple Dr., Eugene, Or 97505 ‘503-344-6193

Jim Boreas, 1405 W. 26th Ave, Eugene, Or 97401 503-484-9925

Send a SASE to the Ross’ for the
new, updated ACE Library List!!

Best of ACE-1981, still available,
Disk or Tape, $8!

Bulletin Board

($039343-4352

We are getting more and more call:

‘ing the equiptment for Full~

Je |Computer

-
s
F
3
:
5
:
F
E
Pe

5
3
2
E
5
8
PI
2
$
w
2
a
Fy
a
5
ra
s

buy

ENTHUSIASTS

05

3662 Vine Mep!

ne, so now must be limited.
than once, hang up as it is not on. I

hone lis

system as well as ap
Remember, if it rings more

le Dr Eugene OR 974!

FIRST

from 11PM

|OON Sat PST. Also, SUNDAY from
in on or we are using the computer!

ystem would interest you, and if

But remember, if it rings more than
you would be willing to pay a nominal fee for expenses and how

will try to keep in on weekdays, except Wednesday,

Se
ra
gaa
Beet
£249
52 ae
vtse
gga
eons
Bees
gees
Eetes.
Sshead
2264

CLASS
MAIL

Mike Dunn

April Meeting

"May 12 at 7:30PM. At

Always the second Weds of the Month:

Anew

jodpasture Road next

to K-Mart off Delta Highway by Valley River+

the Northwest Natural Gas Building on Go