Dale’s Atari 800 Games › ACE newsletters
The newsletter of ACE, the Atari Computer Enthusiasts of Eugene, Oregon. Read the scanned issue (PDF).
Scanned and archived by Kay Savetz, from ACE Volume 1, the collected early issues on the Internet Archive: Atari Computer Enthusiasts Newsletters Volume 1 (in the Computer Newsletters: User Groups and Flyers collection).
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.
. Atari J. \Computer if ENTHUSIASTS 3662 Vine Maple De Eugene OR 97405 BONUS ISSUE: JANUARY, 1982, 41m BuMPAS, 5 GG FLY WITH A.C.
BULLETIN BOARD |
LOoOsE BrTs
hy Stacy A. Goff, ACE Prasident
bam pleased to be able to announce the ACE BULLET, a bullatin hoard
system for all ACE mamuers with madems. Written ty Frank Huband,
‘af the Hashington DC. Atart group, we are nelping tam to test the
pragram and let everyene know what a great program it 1a] it will be
available fer sale soon for other user groups and inter: parties.
Nate! the Hash. D.C. bullatin board phones is (2022761
ithat 18 a bulletin hoard? Well briefly, it ins in my opinions the tip of
‘the talecommunicattons/netwarking iceberg, which I predict we will
all ne heavily involved with in the next 5 years. It js a fledgling
Information utility, providing informatian, programs, news ang
‘services from computer to enmputar, using Moderne and telephone lines.
Compuserve, Dow ones Information Service and The Source are
examples of very large-scale information utilities, They provide
many services, a vast database of informations and expansive access
rates. For the heginner, they are difficult to vee, and are generalized
ta all computer systems, rather than specific to the Atari, Tow will
propanly sameday find great valve from thase large information
vtilittes} ou ACE should provide an opportunity for you ta
work up gradually ta that levels
What can you do with the ACE BULLET? For the month of January,
and a3 an experiment 18 sae how tha service is accepted by you, we
are mpiementing the following services!
abllity to Send/Receive general or directad messages Fram
‘systema operations (ACEOP) ar ather memberst Thesa are stored
either under rnafoe or wndar ‘ALL USERS’
4 Transmit Current newsi for instance, we are intending te release
the Atari Cansumar Electronics Show announcements as soon as they
are made (approx. Jans 12)
> 4 Flace oF read Classified ads related to Atari interests,
* Racaive newsletter programs aver the taleghane, rather than
typing them int (requires 4 downloader program). Far the month of
January, we have availat (Du), DOGGIES, and several
programs in the ACE EXCHANGE,
~ _* View the list of programs available from the ACE EXCHANGE
Four new disks are beng asded this menth®
* Sand us programe of newsletter articias over telephone lina:
‘uploader program necessary on your ends
* Rumor control center ‘or at Inast some attemot to verify the most
sonman oF interesting oneal, TM service ts labeled! ACEOPS
“ABLES
Does this service sound like something you could benefit from? IF soy
try tout! TF nothing else, go to yaur ATARI dealer, and try it out
using their madam! Chances are that THEY will be just aa interested
48 you arm, arid may even pitk up the long-distance tab! Wa hope this
‘ervice is ust enough to halp many of you to take the ieap into the
iting fleld of home telecommunicanions.
SPECIFICS: Fer the month of January oniy, the ACE BULLET will be
availabie from $ A.M. Tussdays thru 8 Au. Wedni ‘and from 12
Midnite Fridays thru 12 Hoan Saturdays P&T, The phone number is
(50G1043-4252, Just turn on your computer, insert your pragram, dial
Us opp and try ft out!
‘The February phone sumber and times will prabably differs thay will
be posted on the BULLET in late January, and published in the
February ACE NEWS,
Ajeraonat Comment! Due to the poor economy and the fiscal crisis
‘that iocal government finds iteelf in, I find myself looking for a naw
Jobs I suspect this will affect my ability ta continue as ACE President
G full thmm job in itself"), since the other job oppartunities in this
area are vary limited, I rs are aware oF challenging
positions or contracts available in my areas of expertise, I would
aporeciate hearing about thems My background is 48 follows! Fift
‘years in Local Gevernmant large scale information systems analysis,
system design and Project Management ini
Financial systems,
Management Decisian Support Systems
Management Presutation Geaghics
futomatad Mapping, Geodata Systema
Integration of large-scale systems with micros
Tam interested in travels
Lcan be reached during the day at ($0:697-40751 evenings at
(pa Ie4-82065 oF leave a massage for me on the ACE BULLET.
BENIOFF AT LARGE
Ihave bean waiting to tell you about this one. It is the best. Ho
thee comments are Teta Scramble with vertical scralling
Instead of horizontile. Tf is “beyond awesome*t What can f say?
There ara four lavels that you oust attack, and then {f you maka it to
thenase, you eet aban, ang take off, Then you must make it ua the
cavern. if you make it up, your are given a sacond caverns Available
today from APE,
GHOST BOER
Arprogramming masterpiece of the game Pac-Man. It ts mare like
‘the game than Tawbreaker, but this game ts of quality, Tou may
thoes from 18 different mazes, and there ix a ond an one twa player
mode, incredible? 1 was impressed. Tt is available from Arcade Plus,
WILL KOT WORK OX REVISION
AlaxiJovaders
Ap escaltant version of space invaders. If you have ever sean
apple-sivaders, it is like that, When you destroy tne upper
invaders, they Sraak into two invaders, super, by Joe Hallesan,
Available from APX.
Mytiaaod
om CCL, this is the biggest joke I nave ever seen! It ts
scompited basic’. It is Centineads from ATARI exactly, but {t is
hewtibla, IT 18 KORSE THAN ATARI ASTEROIDS! Can you helieva
‘that? T thought nothing was as oad as Astarcids, but this is!
Excettent
From ANALOG, this is an excellent gama, It is tne who
Gan mai it ta the ton while avaiding the stars game, superd in ail ”
teaprects, and I highly recomend it
Mite Potter nas sold his oretuctor fo Syrapue software, It 1s all
new with a hard and an easy map, a hard and an easy Tevel. and is
available on cassette for 19,95 I wouid like to obtain an evaluation
Gomy) are you Listening Thar?
ATARLELGT
Atterritia language from a programming stand-point. It may be
good for teachers, aut I have ved it extensiviy, and it cuuld Rave
‘aeen supert. Toa Bad?
ATARL NEWS
Price Reppcrrom!! To $828. ATARI 800 will ratati for £921
bagining Sanuary sometime. Battlexone from ANALOG is stilt under
review For purchase hy Stuart Rosen, Vary interesting things will be
presented at CES in Las Vegas, but everyona is very quiet,
ca
adorn Ben witl be valeasing his scrolling routing in ACE next
montty and has released an ail new 5 disk gama, called The Bermuda,
Experience, being sold for 199.95,
Do you une this column? Tf sa shew your suppart ta Mike Dunne
Be is taking alot of trouble, because ATARI does not fel wa should
paraleasing secret Information, Like Battlezane, Tempest, Disk
Drive updates, Chia switches: service pratlems, aad freedom of
‘speach, TF you ithe the diversity of this column tall ATART, and tall
MIKE? Eappy New ear.Mare
Q
}
qu
Mews Bits
fy Mike Dunn
When itynn Seite of PUB 748, Oregon City, OF
‘57ONS), beard about aur award tu Stan Ockars oF his 4180 32K memory
board last month, de gave it ta us for a vary goud price, Wynn has
deen along Hime menver ant sungorter of ACE, and many af us have
Ms boards. He also taid me that the third slot of the Atari 900 has
special ports that allow you fa de many things other than jost plug in
nenory, The Mosaic 22k board is designed ta take advantage af this
slot, ang Wynn has soma remariable things in the development stage.
‘He ie alsa going to release soon an 16M extention to the 22K board to
‘allow 48K with the Atari 400,
dn an unueual spirt of cooperation, the two publishers af the
program that {use the most, ‘Datasoft, 19319 Busine
DEFENG, CEFDBL, DEFINT, and OBFSTR! Ta define variables ta be
‘ingla or double precision numiera, or integer or Strings.
th For single or dovole precision constants,
& for Hexadecimal constants.
‘ROT, AND, OR, XOR logical axpresuions,
AUTO to number lines automatically,
TIEL ta delate specifeed line numbers:
SAVE WITH LOCK
‘LOAD will toad tohenized or untokerdzed files, even untokenizad Files
From Atart BASIC,
Canter Drive, Rathridge, CA 91924) and ElleManacer 806 (Synap
obtware, $20 Coventry Raad, Kensington, CA 94707), Nave g ‘VERIFY compares the program in y with the ane stored on the
together. Datasaft will release an updated version af files
that will we FileManagey 909 as a Database For form utters, atc,
Speaking of FilgHanaer, 1 nas bee repackaged and now comes with
anice binder, 2 disks 9a you have & backun, and Is now $100. The
updates for bath pragrame will be for a.nominal charge, and will
hopefully ba ready in Fetrvary.
‘The tnges (915, Missourt Indexing, POS 301, Sts Anny MO 63074 is
anonemental book juve ralaasad that indeze all articles on Peracnal
Computers in the lace $ years until uly of 1980, It will have
frequent vodates, and include a complete index to ACE Rewsletters
the only Atari Newsletter indeed, ‘Thanks! Everyane should consi
getting one-it ia really somarthings
99 2, Hanover Aves Morris Plains, NZ 07930)
nas released tha huat of the British Tharn-EMI games in the US,
‘These are all machine language games with outstanding graphics and
arw very low priced from $15 cassette to $25 dink with 2 games,
Games inciude Foo), Snooker, Billiards, Darts, Tit, Dominoes and
Cribbage. The ones that T have seen are really nicely done and
The CES in Las Vagas, Jan 7-10 wiit be the scean of Atari's
areancing forthenming praducts for the Mew Tear, The new Atari
printer, camorad tu be a product fram a amaily nat—vary—wall hagwn
anuFactor, will be amauced, as wall a3 MicroSoft BASIC, maybe the
new Atari vodels if they are ready, PASCAL, caw 64E boards, ate~all
pure conjecture, Cur next ieaue will have i€ alle
New releases from APX (POR 427, 155 Moffatt Park Drive,
Sumnyvale; CA 94086 oF 800-539-1862) include Pat Mullarky's FORTH
te4oeh My First Alpranat, an excellant program formally sold by
Swifty Software (420d), the Fabulous sew arcade game,
MACK 9206 oF ©), andl many others=see stext issues for reviews.
‘Tony obre nog just tent ut a review sapy Of nis new modem
program, Datalinis Swifty Software, POS 641 Melvitie, HY 11747. Tt
conte $25 until tne eng of the meth, then +40, Tt is beautifully done,
‘vary easy ta uses and fas Uniaading, Downtoading, file transfer, and
‘wsiting before contact is made facilities. Aezarding to Tony, it te the
anly madam program that onerates in full duplex for file transfer,
ping a byte-by-byte compariaan with ite return Echo. He has alsa
released an improved version of his disk speed sragram Disk Doctor
#20, that ts accurate to 1/4 RPM! Will be available from Swifty in 2
week
Exconm 3 Rudrock Lane, Pomana, CA 91766) the German-based
company, has reteaved their new book, ATARI-RASIC-Lesrning by
Daina #10, « nice Uttle book that bridges tha gap Detween the books
that come with your Atari and the mare advanced ones like the Tricky
‘Tutorials ¢rom Santa Cruz Software arid the Atari advanced manuals,
‘Anica introduction to advanced graphics, several nice and handy
‘tablen, #tc, They are alea about ta release their EPROM‘er board that
attaches to their expansion interface board. Their Macro~assemoler
(990) ts also about ready.
Mirroseft BASIC
“preliminary 1
bby Miten Dunn
“The long aweitad Microsoft BASIC is about to be released, It wilt
cont £70, come with a dik and cassette version in the paciuge and
wxtensiva documentation, incising hints a8 canverting THS-80, PET
and AppleSaft ta AtariSoft, The Atari version will have all of the
features of the athers, plus some new ones, and use about 205,
leaving only. about 21% for your programa, and will be the most
1G avauiable, As it 18 possible for the Atari
te address 192K with 24K Boards, maybe someday MicroSoft could be
_ ed ith thn expanded amor #0 oBtain mors program room, but tha
fs pure conjecture sn my part.
A fall veview will have to await its retease, but, according ta a
reliable source, the following features will be avaiibie in addition to
‘those already present in Atari BASIC!
MERGE to merge untocanieed (LIST'ed) Fes,
REMUM vill remumuer apacified lines in specified increments.
LOCK, UALOCH, ITLL, MAME are direct from BASIC NOS commande
‘TROM and TROFF are tracing commands.
REM, !, ‘ ara all REM statements, but the later can and the line
without ming 2 3,
MOVE will move blacks of memary, used mostly with playar-mive!
gr
GOTO and GOSTB must have numbars now, ne varlables=a big lows!
IFATHENGELSE
‘WATT will stop the program until the specified condition ia:met:
NEXT cowen’t need tha variante,
QM ERROR, ERROR, EW, ERR, RESUHE for error traning Snead oF
AFTER spactfing tine in "i¢fles", program will rasume,
COMMON far using the same variabie in otfferent programs:
RANDOMEE, RID-RUD will have the dame sequence unless seeded
with RANDOMITE,
OPTIGN PLM1, OPTION PLM, OPTION PLM O-to reserve the numer
Of bytes neaded for player-missie graphics, single-ling, double-line
2 nome,
QETION CARI, GPTION CHR2, OPTION CHRO-same far charactor
‘OPTION RESERVE-to reserve a number of bytes for machine language
code oF whatever,
YARETR, PARPTRIFLM1! ETC-retums the starting address of the
‘variable, Flayer-eéesie graphica or Charactor set.
TABre tabs
SPC-Hunber of spaces,
PRICT USIRG-many commande.
INFUT *strang*, without having to put FRDET
LINE IMPOT-Inpute 4 entire line,
FRONT AT=r1y 1 Screen, Sector, Byta if disks
OPEN Moco. “devicat*, INPUT, OUTPUT, UPDATE, APPEMD-instwad
OF nummer
ROP-End-of-File statement,
TIME-te in Tiffies
TIMES-real time elocia
LEETS: MIDS, RIGHTS —vaual MicrnGoft sting functions
s-For concatenation
INSTR will search for a substring within a strings
STRINGS for ratunng eben :
Se ae a GOTO 11
SAVMOV
DISASSEMBLY OF CARTRINGE FROGRAMS
by Ed Chastain
This articte ts primarily intended for those atart Comauter
Enthumasts interested in asemily language programming an their
ATARE Personal Comouter System
-Asxambly language programming offers qraater execution speed,
any tien Faster than in BASIC,
Siar programming in BASIC,
In learning assembly language programming for the ATART sna can
ook ta many Sources for information, However, it {8 a very difficult
task trying ta find example assembly language programs for the
rARL. Even when armed with a copy of the ATARI Operating System
10S) refarence manuals and the accompanying listings, it can be a
difficult task trying te Figure cut what to di
There are several books available on assembly language
prograqming for $502 MPU's, however, they are vary inadequate in
UnGzing the pawerful Input/Gutput (1/0) avaliable in the ATARI,
Magazines are excellent sources far infarmation, but until lately,
there have deen vary few articles devoted ta assembly languag:
programming an the ATARI.
After f started this article, the Kovember issue of COMPUTE
areived and it contained an excelluot article by Bill Hilkinson of
Cptimized Systems Sortwar
BUI has promised a serins of articles on assembly language
programming that T’m leaking ferward ta. Currantly, faw assembly
language prograsaing example are available for those intarested In
‘examining them to Learn assembly language from then.
In an effort to aid myself and athers who are interested in
jarning assembly Language for tha ATARL, I have written several
arograma which Ihave found tobe very useful, These programs when
Used in eenfnetion with 4 disasamnbler, can be vied to examine most
of the plugin cartridges.
Tha intent of this new capability isn’t ta encourage software
piracy
language progr:
ATARI Cherating Syatem and DOS stings. From these studi:
learned that it is pasibie te intercest and gain control af the
microprocesser before {t transfers total contral ta the cartriége
program: In most cases that is) Star Raiders for example is an
‘exception, control tte this cartridge befare {t is potsibie to
gain gontrol by this technique,
__ Sviefiy, 1 discovered that cassette boatanle tapes whieh during
instiakization de nat return control to the ATARI Operating System
could bee used th accommpliah this. T wrote two programa in assembly
Sanquage ta do thiss one T call "SAVER and the ather “MOVER®
SAVER creates a cassette bactable tape file and MOVER {5 used
to relocate the cartridge program inte RAM and than it boats DOS,
DGS can then be used to save a copy of what is in RAM, which later
‘an be raloaded and examined by a disassenbler program.
T have combined these two pragrams into oam ant converted it so
that it may be used by BASIC without the amed of an assembler
Program, In order 0 utilize this program in the form I used, you will
Need an ATARI 800, disk drive, progam recorder, a disassembler
program, and atleast 26£ of RAM, A printer 1s optional, out very
Usefule A disassemeley program ia availahle through Atari Comauter
Enthustasts (ACE) or Quality Software, both are written in BABIC.
Improvements or modifications to this program can ba made by those
of you wha wish.
For example, these without a disk drive and 24K or mare of RAM,
‘my wish te modify the program to copy the information ta tape. It
‘could then be read from tape and disassembled by a modified BASIC
disagsemblar program
Thave weitten this program ta ne Incated at Page & of memory, Lee.
110800 or decimal 1535. If you wish to examine the ansembler version
of this pragram then run your disassemeler program starting at Page
& The procadurs:
1. Enter the given program using the BASIC cartridgey and save it
toa tape or diss
2 Prepare a blank tape for racording by getting st past the leader,
3. Ran the progam, Khen yeu tear the familiar two buxtes, press
down the FLAT and RECORD buttons on the arogram recnder, Then
press the RETURN key on tha ATARI kryboard,
4. When the READY prompt returns to the scrmen, turn off ang
rewind the cassette tape,
‘3. Tum off the powar awiten on tha ATART computers
6, Place whatever cartridge you would like to try to disassemble in
the ATARI cartridge slot, hut don’t turn on tha power ya.
7, Haid dows the START kay while turing the power on in the
ATARI. Tf you pear a burt then you are in luck, that cartridge can be
disassembled. If instead the cartridge starts runing, then if can’t be
‘tisagsenbled by this srocedure,
3, Press down the FLAY button on tha program recorder, and then
press the RETURN key on the
>. Shortly, the DOB menu should appear on the screams Enter the
K (Save binary Ale} command, and gress RETURN. DOS should ask for
a Alename, starting, and ending adresses. Type in: (a file name of
your chaica),4000,SFFF and orans RETURN, When DOS is finished,
tum off the power ta the ATART,
10, Flace the (BASIC or ASSEMBLER) cartridge in the ATARI,
whichever you need to run the particular disassemoler program you
have: Motet you should have a version af the disessembiey created by
‘LIST and not SAVE. if not, create a naw version Ry Inading your's and
using LIST"Dita new filename’ or LIST*Cs* with anew taam,
11. Enter into DOS, and using the L thinary toad) command load the
file you created in step 9 that you wish to disassemble, Returning to
the cartridge by the H trun cartriage! command,
12. Using ENTER "Dityour disassemblay pragram!* ur EXTER *
with your digassemblar on tape, enter your disassembis
pragram and
ronit. The cartridge you wish to disassemble will be fram £000 to
SEFF in Hazadecymal.
10 FEM sateseescenererss
20 REM sSAVER ant MOVERS
20 REM SBY ED CHASTAINE
30 REM sotenesssssersers
90 REM THIS FROGRAM CREATES &
CASSETTE
60 REM BOOTABLE TAPE WHICH WIL,
LMOvE
70 REM THFORMATICN FROM #A000-
100 SEM SAVE THe IRFORDCATION T
Oa DISK,
110 DATA 142,02,169,3,157 Ab.
ao outa gas7.tea.ternae.is
130 DATA 3,169,72157100,2,169
fo nata ssrarsonenzzede
Bo Dara taraiasranciee,?
1B DATA ca.3stas.bt57.49,004
fo para rzeus7.72.9,69.048
fe outa aacn2n22880.81
{0 DATA s2as7as9a2.05278
ovata Drs T S810 TBb
210 DATA 6,189,40,141,2.211,26
229 DATA S614 OntE923686%
1
230 DATA 129,217,489 0,132.218
Ho bata e4tc9an9.142.01060
250 DATA 177.216,145:219)196.2
Sonata avamar720.2192
270 DATA 48,6:208.240,360,255,
Heo pata Zisusroasa754%,
Bo DATA 1s3.962.207202,169
300 DATA 0,141 68.2:108,10,0
310 FOR Tet$36 70 1482
SAVMOV ASSEMELT LISTING
10 SAVER.SC - CREATES CASSETT
EBOOTABLE TAFE,
20 {ADAPTED FROM ATARI USER'S
yanvAL.
203
jo lore:
$9 IPST = PROGRAM START ADDRES
So ;enp = FRoRaMe em ADDRESS
70 FLENs PND-FST#127/1280128
0150 ICCOM = #942
0160 ICBAL = 9344
Oi70 TORAH = $345
Oteo TORR « $348
0190 ICHLA » $349
0200 ICA = 4364,
O10 ICAX? = 9388,
9220 CIOW = SESH.
0230 1
0240 (PROGRAM'S ORIGDE
0280 += $600
9780 STA 1OCOM,t
0290 LDA #0FNOT
0900 STA ICAKL.X
LDA #980
0890 JER CIOV
9600 STHES 18 A CASEETTE BOOTA
BLE
9910 ROGRAM, TT CAM SE USED
0620 MOVE MACHINE INSTRUCTION
3 FROM
0630 1ONE LOCATION TH MEMORY T
9 ANOTHER.
0640 (AFTER THE CODE 13 MOVER,
0650 ;WELL BE BOOTED ai) CAN B
GOTO 10
oO
a
Na
back to basic
Now thet we have discusses the basic divisions of program
structure; we can tum to refinements of thase divisions, and to the
further siscutsion of the theory of structurmy
‘It ts probably appropriate to acknowledge at this time that many
prograans have smveral each ingut, ovtput, and calculation sections,
We are made of stern stuff, though, and won't lat this affect our
discussion for note:
‘The lesson last month stvussed tha division of the pregram ints
three asic sections. This is the concagt of MODULARITY and these
sections are inown 2s MODULES: One of the important paints of the
module concapt fat Any module should be able to ba written and
‘tented indegendantty of any other adule, In this way, a program can
be debugged in a very efficient manner, as mast probleme wilt show up
in the testing of the wexhila. By building the modules separately, and
tuvting then as they are completed, programs cat bu Geveloped
quickly. For those of you with disk drives, (tapes will do 19 a pinch)
these modules can be stored separately and sesembled into several
different configurations as the nesd arises.
Tha modular or structured concept nerening leans heavily ox
the GOSVE-RETURN statements in Baste, The ability of the comaut
to go te a sut-routine (separate module) and return to the line
Wing the GOSUB command 1s ieally suited to structures In many
professionally written programs I have had the pleasure ta study,
there have been examoies of 21 which included as many a8 9 oF
10 COSTE commands dn separate staterants), with a few IP THEN in
atween to datermine which modules to access. Many high-level
languages named subroutinas. In ATARI Baste, this can be
‘simulated by first assigning values ta the nama, then using the nate
ag the variable to actesa the subroutine, an example oF this Ls snown
below:
2000 REM CALC STARTS HERE
2010 ADD,SUBTRACTMULTIFLT ETC.
2020 GOSU COFT
2090 HETURN
2040 , easeancensaseconesensees
2000 REM COPY STARTS HERE
2010 FRINT ALL THAT GOOD STUFF
2620 RETURN
BIG | seezerseeeenasrsesrsees
‘TF you taxe your pencil and trace the flaw of this programs you
will sua it in extremely straightforward and ail the modules are
clearly defined, This, among other benefits, allows any programmer
whe may look at your program to see azactly what yeu ar# deing and
when you are doing it. IF you have ever had the frustration of trying
ta madify an exchange program, only ta find you couldn't trace it
without extreme effort, you will appreciate this feature. TAZE,
NOTE! The world of professignal programming is turning strongly
toward structure in programming, with very good reason, I might alas.
mantion, 4s you begin to use same oF the Mors powerful languages
yea wil Fn will be even mora worthwile,
Yaw Dow dig you da with the test program last manth? T da hose
you tried the program, and Lf the formula was wrang, I'm 2077)
Figase compare the program you wrote with the mack-up in this
lesson, and you will have an idea of haw nearly structured your
thinking i. REMEMBER, though, arogramming is one af tne last
chtadels of individuality, and if it workt, it’s good, (But iF
structured toa, then it’s great), Later, Foiks!
Kirt Stockwell
bn tast month's issue) J explained how to use Tables 9.8 and 97 in
tha Basic Reference Manual, The procadure invaived ionking up
numgers in the tables then adding of subtracting tha numbers, If
‘Tables 9.4 anci 9.7 are used frequently, this pracedure becomes time
sonauming and awkward. T wrote 4 shart program which produces a
texteda matrix. How, when want ta display a character using the
FUT coramand, [ cin took up tha text code directly. In this article; Z
sill ezplain how the program works, Since the kay lesson in this
article concerns working sith a printar, you should have a printer to
get the most out of the article,
LERINT {9 the command one uses to cause characters ta be printed:
Enter ang run the following program to demonstrate.
SOLPRINT “GRAPHICS MODE 1 GR2"
20 LPRENT { LPRIMT “POKE 754. 724"
Characters betwen the quotation marks are printed, an LPRINT,
corvaand by itself produces a line spaces
To ataft a line ta the right, add spanes between the first quotation
mark and the first letter of text. For example, add the fallowing
instructions to your program, Put aire spaces tetween the quotation
mark and the ward “satcolor*, (These instructions will print the
peadings for the matrix we will generate).
SO LPRINTILFRIMT* SETCOLOR REGISTER"
SULPRIMT* 90 1 2 ST LPRIT
‘The first matrix we will generate is the text codes far the
characters in column | of Tabla 9.5, The matrix will have five calumna
Coluen 1 will display the character. The remaining columns shaw the
text code for satcoler registers 0, 1, 2 and 3, respectively, Add the
following instructions to your program. Put five spaces Datwawn tha
quotation marks
sOFORK* 07031
SOLPRIBT CHRMK +22" “}Kegze +PxE*
EX 128
40 REXT X
“EX > Leos
Instructions 40 and $0 maka up a FOR-NEXT loop. Tf yau dan‘t
know what that means, refer to page 15 of the Atari Reference Manual,
Maws tet's loak at inatruction 50. In order ta understand the CHRS
icharecter string) command, you need ta kagw what ATASCIT code
rumbers ar
Appandis ¢ of the Reference Manual shows twa cnde munbers Far
wach symbol. Ke will use the decimal coda, If you knaw the decimal
soe, the computer will "ook sp" the symbol or character you want to
‘The first character in column 1 of Table 9b is asnaem. Appendix C
telda we that the ATASCII (decimal) code ix 32 for a space, Since we
ant ta list the symbols between *agace™ and “77, we will be wsing
ATASCI codes between 32 and 43. Therefore, if X starts at 0 and
indexes to 31, the follawing will “laok up" the symtola we want?
‘CHRUK +924 The spaces between the quotation marke simply cau:
‘ach column of numoera to be tabbed fiva spaces.
Table 9.7 tells us the convarsion factors arai -22, 0, 140 and 128
for sateolor reginters Os» Zand 2, respectively. (painted out last
month, the conversion mumber for tutoslor 0 is incorrect. It should be
982, not -220 Inatruction 30 shaws haw these conversion unbers
ware added fo X.
GOTO 10
REVIEWS
TANETICS 724% TAPE (BASIC?
e BY AVALON BILL \anovt 4281
review by Steve Berg, Prilipine fslands
“Fankties i a one player game of a World Hay TI German tyou) and
‘Russian ‘computer! armor encounter, The game comes complete with a
gamesoard and unit counters (tanks or antitank guns). The game has
Several senarigs including you and the Russians are after the same
shjective hex or you could be guarding a Russian objective hex or vice
vera etc, The computer contrals the range of movements (depends on
type oF tank and terrain) for you ano it tells you which enemy tanks
can bm seer by any one af your tanks. <
‘The computer receives twice a8 many tanks ax you do, Dut You
decide what type of tanks you and the Computer Teor
During te play ofthe game ou mnt cnc Po aap track af the
mavemants of all pieces by maving them on the game board, The
pregeam only generates t1y coordinates, Think of playing an Avaion
HILL game with 4 nat-te-bright mute who can‘t move his owe counters,
‘This ix my third review of an Avalon Hill game and I have coma ta
a conclusion (Faatwno?}. Avalen Hill ia continuing to program the
limitations of the §-80 into their programs for tha ATARI.
Admittedly in Canflict 2500 the ATARI gees be-bacp and gets inte
graphics 7, but ottter than that wa're stuck in graphica 0 with 2 mute
machines Until AH unleashes the capabilities of our computer their
games will net ne imaginative or exciting,
e ‘All Baba and the Forty Thieves
(Quality Software, 4660 Reseda Blvd. Suite 105, Reseda, CA 91235,
8295)
review by Brian Dunn
Ai; Baba and th Forty Thieves by Quality Software is an
adventure game in which you ean control a number of differant
characters fila humane, elves, and dwarves, In the game you can have
op %0 17 players play at the same Hines you can also add mare players
as the game continues,
‘The users manual is very; very goed. Tn the back of the manual it
shows a list of every manstar or player you may encounter in your
game, In the lint it tells what type af creature the player oF manster
iay and tells their streigth, constitution, melee,tand-to-hand combat,
armor, dexterity, running spaed, and what level they are on. The
manual also gives you a listing of your freinds and foes and tells you
their strength and weakness ara, The manual also tells you how te
play the game,
“The manual teils wnat the story is about and what your objective
cor goal is. The story begins with you being AL! Baba, and your misaion
oF goal is the rescus the lovely Princess Buddir al-uddaar from the
ail Sultan Shahriar. In order fo reasve tha princess you must ga inta
the mountain and axolora all the differant rooms until you Find har.
After you rescus the prinoras you munt take her back to the begining
ane you will win @ have'nt bean able to rescue the princess yet).
‘Tha graphics iq All Baba are nat that bad~eut the men ara pretty
much sticie-figures, I think the sound In all Baba ts remarkable. Alt
Babs ia the only gamma Ihave seen that has tezt and graphics at the
‘ame tine throughout the entira game, it’s good #0 you can bath see
ase read at the same time
T think Guality Software did an mreallent job on Ali Bana and I had
‘many fun houra playing it,
DOGGIES
‘This one’s for Jobnay. at 1 1/2 years old he can‘t control the
joystick yat ut he can push the button and ne loves doggies. It’s also
hard enough to drive adults nuts. I know it can be done in 18 move
tout I haven’t done {t yet and [refuse to peek at the answers
Changing large numbers of characters in tne character aut would
have been extremely difficuit without an axcallent program by Alan
Tott in the Oct, ‘Bt iseue of Softside, That prograrh will allow you to
create anew character set and Save it on tape for insertion into your
program, I highly recommend its
‘The bone is a player missile, As you can probably tell by the
smoatiness of movement, the moving is done during the vertical blank
period as outlined in last menth's article, The respanze ta the trigger
Ames a Kittle sluggish Because of the time to go through the main
lose, This could be fixed Sy putting trigger detection in the TBE
routine whera it would be checked every 1/50 awcy A location in page
} could be set and checked later ny the Basic program.
A major subroutine in the program sceues at Hines 1000-1020. Tt
grints the string DOGS at position X.Y, DOGS is determined by LIKE.
By changing LINE you can change the printed figure,
‘Tha position af the dogs is stared in PA (1's far lignt dogs, 2's for
arid, The desired final eesition is represeoted in the atring FS and a
comparison of tha twa atrings at Line 126 determines iF the énd has
bem reached:
I've made Uberal use of remarks but all remarks can be omitted if
you are typing in the program. T’m not too pleased with the barking
‘sound but I didn’t want to spend a tot of time working on it. What is.
needed is a program that allows velecting pitch and maybe volume
contours by using the jaystich. I'm presently working an a program ta
do this. :
Sqaca could have been saved by simply defining strings like PS, Ps
and 124 uning contrai characters ate, Central characters and inverse
characters don’t print weil cn a printer however, aa T've cho:
tnatead to Fill them from data statement
STAN OCKERS
2 REM seseserseereeeoes
4REM 4 DOGGTES #6 '
SREM 40 5, OCKERS 2 4
7REM ee Ue 4
9 REM all remarks may he delat
ei
10 DIM DOGN6) PI. FeC 228,
Ga.FIsa)
Ui Rete eaten CONTBOR POR Ek
AZ POR Ie! TO SiREAD AgTNCe
CHRMAMNERT T
13 DATA 97,109,97.0.58
25 REM se FILL MOVE ROUTINE «#
30 FOR t=1 TO a2mEAD Amzea?
SCHRACANEXT
32 DATA 108/108,193,204,404,19
3:203,104,193,206,104,123,205,
182,44 160.0
32 DATA 177,203,145,208,138,20
8,249,290,204,230,206,202,208,
240,96
39 OPEN #1-4,0,"KrsGRAPHICS {
‘QIPOSTTION 2,5!7 s67"TNSTRUCTI
ONS?NGET $1,A0F Ano? THEN GO
‘SUB 2010 ,
99 REM «+ CHANGE CHARACTER SET
”
49 GOSUB 32000
‘M4 GRAPHICS 1°PORE 734, PEERG
con
30 REM s¢ PLAYER MISSILE GRAPH
Ics +6
40 AsPEER(OGH-7IPORE 54277,4i
‘PMe25k0a PORE 559,40:FOKE 5227
7,S:k=120{PORE $9248, POLE 20
9, XTPOKE $3255,
70 RESTORE 80:POR I=FMe312 TO
PMeodOPORE LOWEXT NPORE 70
4,200:T=90
FE FOR eeesizey Ta muvsiser:
READ AFORE [Aa0EY"
90 DATA 195,255,195.
OS REM ++ PAGE 4 VBI ROUTINE »
*
90 RESTORE 96FOR 11536 TO 15
JORBAD ASPORE L,ASEXT TAnoS
Raseo)
9% DATA 104,180,10,182,5,189,7
7682228,173,0,211,7241,82
00,2,230,209,104,41 4,208,2419
8,209, 1551209,341
98 DATA 0,209,76,98,208
100 REM 99 DRAW INITIAL DOGS «
+
CHRS WRT
107 FOR fi TO 7:READ aires
EXT 1
108 DATA 1)161,0:2.2.2.2.2.2.0
itd
49 FOR Gat TO NeoeuE 1D40mT
180 MOVESO:POSITION 13,427 6;
"Ove?
170 REM 99 CK FOR COMPLETE ts
100 IF PReFS THEN POSITION 0,3,
$2 &GOOD GOTRG"GOTO 450
(ee REM ## CX TRIGGER t#
188 TF STRIGO| THEN 450
190 REM a+ CE CHOICE SIP IF 8
LANK 9«
700 GOSUB 12100 A=0 THEN 450
20 REM e¢ IP TLLnBaL, SHAKE
EAD, SKIP te
220 TE CCB-2 GR CoB? THEN GOS
720 HOP o
240 GOSUE 1410:GOSUR 1510
250 REM #¢ ALL DOGR FACE CHOIC
Ee
260 SAVACIFOR Cul TO 7:G0SUB 1
FIOMEXT CrO=SAV:GOSUR 1060
270 NEM + BARE, HOP % TURN BA
#29 HEM ++ SHITCH CHOICE AND B
2s THEM blank dog at Chotca
‘TetC- LeHPORTTION X47
i Nomen 9
BOSITION X81? e4yr *
See M 9 Switch poms in pow.
tor Pigenucioruccncx
RAONC=B.
»
300 REM +e PUT DOG WHERE BLAM
Was
382 GOSUE 10S0°LINE*LINE+1 1:60
SUB 1010;G0508 1910
34 LINE*LIME-12G0SUB 10101008
vAIN0
390 GOSUA 10so:GOSUH 1b10;G0su
i510
400 REM + UPDATE MOVE
a0 MOVE*MOVE$IPOSITION 15:21
2 SOMOVE
140 fates Aen A ane On
50 GOSUR 1510:0050H 141061008
DRTERITXONES)
440 REM 5¢ LOOP BACK se
470 PORE 77,0:°OKE 52279,00?
PEERISG279—6 THER 4
430 GOTO 166
900 FEM ## DOG 1 POSES +#
90% DATA "Ot REM for, not
al
POU DATA ONES IREM foe, tail
right
903 DATA (C#%K DEM For, tail
904 DATA (CRN TREN For, rt
tag
905 DATA ‘O\ti SREM For, ite
tag op
906 DATA MiG REM bark nat
al
90? DATA 24% REM face rt,
90 DATA XYCe'eds REM face It,
909 DATA 3@1°*8 IREM ble Its
a8
910 DATA 293_X- IREM bla rts
au
S11 DATA PORS HEM blu med h
t
S42 DATA TD ‘REM bis small
te
990 REM +6 000 92 POSES lalla
re inv, chars)
981 DATA ‘UONE CREM for, not
aa
952 DATA ‘O\GS IREM For, tail
right
933 DATA (C#4S ‘REM for, tail
left
9A DATA "C4%~ REM for. rts
jeg op
ie SeaArate BMG
leg
SOA DATA "4045 REX bark na t
al
957 DATA W/i%% 1REM face rt.
958 DATA XTCH%g REM Face It,
959 DATA 291*+8 REM bie Ite
940
960 DATA.2@1_%= TREM bho rts
«gue
961 DATA FORS REM bk med h
&
962 DATA TO -IREM bly small
tits
1000 HEM 4¢ FROCT DOG SUSROUTI
Ete
1010 RESTORE LIMEREAD Docs
1020 POSTION X.Y"? #u:D0Gsi1,
‘TNEUSTTION XT +1}? WoDOGNUa,
ANPOSTTION X,74277 a4DOGeS,
ORETORR
1080 REM 44 SET UP FOR CHOICE
Cu
1080 awascopHcn
1070 TF ami THEN LOTe=90!
1000 IF Ae? THEN LINE=95i
1090 XwC-| 3 TasRETURR
1100 REM 40 SHAKE HEAT NO ++
{110 IF Aso THEN RETORK
L1k0 FOR Tal TO 200808 119071,
DDESLINE+4:GOSUE 11 90% TTE=LIN
ErssGOsuE 1190
1145 LINESLINES71G0808 1190211
NESLIME-7:G0S0B 1190
1150 KEXT HRETURR, .
1190 FOR Jat TO SatEXT TIG0STE
1010RETORN
1200 REM #8 DET. CHOICE & BLAX
xe
1210 CoINTIPEEKZON/241-0.45
MEF CCt TREN Cat
1220 IF C>? THEN C7
ao
1330
3240 BeBHLOP asc@Pacayng THE
M1240
1280 GOSUE LosoRETORN
1300 RIM o* CHOGSE A RANDOM DO
{510 cetmraMKon7e4nc0svB t
OSOCRETORE
1400 REM #© BARE CHOICE +4
i410 IF Ano THEM RETURN
1510 IF Aso THEN RETUR
1540 LIMEeLDIE+:GOSUB 1S60u.t
MESLDIE~1:G080a 1010iRETURN
1560 FOR Tel TO 3LINEALDMEH:
gesva {POLDIALNIE-1GOSUB ri
SPOMEXT NRETTRN
4990 FOR 71 TO 2auExT F:GOsuB
SOLORETORN
1800 REM + HOP 20
1610 IF Aso THEN RETURX
1620 LINEeLINE+3:GOSUB 16807,1
QSWE 1S90tLINE-LNCE-1SOUKD 0,
O,0,0SQUND 1.11138
1670 GOSUH 1S90QEXT IRETURN
1700 REM ** TURN TO PACE CHOIC
Ete
1710 TF C<SAV THEN RETURN
1720 GOSUB 10600F A=0 THER RE
TOR
1700 TP acl AND CRAY THEN Lit
907
lar ae aun ecsav maa ian
ver Art AMD COSAY TREN LI
Too Anz ax aay THE LK
Be)
1770 GOsUB to\oRETURR
1000 REM +8 SARK SOUND SUBR. »
isto FOR Im TO SOUND O,AgCt
PION AZ 4-182
1620 SOUND 1.ascortsin,i4.18
(820 WEXT SOUND 00,0.0:500%
.ORETORN,
$910 POR Int TO ASCUND 0,613
SSOURD 10,0,00FOR J=t TO 12
REXT?
1920 SOUND 0,0,0,0800ND 1411,
13,G1FOR Jat TO 12mcExT SaCEXt
TRETORN
2000 REM +# INSTRUCTIONS #0
2010 GRAPHICS OFOKE 752,108
ITIOW 15,21? "» DogerEs
2 “Mave the light catered e299
ins where*
2020 7 “the dark ones are and
‘the dark ones"!? "where the it
ght ones are
20307 1? “Ta make a doggie ma
va put the bone??? "under hin
and quah the red buttan.*
2040 7 1? "Doggies mave to the
‘plank space but“7? "only 44
fe next to them ar at*17 "ma
stone doggie away."
2080 2 22 *Tt ex ow dane in 1
5 moves! Seu haw*s? *many itt
sees you
100? 7? “Presa the START kay
ta bugin of tort? "start over
at any time,
2070 FOKE 52277.8
2000 TF PEEKOS2791¢6 THER 20
a)
7090
RETURN
31900 REM #* CHANGE CHARACTER
SET oe
SAY L0 HEM #0 SUE ARTICLE IK OC
J. ‘91 SOPTSIDE BY A, ZETT #8
22000 BORE 104,PEEKIL06}SiGRA
PHICS OSTART=QPEEKU Ob} 1975
SIPORE 7S6,START/256.POKE 752,
1
32010? “UITEALIZING .. « *
IRETORN
‘32040 FOR Y=) TO TREAD 1FOLE
‘X+Y+STARTIMEXT FOTO 32000
32100 DATA 8,7,15,31,01107,31
AalO1it
‘F201 DATA 16,224.240,208,10,
$82.24,1 18,286,
See Mae aed A
Stios pata zeseaeazsava.i9
2,224,280,248
32108 DATA 40,91,01,31,01082
agaeaaa
$2105 DATA 48,248,246,240,200,
248.2801,31
aide HATA San.7adont73a9
239,208
ar ame sma
0118528741
Shes tara Pasazds7a74
1
5,33
32109 DATA 50,280,46,240,224,1
92)724.240.208
32110 DaTA 69,91,91,31,01.27,.2
49,248,0
32111 DATA 104,240,248,280,288
246,31,910
32112 DATA 112,0.715,31.43463
S3
‘$2113 DATA 120,0,128,192192-6
4127 285.255
UA Data neese7T3a7I5
S215 para 2isasaczsaeaasz
192224,240,249,
S216 DATA 224,127,71127 490%
2A
32117 DATA 232,226,274,224,192
(292.224 ,240,248
Baile DaTA 260.0,7.91.63177.2
39,239,207
32119 DaTa 296.0,224,208.252.2
34.247 267,283
32120 DATA 2044,7015110.15
7
‘92121 DATA 292128,224,240.208
19% 128192,224
32122 DATA 400,7,7.7,7,7 4,28
ry
‘92123 DATA 408,224,224,224,224
1224,22,56,0
SIZE DATA HES 3195336
$2175 DATA 424,192,192,526,192
9219249278
Be Pate Sami asnaahe
32127 DATA 456,0.224,280,208.2
s2.g82,28.298
32128 DATA 46415,1815,707,
151
32129 DATA 472,15,12,15,7147.
Marat
32130 DATA 420,25048.240,226,
198.27h.244,2408
32191 DATA 498,15,15615,7167,
TAT OL
32192 DATA 476,240,240,240,228
194,226, 244,248
32139 DATA 204,240,240,200,224
1192;224,240,288
32134 DATA =1
a
7
BIGLETTERS ANTARI Graphics Mages 1 and 2 are nica, nut hava you ever wished far even larger characters? Characters which you can see across a room? The following shart program peeks at characters’ sumeric definitions and displays it using Graphics 4916. Tha program craates a graphics mode which effectively has 10 columns and & rows, This made has chayacters twice the size cf Graphics 2, Grapincs 4 is stvalgntforward Decuaag it displays 2 bita per an § bit byte, We'll aee that graphic modes wich have more than 2 colors raquira additional programming. ‘The program “DIBIGLETTE.RSI" is swan in listing i. Since this is 4 tutorial, T suggest you usa the sama line numbers as in the gropram Usting, From this oase pragram you'll add additional lings, Line 10 nateniienes graptice mode 4+16 and opens the keyboard for inputs. Line 20 determines the beginning of Graphies made 20 and stores in the variable SCR, Line 40 intializes variablan. Line 50 determines if ‘he screen needs to be cleared. Lines 60 & 90 gat keyboard inuts and determines if it 14 within the desired ranges Lines 90 & 100 poke the binary definitions of the characters onte the screen mamory maf Line 110 increase onw space and determines if anew line required. ‘This Is great, but how does one add a cursor and cursor control? Slapty type in the lines in listing 2. Ling 50 calls the subrountine at ‘1G, which simply pokes the inverse of what is already there, The ovogram will repaatwdly use thin subroutines Line 81 tests for the backspace key and directs the pragram to Ling 200 if it ix pressed. Line &2 teats for the return kay and directs the program to line 300 iF if ts pressed. Line £3 tusts for the clear keys ‘Application of this subroutine is Umited anly by your programming imagination. Hava you ever wanted to piace text In a non-text graphics mode? Well, the above program will salve your problem My eznerienca shows tha preaent program really halds preschoolers’ attention as they learn their alghabet and aunbe: With preschoolers, it belps to disanable the break kay with PO! 1beb4 and POKE 53747,84. ‘By new your imagination is probably wondering haw to display the characters in different colors, Just change to Graphics 3) right? Well, it's not that simple, Due to the four available colors in the four color modes only 4 bits of each byte are displayed: ‘Ta gain an apprectation of the protlem, change to GRAPHICS 5 in LINE 10 ad add the following Line te your existing program! 35 DIPUT AIPORE SCRIGAISeS+20;G0TO 35 ‘Then try inputting the numburas 3, 12, $8, 1284 11 4) Ub, by 2s Br 324 12%) Thane are the numbers wa will use to change colors, Consider ‘the four hit representation 0101. In graphics mode with four colors, it will be represented according to the COLOR: IT 76543210 COLOR! © oa 10011 COLOR2 «= KOKI KOK COLORS ox1KoxIt Valve 1agiaa2t 2428 a Mote the X's are alwaya zeroes in COLORS 2 and 3. Frogram listing number 3 converts peeked data into acceptable GRAPHICS 5 data, ‘The subroutine at lines 400-490 determines which Dits of the byte are on (set ta 1}, Thea, using the agpropriate color variable, the right nyeble (the first four bite) are used ta determine ‘the variabia SCRL. Simdlarly, the left nyuble (the Last four oits? are sed to determina the variable SCR2, To print using Calor Gne, press the ! key (GHIFT-11. To grint uxing Color Two, press the * key (SHIPT-2), To print using Calor Tiree, press the © kay SHIFT-3), ‘te can acid colors by adding tha program in Listing 3 to our current program. Be sure to delete LIRE 95 and change tha numberic values ty the factor of two. In particular, notet With GRAPHICS 5, you have val af 2, 0 addition, the poke Giaplayed in GRAPHICS 5, tre program uses two poke statements ta dinplay the sight bits representing the characters Ta complete the oasic program let's add more curser control: Lines 70-73 of listing 4 adds horizontal and vertical cursor coatral, An interesting variation is te print with a different background colar; To da this change LIRE 100 ta raudt 100 FOKE SCR + SPACE + 2081 ‘20*1, ZOF~CHRA ¢ HEXT 1 285 -HR2 1 FORE SCR+ SPACE + 1+ ‘The final step is to speed up the program with machine language, Goa may usa the subroutine in “TEXTPLOT* of the November Iasue of COMPUTE. it demoatrates thw speed and power of machine language ‘Add the Fotlawing lines to your existing program (isting number 4) 40 MLa1S36:1F FEEROMLIO.104 THEN GOSH 20000 ‘$0 T=INTISPACE/ 1401: XeINTUSFACET#L4000/2) 5S AsUSROM,128+32,COLR,X,Te8) 20 THINTISPACE/16001 XoINTUSPACE-(Y 4200/2) 08 GET 91,CHR 90 AsUSROML,CHR+32,COLRX,¥99) 100 REM 20000 GRAPHICS 2+16!7 96I"PLEASE standby"tFOR 160 TO 252:READ ASPOKE MLL AINEXT IRETUEN 20010 DATA 104,240,10,201.4,280 20020 DATA 11,170,104,104202,208 20090 DATA 251,189253,76,124,266 20080 DATA 104,133,195,108,201,128 20050 DATA 144,4,41,127)198,195 20060 DATA 170,141 250e6,224,08 20070 DATA 175/15,167.64.226,52 20000 DATA 144,2,189,224,24,109 20090 DATA 2504141 250,104 20100 DATA 104,141 25167104108 20110 DATA 141,252,6,14,257.5 20320 DATA 104)104)143 253,413. 20130 DATA 186,166487,149,10,226 20140 DATA 3,280,0,169.20,224 20180 Data 5,240,2,169 40,193 20360 DATA 207,199,187;165,28,133 20170 DATA 203,145,89,153,204,52 20180 DATA 228-6,24)173,752 20190 DATA 101,203,133,203,144.2 20200 DATA 220,204.24,165,203,101 20210 DATA 212,133,203,185,208,101 20220 DATA 213,193,204,173, 20290 DATA 132197,169,8133)105 20280 DATA 32,228 y6ri85,212,153 2 20250 DATA 203,173,244,2,101,219 20260 DATA 133,206)160,0,142.8 20270 DATA 169,0,193,208,133.207 20280 DATA 177,208,69,293,72,108 20290 DATA 10,72)144,8.24,179 20380 DATA 200,165,208)145,203.108 20860 DATA 168,28,165,200,101,207 20370 DATA 133,209.148,2,230,208 20380 DATA 200,392,9,208,103,95 20390 DATA 169,0,193,212,162,0 20400 DATA 70,186)184,3,24,101 20410 DATA 187,106,102.212,202.208 20820 DATA 263,133,213.96,0,1,28 An a special nonus, you may use the same techniques ta print sutside the normal text screen. Listing 5 uses Playar~Misgile Graphics ta print an ingutted character just above the the narmat Graphics Modes screen. Have you aver had a game dispiay that you ‘tid not want to mess up with the score? The purpose of thia tutariat has been to increase your understanding of Atari POKE graphics and ta giva you some powerful programming techniques. With this additional information, you can axgand your programming expertise, Happy Programming! Tom Marshall
LISTING 1
10 GRAPHICS 4+15:0PEN 914.0,"
bos
20 SCRAPEERCSéon2569PEERIS6I)
30 SCRYPEEXSCR+ 4 75bePEERISC
oo)
40 TRAP 4OISPACEAO:CHRNa:GOTO
30
SOIF SPACED=410 THEN PRDKT 46
SCHRSU2SPACEeo.
SOGET #1,CER
90 CHICCHR-22F CHRO) OR CHRD
127 THEN 80
PO FOR T0707 a
100 POKE SCReSPacze ter PEEK:
TAMeCHRACONGEXT 1
180 SFACE*SPact+i0F tarigpace
/\OMPPACE/10 THER SPACE<GPACE
479
120 GoTo $0
LISTING 2
10 GRAPHICS 441 5:0PER #1,4,0,"
x
20 SCRWPEERSboMasuePEERISGL)
30 SCR+PEERGCRY4 W258ePEEKISC
Rs)
40 TRAP 40:SPACEsOcERAOsGOTS
0,
' SO COSUR SIOREM eesssees ADD
CURSOR
3
SOGET #1,CHR
20 CHRSCHR-G2UF CHIC) OR CHRD
127 TREN 40
SLIP CHR~?4 THEN 200M see
ace
82 IF CHR=123 THEN 200;REM ee
Raturn
Sa IF CHRe?3 THEN PRINT B6iCER
MIZENCOTO 40MM satsrosence
seeeens Cloar
90 FOR 1=0 TO.7
100 POKE SCR+SPACE+ ios] FEEKG
‘7344+CHRNG+DIMEXT 1
10 SPACESSPACE“UIF DeTisPACE:
/M0WSPACE/10 THEN SPACESSPACE
*70UF SPACED=490 THEN 4
120 Gato so
199 REM setes BACKSPACE SUBROD
TIRE se0e
200 FOR Ie0 70 70 STEP rowoxE
SCRVSPACESI,O:NEXT 1
210 IF SPACE/10sIRTEPACE/10)
THEN SPACEsSPacz~79
220 SPACE*SPACE-\9F SPACECO
HRI SPACESo
220 GOSUE S1e:G070 40
299 REM te¢e0 RETURM SUBROUTIN
E tessaee
200 GOSUE SIOSFACE“INTISRACEY
‘S0mOOtGOMTF SPACE>=400 THER 4
°
310 GOsUB'SLo;GOTO 60
499 REM #49 SPACE CHECK REP
LACE ase
510 FOR f0 70 70 STEP 1¢erEMP
=SCRSPACEST
$20 PORE TEMP,255-Peexrrenpy
530 MEXT RETIN
LsTING 3
S204 Fisncote.3
10 GRAPHICS Se1S:OFEN #340,"
xr
20 SCRWPEEK(S$40)255ePEEKISE1)
30 SCR*PEEKGCR#4-254ePEEK(SC
Ro
40 TRAP sO:SPACEAO:CERgIGOTO
70.
50. GOSUH SLIOIEM eosserees AND
S CURSOR
40 GET PL.CHR
a. CHRO OR CED
(27 THEN 40
OL IP CHRe94 THEN 200REM see
82 IF CR173 THEN 200rREM #8
Ratu
89 IF CHRe3 THEN PRINT src
‘SUZSNGOTO 400REM enseteseese
feeseanes Clear kay
SS IF CHRs THEN COLReIGOTO &
q
96 DF Clie? THEN COLRS2:00TO &
°
O7 IP CRReG THEM COLPRSIGOTO ¢
a
90 FOR 180 10 7OUMePEERIST344
+CHRWSSIGOSUR 400
100 PORE SCResPACE*20e1,cuRa
ORE SCHSPACES1+20¢1,CHRIotExT
z
140 SPACEGPACE2UP nrTSPACE
(20MSPACE/20 THEN SPACE SPACE
‘St40UF SPACED=?40 THEN SPACE=
orsostE Sto:goTO 60
120 GOTO 50
199 REM teee+ BACKSPACE SUBROY
THE
seen
200 POR 190 10 140 STEP 20:rOK
E SCR+SPACE*1,0270KE SCR+SPACE
HeLONEXT 1
210 TF SPACE/20enerePacesz0
THEN SPACESSPACE-140
220 SPACE-SPACE-2UP SPACECOT
HEN SPACES
330 GOST storaaTo 60
299 REM sees RETORH
E
300 GOSUR Sio=PACEEINTISPACEY
160016001801 SPACID~960 THE
HSPACESO
30 GOSUE sio:G0T0 40
999 REM #8488 GETS FOUR COLOR
DATA see8
400 SF Ntata THEN CHRiac:CERIe
410 FOR Jeo 70 7PurmonExt 7
Patra
420 FOR Ja7 TO 0 STEP ~1
430 XANUM-FIPAF/20F X>=0 THEN
FAT tNUMLIZF Xe0 THEN 450
440 KEXT 7
490 ON COLR GOTO 460,470,460
480 CHRLAFONG+FL 2H PO Nk
rFta192,
AS) CHRP MaePSbe zeroed
SePT be 192
470 CHRI=FOW FUN 4ePOeL SOP
asa
475 CERF UPS aerial 64F
TRSARETORN
490 CHRI=Prow2+Ft merFomg2
sFSH128
481 CHRDsFUH2eFis eee rbies
+20 12SRETURN
499 REM 4009 SPACE CHECK & REP
‘LACE sees
319 FOR I=0 TO 140 STEP 20rrEM
PeSCRISPACEI
320 PORE TEMP,2s-Peeermar
ORR TEMP+1.255-PEERITEMEH)
$90 NEXT RETURN,
LISTING 4
300K Fesyiconres
10 GRAPHICS S+16:0P EN 41.4.0,"
&
20 SCRPEEXGeoMosseFEER Sst)
90 SCR«PEERGCR4n256sPEEKISC
Bs)
‘OTMAP COSPACEMOcEResaoTO
30. GOSUB S1OMEM eessesees ann
SCURSOR
SOGET 01.cRR
7OIF CHR«78 THEN GOSUE Slop
ACEWSPACE-180:G08T78 SO0:GOTO 6
oP.
71 IF CHR=29 THEM GOSUA sto:sP
ACE*SPACE+160:G050H SOOIGOTO &
OREM * CURSOR DoW
72 IF CHR«30 THER GOSUE stosp
ACE*SPACE-2:GOSUR S0SIGOTO 40:
REM, LEFT
48 CURSOR
79 IF CHRs31 THEN GOgUE sio:sp
ACE*SFACE#2:GOSUB SOGIGOTO 40:
REX #9 CURSOR RIGHT
80 CRR=CER-~I2UF CERCO OR CHRD
327 THEN é0-
SLIP CHR=96 THEN 2007 sen
ace
82 TF CHRe123 THEN 200:REM a2
Raturn 2
93 IF CHR?3 THER PRINT #6/CER
SUZS)SPACE*OIGOTO SOREM #09
seeasents Clear lary
SS IF Cet THEN COLR@1:GOTO 5
Q
S6 IF CHR«2 THEN COLR=2:GOTO 5
°
8) IF CHR3 THEX COLRes:GOTO 4
a
90 FOR I=0 TO 72tUMePEexe7945
*CHRNG+D:GOsTa 400
100 PORE SCR+SPACE+20+1,cEaP
ORE SCHYSPACES\ +2081. cHRIMEYT
i
110 SPACEssPacEs2ur rerespace
{20*SEACE/20 THEN SPACE*SPACE
+M0UP SPACED=960 THEN SPACES
OiGOSER S10:GOTO 49
120 GoTo $0.
199 REM #o400 BACESPACE sUEROU.
TIRE #400
200 FOR I=0 TO 140 STEP 20pOR
E SCRSPACE+I,0:(ROTE SCRESPACE
SUOLOMEXT T
210 TF SPACE/20sINTIEPACEs20}
THEN SFACE=SPACE-140,
220 SPACERSPACE-22F SPACECOT
REN SPACE=
220 GOSUB Sto‘saTO 69
299 REM e008 RETURN SUBROUTINE
Beserene
700 GOSUE SlossPacEenTSPAcEy
Aso 160+ 80r0F SPacm>=940 THE
M SPACE®)
310 GOST sia:soTO 40
$79 REM #099 GETS FOUR COLOR
DATA tone
400 TF HUMe0 THEN CHRI=0:CER2©
on
410 FOR Te0 0 7FseomtExT y
parte)
420 FOR 7 TO0 sTep-1
490 XeNUM-PPAP/22F 1300 TREN
FTbe UNUM XF X= THEN 490
440 NEXT J
450 OM COLR GOTO 460,470,480
400 CHRIMPCOM3+PtL412+F(2}94,
BOPSH 192,
401 CHRSFUenaHRtE 12+ TEN,
BHF mI 928
470 CHRIS FOP eceFeae ser
esa
ATT CHRIAPCaMP CS eMe PtH ger
O68
480 CHRIaFlos2erumasrizieg2
+F0300123
491 CHRD tdw2+Peeaerigeay
SEC 12SRETORN
499 REM e030 SPACE CHEDE & REP
LACE tees
500 IF SPACECO THEM SPactasece
SPACE
‘$01 IF SPACE>9¢0 THEN sPaceesp
ACE~989
502 GOTO sto
$03 TF SPACE/20emnTePAce;20)
‘THEM SPACE*SPACE-29
$04 GOTO S10,
‘SOS IP SPACE+2/20emrTISPACE
21/20) THEN SPACE=SPACE+20
S10 FOR Tm TO 140 STEP 2orrEM,
LISTING 5
10 GRAPHICS o:G0sUB 10000:0PEN
stone
20 ET #1.CHR:? CHReC
AELCHR-CHR-32;GOSUB 1909oxdgT
O20
10000 XeizarT=¢
10010 AsPEEK(06)-24ROKE 5427
VARPMASE=75464,
10020 POKE 539,40:POKE gz2a
ORE $9277,3:REM TORN ON AND SE
‘TRIDTES
10090 FOR TisPMEASE+s12 TO Pe
SASE+sAOPORE IEOOEXT IER.
EM CLEAR PK GR...
10040 FORE 53248,X7REM PL o FO
STON,
10080 POKE 704,2temEM PL oco
LOR GREEN
10060 TI=0:7FOR DI*FMBAsEASi2+
7 TO PMEASE+S19+TiPORE 1LPEE
KO7os4ecHRess Title NEST
TTIO:RETURN
os,
(9090 IterFOR trtePymase+size
TO PMBASE+S19+T:POKE I1,.SEE
‘Ree7SeaeCHResetrintery+1aeXT
TLDeORETORN
ADS
SAVMOV
0660 {USED 70 SAVE THE INSTRUC
26705
0880 MOVE FROM ADDRESS (LOW
cm
0490 SOURGELD = 500
0700 SOURCEHT = $40
O710 IMOVE TO ANDRESS CLOW,EIG
$70
0780 ISB MOVED,
3090 PGT Loa
1190 NEXT Lha @ROM,Y
2200 STA (TOV
1210 DEY
1220 SNE NEXT
1230 NEXTELE TNC FROM!
1920 (SET FLAGS AND BOOT DOS
1330 DORE Lna #0
1989 STA CASSET
1950 STA CKET
1360 STa BOOTS
4370 SR BOOT
1380 LDA #0
1390 STA COLDST
1400 TMP MOSVED
1st0 PRD = #
1820 END
BACK TO BASIC
Now run the program, The computer will print cut amatriz, The
Firat lines of the matriz wiil look like this!
GRAPRICS MODE 1 OR 2
PORE 756, 228
SETCOLOR REGISTER
COTE
2 0 1 we!
33 1 te it
m2 162 130
Yow change the program slightly to print the text codes for the
characters in Column 2 of Tabla 9.5. Tha firat symbol in Colwnn 2 is
the G sign, Apnenciz C tela ve the ATASCTI code for "G" is 64. Table
9.7 talls us the conversion factors far Cenvarsion 2 arat 22, 64, 140
and 192, In column $, the character nember Far the firat character in
‘the column was zara, 22 we didn’t hava to worry abovt it, In Caluma 2,
the first character number is 32 (nee the @ sign in Table 9.61. This
time wa must include the character number shen we caloutate the text
coda, Instruction 50 now looks ihe tris:
SOLPRINT CHRSK +o" "3X42 + 32°
SXetsoesn* Xe 19432 :
Xeuasane
Mau the change and run the program.
Column 2 is handled the same way. ATASCIL coda for the heart
aymbot ix tera. Conversion numbers are -32, ~b4, 98 and 64, The
churacter manber is $4. So instruction 50 becomes!
SOLPRINT CHREGY* "X-22 #6a* X= bbe ONY oF
par eG TXT bees
In addition, add and change the following instructions to get
characters in enlumns 3 and 42
SPOKE 756, 226
20. UPRINT ! LERINT "PORE 734, 226"
My printer does not print graphic symbols like hearte and arrows:
Ye you have the same problem, you will have to draw the symbols by
Column 4 {9 also handled the same way, Make the appropriate
changea to instruction $0 and run the program.
In esdition to having some useful matriens, you should naw know
how to use LFRENT, CHRS, FOR-MEXT ioaps and ATASCI! codes,
=G. He CONGER,
is
10
MIKE DUNN INEETS recorda the last kay pressed. ‘SCRM recorde the x and y coordinates or, in graphic mades, the calor register number, DEF to define funtians for further use SCTE sow has a duration in iifFios. Q@raphic Commands PLOT To-combination of PLOT ant DRAWTO, with chaining allowed, eg: PLOT 10,0 TQ 20,20 70 5,5, FILL-to fill with calor from Left ta ringt, SETCOLOR 070 for player-misule cnior-iuminancs SETCOLOR § TO 7~for playfield color-luminance, SETCOLOR S-for background SIZEPO, to SIZEP3 to SIZEM for size cantrol af various Player-masiles, ‘HPOSPO,ate for horizental position of Flaysr-Miscile specified. MOVE-for vertical position of PMG. PRIOR-for priority enntrol ‘There are also i6 collision control regiaters that can be easily accessed. Atari MicroSoft BASTC goes aot nave) abbreviations for keywords uae of variable names for GOTO, GOSUEvetes PADDLE or JOYSTICK commands~vses POKES! Uniimited size of variable namea~junt un ta 127 charactors long. Wo XIO vtatements-done dy calling directly ta the CZO in a manner ot clear to me, Commands not mentioned are the uame as in Atart BASIC. Has meaningful erroy commands, with the error message give after is hit, not when RUM as in dgpiegoft, Tx supposed ta be Faster. Uses a lot of memory, leaving a limited amount for user, Compared to +, dase nat have structured pragremming, and the following commands-LVAR, LOMEM, IF.,ELSE...ENDIF, WHILE..EXDWHILE, DIR, BPUT, BGET, RPUT, RGET, DPEEK, DPOKE, and the wonderful joystick contvats uf BASIC A+, The Flayer-miasile commands are dtffersnt but seam to da mostly the ‘Same things, Z thinks BASIC A+ dows not have many af the commands Of Microsaft BASIC, either~please see 4 previous review DF ACE for @etaiie. It alsa dors not use as much memory: ‘My nama is Jim Burpas and I am the *Guest Editors for this bonus. issue of the ATARE COMPUTER ENTHUSIASTS. The format may ba vary mat different from what you expect. We want to know baw you Fenl anout it, This format ig one Iam mare used to than past ACE iswues,e0 it will be easier far me to break inta the tasks of preparing thia newsletter. If everything works out, I] be abie to aasume some of the load Mile Duna has shouldered for over 4 year naw. This will Leave him mare tima tn respond to correspondence te the cies, z ‘Eventually, 1f you ike what I’m doings and I'm able to handie tt, 1 ‘may be anle to hala Mika on amore long-term basta, This procedure can alto be a means to gradually work myeeif into sale editorship stould Mike want to do something else than edit this newsletter far the rest oF ts lifes ‘ Inchued in this iusue, you will find sinall coumon containing some boxes next to questions to whien you may resnond. Leager comments are alan solicited in case you desire to express yourself more fully then the boned permit. Fleaxe do not bother Mike Dunn with these comments on the format of this ‘zing. Send them ta me. 17 collate them and discuss the responmes with Mike, ae Meeting Tan 12, 7:30 ‘The next meating of ACE will be at Mike Dunn's Navas, 2642 Vine Maple Dra aff of 30th and Apat We will feature the new Video Tapa by Cris Crawford and friends of Atari on Gaphica, Player-Missila Graphics, etc, a demanstration of the Varsawriter digitizay and Centranies 739 Printer, using the new APX Seren Duma program, and wha knows what alee: ‘The Video Taps frem Atari is warth coming te seat! * Atari Computer Enthusiasts A.CaEs ism indwendant computer club ans ier’s grou with #9 connection ta the AAtart Conmany) 3 division af Warner Comunication Cooeans, Wa are & grouF interested in edvextion a sesbere in the une of the Mari Coreuter and in siving he latent Neva Revinus and Runoes, Que seobershir is verldevide in score? renbersnin fee inclu the ACE. Aemlettar, mablinted about 114 3 year, Suet ee 410 a yom far UsSo, and $28 a year Guerseas Aisa. frmnigert-Stacy SotY—1200 ltyart. Eugene, OR 97465 phone SE7-sOH- Gta ‘tbearianChutk a Js Roa, 222 Trenwood, Evgeny OR FFA Eator-tthe Ouray 362 Vinw Maple Ory Eunenaty Oe ITER SES-SHG1TS