Dale's Home Page

Dale’s Atari 800 Games › ACE newsletters

ACE newsletter, April 1983

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_1983_04.

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)

ENTHUSIASTS
3662 Vine Maple Dr Eugene OR 97405

APRIL, 1983
Mike Dunn & Jim Bumpas, Editors

oss

ATARI'-COMPUTER
ENTHUSIASTS

Official Users’ Group Logo

Page 2 (scan)

NEWS AND REVIEWS

For the first time since the ACE Newsletter was started (almos?3 years!) |
was not able to go to the San Francisco Computer Faire. | will leave the report
to our President, Kirt Stockwell, who will give you all the latest info from Atari
and the Faire. Recent events at Atari are not very encouraging; these
Comments are written before the Faire, so hopefully Kirt can find out the real
Snswers and set the record straight. By now, | am sure you heard about the
big layoff and move to Formosa of the Computer Division.

‘Because of this move, many Atari products, such as the 850 interface, are
in very short supply and may remain so. The “new” 800 is rumored to be very
different — no expansion slots, as there will be only one memory board, with
the others nat hooked up, no right ROM slot, and | hear no joystick ports 3 &
4, According to Atari, since they can produce the 800 cheaper overseas, they
will not be changing the 800, but it will remain the same.

| also hear that much third party software won't run on the Atari 1200,
because of the tendency of machine language programmers to use illegal
entry points, With the new ones being made in the Orient, the price should
‘come way down which leads to another problem. In our area, as well as many
others, according to other newsletters, computer stores are dropping the
‘Atari line because of the price. With Penney's, etc, selling 800's with 48K for
‘$499, which is only a few dollars over the dealer's cost, a computer dealer
‘cannot afford to sell them. No one expects the Penney's salesman to spend
time with them to teach them to use their computer, but they do expect the
‘computer dealer to do so, and he can't at a $20 or so markup. The user groups
{re the only place many new owners can turn to, but, of course, the owners
are getting tremendous bargains — | paid $1200 for my Atari 800 a litle over 2
years ago. | hope Kirt can set us straight on all of this in his visit to Atari and
the SF Faire.

[ANTIC (600 18th St., San Francisco, CA 94107) is now monthly for $24 a
year. Started by the editor of a newsletter similiar to ours in San Francisco,
jim Capparell, it has become very successful but has kept his ideals — all the
programs are in the public domain. If | was to make ACE a business (which
full never happen!) it would be like ANTIC. This month is their one-year
birthday, so Happy Birthday and many more.

"An excellent new guide to computer books has just been published for only
$2.00. Titled Computers, a Comprehensive Guide, itis available from the Yes!
Bookshop, 1035 31st St. NW, Washington, DC 20007. You can order the books
from them, but the guide is very good — I have many of the books reviewed,
and agree with the reviews and the ratings they have to indicate the best ones
‘on .a subject. Another book | received for review several months ago was The
‘Computer Coloring Book Prentice Hall, $6.95, 60 pages. | couldn't figure out
who to get to review it. Kids couldn't understand it and adults didn't even
want to look at it. So | stalled, and got another letter from the publisher asking
how come we had not reviewed it yet. So here it is. A large, nicely done book,
with the alphabet and a picture to color. It has a glossary which is “The
‘computer glossary for everyone... .effectively demystifies the jargon. . that
Children should start on the road to computer literacy as soon as
possible. ..a needed teaching device for children... .etc” (all from thelr press
folease. Each letter has a word, definition and a picture to color. As an
example, “O"has Query. “Query is a request for Information. Query programs
fet you view the Information that is On-Line in your Computer System. A
‘Query Language, designed as part of a Query Program, lets you request your
Information in many different ways. ..”etc. The picture to color shows @
picture of a computer in a chair getting the fourth degree from some
policemen with billy clubs.

‘More on the ATR 8000 (Software Publishers, 2500 Randol Mill Rd., Suite
425, Arlington, TX 76011): last month we began with aa short summary of this
new product, a combination disk drive interface, printer and RS 232 Interface,
48K printer spooler and CPIM adapter. Since | bought one of the first ones
ut, there were a few bugs, which have now been corrected. A new ROM has
Solved the problem of some Atari disks not loading, and some of the other
odd problems in the Atari mode. In the CP/M mode, we have run Osborne and
KayPro CPIM programs, and | understand Xerox programs will run also, They
fare about to come out with a version with only the interface, without CPIM, at
a very attractive price. This will be upgradable to the more expensive model
by the owner. New programs almost ready include a Modem program, disk
emulater programs for many different CPIM computers, and others. There is
‘also a new board, called Co-power 88 allowing you to run 8088 IBM PC
programs with up to 256K and MS-DOS!!

Using CPIM with 40 columns is not ideal, but Austin Franklin (43 Grove ST,
‘Ayer, MA 01432) is about to release the Austin 80, an 80 column board using
‘an RGB and emulating the DEC 101 terminal! This means you can run the 80
‘Columns on a RGB color monitor at over 600 lines an inch resolution — much
Glearer than any color TV can do. Only $289 retail — a review as soon as we
get one.

‘Speaking of CPIM, | can't imagine how a novice could get a KayPro or
‘Osbourne computer and get it to work. If you have ever seen the Atari Word
Processor, with all its commands and its huge instruction manuals, etc. —
that would be a simple, easy to use CP/M program! Great for programmers
— you can do anything, if you know machine language.

‘Several issues back we reported on anew OS board allowing you to use
custom OS EPROMS, etc from Newell Industries (3340 Nottingham, Plano TX
$5074) which included the Omnimon monitor from David Young: This chip
ses the hidden 4K of the OS, and allows you to use many machine language
functions on programs which are difficult otherwise. Since it uses the
“hidden” memory, it can be called any time, with any program. It is now
‘available without the OS board and can plug into either a 400 or 800, for $99
fotail, Available from Newell Industries and others. Also from Texas is anew,
inexpensive EPROM Burner from Creative Firmware (707 Auburn Dr,
Richardson, TX 75081) for $80 with an adapter for 2732's an additional $17.50.
‘They also sell Cartridge Boards, EPROM's, etc.

2

This article was written on the new Bank Street Writer, Broderbund
Software, 1938 Fourth St., San Rafael, CA 94901, $69. This is a new word
processor, written for children, and reviewed in TIME, etc., and picked by Atari
to use in their childrens Computer Camps this summer. We Just received it
today, and will review it next month after we use it — probably by a person in

BRYAN'S ARCADE

‘This month | received two new games from different companies. The
games are a brand new Jawbreaker from Sierra On-Line and Astro Chase from
First Star Software. | also had to go out and buy a copy of Miner 2049¥er. |
spent my $50 very well.

—Mike Dunn

MINER 2049'er

tyou are a Donkey Kong fan and you don’t want to wait for Atari to release
their version of O.K. then Miner 2049%er is definetly what you are tooking for.
inmy opinion this is the best climbing and jumping game out for the Atari
‘4001800 yet. This game is awesome!

‘nthe game you are Bounty Bob in a futuristic mine shaft trying to get out!
‘You have to avoid radioactive waste, deadly radioactive mutants and you have
to avoid falling from high places. The game has 10 different levels or what
they call “stations’and 10 different zones. So if you get past station 10 zone
#1 you then go to station 1 zone #2. So far | have gotten to zone 4 station 8
with a score well over 200,000.

“The object in the game is not to get to the top of the screen. The object is.
to go over every little step of the screen to make all the girders a solid color
instead of the polka dot color they are to begin with. Instead of the hammer
like Donkey Kong you have to pick up various tools along the way. When you
pick up one of the tools the radioactive mutants turn green and have a smile
face. When they are that way you can kill them by running into them!

‘Over all | think Miner 2049’er is one of the best if not the best game for the
‘Atari home computer. The graphics in the game are very good: the sound is
also very good. On a scale of 1 to 10 I give Miner 2049'er a 9.5! Yes It's that
good! It's definitely worth the money.

Miner 2049'er is available from Big Five Software on a ROM cartridge for
$49.95.

| also received Astro Chase from First Star Software. Astro Chase is
programmed by Fernando Herrera. Fernando Herrera was the first person to
(vin the Atari Star award for his outstanding program My First Alphabet.

‘Astro Chase puts you in charge af a space ship defending our home planet,
Earth, from Megamines which are programmed to destroy Earth, The
megamines head straight towards Earth and one megamine alone has
fnough power to destroy Earth. Your object is to destroy the megamines
before they destroy Earth, There are 16 megamines per level and you have to
destroy all 16 of them before you advance to the next level,

"AL the start of the game you get 3 ships with 1000 units of fuel per ship,
‘each time you fire you lose one unit of fuel so you tend to lose fuel rapidly. In
each of the four corners of the galaxy there is a fuel station. Each time you
fun over the station you get some more fuel and you can keep restocking fuel
Until you feel you have enough fuel to go on, During the game other things
besides megamines attack you. Alien spaceships try to ram into or shoot and
kill you. You can either shoot them or you can run over a shield which enables
you to make contact with them without getting killed. The shield also
protects you from their bullets which is also very helpful.

‘Astro Chase has outstanding graphics. After every 4 levels there is an
Intermission which shows you coming back to Earth and you do a bunch of
weird things. The intermissions are very entertaining and give you a chance to
rest your hand after continuous play. There are 7 intermissions in all and they
{get Better every time from beggining to end. The sound in Astro Chase is also
pretty good. On a scale of 1 to 10 | give Astro Chase an 8.5!

| also got a review copy of the all new Jawbreaker from Sierra On-Line.

Jawbreaker is another Pac-Man type game with a catch, In this game you
are about 3 or 4 times as big as the normal sized Jawbreaker or Pac-Man. The
‘Object of the game is to clear the screen of all the little dots, which are
supposed to be jawbreakers, without getting killed by the round monsters.
You can kill the monsters temporarily by eating one of the swirling lifesavers.
‘The lifesavers makes them turn red and then you can eat them. If you are
{good enough to clear an entire screen of jawbreakers and lifesavers then
there is a little intermission. In the intermission a little tooth brush comes out
‘and brushes your teeth for you. But if you happen to get killed by a monster
then all of your teeth fall out.

‘Overall Jawbreaker is a very “cute” game your whole family should enjoy.
‘The graphics aren't outstanding but they aren't bad. The sound is very good.
While you are playing alittle tune goes on in the background. On a scale of 1
to 10 I rate Jawbreaker an 8.

Next month | hope to review Zaxxon the popular arcade game now out for
the Atari from Data-Soft Inc, and any other games | should happen to receive.

‘Rumors... Atari is supposedly going to release Dig-Dug, Donkey Kong,
and Kangaroo in the next month of two. Look for them soon! Gebelli Software
is supposed to release a Donkey Kong type game called Candy Factory look
for that soon too!

‘That's all for this montht

—Bryan Dunn, Games Editor

Page 3 (scan)

WEST COAST COMPUTER FAIRE

Kirt E Stockwell

It’s hard to know where to start, 80 I'l start with our first organized activity
after we all arrived in San Fransisco. Following our founder and first
President, STACY GOFF driving his Great Racing Rabbit, we proceeded to get
lost on our way to ATARI. After about 20 minutes of zany driving, we finally
found ATARI and went in. We were met by Earl Rice and Mark Cater. They
showed us the new VIDEO VISIT tapes, the 1200XL, the new logo, and the
CORVUS hard disk the ATARI Bulletin Board System uses. We spent some
time talking to Gary Furr, designer of the new ATARIWRITER word
processing program. The new Director of Marketing spent some time with us
and answered such questions as he safely could.

Many of you may have noticed the 850 interface can be hard to obtain. At
least it is here in Oregon. The rumor Atari is halting production on the 850 was
denied, at least for the present. The official position is the 850 will continue in
production until such time as ATARI feels there is an adequate installed base
of 1200XL's. What criteria will be used to determine “adequate installed
base" was not specified. Personally, | don't expect to see the 850 in
production too much longer, as there are too many other peripherals on the
‘market which eliminate the need for the 850. These include the ATR 8000 and
the MICROBITS MPP 1000 printer interface, among others.

The word at ATARI is the 800 will continue to have slots for extra boards, as
well as having the right-hand cartridge slot connected. The lower cost of
production made possible by the shift to Singapore (or whereever they went)
should provide ATARI with the capability of reaping a profit without cutting
the guts out of the equipment. Officially, ATARI has no plan or desire to
replace the 800 with anything. (Unofficially, | am persuaded ATARI Is working
on at least one application-oriented computer. This powerful new machine
will probably be aimed at the HOME business market)

‘The new VIDEO VISIT tapes are a gas. Chris Crawford is one of the most
pleasantly insane people I have ever met. As a tool for raising interest levels
land teaching broad concepts, the tapes are quite nice, as well as fun. Also on
the tapes is the NEW IMPROVED ATARI APPROVED ACE logo. This new
logo, which you might have seen by now in the ATARI CONNECTION
magazine, is animated. One of you hotdog programmers out there might
want to write a program to produce the animated logo on the screen (for the
MENU cover, for instance) and send it in to us. The plan is eventually all ACE
groups will use the approved logo on their letterhead, newsletters, and such.
We'll see.

| might mention, while we were in the Bay Area, we were able to look at the
insides of an ATARI 1200XL. There is only one board, with remarkably few
chips, and only 2 connectors from the top cover which holds the keyboard.
The entire thing is shielded to minimize RF garbage, and the power board
inside is mounted on a herky cooling fin. Contrary to some of the rumors
‘going around, the 1200XL DOES support RGB monitors through the monitor
port. Several programs written by third parties, includng DATA-PERFECT and
LETTER-PERFECT won't run on the 1200XL. Neither will METEOR STORM
written by Jon Atack and Lu.Knoll, The problem here is the authors used
illegal entry points to operating-system routines, and the vectors on the
1200XL's operating system are different.

ON TO THE FAIR!!

The first stop, naturally, was the ATARI booth. ATARI was displaying new
software, and always had large crowds around, but | saw nothing new in the
way of hardware. From there, things become a blur. There were many new and
exciting products on the market, both software and hardware. I'll try to list
some of the more noteworthy. A new computer called “ACCESS” with 9"
‘amber monitor, detachable keyboard with 10-key pad, an EPSON MXB0 built
into the top, both acoustic and direct-connect modems also built in, weighing
about 25 pounds. The KAYPRO 10, basically the KAYPRO II but having only
ONE floppy; the other was replaced with a builtin 10 MEG hard disk, still
complete with the PERFECT-SOFTWARE package, all for under $2600.00.
Epson didn’t show up as a corporate identity, however there were companies
showing the new EPSON computer...cute. APPLE was displaying and
‘demonstrating their new LISA. Both Stacy Goff and myself tried, at different
times, to get close enough to take pictures or shoot video. No such luck.
‘There was a core of APPLE fanatics around that machine the AYATOLLA
KHOMEINI would have been proud of

Top Honors for display quality and effectiveness should probably go to
PERFECT SOFTWARE. Their area was in a room accessed by a long hallway.
Lights were running along the floor on both sides of the hallway, much like a
runway. There were monitors every few feet, with a well produced film
constantly showing. Inside, a green laser fired random bursts of patterns over
the room at a safe level. Big screen TV inside showed the same video the
outside monitors were displaying. Wellinformed software specialists from
PERFECT SOFTWARE were demonstrating their wares and talking OEM
packages with manufacturers.

‘There were too many new computers, software and peripheral products on
the market to even mention, Some of them are well thought out, well made,
and competitively priced. Some are candidates for non-existance in the near
future. RADIO-SHACK, for instance, had very little of interest to ANYBODY at
their booth. They don’t seem to have kept abreast of developments in the
field. APPLE, on the other hand, was displaying both the new LISA and the
APPLE 2E. Several vendors were selling APPLE 2+ machines at ridiculously
low prices; APPLE seems to be dumping the olde units to make way or the

SMICROBITS, friends of ours from ALBANY, OREGON, had a very small but
effective booth. Their products, the MPP1000 Interface and the MPP1100
MODEM, don't take much room to show. Several manufacturers saw enough
to order their interface unit, and many dealers also placed orders. So the lack
Of the 850 from ATARI shouldn't be a problem, as the MICROBITS equipment,
which is quite good, will be available locally soon.

One of the high points of the FAIRE for me was my stop at the COMPUTE
booth. I struck up a conversation with SCOTT CARD, book editor, concerning
the market for application software. | soon discovered | was talking to
ORSON SCOTT CARD, one of my favorite SCL-FI authors. Had a nice long
chat and came away with many great program ideas. Now if only | had time to
write the programs.

Also stopped at the DATASOFT booth, Saw ZAXXON running
‘simultaneously on the VIC-20, RadioShack Color Computer, and ATARI 400.
Guess which one looked the best??7?? The VIC doesn't seem to be able to
handle fine scrolling. The Color-Computer is a bit slower than the ATARI, and
the colors are more limited. Also heard DATASOFT had a copy of the 400-800
version of DEFENDER, but didn't get to see it,

Saturday afternoon ATARI held a reception for User Group Officers at the
Golden Gateway Holiday Inn, Here they demonstrated ATARIWRITER and
ATARI LOGO (the language). Hors d'oeuvres and drinks were served, and we
all spent several fun hours swapping outrageous lies and rumors. | met,
among other ACE presidents, Dr. Mel Boreham, pres. of the
TRANSISTHMIAN ACE. (TRACE. They're based at the Panama Canal), Also
Dave Mentley of ABACUS, and a pile of other presidents from around the
country.

This being my first time out in the Bay Area, | was pleased at the nice
things so many people said about our newsletter. Had several corporate
‘groups, as well as a few advertising types ask about the availability of space
in our newsletter. Told them thanks, but no thanks, (Guess Ill have to get rich
‘some other way.)

Had a great time, walked my legs off, and learned quite a bit about the new
direction in application programming for PERSONAL computers. Don't have
time or room enough to talk about that now, will try to get to it next month,

By for now. .

kKeekar

MICROBITS PRINTER INTERFACE

| am pleased at this time to review what | feel to be an important new piece
of equipment. For those of you who have yet to purchase a printer and
Interface, or who have purchased a printer and can't get an ATARI 850
intertace, listen up!

‘You may have read my previous review on the MICROBITS MODEM, which
plugs into the #4 joystick port, comes complete with excellent software, and
doesn’t need an interface. If so, you may be prepared for the new MICROBITS
MPP1 100 parallell printer interface.

This little jewel plugs into the #3 joystick port, needs no power supply,
‘connects directly to your printer, and retails for only $98.00. Among other
sterling qualities, this unit is, according to MICROBITS, compatible with any
parallel printer, and will function with ANY software. | have one on my 800,
and am quite pleased with it for several reasons: 1. No power supply or
batteries; 2. No cables looped around everywhere; 3. No switches to
remember; 4, It is virtually invisible when the system’ is assembled; 5. The
price is very reasonable; 6. They are available.

| don’t know about the rest of you, but | feel galled every time | think about
the marketing practices of the computer industry. ATARI is no worse than
‘most, but no better. My technical sources tell me that any personal computer
‘manufacturer could build printer interfaces and direct-connect modems into
their units for $15.00 or $20.00 per unit. Instead, they choose to make costly
Peripheral devices, on the basis that each unit is another sale, and another
‘opportunity to hit the customer for a hefty markup. But, since the
manufacturers chose their own way, third party equipment builders must
basically re-invent the wheel, and add-on peripherals can't be as inexpensive
a8 built-ins would have been.

MICROBITS struck a great design compromise with the MPP1100. They
have re-written one of the operating system ROM chips, which they provide
the replacement for when you buy the interface. The new chip, when installed
in the operating system board, functions in all other respects identically to
the old chip. Only the printer handler routines were changed. The ATARI,
thus, does the majority of the work for the interface. As a result, the interface
unit is only about 1.5 X 2.5 X 3.5 inches, with a short cable from the box to the
printer, and a long cable from the box to the computer. The flat cable runs
under the console nicely, disappearing along with the box, which tucks right
behind my EPSON MXBO.

Ihave used my MPP1100 with all the different word processors | could get
my hands on, and there are no problems. According to MICROBITS, not only
will the interface work on ANY software, but it will transfer data faster than
the ATARI 850, For those of you with buffered printers, the buffers load faster,
iving you more time with the CPU.

‘Some of you out there might need all those extra ports the 850 offers. |
‘suppose you could run your train set with them or something, But my
personal choice is the MPP1100.

—Kirt E, Stockwell

Page 4 (scan)

ANATOMY OF DOGGIES

(by Garry Francis; reprinted from ACE N.S.W., Australia)
Who the Hell is Stan Ockers Anyway?

Way back in June 1981, the Eugene ACE Newsletter published a lunar
lander program written by a fellow named Stan Ockers. This in itself was not
unusual, but Stan returned with another program in the next issue. And the
ext. And the next. In fact, this prolific programmer from Lockport, IL has now
written a program (or sometimes two) for every single issue of the ACE
Newsletter since June 1981,

In December 1981, editor Mike Dunn awarded Stan with the First Editor's
Award. His work is often reprinted in ANTIC and the Michigan ACE
Newsletter and some programs (such as Chicken) are already considered
classics.

Stan's programs may be divided into 2 very distinct categories — games
and utilities. They are like a developing series of tutorials in advanced
graphics fechniques from BASIC. His philosophy has been “..perhaps the
best way to explain what is going on is to go through an actual program...”
But even if you don't want to learn about fancy graphics, the programs are
still fun to use.

have always admired Stan Ockers’ work, but | was astounded to find out
nearly all his programs were developed on a cassette based Atari 800 with 16k
RAM and a black and white TV! He didn’t even have an assembler! The moral
is, of course, you don't need 256k and a quadruple density disc drive to write
good programs, as many people seem to think. You merely need a good
Imagination and a lot of hard work.

Enter Doggies
Doggies has always been one of my favourite of Stan Ockers' games. |
criginally looked through the code to see how on earth it worked. Just
recently, | decided itis an excellent program for the magazine. Stan has often
Pointed out minor deficiencies (such as lack of color), which he leaves for
Feaders to fix themselves. So | set about to do a bit of polishing up to
Doggies. Unfortunately, my polishing up got out of hand and | have now
completely restructured the program, removed a couple of minor bugs,
improved the response time, screen display and colors and renumbered it
But despite the weeks of work | put into it, itis still Stan Ockers' program. He
should be congratulated on doing such a fine job and making my task such a
pleasure.

Program Flow

Doggies begins by jumping to a massive block of initialization code which
is placed at the end of the program so as not to slow things down when the
main program is executing later on.

| believe the first thing you should do in any program is to have something
happen immediately after typing RUN, even if you only clear the screen and
print the title. A pause of 2 or 3 or even 20 seconds before anything happens
is totally unacceptable, as the user may think the program has crashed. You
should also make no assumptions as to screen conditions before the
program was run. Therefore, as a rule of thumb, always start the initialization
with @ GRAPHICS statement, followed by the necessary POKEs and
SETCOLOR statements to set margins, colors and so on, even if you are
using default values. Doggies also clears out and reserves an area of memory
at the top of RAM (see Memory Allocation), then prints the instructions and
the word “INITIALIZING” so you know what's going on, You can now read the
instructions oblivious of the initilization which continues as you read. This
takes about 11 seconds. When finished, “INITIALIZING” is overprinted by
another message to “Press START to begin". When you've done so, the
screen will be cleared, player missile graphics are enabled and the vertical
blank interrupt routine is set up. The BREAK key Is also disabled to force you
to use SYSTEM RESET to abort the program. This is the only way to ensure all
system parameters are back to normal when you return to BASIC. Whew!

We now set up the screen for a new game and cycle through the main
program loop from lines 50 to 80. Yes, that's right! The main program loop is a
mere 4 lines long! The remainder of the program is subroutines for specific
actions. Each subroutine commences on a line number of a multiple of 100
and is preceded by a REM to indicate its function. | will delve into some of
these later. The remainder are fairly straightforward,

Doggies uses a number of the ATARI's special features such as interrupt
processing, player-missile graphics and a redefined character set. We'll now
take a look at some of these aspects, but be warned: A good working
understanding of BASIC is assumed.

Memory Allocation

‘As a lot of our members are beginners with minimum systems, | intended
right from the start for Doggies to run on a cassette based system with only
16k RAM. It does this quite admirably, but if you've got a disc based system,
you'll need to delete all the REMarks if you expect to run it in 16k. (You
‘shouldn't really be using a disc drive with only 16k anyhow, as there is just
to0 little room left for programs or high resolution graphics modes.)

Figure 1 shows the maximum memory requirements for Doggies when
typed in exactly as shown in the listing. RAMTOP is an Operating System
pointer at memory location 106 (S6A) which tells us the page number of the
first non-RAM byte in memory. (A page is a block of 256 bytes). By POKEing a
lower value into RAMTOP, we can fool the system into thinking it has less
RAM than it actually has. When we carry out a GRAPHICS command, the
display memory and display list will be written below the new value of
RAMTOP, thereby reserving an area for our own use. We use this technique in
Line 2000 to set aside an area for player-missile graphics and the redefined
character set

The player-missile graphics require 4 pages (or 1024 bytes) of memory for
double line resolution and must start on a 1k boundary. We define the starting
location with the variable START. The first 384 bytes of this area (ie. START
to START + 383) are not used, The area from START + 384 to START +511 is
reserved for missiles, but we will not be using them. It seems a shame to
waste 512 bytes, so seeing the redefined character set requires 512 bytes, we
‘can store it in this area. We also need a 1 page buffer between the display
mamory and START due to the RAMTOP dragon who gobbles up the first 64
bytes above RAMTOP whenever a GRAPHICS command or clear screen
‘command are executed.

‘The GRAPHICS 0 display used for the instructions is shown in figure 1 as it
is more meory intensive than the GRAPHICS 18 display used for the game
itself. Just out of interest, GRAPHICS 18 only requires 20 bytes for its display
list and 240 bytes for its display memory.

You can see from Figure 1 the BASIC program itself requires 7245 bytes
just to reside in memory. (The structure of the tokenized BASIC program is
‘not important at this point) When run, it will then take up an extra 61 bytes for
string storage plus a variable amount for the run-time stack (this keeps track
98 return addresses for GOSUBs and FOR..NEXT loops.) The area labelled
“DOS" is only applicable if you've got a disc drive booted. The figures are for
DOS 2. The area labelled “Operating System RAM" is reserved by the
‘Operating System for a vaiety of functions. (Maybe we could delve into all this,
stuff in future issue.) By adding up the number of bytes used by your system,
you can see a cassette based system requires well under 16k (note 16k is,
16384 bytes), whereas a disc based system requires just over 16k, hence the
need to delete the REMarks for a disc based system with only 16k

Player-Missile Graphics

Whenever using player-missile graphics, you must first reserve an area (as
discussed above) to store the images and then clear this area of any
extraneous garbage. | used a little trick to accomplish the latter by issuing a
GRAPHICS 21 command prior to reserving the P-M graphics area (see Line
2000), This has the effect of clearing out 960 bytes at the top of memory for
the GRAPHICS 21 display. When RAMTOP is moved down, the 640 bytes
used by P-M graphics remains undisturbed and set to all zeros. GRAPHICS 0
fr 5 could also be used to clear out the same amount of memory, but these
may have caused a disturbing flash of blue from the background color of the
text portion of their displays. Care to minor details like this makes a really
professional program,

Only Player 0 is used (for the bone) and this is double width. Its shape is
read directly into the Player 0 area (START +512 to START +639) at Line 2140.

Vertical Blank Interrupt Processing
‘The vector to the Vertical Blank Interrupt (VBI) service routine is set by he
call X= USR(1596) as the very last function of the initialization code. See the
assembled source code for more details. For further information on how a
VBI works, see “Flashing Cursor” in the December 1982 issue of INSIDE
INFO. x _ Once set up, the VBI reads the joystick to determine whether it has
been pushed left or right and moves the bone accordingly. As this is done 50
times per second regardless of what else is happening in the program, it
results in a beautiful smooth motion. Again refer to the assembled source
code tor more details

Redefined Character Set

‘Two payes of the character set in ROM (i. 64 characters or 512 bytes) are
‘copied to the new locations in our reserved area. This process is speeded up
by utilizing a machine language routine stored in MLS, (Refer to the
assembled source code to see how it works.) It was stored in a string so you
‘can easily incoroporate it inot any of your own programs. The general form of
the call is X= USR(ADR(MLS),57344,CH), 57344 is the address of the start of
the character set in ROM. Change this to 57856 if you wish to copy the
second half of the character set (i. lower case letters and conrol graphics
characters). CH is the address of the start of your new character set. You may
also use this routine to copy the whole of the character set (i. 128 characters
‘or 1020 bytes) by changing the last number of the DATA statement in Line
2170 from 2 to 4. This indicates how many pages are to be copied.

‘The Operating System pointer CHBAS at location 756 ($2F4) tells ANTIC
where the character set starts. Note we do not change this until after the
instructions are cleared from the screen, otherwise some of the letters
change into parts of little doggies while we try to read them. Very annoying!

When the character set has been copied, we redefine 34 of the 64
characters. This Is the most time consuming part of the initialization,
Allocating whch characters are to be changed is quite a challenge, as the
doggies require 34 characters, the score requires 10, and the tities and
various messages | want to print require about 24 characters — a total of 68
characters, but only 64 characters are in a GRAPHICS 2 character set. |
couldn't delete any parts of the doggies or the digits for the score, but by
carefully rewording the messages and re-allocating some of te characters for
the doggies, ! was able to reach an acceptable compromise. Hence messages
like “GREAT STUFF" instead of "EXCELLENT", as the "X" became part of a
doggie. Every character except the comma is used at some time somewhere
in the screen display.

Page 5 (scan)

When the new characters are put together in the correct pattern, they will
form the shapes for the various doggies. The shape of each doggie is made
up of 6 characters in a 2 by 3 grid. As an example, the stationary doggie is
shown in Figure 2. The characters for each shape are stored in DATA
statements. Lines 1000-1013 are for the white doggies and Lines 1100-1113
are for the brown doggies. There must be at least 6 characters in each DATA
statement, so the traling blank spaces in Lines 1010-1013 are replaced by
Inverse blanks. This is important. The program will crash and you'll be given
an error message otherwise. The DATA statements in Lines 1100-1113 are
exactly the same as Lines 1000-1013, but in inverse video. This is how we get
the 2 different colored doggies. A major subroutine of the program occurs at
Lines 200-220. It prints the string DOGS at POSITION XY. DOGS is
determined by the variable LINE. By changing LINE, we can change the shape
of the printed doggie.

‘The current position of the doggies is stored in PS (1 for a white doggie, 2
for a brown doggie, and 0 for the blank space). By comparing PS with the final
position represented in FS (Line 440), we can determine of he end has been
reached,

Attract Mode
I could say Doggies is constantly in attract mode, as something is always
happening irrespective of what the user is doing. Every time through the main
loop, the program checks to see if the fire button has been pressed. If it
hasn't, then it randomly selects a doggie and moves him in accordance with
‘one of 3 randomly selected subroutines. These have the effect of making him
bark, wag his tail and stomp his feet. Even when the game is over, the attract
mode continues while waiting for you to press START for a new game.

The ability to move a doggie when the game is over might cause havoc.
This is averted by setting a flag called ATTRACT. When ATTRACT is 0, the
game is in progress and the GOTO in Line 80 makes sure the fire button is
checked. When the game is over, ATTRACT is set to 10 so Line 80 will jump
past the fire button routine.

Colors

The display uses a total of 6 colors in a very pleasing combination, The
black background is colored by the background color register and the scungy
yellow bone is colored by the Player 0 color register. Playtields 0 and 2 are
Used for the white doggies and brown doggies respectively. Playfields 1 and 3
are used for the green writing and blue writing respectively (you won't see the
blue until the game is over). Green writing can therefore be achieved by
printing a message in lower case and blue writing can be achieved by printing
in inverse lower case. A problem arises here when we wish to print the score,
as the digits 0 to 9 are in the range of characters colored by Playfield 0, but we
want them to be colored by Playfield 3. We therefore need to convert the
‘score to a string and manipulate the individual digits to change their color
from white to green. This is done in Line 430.

The colors show up fairly well on a black and white TV and the only
evidence of color “bleeding” is from the brown doggies. This is an
unavoidable problem common with dark luminances. It can only be overcome
by careful selection of color combinations.

Sounds

BARKS contains the range of tones for the doggies’ cute barking sound
used in Line 500. This was one point with which Stan Ockers was not pleased,
but | could not come up with anything better. Apart from which, | quite lke it

The subroutine for the footsteps sound in Lines 900.910 is unusual. The
odd numbered distortion value causes the speaker to click, then silence.
Turning the voice off then causes another click. When executed together, the
2-clicks are indistinguishable and sound as though they are combined to form
fone single louder click. Prior to entering this subroutine, the variables V and
ING are specified. V is the volume of the footsteps and INC is the increment
by which the volume is increased or decreased. In this way the footsteps may
stay at a constant volume while the doggie is stationary INC =0), decrease as
the doggie walks away (INC=-1) or increase as the doggie approaches
(INC=1). Using a common subroutine ensures the timing of the footsteps is
always the same. This subroutine is also the reason for the apparent
duplication of DATA statements at Lines 1010-1013 and 1110-1113.

Scoring

Your score is incremented every time a doggie is moved. The object is to
move all the doggies in as few moves as possible. 15 moves is the best you
can do, but scores of around 21 are more common

There is a sort of bug in the scoring routine. Even though it will never be
encountered under normal use, | mention it here as a good example of
deciding where to “draw the line’ for certain error conditions. The score's
color conversion mentioned above will crash if there are more than 3 digits in
the score. | decided on a maximum of 3 digits for 2 reasons. Firstly, more than
3 digits will wraparound onto the next line and mess up the display. Secondly,
you will have to be a complete moron to need 1000 moves. Even the smart
alec who intentionally tries to crash the program will have to move one doggie
every § seconds for an hour and a half before the program will compfain. If the
idea of this bug still worries you, just increase the size of MOVES in Line 2070
to 4. Our hypothetical smart alec will then be moving doggies for 14 hours!

Human Engineering

One of the most important aspects of any program is its human
engineering. Here is where Doggies excells. It couldn't possibly be any
simpler to use! After initialization, you need only press START for the game to
begin. In fact, you can then press START again at any time and the game will
restart, This comes in handy if you can see you've made a mistake and don't
want to carry the game through to completion knowing youl get a bad score.

The bone Is conrolled by pushing left or right on a joystick plugged into
Port 1. If it goes off the sereen, it will wrap around to the other side. A doggie
is selected by placing the bone under the doggie you wish to move and
pressing the fire button. The bone is not very fussy when it comes to
selecting a doggle. It doesn’t have to be directly under a doggie, just make
sure at least half of itis under the doggie you wish to move. If itis exactly in
the middle of 2 doggies, a choice still has to be made, so it opts for the
doggie on the right.

The program won't let you make an illegal move. | won't spoil the surprise
by telling you what happens, so try it and see for yourset.

‘As there is no keyboard input, the well known random color switching
normally comes into effect after just under 11 minutes. As Doggies is such a
compulsive game, you will quite likely be playing for well over 11 minutes, so
the random color switching must be catered for. Any legal input (ie. pressing
START, pushing the joystick left or right or pressing the fire button) will reset
the ATTRACT flag at location 77 ($40), thereby avoiding the random color
switching. If however you have to answer the ‘phone or you go on holidays
and forget to turn the computer off, the random color switching will still be
enabled as usual. This will protect the phosphors in the TV set. When you
come back, just move the joystick, press the fire button or press START and
everything will return to normal.

Allin all, the human engineering is so well done even the youngest child (or

the oldest computer critic) can also enjoy playing Doggies.
Conclusion Well, that about wraps it up for Doggies. If you've read this far
and haven't keyed it in yet, then you're missing out on quite a treat. Doggies
is undoubtedly the most professional game we've printed so far, so give it a
go. We'll publish the solution next issue.

HIDDEN ATARI DOS FUNCTIONS

by SHANE ROLIN OF G SOFTWARE
1ST IN A SERIES
PART #1

What happens when you can't find your Basic cartridge, and really you
want to type in that new program listing you found? Well, don't worry because
there is a way to type in Basic and maybe even another language through
Atari Dos.

In order to do this, first, go to Dos and when the menu appears, type aC"
and RETURN. You will then be prompted with “COPY-FROM,TO?". Enter the
following “E: O:filename” and RETURN. You will hear the disk drive go on and
‘open a file to the filename entered, The drive light will go out soon after it
goes on leaving the cursor one line below the last line typed,

You can now type in a Basic program just as though you were in Basic. At
the end of each line hit RETURN just as in Basic. The only limit to the length
of the program you type in is the memory of your computer. Be careful about
mistakes because the only way you can correct them is by typing in the line
again. So proofread carefully before you hit the RETURN key.

| think you will find this an interesting function of Atari os. You are not
limited to Basic programs. You may also type in data for programs or a
message for a friend, To stop this function hit the CTRL key and 3 at the same
time and your program will be LISTED” out to disk. Do not refrain from using
inverse characters, lower case or control characters; the Editor will accept
anything you type into it. To read back messages, simply hit “C" and
“filename,E:" and your message will be loaded into memory and be displayed.
To stop the scrolling hit CTRL 1; hit it again to continue, To load a program
typed in through Dos, simply go to Basic and “ENTER “D:filename"”

PART #2

You're in Dos and you want to reboot the system or just return to Basic
One way is to hit the “B" function of Dos, which in “RUN CARTRIDGE”, will
exit to the cartridge you have in the left slot, Another way is through the""M"”
function of Dos “RUN AT ADDRESS’. Select this function, enter F125 or £477
when the computer asks "RUN FROM WHAT ADDRESS" and hit RETURN.
The computer will do a “COLDSTART”, the same way as if you shut the
‘machine off and turn it back on again. When you do this, all memory locations
will be cleared and the computer will execute the cartridge if you have one in.
If you want do do a "WARMSTART”, instead of entering “F125”, enter F128 or
E474 and the computer will perform a “WARMSTABT”, the same as hitting
the “SYSTEM RESET” key, and execute the left cartridge.
MESSAGE READER IS A UTILITY TO READ ALL LISTED FILES OFF OF
THE DISK DRIVE AND DISPLAY THEM TO THE SCREEN OR PRINTER.
SHANE ROLIN of PACE.

Page 6 (scan)

DOGGIES Revisited

OPEEHETSSE SATE HEE
DocGIES

by Stan Ockers,
4 Eugene A.C.E, Newsletter
S REN # danuary 1982
6 REN 4 Modified Wy Garry Francis #
7 REM # Reprinted by ALCsE.(NSsHe) #
8 REM # February 1983 +

49 REM mx Hain loop xx
20 POKE 77,03? $6;CHR8(125);" dog
gies"!? $612 443" number of noves "s(
RS(16)

‘90 P§="1110222":FOR C=1 TO 73C0SUB 100
STF A THEN OSB 210

40 NEXT C3POKE 209,120:POKE 53248, 120:
MOVE=O3ATTRACT=0

‘SO IF STRIG(O)=0 THEN GOSUB 300:G0TO 5

0

460 IF PEEK(S3279)=6 THEN POKE 209, 0:P0
KE 53248,03C0T0 20

70 C=INT(7HRND(O))+13GOSUB 1001F A TH
EN COSUB 500+1 00xINT (3xRND(0))

80 GOTO SO+ATTRACT

99 REM mx hich doggie? mm

100 A=VAL(PS(C,C))2IF At THEN LINE=10
00

110 TF Ae? THEN LINE=1100

120 ¥=3aC-3¢RETURN

199 RE "x Draw doggie xxx

200 FOR J=1 TO 14:NEXT J

240 RESTORE LINESREAD DOGS:POSITION X,
63? 46;0068(1,2)

220 POSITION X73? #6;D0G8(3,4):POSITI
ON X,83? #6}D0C8(5,4) :RETURN

299 REM xx Process player’s nove TX
‘300 POKE 77,0;8=03C=INT (PEEK(209)/24-0
oS)STF CQL THEN
‘910 IF C>7 THEN C=7

320 B=B+1SIF VAL(PS(B,B)) THEN 320
300 IF B=C THEN RETURN

940 TF C<B-2 OR CB+2 THEN GOSUB 100:
OSUB 800:RETURN

‘350 TEMP=CIFOR C=1 TO 7:IF C=TEHP THEN
400

360 GOSUB 100;IF A=0 THEN 400

970 IF C<TEMP THEN LINE-LINESS

980 IF COTEP THEN LINE=LINE(7

390 COSUB 210

GOSUB 6D0:LINE=LINE+8:V=8:1NC=0360S8
SU0SLDEALDES231NC=-1360818 700

410 LINELINES2SCOSUB 900:POSITION X,4
17-485" “1P$(B,B)=PH(C)C)$PB(C,C)="
18

420 GOSUB 100SLINE=LINEH23U=1INC=1:6
SUB 9OOSLINE-LINE-2:C0S08 900;LINELT
NE-103C0SUB 700;COSuB 400

430 MOVE=HOVE® 1 SHOVES=STRS (HOVE) :POSIT
TON 17,2:FOR T=1 TO LEN(MOVES)?? 463CH
(ASC (MOVES (T,1))-32)33NEXT T

440 TF PSOFS THEN RETURN P
450 POSITION 2,421F MOVE=15 THEN 2°86;
* great stuft":COTO 480

460 TF HOVEC2O THEN ? #43" good goin
g"tcoTo 480

470 ? 46;"could be better"

480 POSTTION 0,1
begin’; {ATTRAC
499 REM mx Bark moe

500 LINELINE*S$GOSUB 2103FOR T=t TO 6
SOUND 0 ,ASC(BARKS(T) 12, 14-T523S0UND
1,ASC(BARKS(TD) 14, X23NEXT I
510 LINE-LINE-5!COSUB 210;S0.N0
OSSOUND 1,0, 0:RETURN

599 REM mx Wag tail mor
600 LINE-LINE+:FOR T=1 10 3tLINE=LINE:
+HLSCOSUB 2003LINE=LINE-1;COSUB 200:NEX

=0;C0SB 900;
NESLINE-3:GOSUB 200SRETURN
799 REM xxx Shake head 1m

800 FOR T=1 TO 3:LINE-LINE+S:COSB 200
SLINESLINE~6/G0SUB 200

GOSUB 200:NEXT T:RETURN
899 REM xx Footsteps sound mx
900 FOR T=1 TO 3:V=V+INCiLINE=LINE+|

999 REM Xxx Shapes of doggies mar
1000 DATA ‘(x78
1001 DATA “OV.
1002 DATA “(C28
1003 DATA "(Cxz~
1004 DATA “()\+8
1005 DATA !"8828

1008 DATA 92248
1009 DATA >21_2-
1010 DATA BHK_
1011 DATA eH
1012 DATA XQ__—
1013 DATA XQ

1103 DATA 10
1104 DATA FOV
1105 DATA "8928
1106 DATA 4/5 }28

1108 DATA D2ZA8
1109 DATA >?:
ALLO DATA @HIK

1111 DATA GK

1112 DATA x0
1113 DATA XO

1999 REK Xm" Tnitialisation mo

‘2000 GRAPHICS 21 1START=PEEK(106)~42POK
E 106 )START-L:GRAPHICS O:POKE 710,
Ke 709,
2009 REX mmx Instructions mx

‘2010 POSTTION 14,137 “DOGGIES":? 32 °T
here are 3 white doggies on the left"
2020 ? "side of the screen and 3 brow
doggies"? “on the right sides You n
ust reverse"

2030 ? "their position by roving one d
oagie at"!? "a tines"? 1? "Use the jo
ystick in Port 1 to put the"

2040 2 "bane under the doagie you wish
‘to"!? "nove, then press the fire butt
on The"

2050 ? “doggie will move into the enpt

¥ spacey"t? "but only if he is next to
it or no"

2060 2 "wore than one doggie avay,
42 "It can be done in 15 moves! Can y

ut? “do ita"
2070 POSITION 13,221? " INITIALTSING
DIM BARKS (6) MLS(32) DOGS (6) ,MOVES(3)
sFA(7) PHC) SF="2720111"

2079 REN vax Data for barking am

2080 RESTORE 2090:FOR T=1 TO S:READ At

BARKS (L)=CHR4(A) EXT T

2090 DATA 97,109,97,9,515

6

‘2099 REK xm VET service routine mm
2400 FOR 1=1536 TO 1578:READ ALPOKE I,
AINEXT I

2110 DATA 104,160, 10, 162,6,169,7,76,92
+228,173,0)211)72)41 8,208, 4,230, 209) 1
04,24y144,7,104,41 4,208, 11,198,209
‘2120 DATA 169, 0, 133,77, 165,209, 141,0,2
08,76,98,228

2429 REM xx P-H Graphics a

2190 POKE 54279,STARTSPOKE 93256, 1:PH=
‘2S63STARTSPOKE 53248,0:POKE 209, 0:POKE
704,30

2140 FOR I=PH+602 TO PHEGO4:READ A:POK
E T,AMNEXT I

2150 DATA 195,285,195

2159 REM = Kove character set x
2160 FOR T=1 TO S2sREAD AIMLS(T)=CHRS(
ADINEXT TSCH=256xSTART SX<USR (ADR(HLS) »
57344,CH)

2170 DATA 104, 104,133,204, 164,133,203,
104,133,206, 104,133,205, 142,2

2180 DATA 160,017,203, 145,205, 136,20
8,249,230, 204,230,206,202,208, 240,96
2189 REM Mm Redefine characters xxx
2190 READ XYIF X=-1 THEN 2560
‘2200 FOR I=CHX TO CH#X+7:READ ALPOKE
T,A:NEXT T3G0TO 2190

2240 DATA 8,7,15,31,61,109, 111,110,111
2220 DATA 16,224,240,242, 108, 182,246)1

18,246

2230 DATA 24,12,12,7,3)3,7,15,31
2240 DATA 32,48,48,224,192,192,224,240
1248

2250 DATA 40,31,31,31,31,31,24,248,248
2260 DATA 48,248,248, 248, 248,248,24,31
at

2270 DATA 56,0,7,31,63, 125,237 .239,206
2280 DATA 64,0,224,248,252,190,183,247
1115

2290 DATA 72,15, 12)15,7,3,7)15,31

7300 DATA 80,240,48, 240,224, 192,224,24
0,248

2310 DATA 88,31,31,31,31,27,248,248,0
2320 DATA 104,248,248,248,248,216,31,3
1,0

2330 DATA 112,0,7,15)31 ,63)63,55,55
2340 DATA 120,0,128)192,192,64,127,255,
1255

2350 DATA 208,55)7,7,3,3,7,15,31

7360 DATA 216,254,224,254,252, 192,224,
240,248

2370 DATA 224,127,7 127 63,3)7 415,31
2380 DATA 232,236 ,224,224,192,192,224,
240,248 :

2390 DATA 240)0,7,31,63,127 239,239,
7

2400 DATA 248,6,224,248,252,254)247,24
7,243

2410 DATA 256y1,7)15)11,3)1,3,7

2420 DATA 320, 128,224,240,208,192,128,
192224

2430 DATA 336)74747474714)28)0

2440 DATA 344)224,224,224,224,224,32,5
6,0

2450 DATA 392,192,192,128,192,192,192,
192,96

2460 DATA 440,0,1,3,3,2,254,255, 255
2470 DATA 448,3,3,1,3,3,3,3,6

2480 DATA 456)0,224,240,248,252,252,23
6,236

2490 DATA 464)15,15)15)7,3,7,15,31
‘2500 DATA 472)15)12,15,71,47,71,47,31
2510 DATA 400,240, 48,240,226,174,226,2
44,248

2520 DATA 488, 15,15,15,7167,71,47,31

goto 10

Page 7 (scan)

eoos0 Li OFF Baten tee 4 Nee et
00020 on $500 Spore RAM
00030 saseasstazansenentasatacasziai panTor wast
00040 + UN-COMPACTOR : algae bisies Votes | Run-Time Stack
00050 4 MEWS LETTER ARTICLE (PARTS) 4 oe ‘Graphice

String ¢ Arrow
ooo BY TOK NEWMAN 1 | ¢ Storage
0070 + DECEMBER 1982 1 t Sarees
00080 atasenszssnaztsnsaaeastocaenins £ Redefined
woos 8 Gharaster “Set: ase Tokenised
0100 sasaesatazasasssnazascnansesass 227? RAMTOP~& fe Paty
00110 8 EQUATE TABLE : ee ee

RANTOP=5 7245

00120 snennaseanatizatanateaanaraeayy Variable value

00130 BUFFER £0 §r0

Table
oRAPHICS 0 SS

Digplay Memory aay

0140 BUFTLO £0 sro
06150 BUFTHI «Eo ST

Oo1s0 TABLE © £0 $2 ie BASIC Token

is a i

00170 TBLLO £0 sF2 3'-| aaeg sumer
00180 TBLHI EO sF3 Starieso t

00190 SAVEY EO §F4 ~ se28 p08

00200 REPEATS £0 sF5 spore RAM

00210 HOMELO EO $F6 n

0220 HOMER £0 4F? t me Creraing, stem
00230 DATA ED SB i

0240 avssaneasznesazaeaszszaszazass Figure 1

0250 # INITILIZATION '

00260 sanasanaeazsayssasstysagsetanes
06270 START LDA #850

00280 ‘STA BUFFLO

00290 ‘STA HOMELO

0300 LDA #861 #

00310 STA BUFFHI pee
‘STA HOMEHI 248
LDA #800 aoe
STA TBLLO ab.
STA SAVEY 189
LOA #840 ay
‘STA TBLHI i
Lon 4c

(00390 Meanennagatasacagasaeceesasagay

0400 + PROGRAM BODY '

00410 sncneasaseaseasaaseaacessesees
0420 CHANGE LOY #800

Figure 2

‘LDA (TABLE) ,¥
‘STA DATA
WY
LDA (TABLE) ,Y
aati jossssversens
‘LDA TBLLO 10 REM # A FREDERICK ATARI COMPUTER #
ADC #807 ‘4 TECHMICAL SOCIETY ORIGINAL #
STA TBLLO ’ PROGRAM '
LDA TBLHI 0 REM REMOVER by Robert Schaiebolk
‘ADC 4500 REMOVER processes files which
‘STA TBLHI have been created by REMAKER to
00550 BLOCK LDY SAVEY ‘0 REM remove the line numbers and REM
Osi LDA DATA Statements produced by REMAKER
00570 STA (BUFFER) ,Y It's outpat reterns the file to
t0sto cle , 40 REM its original form after editing
00590 LDA BUFFLO is completed. REMOVER’s oxtpat
‘0600 ADC 8528 file name is the same as the
00610 STA BUFFLO ‘SO REM source file, but does not have
weno LDA BUFFHI an extension. RIS 01/09/83
00630 ‘ADC #500 60 POKE 62,0:GRAPHICS 0:? ,*REMOVER-by
wee ‘STA BUFFHI Bob Schniebolk":? :? :? :?
00650 DEX 1 DIM AS(120) ,18(15) ,O8(11)
0660 ‘BEO NEXTCOLM ‘MO CLOSE 01:CLOSE #2:? “ENTER INPUT FI
LESPEC *; :IMPUT 18:7
00670 RE ‘
0680 aie ut ri 90 IF 19(LEM(1$)-2)() "REM" THEM ? CHRS
00690 IMP CHANGE (253) ;"FILE MUST HAVE ‘REM’ EXTENTION
00700 MEXTCOLM INC SAVEY PRODUCED BY REMAKER'".? :GOTO 80
00710 cPy 0527 100 DS=19(1,LEM(I8)~4)
00720 ‘BEO OUT 110 TRAP BO:OPEN #1, $:0PEN #2,8,0
8
00730 ‘LDA HOMELO
00740 ‘STA BUFFLO 120? :? "PROCESSING FILE*:? <TRAP 150
00750 ‘LDA HOMEHI 130 INPUT 01,A8:1F LEM(AS))5 THEN > 02
00760 ‘STA BUFFHI ASCO)? ASCE)
00770 ‘LDK #500 140 GOTO 130
00780 (JAP REENTER 450 CLOSE #1:CLOSE #2: CHRS(253).? *T

00790 OUT BRK ASK COMPLETED" TRAP 200

0600 oD

Page 8 (scan)

OCKERS: WildWest

1 REM agnasaansasacsasgnasacesaaes
1 REM S8ATARI COMPUTER ENTHUSIASTS##
3 REM saseeaaaantysLETTenestessas
4 REM 183662 Vine Maple DR
5 REM At EUGENE OR 97405
6 REM 88 April 83
7 REM tt S10 yr
6 REM aansaassaanesasstasaeansseags
OR MWildWest
a
MM tby Stan Ockerst
140 GOSUB 450:GRAPHICS 0:POKE 756,CSPA
GE:GOSUB 610:60SUB 860:G0SUB 1000:60SU
B 1110:GOSUB 1330
190? "Press START to begin*
160 IF PEEK(S3279)(06 THEN 160
170 GOSUB S80:RESTORE 180:FOR J=704 TO
‘TARSREAD A:POKE J,A:MEXT J:BKG=S6
180 DATA 0,44,92,34,66,14,50,0,56
190 DIF*t :SCORE=0:HATS=4:? CHRS(125):P
OSITION 21,0:7 *4if score bigh*:PO
KE 1761, 100:POKE 1762 100
200 FOR J=53248 TO $3251:POKE J,100:KE
RT J:POKE 1763,2:POKE 1766,200:POKE 17
67,40 :60S0B 1370: BOWUS=1000
240 Y=20:FOR Xe} TO HATS#3 STOP 3:60S0
B BAO:MEXT X:POSITION 14, 0:? HIGH:ASUS
(S36) PORE $59, 46:POKE $3277,3
220 IF PEEK(S3279)25 THEN DIF=DIFeL IF
Dif=10 THEN DIF=!
130 POSITION 2,0:7 DIF:FOR Je1 TO 100
WEXT J:1f PIRIG(O)=1 THEM 220
140 GOSUB 1370:POKE 1760,0:PORE 1781,0
POKE 1768,0:PORE 77,0
280 IF RND(O)(0.O18DIF THEN POKE 1780,

1

160 INCR*SCORE*PEEK(1768)95 POSITION 6

Oe) INCR

170 IF PEEK(1260%«0 THEN 250

280 SCORE=INCR:SOUND 1,0,0,0

290 IF SCORE)BONUS THEN BOWUS=BOKUS+10

OO:IF HATS(9 THEM HATS=HATSe1 ‘Y=20:t=3

THATS :60SUB 840

300 IF PEEK(1768)(PEEK(1769) THEN GOSU

8 730:6070 320

310 DIF©DIF +L: IP DIE)Y THEN DIF=t

310 IF HATS=0 THEN 350

330 GOTO 220

340 REM § game over routine

350 POSITION 17:7 "08 8 #8
ween

360 POSITION 1,8:?
pee tee

seeeen

360 POSITION 1,102 "EHD 08
Cn oe

390 POSITION 1,112 "8 OE
Cr

400 POSITION 1,1
wo ewe

410 IF SCOREDAIGH THEN HIGH*SCORE

420 TF PEER(S3279)()6 THEM 420

430 GOTO 190

440 REM # change character set *

450 DIM MESS (42) RESTORE 460:FOR J=1 T

0 42:READ A:MCS8(J,J)=CHRS(A) NEXT J

466 DATA 104, 169,0,133,203,133, 205,169

224,133, 204,165, 106,56, 233, 5,139,106,

u

470 DATA 105, 1,133, 206,162, 4,160,0,177

103,145, 205,200, 208,249,230, 204,230,2

6,102,208, 242,96

480 ASUSR(ADR(MOSS )) :CSPAGE=PEEK( 106) +

1) CS=2564CSPAGE

490 RESTORE S00:FOR JeCS+B TO C5+63:RE

AD A:POKE J, A:WERT J: RETURM

$00 DATA 126,2,32,1,134,1,3268

S10 DATA 2,8,128,2,64,8,32,2

520 DATA 32,130,12,28,20,20,20,20

530 DATA 0,0,8,9,9,9,10,10

S40 DATA 0,0,128,128,128, 128,128,128
550 DATA 10,10,10,143,143,138,170,0
560 DATA 128,128, 128,200, 200,136,168,0
570 REM # change display list #

560 DL=PEEK(560)+2S64PEEK(561):POKE DL
+3,70:PORE DLe6,6:FOR J=DL+? TO DL+28
PORE J,4:MERT J

590 RETURW

600 REM 4 instracti
610 POKE 752, 1:POSI1
VitovesT #86

620 POSITION 2,3:? "Dynamite Dan has i
tin for you."

630? ‘He drops lighted sticks fron th
2 ‘top of the screen at rates which

640 2 tary with the diffi
7 ‘Using paddle rero you
rero*

650? "to catch then before they reach
the":? “bottom and explode. Each tim
e you"

660? *niss you lose a bat. Los
hats":? “and the game is over
6209 :2 “The difficulty level goes do
wn on*:? “each miss, increases with e2
cht

680? “sucessful group. You way also
change":? "the difficulty level with t
he SELECT"

690) “key during breaks. You get ab

ss": "hat every 1000 points. Use 3
TART to*

100 9 “restart the game.*:? :? *Inital
ination takes 18 seconds, ":? *INITIALL

UNS"

710 RETURN

720 REM 4 explosion routine

730 X=0:J=0:COL=20

140 IF PEEK(16646K)=0 THEM 780

190 P=PEER(17244X) +PEEK(17366K)4256:P0

KE P,L:PORE Pet 2:JeJel:IF Je4 THEN Je

ty level.
ea som

i

0

‘760 FOR K=O TO 2:SOUND J,50+RND( 01350,
812K MERT K:POKE 712, COL+88%

170 PORE P, PEER(1712¢R) :PORE P+1,0:F0R
Lef TO 308RND(0):MEAT L

180 XeKeLcIF KL THEN 740

790 SOUND 0,0,0,0:S0UND 1,0,0,0:SOUKD
2,0,0,0:S0UND 3,0,0,0:POKE 712, BRE

B00 XeHATSH3:Y=20:POSITION X,Y:7" *
POSITION 2, Yel:? © “:HATSeHATS=1

810 DIF=DIF-1:1F DIf=0 THEM DIFeL

820 RETURN

630 REM # print bat &

840 POSITION X,Y? “S8":POSITION X,Ye1
2k; RETUML

$50 REM 3 PK graphics

860 DIM KS(1):A5ADRUAS) -BaINT((A-S12)/
102461181024: DIM FS(B-AeS11) DIM POS(L
2)

470 DIM PES (128) ,Pz9(128) ,P34(128) POR
£ 54279,8/256

880 DIM C18(15):RESTORE 690-FOR J=1 0
13:READ A:C1S(J,J)=CHRS(A) NEXT J
890 DATA 16,56 ,186,124,0,40,0,40,16.19
8,170,146 130, 68,68

900 POSCL)=CHRS(0):PO8(128)=CHRS (0): PO
§(1)=PO8:PL4=P08:P25=PO8:P35=PO8°PO8 (2
acs

410 DIM C2S(11):RESTORE 920:FOR Jel TO
ALSREAD A:C28(J,d)=CHRS(A) MEAT J
920 DATA 124, 254,254,124,56,16,0,0,0.1

98,130 8

930 psc 30=czs

440 DIM C3$(6) RESTORE 950:FOR Jet TO
6 :READ A:C36(J,J)=CHRS(A):MEXT J:P38(3
ec

950 DATA 170,184,170, 184,170,184

960 DIM H¥(9):RESTORE 970:FOR J=1 TO 9
READ A:HS(J,J)=CHRS(A):MEXT J:P19(80)
sHS:POKE $3257,1

920 DATA 124,196,124, 124,56, 56,56,56.4
°

960 RETURN

990 REM various strings *

1000 DIM CSWDS(15):RESTORE 1020:FOR J
1 TO 1S:READ A:CSMDS(J,J)=CHRS(A):MEXT

J

1010 AsADR(CSMDS) :HI=INT(A/256) :LO=A-2
SOSHI=POKE 1774,LO:POKE 1776, H1

1020 DATA 30,142,1,25,140,1,20,138,1,1
5,138,1,0,0,0

1030 DIM DSPDS(9) :RESTORE 1040:FOR Jel
TO 9:READ A:DSPDS(J,J)=CHRS(A):MEAT J
1040 DATA S,5,4.44,3,3.22.210

1050 DIM DDLYS(9) :RESTORE 1060:FOR Jet
TO 9:READ A:DDLY$(J,J)=CHRS(A):HEXT J
1060 DATA 30,25,20,15,10,5,5,5,5

1070 DIM CHTS(9) RESTORE 1060:FOR Jet
TO 9:READ A:CHTS(J,J)=CHRS(A) :MEAT J
1086 DATA 15, 20,25,30, 35, 40,45,50,85
1090 RETURM

1100 REM # create VBI string +

1110 DIM VBIS(398) RESTORE 1120:FOR J=
1 TO 398:READ A:VBLS(J,J)=CHRS(A) MEAT
J: RETURN

1120 DATA 173,234,6,240,$7,206, 296,61
652,173, 238,6,133,208,173,240,6,133,2
09,172,242,6

1130 DATA 177,208,240,21,141,0,210, 200
A717, 208, 141,1,210, 200,177, 208,141,236
6, 200,140,242,6

1140 DATA 208, 14,169, 0,141,0,210,141,1
DAG AAT, 234, 6,141 242, 6,216,173, 2206
1240,3, 76,96, 228

A1S@ DATA 173,112,2,73,255
1160 DATA 141,1,208,141,226,6

1170 DATA 173,225,624, 109, 227,6,205,2
30,6176, 27,205,231 ,6,144,22,141,205,6
141,0,208,141,2,208,141,3,208
1100 DATA 173, 244,6,240,13,169,0,141,2
6

1190 DATA 173,227,6,73,255,141,227,6,2
06, 228,6,16, 78,173,245, 6,208,233,6,176
10,173,229, 6,141,128,6
1200 DATA 162,11,
6,248,48 52

40,$,202,1

157,200, 6,165,88,24,
16144, 3,254,200,6,173,2
15, 6,157 ,164,6,56,233,
1220 DATA 74,74,24, 125,108 6.157, 188,6
44, 3,254, 200 6, 169,1,157,126,6,141,2
35,6,238,245,6

1230 DATA 162,11, 189,128,6, 240,110,222
1140, 6,189, 140,6,16, 102,189,182, 6, 157,
140,6,189,188,6, 193,208, 189,200,6

1240 DATA 133,209,189,176,6,160,0,165,
208,165,208, 24,105, 40,133,206, 157,188,
6,144,5,230, 209,254, 200,6

1250 DATA 254, 212,6,189,212,6,201,11,1
44, 28,201 17,176, 24,189,164,6,24,105,9
208,226, 6, 14419

1260 DATA 56,233,18,205,226,6,176,5,14
4,30,24, 144 165,189, 212,6

1270 DATA 201,20,144,8,169,1,141,224,6
14 L442, 177 208,157,176, 6

1280 DATA 169, 3,145, 208,24,144,27,169,
41,141,234, 6,169, 0,157, 128,6, 157, 212,6,
157,176.46

Page 9 (scan)

WILDWEST

Assembly Listing
PAGE 2

PASE by Stan Ockers
Ace Newsletter
10 ; WILDWEST VBI ROUTINE on2i sp01D2 9620 STA AUDCI_; is dist, and vol
0; one ce 0630 ky
” ae 10680 02s BiD0 0640 LDA (INDLO),Y ; third byte is
40 DFLG = 4412; (1664) flags for objects active 0027 BDECOG §— 0650 STA SHDCKT ; delay cat
SO CHT t= 4617 (1676) delay to drop a line 2a Co oo ny
(OMAK 2 8612; (1688) reset delay 028 8Cr206 © 0670——«STY SHDINDE ; new position
10 HORDRP $= $412; (1700) hor. pos. of objects ooze Dove 680 BKE DOIT—; skip
BO CSAV $= 8412; (1712) retain screen char 0030 ast 0690 STOPSND LDA #0; shut off sound
90 POSLO t= 4417; (1724) Jo byte object pos 6032 spooz = 0700 STA AUDFL
0035 sD01D2 0710 STA AUDCL
0110 BIGHT t= 4612; (1748) count of dropped line 0038 BDEADG = 0720 STA SHDFLE

0100 POSH! $= 4412; (1736) bi byte object pos.

0120 QUIT te 84 (1760) falling routine active 0038 SDF306 © 0730—STA SNDINDKe1 ; and reset pointer
0130 HORPOL $= 841; (1761) shadow hor. pos. dropper aE De 0740 DOIT CLD i all math in binary
0140 HORPO2 t= #61 | (1762) shadow hor. pos. catcher O03F ADEOOS = 0750 LDA QUIT; éo VBI?
0150 DELTA t= 441 (1763) incr. in dri pos O04 FO03 0760 EO OVERS; Fes

044 4C62E4 0770 AMP ITV

0160 DRPCNT t= 461
0170 DRPSET 4= 41

j (1764) delay till drop

(1765) reset delay 0047 AD7002 0780 OVER¢ LDA PADDLO ;

pdate catcher

0180 RILIM t= tel; (1766) right init Gropper 004A 29FF 0790 AND ASEF reverse paddle dir
0190 LTLIM t= 441 (1767) Left limit dropper 004C BD01D0 = 0800» STA HPOSPI ; register
0200 SCOR = 841 (1768) keep track of catches OO4F BDEZ06 §=— 0810 STA HORPO2 ; and shadow
0210 HISCOR 4+ 461; (1769) maxinan ¢ catches 0052 ADELO6 0 LDA HORPOL ; update dropper
0220 SMDFLG = 442°; (1770) sound active flags 955 18 oe30 Ce
0230 SMDCHT 4= 442 ©; (1772) delay till next sou 056 6DEI06 = 0840 ADE DELTA
0240 SMDPOL 4= 442; (1774) Jo byte snd string 0059 CDESOS = 0850 CHP RTLIM ; too far right
0250 SMDPOH t= #42; (1776) bi byte sad string OSC BOIB N60 BCS SWITCH ; ves
0260 SNDINDK = 442 ; (1778) index into snd string OSE CDE7O6 = 0870 CMP LTLIN. ; too far left
0270 SWFLG t= 461; (1780) flag to sv. dropper dir n6r 9016 860 BCC SWITCH; ves
0280 DRPTOT #= 441 ; (1781) total # objects droppe 0063 SDE106 §— 0890 STA HORPOI ; update shadow
=0003 0290 CHAR = $03; char. of dropping obj 0066 800000 }0 «STA HPOSPO ; and registers
=0010 0300 LOLI = $10; Jovest dropping pos 0069 sDozDD = 0910 —STA HOSP?
0000 0310 INDLO = $00; indir. pointers o6C 600300 = 0920 = STA HPOSP3
20001 0320, INDAL = 901 UGE ADT4O6 §—0930-—“LDA SWFLG—; change dropper Gir. ?
E462 0330 AITVB = SE462 ; back to Atari VBI 072 FOOD 0940 BEO DROP a
0058 0340 SAVHSC = $55; start of screen data 0074 A900 950 LDA #0 i reset flag
=0078 0350 OFFSET = 120; skip a few lines 0076 SDF406 = 0960 STA SWFLG
20710 0360 PADDLO = $0270 0079 ADE306 0970 SWITCH LDA DELTA ; change direction
=D000 0370 HPOSPO = $0000; PM hor. registers ore ase ovo OR asrr
D001 0380 HPOSPI = #001 OO7E SOEI06 ©0990 —STA DELTA
0002 0390 HPOSP2 = #002 081 CLEA 1000 DROP DEC DRPCHT ; drop another?
=0003 0400 HPOSP3 = sD003 0084 1048 1010 BPL MOVE, no
=0200 0410 AUDF1 = $0200; andio registers 0086 ADPSO6 — 1020 LDA DRPTOT ; have we dropped all?
=D201 420 AUDCI = sD201 0089 coEvOs §=—1030—CMP HISCOR
0202 0430 AUDF2 = $0202 nec Ba43 1040 BES MOVE; yes
=0203 van avDc2 = $0203 OOBE ADESOS ©1050 LDA DRPSET ; reload count
20010 0450 CATCH! = 16; lowest catch Line 09s SDE¢06 §— 1060 STA DRPCKT ; iI! next drop
20012 460 CATCHZ = 18 highest catch Line 094 AI 1070 LOX 811; find a free position
urs nt 0 0096 Boso0s = 1080 TRY LOA OFLG,X
0080 ADEAGS © O4B0-—LDA SHDFLG ; catch snd active? 0099 Fo0s 1090 ‘BED START
003 Pose 010 = BLO BOT; no 0098 CA 1100 DEX
005 CEECOS — 0500 DEL SWDCMT ; next sound? 0090 10F8 4110 BPL THY
coos 1034 0510 BPL DOIT no oor 3031 1120 BAL MOVE. =; none available
OOUA ADEEOS —0520-—LDA SNDPOL ; point to snd string OD ASSP 41130 START LDA SAVMSC+1 ; relate starting
000 8500 0530 STA INDLO OOA2 90C806 1140 STA POSHI,X ; position to start
OOF ADFO06 = 0540 ——LDA.SMDPOH OAS ASE 1150 LDA SAVASC ; of screen
ort esd1 STA INDAI O0a7 18 160 ce
ors ACF206 LDY SHDINDE ; position in string ons 6978 1170 ADC OFFSET
017 8100 UDA (INDLO),Y ; get date OOAA 9OBCHE «1180 STA POSLO,
oni POIs BED STOPSHD | if rero stop sound OAD 9003 1190 ‘BCC OVER?
9018 sp00D2 STA AUDF1 —; else use as freq. GOAT FECSOG 1200 INC POSHI,%
OnE cB mY j nent byte 0082 ADEIO6 1210 OVERZ LDA HORPOI ; get dropper pos.
coir B1D0 0610 LDA (1NDLO),Y OBS 9OAd06 —1220—STAHORDRP,X ; save for coll. det

4290 DATA 238,232,6,173,232, 6,205,233,
6,176, 209,202.16,196

1300 DATA 169,0/441,2,210,141,3,210,16
2,11, 189,128,6,208,6,202,16,248, 76,98,
ub

A310 DATA 165,20,44,1,141,2,210,169,6,
144,3,210,24 144,235

1320 REM 4 insert VBI #

1330 RESTORE 1350:FOR J=1536 TO 1945:
EAD A:PORE J,A:MERT J

1540 VBI=ADR(VBIS) :HI=INT(VBI/256) :LO=
VBL-2569HI:POKE 1538, LO:PORE 1540,HI:R
ETURN

1350 DATA 104, 160,0,162,0,169,7,76,92,
mu

1360 REM 4 init. page 6 values 3

1370 FOR J=1664 TO 1675:POKE J,0:MEAT
J:FOR J=1748 TO 1759:POKE J,0:NEXT J
1360 ASASC(DSPDS(DIF)):FOR J=1676 TO 1
699:POKE J, A:MEXT J

1390 AASC(DDLY$ (DIF) ) PORE 1764,A:POK
E1MSA

1400 APASC(CHTS (DIF) ):POKE 1769, A:POKE
1768,0

1410 RETURN 9

Page 10 (scan)

PAGE 3

608s 38
089 E928
OBB 4A
OBC 4A
ooBD 18
OoBE 708C06
oocs s0Bco6
00¢4 9003
0cé FECBO6
o0ce As0L
0CB 908006
OOCE EEFSO6
DY ALB
0p3 08006
ODE OSE
00D8 DEBCOS
0DB BD8CO6
ODE 1066
EO 809806
00E3 9Dacos
OES BORCOS
OED 8500
EB BOCEOG
OEE 8501
oro BpB006
0F3 x00
OOFs 9100
OF? ASDO
oor 4
OFA 6928
oorc 8500
OOFE 908C06
o101 900s
0103 E6DL
0105 Feces
0108 FEDAO6
0108 BODdOS
O10E C910
110 901C
0112 c912
114 BO18
0116 BDAAOS,
ous 18
OLA 6908
o1i¢ coEz06
O11F 9000
121 38
0122 £916
124 coeze6
0127 Bo0s
0129 901E,
0128 18
0120 OAS
D12E BODOG
0131 C910
0133 9008,
0135 aNOL
0137 BDE006
O13 18
0138 902A
13D 8100

1230
1240
1150
1260
1270
1280
1290
1300
10
120
1330
1340
1350
1360
1370
1380
1390
1400
1410
1420
1490
1440
1450
1460
4470
1480
1490
1500
1810
1820
1530
1540
1550
1560
1870
1580
1590
1600
1610
1620
1630
1640
1650
1660
1670
1680
1690
1700
ano
ano
1130
10
1750
1760
1770
1780
1190
1800
1810
1820
1830

see
SBC 140; change to screen bytes
ISR A
L5R A
cic
ADC POSLO,K ; and add it in
‘STA POSLO,X
BCC OVERS
INC POSHI,X
OVERS LDA #801 ; activate drop
STA DFLG,X
INC DRPTOT
MOVE LOX H11 —; six objects
LOOP LDA DFLG,X ; this one dropping?
BEO NEXT
DEG CHT,X ; down again?
LDA CHT,X
BPL MERTI ; 20
(OA MAK,X ; reset drop counter
STA CHT,X ; for next down
LOA POSLO,X ; fill indirect pointer
STA INDLO ; with position
LDA POSHI,X
STA LNDHI
LDA CSAV,K ; restore background
Loy 00
STA (1NDLO)
LDA INDO; down a Line
coc
Apc #40
STA INDLO; for indirect
STA POSLO,X ; and new position
BCC OVERI ; no page crossing
INC INDHL —; page crossed
INC POSHI,X
OVER! ING BICHT,X ; check for a catch
LDA BICKT,x
CHP #CATCH
BCC BOTT —; not to catch pos
CHP CATCH
BCS BOTT —; past catch position
LDA HORDRP,X ; recall horiz, pos
cue
ADC 4808; but goa bit right
CHP HORPOD ; catcher further right?
BCC BOTT; yes
SEC
SBC #516 | now a little Left
CMP HORPOZ ; catcher further Left?
BCS BOTT; ves
‘BCC CAUGHT ; within linits, a catch
Loop CLe i inst to keep
‘BCC LOOP; everything relative
BOTT LDA BTCWT,% ; reached bottom?

CHP HLOLIN

BoC FILL =; 20
NOMORE LDA #901 ; yes stop everything
STA QUIT
cue
BCC ovr

FILL LOA (INDLO),Y ; get screen character

PAGE §
O13F 9DB006 1840 STA CSAV,K ; and save it
0142 A903 1850 LDA #CHAR ; put object
144 9100 1860 STA (INDLO),Y ; on screen
0146 18 1870 WERT! CLO
0147 90181880 «BCC ERT
0149 A901 1890 CAUGHT LOA #1; activate sound
0148 SDEBOG 1900 ‘STA SNDFLG+1
OLME A900 1910 ‘LDA HO + reset
0150 908006 1920 STA DFLG.K ; flags
0153 9DD406 1930 STA BICNT,X ; and bottom
0156 9DB006 1940 STA CSAV,X | ‘saved char.
0159 CEESO6 1950 INC SCOR ek for 1] caught
usc ADEHOS §=— 1960 LOA SOR
O1SF COEI0G ©1970 CAP HISCOR
0162 BOD! 196 ‘BCS NOMORE ; yes stop everything
0164 CA 1990 MEAT DEX j more objects?
165 1004 2000 ‘BPL LOOP] =; yes
0167 A900 2010 OUT LDA #0; shut off sound
0169 8p0202 2020 ‘STA AUDE2
O16C 8D03D2 1030 ‘STA AUDC2
‘O16F ADO 1040 LOX 6508 i Search for active object
0171 BD8006 ©2030 LOOPS LDA DFLS,x
0174 DOO 2060 ‘BME FIZZ ; found one
0176 CA 1070 mxTPO DEX
0177: 10F8 1080 ‘BPL LOOP3
0179 4ce2E4 2090 OKP XITVB
170 ASIA 2100 FIZZ LDA $14 i random sound
O7E 29012110 AD
0186 800202 2120 STA AUDF2 =; sound on
0183 A906 uw LDA 6
0185 800302 10 ‘STA AUDC?
0188 18 uso ce
01g 9ocB = 2160 BCC TPO
PAGE 5
‘SYMBOLS
D201 AUDCL =D203 AUDCZ =D200 AUDFL =D202 AUDF2
06D BICNT 0010 CATCHL 0012 CATCH? 0149 CAUGHT
068C CNT 0680 CSAV O6E3 DELTA 0680 DFLE
081 DROP 06E4 DRPCAT (06ES DAPSET O6Fs DRPTOT
O17 FIZZ O6E9 HISCOR ‘O64 HORDRP ‘O6E1 HORPOS
=0000 HPOSPO =D001 HPOSPI D002 HPOSP? ones roses
0000 INDLO 70010 LOLIM 00D3 LOOP 0128 LOOP)
‘0667 LTLIN 0698 MAX 0D1 MOVE (0164 NEAT
0135 NOMORE 0176 NRTPO 0078 OFFSET 0167 OUT
0082 OVER? 00C9 OVERS 0047 OVERS 30270 PADDLO
O6BC POSLO O6E0 QUIT O6E6 RTLIN 0058 SAVASC
O6EC SMDCHT OGEA SHDFLE sr? SaDDNDX 670 SHDPOH
OOAD START 0030 STOPSMD O6F4 SvTLG 0079 SviTCH
20462 XITVB 0146 weaT!
O12E BOTT 9408 ovERL
0003 CHAR 96C8 POSH
GEL SMDPOL
oggtes O62 HORPOD 9996 TRY
2530 DATA 496,240,240,240,226, 194,226, Sedat
244,248 0171 LOOPS
2540 DATA S04,240,240,240,224, 192,224,
240,248
7550 DATA -1

2559 REM mmx Return to user xx

2560 POSITION 9,22%? "Press START to
begin" :POKE 53279,8

2570 FOR I=1 10 20:1F PEEK(S3Z7906 T
HEN NEXT T:POKE 755,2-PEEK(755):GOTO 2
70

2580 POP :GRAPHICS 18¢POKE 14,64:POKE

‘53774, 1192POKE 756, START:POKE 559,463P
OKE 53277,3

2590 POKE 708, 14:POKE 709, 1843POKE 710
»203FOKE 711 ,19624=USR (1536) $RETURN

10

Page 11 (scan)

FALLING

Listing one
by Stan Ockers

Peererrrrtrcroocolo ity
PAGE 1

10 5 SKY 15 FALLING ROUTINE
u

rT] te $0680
40 DFLG t= 146
SOCKT 166
ONAL fe teh
10 STLO a 446
80 STHI t= 446
90 POSLO 3 446
0100 POSHI 4 146
0110 BICKT t= 146
0120 CSAV te 446

0003, 0130 CHAR = $03

0010 0140 LOLIM = #10

0000 0350 IDLO = $D0

0001 0160 INDI = $D)

E462 0170 XITVB = SE462

0180 ;

068s 0190 te 800
000 D8 0200 CLD } add in binary
ooo Az0s 0210 LOK 45 j six objects

6003 BD8006 ©6220 LOOP LDA DFLG,X ; this ont dropping?
0006 FosD 0230 BEO MEAT =; no

0008 DEB6O6 §=— 0240 DEL CHT.X ; down again?

00R BDBGO6 =—0250 LDA CHT,X

O0E 1055 0260 BPL NEAT =; 20

010 BDBCO6 §=—0270«LDA MAXX; reset drop counter
0013 908606 0280,» STA GHT,K ; for next dovm

O16 BDPEDG §—«0290-——LDA POSLO,X ; {ill indirect pointer

019 8SD0 0300 STA INDLO ; with position
0018 BDACOG §=— 0310 —-LDA POSHI.K

OLE 85D1 0320 STA INDHI

0020 BOBOOS §=—0330 LDA CSAV,X ; restore background
0023 A000 o3e0 LY #0

2s 9100 0350 STA (INDLO),Y

02? aSDO 0360 © LDA IMDLO ; down a Jine

ozs 18 00 CL

07a 6928 0380 ADC 40

zc e500 0390 © STA INDLO ; for indirect

OOZE 9D9EN6 —«0400-- STA POSLO,X ; and new position
0031 9005 0410 BCC OVERS; no page crossing
0033 E6Dt 0420 © INC INDHI page crossed

0035 FEAGO6 §=— 0430 INC POSHI,X
0038 FEAAO6 — 0440 OVERI INC BTCNT,X"; reached botton?
0038 BOAADG = 04S0,—LDABTCNT.X

03E 6910 0460 CMP #LOLIK
0040 901A 070 BOC FILL; no

0042 A900 oso LDA 4D; reset
0044 908006 = 0490 STA DFLG,A ; flags

0047 SDAAD6 OSI STA BTGNT,X ; and botton count
O04 908006 0 STA CSAV,X ; and saved char

040 BDIZ06 ©0520 LDA STLO,X_; reset position

6050 9D9EO6 © —«0530~—STA POSLO,X ; to starting pos.
003 BDNeO6 = 0540 LDA STHI,X

056 90A406 ©0550. ——STA POSHI,X

0059 18 560 CLe j don’t pat char.

OSA 9009 0570 BCC NEXT; on screen

usc B1D8 0580 FILL LDA (INDLO),Y ; get screen character
0590 STA CSAV,X it
0600 «LDA CHAR; put object

063 9100 0610 STA (INDLO),Y ; on screen

PASE 2

065 CA 0620 NEAT DEX j more objects?

6 1098 0630 BPL LOOP; yes
068 dCh2Ed = 0640 = IMP XITVB ; back to VBI routine

1 /REM sunsaaseassesaaseesaesaesacagy
1 REM A4ATARI COMPUTER ENTHUSIASTS##
3 /REM saneaaeeeevsLeTTeReeasassesss
(REA 8 3662 Vine Maple DR 44

5 RDM At EUGENE OR 97405 18
6 RDM at April 83 a
7 REM 88 $10 rr "

8 REM staneaucanaanacasnaszesceasess
BY STAN OCKERS

9 REM 2¢8 DEMO OF FALLING ROUTINE 388

10 GOSUB 8000:GOSUB 6200:60SUB 8300

20 FOR Jet TO 500-MEXT J

1=RAD(0)86 PORE 1664¢INT(R) 1

46 GoTo 20

7999 REM 888 CREATE VBI STRING 488

8000 DIM VBIS(110) :RESTORE 8010:FOR J=

41-TO 140:READ A:VBIS(J,J)=CHRS(AI :WEXT

S:RETURK

8010 DATA 216,162,5,189,128,6,240,93,2

22,134,6,189, 134.6, 16,85,189,140,6,157

134, 6,189, 158,6, 133,208, 189,164,6

8020 DATA 133,209, 189,176,6,160,0,145,

206,165, 208,24 108,40, 133,208, 157,158,

6 ,144,5,230, 209,254, 164,6

8030 DATA 254,170,6,189,170,¢,201,19,1

44,.26,169,0,157,126,6 157,170,641:

189,146,6

DATA 157,158, 6,189,152,6,157, 164,

6 ,24,144,9,177 208,157,176 ,6,169,3,145

208,202 ,16,155,76,98,228

8199 REM 888 INSERT VBI 288

4200 RESTORE 6230:TOR J=1536 TO 1545:R

EAD A:POKE J,A:MEXT J

8210 VBL=ADR(VBIS) :HI=INT(VBI/256):LO=

VBI-2564HL :POKE 1538,L0:POKE 1540,H1:A

#USR( 1536) : RETURN

8230 DATA 104, 160,0,162,0,169,7,76,92,

128

0299 REX 18% INIT. PAGE 6 VALUES 49

8300 RESTORE 6310:FOR J=1664 TO 1681:2

EAD A:POKE J,A:NEXT J

4310 DATA 0,0,0,0,0,0,0,0,0,0,0,0,10,8

11614,12,10

$312 FOR J=1719 TO 1725:POKE J,0:MEXT

f]
0320 SOREPEEK( 88) +2568PEEK(G9) :TOPLKES
CRe120:BOTLM=SCR+B00
0922 Th=TOPLAGO:HI=1NT(T1/256):10=T1-2
S6SHI:POKE 1682,LO:POKE 1694, L0:POKE 1
688, HL:POKE 1700,AE
0324 T2=TOPLW+16:HI=1NT(T2/256) :L0=T2-
‘286081 :POKE 1683, 10:POKE 1695,L0:POKE
1689, HI:POKE 1701,HI
8326 T3=TOPLWe 24: HL = INT (73/256) :L0=73-
2569HI PORE 1684,L0:POKE 1696, LO:PORE
1690,HI:POKE 1702, HI
8320 T4=TOPLM632 HI =1NT(T4 256) :LO=T4-
‘1S69HI:PORE 1685, 10:POKE 1697,L0:POKE
1691, HL:PORE 1703,
0330 TS=TOPLM+34:HI=INT(TS/ 256) :LO=TS~
‘2S69HI:POKE 1686, LO:POKE 1698,L0:POKE
1692,HE:POKE 1704 HI
8332 To=TOPLN+36:HI=1NT(T6 256) :LO=T6-
1S6HHI PORE 1667,L0:PORE 1699, LO:POKE
1693, HI:POKE 1705,H

0940 FOR J=1706 TO 1717:PORE J,0:MEXT
f
0950 RETURN
PAGE 3
SYMBOLS
OGAA BTCHT 0003 CHAR
0SC FILL =00D1_ INDHI
OG8C MAX 6S EXT
068 STAI 0692 STLO

11

0686 CHT

=00D0 1NDLO
0038 ovERL
E462 KITV

seo DFLS
0003 LOOP
069E POSLO

0080 SAV.
0010 LOLIM
O64 POSH!

Page 12 (scan)

OCKERS

WILD WEST

Wildwest uses an expanded version of the ‘Sky is Falling’ routine. Sound is
included in the VBI routine along with dropping and catching routines.

Timing is most critical in this program and you may wish to change some
of the characteristics. Most of the timing is controlled by the data in three
strings. Each byte in the string represents one difficulty level. DSPDS (lines,
1030,1040) bytes control the speed at which the dynamite falls, Lower
numbers mean faster speeds. DDLY$ (lines 1050,1060) holds bytes which
determine the delay time until another stick is dropped. CNTS (1070, 1080)
determines the total number of sticks dropped in any one group. The number
used for comparison with the random number in line 250 determines how
often Dan switches direction, Increase the value to make him change direc-
tion more frequently. Experiment with some of the values and try to come up
with the most challanging combinations.

‘You may wonder why collision registers were not used to detect collisions.
| tried, but it seems these registers are updated during Atari's portion of the
VBI routine. Since | needed to know which object had collided and many
might be moved during one VBI pass, there seemed no way to use collision
registers for detection.

The program works best with paddles but if you dont have them, make the
following changes to be able to use a joystick:

(1) replace line 1150 with: 1150 Data 162,0, 173, 120,2,41,4,208,2, 162,252,173,

120,2,41,8,208,2,162,3, 138, 109,226,6

(2) change the 398's in line 1110 to 417 (two places)

(8) change ‘paddle zero’ in line 640 to ‘joystick 0’,

(4) change PTRIG(® in line 230 to STRIG(O),

| find the joystick very difficult to use. You might find the action more to
your liking by replacing the first 5 bytes of 1150 above with 234's.

—Stan Ockers

Machine Language Programming #5
Sky is Falling Routine

Many games involve falling objects. Player missiles will suffice for a few
objects but it many are involved another method Is necessary. We can use the
techniques we have been studying to write what | call a ‘Sky 1s Falling’
routine. Listing 1 is such a program,

The idea is to use a character mode (mode 0 in this case) and move objects
(characters) by removing them from one line and placing them on the next line
down, The program is set up for six such objects but could easily be changed
for more. Characters are POKEd directly into screen data memory. A major
art of the program involves calculating where the characters are located.

Since there are 40 characters per line, the new position of an objects 60
bytes from the previous position. Object positions are kept in. table of high
and low bytes (POSLO & POSH! and following). X acts as an index to choose
which pair of bytes we want. The positions are initially set (from Basic) to the
{op of the screen, Other bytes (STLO,STH)) hold those positions so they can
be reset when the bottom-most postitions are reached!

The indirect indexed mode is used to point to the postion required. After
adding 40 to the location, the character at the new position is saved. This
character will be restored when the object moves. This allows the falling
objects to pass in front of a background without creating “holes” Notice the
index used is actually zero, for we are interested mainly in the indirect nature
of the mode.

Another technique to notice in the program is the use of flags. A set of
flags keep track of whether or not an object is falling. Changing the flag from
zero to nonzero initiates the dropping of the object

if we try using the USR function to handle movement of objects we will find
they can't be moved fast enough. Instead the routine is set up to operate
during the Vertical Blank Interrupt, The VBI happens every 1/60th of a second
when the beam creating the TV picture retraces from the bottom to the top of
the screen, The routine Itself is put into a string (VBI) and the address of the
siring is passed to a routine which inserts It into the vertical blank interrupt
sequence (see the Basic listing).

'Now the positions of objects will be updated sixty times a second. This
may be 100 fast! To siow things down, counters are used to regulate the
speed (CNT). These are reset (with MAX) after counting through Zero,
Movement is performed only alter each complete countdown.

{Another counter keeps track of how many lines each object has dropped
(BTONT). When it reaches a certain value (LOLIM) the characteris not printed
The dropping is deactivated and the screen position bytes are reset to the top
of the screen.

We don't use ‘Hexpoke' this time. Instead we change the code to decimal
and use Basie to handle it. The Basic program listed demonstrates the falling
routine. Graphics 0 is used while in an actual program mode 4 could be
Substituted for more color. An actual program might also have the object
dropping {rom positions depending upon another object (player missile) In
such a case additional code is required in the VBI routine. Catching of
dropped objects or collision detection also requires additional code

Careful study of this routine should help clarity techniques we have
introduced in past installments. The concepts of addition and page crossing
are also included though not previously described, These we will save for a
future installment.

—stan Ockers

12

CALL TO ASSEMBLY

from S*P*A*G"E by Tom Newman
MICRO-PAINTER Part 3:
“The uncompactor"

In part two of this article we created a disk file containing the compacted data
of our MICRO-PAINTER picture. This article will show you how to load the com-
acted file back into RAM, using a portion of the progRAM from the first part of
the article. We will also have to create a mode 'E’ display list so we can view our
picture as the program unfolds it. Again we will use a portion of the first program.
Keep in mind the screen memory and mode ‘E’ display list is a necessary
‘overhead in displaying pictures created by MICRO-PAINTER.

One of the possible uses of this program is to store several pictures in RAM,
and then unfold them one at a time into a common screen RAM area. This can be
useful as a tutorial, where a series of complex, rapidly availible pictures are
desirable to clarify a point. My sons, of course, have a different intrest in the ad-
vantages of the compactor program. It lets them get all four of the DONKEY
KONG screens into the computer's memory at the same time, which furthers their
hopes | will put some action into the pictures they have so artfully created,

In using the MICRO-PAINTER pictures in a game, | suggest you start by choos-
ing one with a large static playfield. Then use players for the moveable objects.
‘There are collision detection registers built into the ATARI hardware, which can
detect contact between the players and the playfield, or each other. The use of
these registers is outlined in ATARI'S hardware manual(CO16555). To get an idea
‘of what can be done with bit mapped graphics, take a look at BRODERBUND'S
CHOPLIFTER for an outstanding example. This is the type of thing which can be
accomplished with these pictures, not with as much resolution, but the same type
of action and much more control over the colors.

At this point | will leave the possibilities up to your imagination and get down to
‘an explanation of the un-compaction program,

Lines 130 to 230 contain the equate table. If you are using the ATARI
ASSEMBLERVEDITOR cartridge use zero page locations $B0 to $B8 instead of SFO
to $F8, Each assembler (hopefully) will have some zero page locations set aside
for your use. The exact locations vary from one assembler to another, so be cer-
tain the locations you use are free, or you may discover the gates to never never
land.

Lines 270 to 380 initilize the program variables, like where to put the un-
compacted data and where to get it.

Lines 420 to 800 contain the program body. First we get a byte from the data
table we created in the last article. The table is indexed by the 'Y’ register to first
point to the data byte and then the repeats byte. The actual movement through the
table however is accomplished by altering the zero-page pointer ‘TABLE’, and
then reseting the 'Y’ register to zero upon each access to the table. | also have us-
ed the “Y’ index register to keep track of which column is being put to the screen,
‘The column number is saved in a temporary location called ‘SAVEY' while the
data table is being accessed.

In the mode ‘€' standard width screen there are forty bytes per line. In order to
put one byte directly under another in the screen RAM to create the columns we
must add forty (HEX 28) to the previous address. This is accomplished in lines 580
to 640. If the end of the column has been reached then the buffer is restored to its
starting value, and the ‘Y’ register incremented. When all of the columns are
transferred then the program is exited.

Now it is time to take a look at your picture. You must have the mode ‘E' display
list in memory, and point the display list pointer at the new list. Use lines 530
‘through 980 of the program on page 9 of the November newsletter to accomplish
this. Assemble the program to disk (TF "D:YOURFILE), so you may use it later.
Now assemble the program in this article into RAM. (OON'T FORGET TO SAVE
TT), BLOAD the compacted file you created from the last article, and the display
list setup mentioned above, To execute the program type MON then 5FO00G (THE
‘SCREEN WILL GO BLANK, listen for the bell! Carefully type 5E00G and your pic:
ture should appear on the screen

Good luck.
TEN.

Page 13 (scan)

TOOLS OF THE TRADE

(8y permission trom Programmer's Journal, 80x 5070, Eugene, OR 97405; $2416
"sues; ed. Greg Estes; Resource Newsletter for IBM PC Programmers.)

[This article focusses on Microsoft BASIC for the IBM PC, but | feel the ideas
discussed are equally appropriate for programmers in ATARI BASIC. —JB, ed]

Programming in any language goes through a process of evolution. The stan.
gard tools of BASIC we will cover in this column are very useful in themselves,
‘The real concern is establishing awareness how our software changes. an
roves with age and attention and, most of all, by contact with other good soft.
ware writers,

Our first focus is often just “getting the job done", no matter what the cost in
Code size or structure. As our skills and understanding of the language improve
Wwe are able to reduce the size of the program while still keeping or increasing the
Glaclty of its function. We will quickly cover the evolution of some single line
BASIC tools before moving on to larger ones like input routines.

When a YES or NO question is asked a user we must determine which response
is made and execute the appropriate choice. Initially we code it like this.

100 INPUT “Do you want to try again (VIN)";AS.
110 IF AS ="y"THEN GOSUB 500

“Y"THEN GOSUB 500
I" THEN GOSUB 600

140 IF AS=""N"THEN GOSUB 600
150. GOTO 100

Lots of code. Soon we figure out we can shorten it slightly by checking each
answer in one line:

“N"THE GOSUB 600
130 GOTO 100

‘This Is better, and for a yes or no question certainly suffices. But what if we hada
‘menu with § choices and the options were A, B, C, D, or E?

Microsoft gives us a standard too! for this, the INSTR function. It searches a str-
{09 for a character and returns the number of where it found it, or a zero if i falled,
Our yesino question can now be coded like this:

110 NUMBER =INSTR(1,""y¥nN",AS)
120 ON NUMBER GOSUB 500,500, 600,600
130 GOTO 100

As time goes on we notice the INSTR function itself gives us the number we need,
So why bother with the NUMBER variable at all, This enables us to handle a list of
‘menu options (say A-E) in only one line:

110 ON INSTRU(1,"aAbBcCdDeE",As) GOSUB. 500,500,600,600,700, 700,800,800,
900,900
120 GOTO 100

eer fuetion in BASIC has numerous uses. As our experience and creativity
in.a language evolve we discover new uses for old functions. Many such dest are
assed from programmer to programmer with improvements and new trioke aac,
ed along the way.

UPPERCASE AND LOWERCASE: There are many times we want to convert
Blgoes Of data to uppercase from lowercase. For instance, ina malling list bro.
fram the 2 letter state field should always be forced to uppercase even if the tecy
Resets. Often the first letter of first or last names are also forced to uppercans,
Specially when building index files or searching for a matching name you nonmat,
Ly,want to compare fields both of which we uppercase to catch every occurance
tonnsen” should match "JOHNSON" uniess otherwise indicated. Iy order to oo
rranein check to see ifa letter is within the lowercase az range, andl it Is just
Thane |t uppercase by subtracting 32 from its ASC value. Look st Append Grin
the BASIC manual. We have several functions we can put together todo this, sacn
‘as the ASC and CHRS functions. For example:

With larger variables we need to do it in a loop.
Zhe LEN function gives us the number of characters in our variable We are going
but the letters one at a time into a C$ field to check them. The MIDS feratiog,
AICS Us to extract pieces of words. Let's assume we have a state code cation
STS and we want to convert the whole thing to uppercase,

200 FOR | = 1 TO LEN(STS):REM length of state
210 C$= MIDS(STS,I,1):REM get it

220 IF C$ =""THEN GOTO 250:REM possible error
220 IF O§ = "a" AND C$ = "2" THEN C$ = CHRSIASCICS).29)
240 MIDS(STS,1,1) = CS:REM put it back

250 NEXT |

13

IBM PC BASIC from Microsoft ALMOST gave us a complete too! to do this with
the Define Function capability. There were a f

statements, and the DEF FN only allows us 1. So we do the best we can, Defining
a function we get:

20 DEF FNCAPS(AS) = CHRS(ASC(CS):32)

RIS method is ideal for numeric equations but can often be usetul with strings.
Remember to end the definition with a$ if it isa string definition and put the ceue
physically ahead of the function. NOTE: | spent 2 hours one Saturday morning
wondering why one program line kept getting a SYNTAX error. | was writing &
Trailing list program and | had changed a variable name from FIRSTNAMES to
FNAMES. The only variable name you cannot use other than reserved words is
variable beginning with FN because Microsoft BASIC considers it to be a
Previously defined function. So do not ever use a variable beginning with FN.
Unless it it IS a special user defined function. Line 230 of the above statement can
be rewritten using the defined function.

"2" THEN C$=FNCAPSICS)

230 IF CS ‘AND C$

DIVIDING BY ZERO: This is a perpetual problem. We should always check any
umber to be used for division to see if it is equal to zero,

200 IF X=0 THE GOTO 220
210 AMT = AMTIX

220...

ou can abbreviate this by just saying “IF X" which is the equivalent of saying “IF
x

On ne “IF” here is going to see if the variable or equation is TRUE or FALSE.
‘TRUE means @ nonzero and FALSE means a zero value. Rewriting we can say.

200 IF XTHEN AMT=AMTIX ELSE AMT=0... and so forth

MONTH/DAY/YEAR: Dealing with dates is as much fun as giving your cat a
path. One approach is to convert dates from our MM/DD/YY calendar (Gregorian)

Space, Since a lot of information our computer handles is dated, and it is
Something we have to SORT on, this situation is repeatedly staring us in the face,

12101/82 Is stored as “821201
01/02/83 is stored as "830102"

HOUSEKEEPING: Often you can spot a good piece of code written by an ex.
erienced programmer by looking at the level of his housekeeping or Initialization,
31 the beginning of the program. We will mention a few and explain their usage

20 DEFINT AZ: TRUE=-1 : FALSE=0 :CLS ‘SCREEN 0,00
30 ESC$ = CHRS(27) : RTNS = CHRS(13) : BSS = CHRS(8)
40 CTLBS$=CHRS(3) : FOR | = 170 10: KEY |,"": NEXT |

rogram and then check it later.

100 OVEROUE= TRUE
110 NEWSTUDENT = FALSE

2005 IF OVERDUE = TRUE THEN ....
2510 IF NEWSTUDENT= FALSE THEN .
(or you can sayj2505 IF OVERDUE THEN ...
2510 IF NOT NEWSTUDENT THEN ...

This really helps when you are trying to narrow down program bugs and find out
What you are doing, Along with this we are going to regularly check the user input
10800, If they typed a Backspace (BSS) or a Return (RTNS) or a Control Break
(CTLBS). We also set the function keys to nothing so they won't cause us treubie

Page 14 (scan)

100 INPUT “How old are you ?";A

This works...sort of. But we want to produce some quality programs. The
drawbacks of this input technique are well known. The users can type 100
numbers if they want to, or type in a letter which causes a “Redo from start” and
destroys our screen. We have very little control over the cursor.

100 INPUT "‘How old are you";AS.
110 A= VALIAS)

120 IF A ~ 1 OR A 100 THEN GOTO 100

‘One small step for mankind here. At least we got rid of the “Redo from start”
message. The A=VAL(AS) produces the number again from the string. Also we
looped around if the number was not within the range. Still the user can hit the
ESCAPE key and erase the screen line. Not good at all. What we want is a state-
ment trapping very piece of input and allowing us to keep or throw away what we
want. This function is INKEYS. This little gem gives us every keystroke from the
keyboard one at a time. The computer is in fact perpetually reading the keyboard.
(if you doubt this then try using INKEYS and set the TRON key - F7.) All we have to
do is build a first class routine around it and we are well on our way to producing
“friendly” and easy to use software.

Let's improve our input by locating the screen line and then using INKEYS. We
must accept the keystroke from INKEYS to a string variable, let's call it INKS.

‘50 LOCATE 10,10: PRINT "Do you want to try again ? (YIN)";
‘60 GOSUB 1000
70 END

4000 REM. ..— INPUT ROUTINE
4010 INKS = INKEYS : IF INKS =""THEN GOTO 1010
1020 IF INKS = ...sort out what you want, and return if done

‘1200 GOTO 1010. ..if more than 1 char desired, loop

Line 1010 sets up the endless loop until a key is hit. So once we have something,
what will we do with it? We have trapped everthing from the ESC key to the Con-
trol Break key to the Backspace key. The decisions you make here determine how
friendly USERS consider your software. So we will throw out a few keys and keep
some others to make a minimal routine understandable before considering a full
length version next time. It all boils down to one concept: Keep collecting the
keystrokes from the user until he hits the return key, which means they are all
done. Ifa keystroke is good, save it. If itis not, ignore It. Fleshing out our routine a
little we will add a WORDS variable. This is the place where the keystrokes are sav-
ed.

10 REM... HOUSEKEEPING
20 DEFINT AZ: TRUE.
90 ESS = CHAS(27) : RTN'
40 CTLBS = CHRS(3)

50 REM. i

60 LOCATE 10,10: PRI
70 GOSUB 1000

80 PRINT WORDS:

"FALSE =0 :CLS
‘CHRS(13) : BS$ = CHRS@)

JUSER INPUT

your Name

INPUT ROUTINE

4010 INK$=INKEY$ : IF INKS='“"THEN GOTO 1010
RTNS THEN RETURN

4090 WORDS = WORDS + INKS.

4200 GOTO 1010... if more than 1 char desired, loop

Type this short program in and watch what happens. When you hit Keys nothing
shows up. INKEYS sends nothing to the screen. This is good for password protec-
tion and the like but not for user input. They need to see what they are doing.
‘Once you hit the RETURN key the subroutine ends and you do eventually print the
WORDS. Here we begin adding, line by line, what we need to the skillfully flesh
‘out our input routine. Let's add some printing. (Don't forget the semi-colon.)

1080 PRINT INKS;

‘Seems to work. The ESC and Backspace keys look funny. We will stop them later.
But how about the Control Break key? We have stopped the break exit unless the
user is really fast. How about one more addition before we close shop for the day.
Make the user stop at 10 characters, If the 10th letter is NOT a return we will beep
and try again.

4030 IF LEN(WORDS) = 10 THEN BEEP :GOTO 1010
(Delete line 80 too.)

All together it looks like 1)
INPUT ROUTINE

1020 IF INK$ = RTNS THEN RETURN
4030 IF LEN(WORDS) = 10 THEN BEEP :GOTO 1010
1080 PRINT INKS;

1090 WORDS = WORDS + INKS

1200 GOTO 1010...if more than 1 char desired, loop

This is only the start of a good input routine. We should ignore other keys and
print a prompt line allowing the user to backspace and correct a mistake. Using
the MIDS function we can add and subtract characters from our WORDS. Next
issue we will put a complete routine together with all the bells and whistles you
‘can plug into any program and have first class, bug free input. Stay tuned.

—Greg Estes

ERACE REVIEW

LEARNING, DISABLED STUDENTS
AND COMPUTERS:

‘A Teacher's Guide Book
(by Merianne Metzger, David Oullette, and Joan Thorman. Published by The
international Council’ for Computers in Education [ICE], 135 Education,
University of Oregon, Eugene, OR 97403).

Our group is delighted to be able to review a book which has been co-
authored by an ACE member, Merrianne Metzger. This brief 48 page booklet is
‘one of several published by ICCE at the University of Oregon. ICCE also
publishes “The Computing Teacher”, an educational journal which focuses
6n the practical application of computers within a variety of educational
settings,

‘The booklet presents an overview of Learning Disabilities (LD) and the
rationale for the use of computers with LD students. Included is information
‘About software and hardware. The guide book also contains references for
magazines, books, organizations, networks, research, and other
bibliographies which can serve as additional resources for the educator.

‘Although this booklet is directed at LD computer applications, much of the
information and several references are appropriate for other educational
computer use.

We feel the reference section is of great value to computing educators,
‘even though computer using groups are omitted as an educational resource.
If the booklet has a weakness, it may be the failure to address the following
critical issues:

1, The need for research validated software;

2. Testing techniques which match learner needs with appropriate
‘computer assisted instruction (CAN);

2. The role of the computer as an aid in mainstreaming the handicapped.

This booklet is a valuable first step for educators entering the world of
computers, Terminology, common concerns and hardware considerations are
explained clearly and concisely. It also serves as a good introduction to the
‘series of books and materials published by ICCE which were designed to
assist computer using educators.

—Alice Miles Erickson (ERACE)
‘Saundra Hopkins (Applied Computer Enterprises and Services,

COURSEWARE IN THE CLASSROOM:

Selecting, Organizing and Using Educational Software
(Ann Lathrop and Bobby Goodson, Addison-Wesley, 1963, $10. Softcover, 187
pages.

‘Ann Lathrop and Bobby Goodson have prepared a much needed reference
book for teachers interested in using microcomputer software. Coursware in
the Classroom is a practical guide to integrating educational software into
the existing curriculum and managing it once obtained,

“The organization of the book is very straightforward and logical. n fact, the
design allows the information to be easily expanded into a series of inservice
workshops adequately covering all concerns teachers and administrators
might have about microcomputer courseware. The material is completely
understandable and useful

Lathrop and Goodson, who encourage the gradual introduction of micros
into the school, skip the usual introduction to microcomputers and begin
with suggestions on how to handle scheduling, movement, and classroom
Setup, and how to deliver, demonstrate and otherwise manage courseware
shared by many teachers and students, In a manner useful to novices to
‘Computers in education, the authors next give an overview of software
applications in all areas of the curriculum. The second section of the book,
Consisting of six chapters, deals specifically with several such applications,
namely reinforcement and remediation, tutorials, simulations and
demonstrations, approaches to problem solving, program development aids
(euch as authoring languages), and tools for teachers (including gradebook,
curriculum managment, test and exercise generating, and statistics
programs). Each chapter is illustrated with screen displays of popular
programs which typify the particular application in various subject areas. The
Authors define basic qualities each type of courseware should have.

“The third section of Courseware in the Classroom deals with the important
role of courseware evaluation, After referring the reader to Appendix C for
‘Sources of reviews, Lathrop and Goodson develop a lengtfy list of evaluation
Griteria, By covering almost everything included on well-known evaluation
forms, they have made Chapter 10 especially functional to anyone who has
the responsibilty of evaluating courseware. This information is useful for the
identification of the best forms to use, or for the development of a schoo!'s
‘own evaluation instrument, as well as for better understanding of published
reviews. To further aid the evaluator, the next chapter contains completed
evaluations done on three different forms and refers the reader to Appendix B
for other copiable forms, The final chapter in this section describes the
complete evaluation process from start to finish.

‘What happens to your software after it has been purchased? Section IV
offers suggestions for organizing and managing the collection in a curseware
library. Also included are guidlines for a policies and procedures manual
which will govern the processing, circulation and protection of the collection.

‘The final section of the book is a courseware directory, complete with an
order form for an annual supplement. One hundred and twenty programs
Gesigned for use on Apple, Atari, Commodore PET, and TRS-80 systems are
described. Most are accompanied with references to reviews recommending
purchase of the program.

‘The appedices include information on copyright regulations, a listing of
publishers of cited courseware, and a copy of “Policies and Procedures for
Selection of Instructional Materials” adopted by the American Association of
School Librarians.

‘Courseware in the Classroom is an excellent text for an introductory
course or workshop in computers in education. There is no difficult theory or
terminology to wade through, just practical, understandable suggestions and
Quidelines, The reader will finish the book with a sense he or she has gained
Some useful information easily implemented in any school setting

—=R. DeLoy Graham

Page 15 (scan)

THIRD WORLD ATARI

Welcome fellow ACERS (ACE USERS) to the international world of Atari
'm located 12 degrees North of the equator and for all practical purposes,
have fallen of the edge of the world. I'm not talking the Bahamas or Barbados
here, but Grenada, a spice island 12 miles by 22 miles long.

‘The nearest computer shop is 1500 miles to the North. So, what you bring,
Is what you get. It might as well be light-years away and it's a long expensive
haul to zip up to the nearest source for Atari supplies. | had to send to the U.S.
to get an adaptor - going from 3 plug with ground to 2 plug without ground -
they just don't exist here !!!

Mail is strange and makes the U.S. system seem like the best in the world
If anything is sent other than 1st class, you're talking 4 to 6 months delivery
time. 1st class will make it from the U.S, to Grenada within a month + or-2
Weeks. Much of our mail is sent to Europe before it gets here; why, | don't
know, nor does anybody else. (Could be the name Grenada???)

I needed the TEXT-WIZARD so | called some friends in the U.S. at $15.00 a
minute and they quickly ordered it, Somewhere between the U.S. and here the
package got marked "Twilight Zone” and disappeard for a number of weeks.

Finally | got word a package had come to the post office and I could come
down and pick it up. | gave the Post Comrad my slip and hoped | wouldn't
have to pay too much duty on the package. | watched with anticipation as the
man went and found my JEXT-WIZARD | had been waiting for. Without any
warning, he took the package, threw it on the hard concrete, and kicked it
across the floor. | was heart broken at the thought my delicate disc was
probably now crushed binary soup,

He picked up the box and put it on the counter indicating | needed to sign
for the package. As | was signing, he opened the package with a large knife
and immediately started spraying the contents with Raid. Thousands of huge
red ants appeared from the package as | dug through the box looking for what
was left of my disc.

Luckily, the disc and documentation were in sealed plastic. Unluckily, the
ants had eaten through the plastic. | didn't have to pay duty on the package
and the post office was glad to be rid of me. | finally worked up the courage to
open the sealed TEXT-WIZARD and sure enough, ants had invaded the disc as
well. When | got home | let the disc sit for a few hours and the remaining ants
crawled out of the disc, P.S. TEXT-WIZARD works fine!!!!!! Their product and
packaging technique makes the Timex test look like a wimp fighting out of a

Paper bag.

Well, the TEXT-WIZARD is just great for writing all types of documents and
Ihave found it very helpful. What I need is the updated version allowing you to
use its command functions on the OKLDATA 82.4.

Ihave written the people at DATASOFT and they informed me you could
get an updated version BUT - they had not worked out copyright provisions
with the authors. That was some time in November and I'm still waiting to
hear for them... any suggestions??27?

‘One function either not well documented or just slipped by me was the use
of REPLACE. | was under the impression you had to replace each entry each
time. For example, let's say | had spelled environment incorrectly throughout
an article | had written. The procedure is to:

1. Press Start and the letter "S'"

2. The computer flashes on screen "SEARCH PHRAS!
3. You type in the phrase to be searched for (envimment)

4, Press Start and the letter "A"

5. The computer flashes on screen "REPLACE PHRASE”

6 You type in the phrase to replace the search phrase (environment)
2

8

You press Select and the letter “S””
It will stop at every “envirnment”in the document,
3. If you choose to replace this phrase, you press Select and the leter
the phrase envirnment is replaced with environment,
if you want a universal replace of envirnment with environment without
examining each envirnment phrase you alter sequences 7, 8, and 9, All you
have to do is: Press Select and the letter "R” holding these down until
you reach the end of your document. It will find and replace each phrase you
‘selected in 3 regardless of race, religion or creed. Of course, this information
is on page 26 of the TEXT-WIZARD manual, but since it took me at least a year
to find It, | thought I'd save you the trouble.
Cards, calls and letters accepted anytime

"and

<LINT HUTCHINSON

COUNSELING OFFICE

ST. GEORGE'S UNIVERSITY

SCHOOL OF MEDICINE

ST. GEORGE'S, GRENADA, WEST INDIES.

BUMPAS REVIEWS

| want to thank all you folks who wrote to explain to me how Filemanager
800+ handles the "9 pages of 20 records each”. Turns out all | had to do is
read the documentation where it says there can be a maximum of 20 fields
per record. Everyone pointed this out to me, as it was the error | made. | tend
to assume things about software when | think | know how something works. |
Just assumed there must be more than 20 fields available for each record. |
was s0 convinced, | didn’t even try to find out otherwise in the
documentation. | merely tried to find out how to get to a second page after
filling the first up with fields! Thanks, again. The lesson | learn from this is to
read good documentation when | have it. We're lucky Synapse writes good
documentation.

1 5 beams to destroy the incoming missiles.

SPELL WIZARD

(Datasott, under $100.00)

Here is a product which works, There are many spelling programs on the
market, but this is the first one made just for the Atari computer. Not only
does this program correct your spelling, but it does it in the quickest manner
possible, and with as little effort as possible.

‘SPELL WIZARD has a dictionary of 33,000 plus words with a provision to
‘add words it does not contain. Since SPELL WIZARD is essentially a spelling
checker, a word you use may be spelled correctly, but be in the wrong tense,
0 the program will pass it by as a correctly spelled word. You will still have to
edit your material even though your spelling is corrected by SPELL WIZARD.
Since this is a program you can use without a word processor you can correct
any mistakes in any files created with Atari 20S DOS. This also means any
files or word processor (LETTER PERFECT) which did not use Atari 20S DOS
can't be used with SPELL WIZARD.

‘SPELL WIZARD is @ menu driven program,just select the option you need
land in most instances you will be answered with a prompt YES or NO. Then
while itis reading your document it records the total number of words it has
read, and how many of the words were new to it. This information is displayed
in labeled windows. All the words it finds which were either misspelt or were
notin the dictionary will be displayed for you. It will then ask if you want the
‘word corrected. I you answer YES it wll then do so. The words not appearing
in the dictionary you will have to check for spelling. If you find they are
correct then it will ask if you want them entered in the dictionary.

‘Another nice feature is you may exit SPELL WIZARD and automatically
boat to your word processor after you have finished with the program without
shutting down and starting up the system ag

There are a great many programs on the market which are by themselves
very good, but the documentation coming with them is terrible. Many a good
program has been left by the wayside because the manufacturer provided
instructions which didn't fully explain how the program works, or made the
program so complicated one didn't want to use it. Thanks to Datasoft for
making the documentation for SPELL WIZARD complete with @ minimum of
instruction.

‘Once you start using this program you will never want to be without it
again

—Lary Gold

STONE OF SISYPHUS

(Chameteon Software, under $40.00)

If you like D&D games then this is a fair one for you. There Is treasure,
monsters, and magic galore as you travel through the mazes and dungeons.
‘The object is to collect as much treasure as you can and get out to spend it,
while using your wits to do so.

‘You do have to equip a character with suitable weapons, armor, and various
skills, and then send him (her) on his (her) way.

‘The graphics In this game are all seen from the point of the person heading
deeper into the dungeon and at the same time the player has a choice of
escaping from the situation or carrying on.

‘The program is written in Basic and obviously needs at least one player.
‘About a month is needed to complete the game, and the age group is 14 to
adult. There is no sound, but in this type of game none is needed. There are
two disks, but only one disk drive is needed to play. There is also a game
saving feature,

‘Ona scale of 1 to 10 I rate this game a seven, There really isn't anything to
make this game stand out from other D&D games.

I think the one saving grace of these text-graphic adventure games is they
do tend to teach the player a certain type of logic, which I'm sure will one day
‘come in handy to help one think through one’s problems.

Unfortunately after one plays these type of games for any length of time
they all begin to look the same, then the player loses interest

‘STONE OF SISYPHUS should hold the interest of a new D&O player for
sometime and | recommend it for this type of game player.

(The above spelling was corrected by SPELL WIZARD and any misspelled
words are the courtesy of the editors.) Boo! —JB, ed.

—LARRY GOLD

WALLWAR

SierraVision, Sierra-on-Line Bldg., Coarsegold, CA 93614, has produced an
innovative game on disk for the Atari requiring 40k and joysticks.

‘The game is not your usual "shoot ‘em up”, in spite of the fact the game
Involves almost constant shooting. The graphics are done in very fine
resolution, and the use of color is very pleasing. The sounds are appropriate,

‘The first innovation one finds is a demonstration game which gives the feel
‘of the game. When you jump in, you may play the Atari, or another human
‘opponent,

‘The screen contains 2 “‘microbots”, each trying to protect a “plasma field’
separated by a S-layer light barrier which must be penetrated.

‘The next innovation is the indirect nature of the violence inflicted upon
‘one's opponent. A player cannot “kill” the opposing microbot by shooting
him. If you hit him, you can slow him down and temporarily damage him. That
is all, The way you kill him is by destroying his plasma field, which he can
protect by throwing his body in the way of your shots, or by using “laser”

—Jim Bumpas

Page 16 (scan)

FORTH ON THE ATARI

—Learning by Using

by E. Floegel
This book is only 118 pages long which in itself will tell you the author uses
‘a “once over lightly” approach to Forth programming. It is not as

comprehensive as Brodie'sSTARTING FORTH but it does have the advantage
of haying been written exclusively for the Atari computer,

While Starting Forth remains my personal "Forth Bible”, this book does do
‘a.good job using examples to show specific Forth programming complexities
which, to the uninitiated, can otherwise seem very conceptual and abstract.

The sample programs in Chapter 5 deal specifically with graphics and
sound — areas not covered in much depth in other Forth books written to
date. These samples are invaluable to me just to see how someone else
solves some of the same Forth programming dilemmas | have faced,

Chapter 6, covering test and string handling, helps clear away some of the
abstraction ‘and mystique | find in Brodie's approach, which to me
‘occasionally assumes too much prior programming knowledge in certain
areas,

This book is not a text allowing anyone unfamiliar with Forth to learn it all.
It is, however, a very good supplementary text which helps smooth out some
of the rough spots. A plus to the approach of this book is its attempt to teach
by example rather than precept alone. This is helpful to anyone struggling
with Forth programming concepts.

My main gripe about this publication is either (1) the author is a lousy
speller or (2) the typesetter was smashed or (3) the editor was
“inexperienced”. | have never read a book with as many spelling and/or
typographical errors. It adds humor at times, but after a while it’s annoying. |
suspect the publication was a rush job, no doubt to appease Atari owners
always on the watch for new materials.

Forth programmers will get enough from the book to warrant purchasing it.
Beginners will not find the book comprehensive enough by itself, but in
‘combination with other Forth texts it is a good investment.

'—Graham Smith, ACE Eugene

(by ELCOMP, 53 Redroc
Pomeme, CA 91766 $7 35)

APRIL MEETING
4/13/83 7:30 PM
LCC FORUM 308
SPECIAL MEETING
BRING YOUR FREINDS

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 “on line?
And it's easy to encode your copy with the few typesetting
commands you need.
COMPLETE CONFIDENTIALITY GUARANTEED
— Bonded for your protection —
PUBLICATION DESIGN, EDITING, & PRODUCTION

editing Design Services

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

k Lane

FIRST

€ugene OR 97405

EntHusiasts
@ Maple Dr

#

3662 Vi

> O
ew
<x

CLASS
MAIL

Atari Computer Enthusiasts

A.C. is an independent 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.

All 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 $10 a year for U.S., and $20 a year Overseas Airmail and include about 10
issues a year of the ACE Newsletter.

‘Subscription Dep't: 3662 Vine Maple Dr., Eugene, OR 97405
President—Kirt Stockwell, 1810 Harris #139, Eugene, Or 97403 / 503-683-3005,
Vice Pres—Larry Gold, 1927 McLean Bivd., Eugene, Or 97405 / 503-686-1490
Secretary—Charles Andrews, POB 1613, Eugene, Or 974401613 / 503-747-9892
Librarian-Chuck and Jody Ross, 2222 Ironwood, Eugene, OR 97401 / 503-343-5545
Editors—Mike Dunn, 3662 Vine Maple Dr., Eugene, Or 97405 / 503-344-6193

Jim Bumpas, 4405 Dillard Rd., Eugene, Or 97405 / 503-484-9925
ERASE, (Educational SIG Editor —Ali Erickson, 295 Foxtail Dr., Eugene, Or
97405 / 509-687-1133

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

Bulletin Board

(603) 349-4952
(On line 24 hours a day, except for servicing and updating. Consists of a Tare
equipped 48K Atari 400, 2 double-density disk drives, an Atari 825 printer, a Hayes
‘SmartModem; running the ARMUDIC Bulletin Board software written by Frank L.
Huband, See the Nov '82 issue for complete details.