You are on page 1of 132

A N ARGUS SPECIALIST PUBLICATION

Death Caves - An Exciting 2X81 Arcade Came


The zx 80 Lives! Play Our Great
Football Came

Music Micro '§ 1


v Please! f
v
^ Exclusive
t ^ MIDI interface
>and softwc
- >• J* ^ offer!
We'll take you beyond
the Spectrum.
• r

QUICK5HOTII AUTO RAPID-FIRE JOYSTICK

W
J. . I
jjm

SPECTRUM INTERFACE SPECTRUM UPGRADE KIT

/ /I
/
/ / 1/ Li

T \ \
\
\
\

\
TURBO INTERFACE

/
/

Four great new add-ons from Ram, Number One in everything for the
Spectrum... Please send me Spectrum Turbo Inter face(s) at £22.95.

TURBO INTERFACE Quickshot II Joysticks) at £9.95.


Outperforms any other Spectrum interface. Supports Kempston, Spectrum Interface(s) at £9.95.
Protek, Interface 2 and ROM cartridge software, with a full expansion bus at
Spectrum Upgrade Kit(s) at £21.95.
the rear. The Turbo works with two standard joysticks, making the most of the
(Please state issue 2 • or 3 • )
Quickshot li s rapid-fire action. Features a unique built-in power safety
device. Amazing value at £22.95. +£1 per order P+P(£3 Overseas) TOTAL £

QUICKSHOT II AUTO RAPID-FIRE JOYSTICK • I enclose cheque/postal order • charge my Access/Visa


The top games joystick with its sleek trigger fire button and an auto-fire
switch for continuous shooting- a snip at only £9.95.
i i M i i i i i i . i r m
Expiry Date / /
SPECTRUM INTERFACE Name
This Kempston-compatible interface adds real games power to your
Address.
Spectrum. Costs just £9.95.
Postcode
SPECTRUM UPGRADE KIT Telephone
Boost your 16K Spectrum to a full 48K, allowing you to run all the latest 24 Hour despatch for credit cards and postal orders (7 days for cheques.)
and greatest software. Only £21.95 AJI products are fully compatible with the Spectrum, Spectrum +
Where can you get your hands on Ram's amazing Spectrum add-ons? and Sinclair Microdrives.
You can see them at branches of Boots, Menzies, Greens, Spectrum Group
computer centres, and good computer stores everywhere. Ram Electronics (Fleet) Ltd
(Dept ZXC), 106 Fleet Road,
Ram Electronics (Fleet) L td (Dept ZXC), 106 Fleet Road, Fleet Hampshire GU13 8PA. Fleet, Hampshire GU13 8PA
Credit Card hot line: 02514 25252. (Access & Visa).
Trade and Export enquiries welcome.
" Y O U MUST BE THE BEST
SOFTWARE FIRM IN THE W O R L D "
(L. Hallard, London)
For nearly 3 years, we have been selling software as 'Software Supermarket'. But, because we have discovered at least two other companies (including Micronet!) using
our name, we have changed it to Speedysoft. After all, it is the sheer speed of our delivery which our customers in over 40 countries seem to appreciate most.
SPEEDYSOFT is a very different kind of software shop. First, we actually play all the programs ourselves and offer you only the best. Second, we send FREE with your order a
32-page catalogue which quotes all the reviews and even lists toad times! (For a catalogue only, send £1.00 cash and we will send you a voucher for £1.00 off any order,
plus your catalogue.) Third, WE ALWAYS TRY TO SEND OUT YOUR PROGRAM O N THE DAY WE GET YOUR ORDER. UK prices include VAT: export prices are the same,
plus p&p. To order by VISA/ACCESS, call 01-789 8546 at any time, 24hrs a day. ALL PROGRAMS RUN O N BOTH SPECTRUM A N D SPECTRUM PLUS.

SPACE SHUTTLE
Sta
R A C F R A I I 8 g e r i n B ' amazing and really pretty good "Superb graphics, the cockpit
D / A j C D r V L L simulation. DEMO teaches. But as you see the vibrations during the launch really
ground in 3D perspective you also see the giant video screen ciose-ups! Steal give the impression of taking off." (HomeCompWkly) Fly the Space Shuttle
options, curved balls, pitcher throws, cheer leaders. 3,6, or 9 innings: 3 skill DISCOVERY. Launch, rendezvous and dock with an orbiting satellite 210 miles
levels: 1 or 2 players: 1 or 2 sticks: on-screen instructions. STICKS Kempston/- above Earth, then return to Edward's Air Force Base. Progressive difficulty.
lnterface2/Cursor. (Imagine) CASSETTE £6.95 DEMO. Great graphics and a very well illustrated manual. Photograph the final
screen to earn your free 'wings'. STICKS: Kempston/lnterface2/Cursor.
(Activision) CASSETTE £8.00

SORCERY "WONDERFUL . . . the graphics are beautifully


designed to an incredible degree of detail."
(PopCompWkly) "Stunningly sharp, colourful graphics and a truly infuriating SUPERCODE 3 "This amazing collection brings the
speed of m/code within the reach of
and fascinating plot." (Micro Adventurer) Race against time to liberate your 5 any programmer familiar with BASIC." (PersCompTodayV 'An excellent
sorcerer friends in one of the most playable and beautiful Spectrum games ever. collection of routines and utilities that no serious user should be without."
Random start, different game every time. STICKS Kempston/lnterface2 (VIRGIN) (C.T.W.) Save/load to/from tape/Microdrive as you wish. 152 Machine-code
CASSETTE £6.95 routines. Helpful instruction manual. The ultimate Spectrum Toolkit. 100%
menu-driven. On-screen training. If you're writing in BASIC or m/c, you need
this fast! N O STICKS. (CP Software) CASSETTE £12.95
su erb arc
C P V H I I M T F P P *de blast 'em, bump 'em,
J | I I I U I I t l x crash'em all-action shoot 'em up explodes
onto your screen with this ace no-holds-barred conversion . . . . a must for any TECHNICIAN TED "Some
detailed
of
and
the liveliest,
imaginative
graphics I've seen ...it must be a game to add to your collection. Truly amazing,
shoot 'em up addicts collection." (ZZAP) You control the turbo racer/hydro spy
boat, depending whether you're on land or water. You've missiles, machine- truly difficult, truly wonderful. 96%." (Crash) "Has the same touches that made
guns, oil slicks, smoke-screens. 2 skill levels. DEMO. STICKS Kempston/- JETSETWILLY so clever and professional: precise collision detection, very
lnterface2/Cursor. (U.S.Cold) CASSETTE £7.95 carefully constructed screens, nicely designed sprites." (PopCompWkly) 50
SCREENS. Time limits; continuous music. It's got everything. STICKS: Kempston/-
lnterface2/Protek. (Quicksilva) CASSETTE £5.95

DRAGONTORC "A BRILLIANT


ROUND;
PROGRAM
excellent
graphics and a great addictive quality . . . well worth
sound
ALL
and
having." MINI OFFICE "QUITE EXCEPTIONAL VALUE ... the first
affordable program suite I have seen ... /
(PersCompToday)Over 250 locations and more than 80 individual creatures from strongly recommend beginners get this first." (PersCompNews) 4 programs on
over a dozen different races in this magical sequel to 'Avalon'. Wonderful one tape, all working with EPSON-compatible printers. WORDPROCESSOR :
foltow-up to a great graphic adventure. STICKS Kempston/lnterface2/Cursor. DATABASE : SPREADSHEET : GRAPHICS . An amazing collection at an
(Hewson) CASSETTE £7.95 unbelievable price, no wonder we've sold so many! (Database) CASSETTE £5.95

V P M "There is little to rival it in the entire world of Spectrum


Vj I V IV ^1
/p ro g ram s ... utterly original, compulsive."

FORMULA ONE "A really good strategy game . . . as


management games go, it's one of
the best." (PopCompWkly) 1 to 6 players. Full simulation of a Grand Prix Racing
(PopCompWkly) "An astonishing program which requires quick arcade
responses, a great deal of thought and should provide hours of satisfying
frustration ... the graphics are breathtaking." (Crash) "A brilliant game
Season. 16 races. Invest your sponsors' money in drivers, pit-crews, cars: guess combining strategy and arcade skills ... a game in which brains and logic count,
at the weather forecasts accuracy and choose your tyres. Then watch the races stands in a class of its own." (Sinclair User) W I N YOURSELF A PORSCHE 924! (If
run in very good and big graphics. As enthralling as the same company's golf and you solve Gyron before 21/10/85. There may have to be a tie-breaker
cricket simulations. STICKS Most: (CRD CASSETTE £7.95 competition.) Simpler and harder games on different sides of the tape. 12 levels,
ALL STICKS. (Firebird) CASSETTE £9.95

PAINT PLUS 'I've never had so much fun with a utility


program." (ZX Computing) "If you've been
looking for a Spectrum graphics aid, this seems like one of the best."
SHADOWFIRE "Graphically superb and seems very
complex ... it's going to be a game to
savour for some months." (PopCompWkly) THE WORLD'S FIRST ICON-DRIVEN
(PopCompWkly) The reviews refer to the original PAINTBOX. This version has 24 ADVENTURE Makes your Spectrum seem a little like a Macintosh! The best yet
new commands and an 88-page colour manual. MICRODRIVE and GRAFPAD from the 'Doomdark' company. Fascinating graphic adventure without words as
compatible. U D G Editor, Drawing Board, Sketch Pad, Precison Plotter and you organise the Enigma team. 3 different missions. Stunning graphics. 20-page
Screen Planner. A M A Z I N G DEMO on flipside. The very best Spectrum graphics full-colour manual. You have 100 minutes to win! Demo helps. STICKS
kit. STICKS Kempston/Cursor. (Print 'n'Pfotter) CASSETTE £9.95 Kempston/lnterface2. (Beyond) CASSETTE £9.95

SPEEDYSOFT
V I S A A C C E S S C A L L 0 1 - 7 8 9 8"»4f) ( 2 4 HRS)

POST TO: SPEEDYSOFT (zxi2) Program Name Price


87 HOWARD'S LANE, LONDON SW15 6NU, ENGLAND.
For CATALOGUE ONLY, send £1 cash. Refunded with your first order.
I own a SPECTRUM. I enclose a cheque/PO payable to SpeedySoft
OR charge my
VISA/ACCESS/EUROCARD/MASTERCARD

No. r m nrm r r m n m
Signature:
Postage&Packing UKadd75pperorder
Please write clearly. If we can't read it, you won't get it.
Europe ADD £1.00 per program
Name:
Outside Europe ADD £1.50 per program
Address:
Postcode:
PHONENO: ifany,incaseofquery Total Order
Editor: Rav Elder
Editorial Assistant: Cliff Joseph
Group Editor: Wendy J Palmer
<3®G
Sales Executive: Jonathan McGary
Advertisement Manager: Barry Bingham Origination and design by MM Design & Print,
Divisional Advertising Manager: Chris Northam Circus House, 26 Little Portland Street, London W1 INI 5 AF.
Copy Controller: Sue Couchman
Publishing Director: Peter Welham Published by Argus Specialist Publications Ltd,
Chairman: T J Connell 1 Golden Square, London W1 R 3 AB.

welcome . .6 Micro Music . . . . .36


Ray mumbles from his sickbed. Drive 18 A look at the basics of music and how
they relate to your machine.
Shoptalk .10 Could this be THE disc system for the
Spectrum?
All the news that's fit to print.
Mandolin
use Your Rom 20 Keyboard . .40
Book News .11 Delve into the depths of your Spectrum Make your Spectrum sing! (Well,
What's new in the PRINTed word. with this handy utility. almost).

Hardware News . .12 Dk'tronics Midi in The Home.. 44


The latest on the add-on front. interface * • 21
• mm • An in depth look at some of the musical
hardware and software available.
Software News.. .14 A useful little add-on for*your Spectrum.

What to look for amongst the new Mathmania 2 4 M Nowotnik Puzzle . 50


releases. A little something for QL owners to get
A problem for all those that like playing their teeth into.
with numbers.
ASP FIGHTS SOFTWARE PIRACY
Much hat been laid and wrtttan In condemnation of
software piracy but few hava takan a positive stand
Joystick Jury • • • • 2 5 U G r a n d s t a n d . . . ^ 5 4
against It. ASP la among thoaa faw that hava takan Here it is! A honest to goodness ZX80
action to halp curb tha grave problem of home We introduce a new system for our game-how's that for user support?
of commercial software. games reviews.
ASP has already taken stepe to eliminate
advertisements In our magazines which relate to
tape duplication for piracy purposes. Whle h is
appreciated that individuals may take 'back-up'
Spectrum Lessons 28 • Competition 64
copies of their own programs. It should be noted that
ft is ILLEGAL to copy commerciely svaiabie Mike Edmunds examines Sinclair's latest We have some splendid data recorders
software for other then personal uee.
batch of educational software. to give away.
Software pfrecy is costing the software Industry
huge sums of money which la detrimental to the
future development of the Industry, ft Is in
everybody's interests to dramaticaly reduce the Spectrum Arcade .32 • Death Caves 66
level of software piracy primely because firms need
funds raised from software sales to plough back into A look at some new Spectrum software.
reseerch and development of new products. This
Action and adventure for the ZX81.
means that the standard of software products can
only improve.
ASP hopes our action w i help combat this
serious problem in order to maintain and improve the
Sounds! 35 I Slomo 68
high standards of the UK software Industry. We are
asking you to do the same by refraining from Ray i n t r o d u c e s our look at the
duplicating or copying commercially available possibilities of making music on your An ingenious little device for use with
software for anything other than peraonal use. micro. the Spectrum.

4 ZX COMPUTING JUNE/JULY 1 9 8 5
lEWFOra®
ZX C o m p u t i n g is published bi-monthly o n the f o u r t h Friday of the m o n t h . Distributed b y : Argus Press Sales & Distribution L i d , 12 18 Paul Street, London
EC2 A 4 JS. 0 1 - 2 4 7 8 2 3 3 . Printed in the UK by: Garnett Print, Rotherham and London.

The c o n t e n t s of this p u b l i c a t i o n including all articles, designs, plans, d r a w i n g s a n d programs a n d all c o p y r i g h t a n d other intellectual property rights therein
belong t o Argus Specialist Publications Ltd. All rights c o n f e r r e d by the Law of Copyright and other intellectual property rights a n d by virtue of international
copyright c o n v e n t i o n s are specifically reserved to Argus Specialist Publications Ltd A n y r e p r o d u c t i o n requires the prior w r i t t e n consent of Argus Specialisi
Publications Ltd.
<c Argus Specialist Publications Ltd 1 9 8 5

Building An Tasword To The


Adventure Brain. .69 ZX Readers get a special offer, with the Limit .118
Part two of our series on how to do- Clever Clogs range! John Wase takes his printer where no
them-yourself. printer has gone before.
Bookshelf 91
Little Screen We check out the Hacker's
Problem Page.. .121
Designer .71 Handbook(s). David Nowotnik lends a helping hand.
A f t e r last issues unscheduled
interruption, Toni Baker returns with We The Jury 92 Conversion Tips .122
another installment of LSD.
Lots and lots of games reviews. How to convert ZX81 programs for the
First Steps In Spectrum.

Machine Code 74 • Signalman 98 OXO Flavoured


More deep, and highly complicated Drive your Spectrum off the rails with
this excellent simulation.
Forth .124
secrets of the Z80 processor revealed.
Fun for fans of Forth.

Across The Pond . .79 Tortoise wise 108


Club Corner.... .128
At last, the wise old tortoise comes out
Mark Fendrick's regular report from ahead. Make friends, meet people.
somewhere a long way away.
Debugger 109
warts n All 80 Please note that Sinclair, ZX, Z X 8 0 , Z X 8 1 . ZX
Spectrum, QL, ZX Microdrive. ZX Interface, ZX
Help w i t h all those programming Net, Microdrive, Microdrive Cartridge, ZX Printer,
An alternative look at ZX81 machine problems. and ZX Power Supply are all registered trademarks
code. of Sinclair Research Ltd.

—Basic Hybrid Subscription rates: UK £ 13 .50 including postage.

Alien 8 Map
Airmail and other rates upon application to ZX
82•stack/Queue . . . n o Computing, Subscriptions. Infonet Ltd. Times
House. 1 7 9 The Marlowes, Hemel Hempstead.
Herts HP1 1 BB (Tel: 0 4 4 2 4 8 4 3 2 )
Well, everyone else has done one, so A handy utility for ZX81 m/c buffs.
ZX Computing is constantly on the look-out for
why shouldn't we? well-written articles and programs. If you think

ZX81 Soft 0L Reviews 113 that your efforts meet our standards, please feel
free to submit your work to us for consideration for
publication.

Selection . .83 At last some of the threatened QL


software begins to emerge.
All submitted material should be typed if possi-
ble; handwritten work will be considered, but
please use your neatest handwriting. Any pro
grams submitted should be listed, a cassette of
Nick Pearce examines the latest offering
Formula 1 114
your program alone will not be considered. All pro
from Temptation. grams must come complete with a full explanation
of the operation and, where relevant, the struc-
ture; Spectrum programs should be accompanied

IQ Test (Part 2) . . .84 A racey little number for ZX81 drivers. with a cassette of the program as well as the
listing.
All submissions will be acknowledged and the
The hardest part about last issue's IQ Quicksoft 117 copyright in such works which will pass to Argus
Specialist Publications Ltd will be paid for at com-
Test was figuring out where the rest of it petitive rates. All work for consideration should be
went. Here it is. A quick look at some assorted software. sent to the Editor at our Golden Square address.

5 ZX COMPUTING JUNE/JULY 1 9 8 5
WELCOME

CPOPS.
Things are still not as they
should be, if you have sent in a
program or enquiry and more
than six weeks have elapsed
without our replying then moan
at them. We know for certain
that a number of letters and
On Friday I had something to eat is one sign which strikes dread t u r n of phrase t o o inap- parcels sent to our offices have
at lunchtime. So what? you say, into the hearts of the most propriate?) and I don't want not arrived. If enough of us com-
there's nothing special in that. hardened. No it's nothing as sympathy (then again. . .) But plain then they'll get fed up and
Well, the significance was that simple as INFECTIOUS or if 1 felt like that after two days do something just to get us off
by Monday I'd been lurched into PLAGUE, it's the three words then you can imagine how those their backs!
h o s p i t a l w i t h a rather NIL BY MOUTH. These are at- in Ethiopia feel after many mon-
overheated Pancreas. For those tached to patients such as I and ths. I'm told the pain fades with
of you fortunate enough not to mean just that. Feeding is in-
travenous, nothing is swallow-
time and that I find awful as well.
And I know the media go on and
Something
have experienced this, it can on-
ly be described as having a ed. Well, after a couple of days on, T.V., newspapers all trying Different
berserk football fan repeatedly as the pain subsides and the in- to show the most horrific pic-
stab you in the stomach with a jections wear off and an interest ture. But we ought to be hor- Some of you may have noticed
red hot penknife. So, groaning in human occupations returns, rified and we ought to keep hav- that we were getting a little
and cursing — this was my then those words strike into the ing our noses rubbed into it and behind (there's a joke there
fourth attack in five years — depth of your being. It matters maybe we will buy the record or somewhere) with our reviews of
headlines read PANCREAS not that you are in no danger of the software tape and pay out new software. Now obviously a
STRIKES AGAIN - NHS BAF- malnutrition due to the saline £ 1.2 5 or £4.99 and feel smugly bimonthly magazine is unlikely
FLED. Anyway, mumbling in- pumped into your veins, the pleased with ourselves. to be as up to date as a monthly,
coherently, I was attached to a hunger builds. The rattle of the But until we've tried going nonetheless we are now going
plethora of tubes, needles and tea trolley, cheerful calls of hungry even for a day, we can- to attempt to provide more up to
wires, questioned in detail about "What do you want to eat today not begin to imagine the horror date reviews than we may have
my intimate bodily functions, Mr, ?" to more fortunate pa- of the situation. So I'm asking, if done previously, and to that end
given a pain killing injection and tients become a torture more you haven't yet bought SOF- we have recruited a bunch of
handed over to those aptly nam- refined than any deliberately TAID (if you have, then get a j a u n d i c e d arcade a d d i c t s
ed beings, the Angels. (Nurses) devised by man. copy for a friend) PLEASE buy ('Gimme another shot man') to
Now, if you've ever been in I don't want to force the point SOFTAID and make it stay No. 1 sweat blood over the latest
hospital then you'll know there down your throats, (or is that in the charts for a long time. releases. These dedicated per-
sons (including me!) are all en-
thusiasts who have died a

sy MOUTH
million deaths at the hands of
v'i aliens, crashes, falls etc. Even
// so they still only give their own
1/ opinions and I'm sure you may
\ I
not agree with them at times so
- \T r^TT^im. is. c i b a n write in and let us know!
\ h-
/

' / \ **r if Music Be The


Food... *
/ t
J
•7
r >v In this issue I reveal the results of
an exciting investigation into the
i-'O/l L i4 ° v use of the Spectrum in the ex-
panding field of home music, not
aimed at the musician or the
if'^l fanatic but at ordinary people —
US. All the equipment has now
been returned, the office has a
strange empty quality, Cliff and
:/ K /J the typists have removed their
•Vr* ear plugs and my fingers itch.
fl 1 ' What can I stick them in next —
Rr-'r, C l i f f looks a n x i o u s — I
-M'
wonder. . .
V ./ - On with the show, overture,
1
curtain, dancing girls. . .

warning
v
' / ' J '

i
't^y 'A k / .s' V We recently received this
L/ message from Dean Electronics:
H
->. — 'Dean Electronics Limited,
ti\<1 the sole authorised importers of
P L VtjI
i^ V , Alphacom printers, wish to
issue a warning to anyone pur-
^ ( J
chasing an Alphacom 32 printer
& for use with a Sinclair home
computer.

6 ZX COMPUTING JUNE/JULY 1 9 8 5
WELCOME

Froggy II sent over 1200 requests for


product information out world
Dear Sir, wide. Most requests where sent
I have just read the review of to US firms or individuals that
Software Farm's Frog Hopper II have products or services, but
game in the October/November over 100 were sent to the
issue of your magazine. It was in United Kingdom. Only ten of
the ZX81 Soft Selection. these firms answered the re-
I don't know who reviews quest, so I am requesting your
these games, but whoever does assistance in gathering informa-
makes a very poor job of it. The tion. If you could supply a list of
reviewer says, "there is only advertisers that I may try to con-
one speed, which is perhaps a tact or if you could make men-
little slow" — this is totally un- tion of my need for information
true as the game speeds up with in your publication, this would
each difficulty level. This is ob- be a great help.
vious to anyone who has played The guide is a full size
the game for more than five 8 V2" x 11" set in a three ring
minutes. I hope you will correct binder that allows for easy up-
this mistake in a future issue. dating. Now containing over
Unsigned 1 20 suppliers of Sinclair-Timex
Alphacom 32 — The real McCoy products from the ZX-80 to the
Consider it corrected. QL and the TS-1000 to the
Recently printers have been WORDSHEEP and my TS-2068. Over 800 software
introduced into the market place ALPHACOM 32 printer I often titles are listed along with over
which are similar or even iden- curse my memory forgetting Help! 100 books and hardware items.
tical in appearance to the what I typed just 10 seconds Priced at (US}$20.00 postpaid
Alphacom 32 and have connec- before. This is the occasion: Dear ZXC, to USA and Canada, others add
tors which will fit the 9v DC HELP!! I am a regular subscriber $ 1.50 surface or $ 5.00 airmail,
Having filled a screenful of to ZXC and I have numerous pro-
power socket on the Sinclair text I press CAPS SHIFT+ 9 to this includes an update to keep it
Spectrum. In some cases these grams that will not run. My copy complete in 1985.
send it to the printer and after- of Meteor Madness tells me that
connectors will provide 25 volts ward CAPS SHIFT+ 4 to clear I will send you a complimen-
AC to the Spectrum not the re- I have faults that do not exist (or tary copy if you so request it. t
the screen. And now I just can't that I cannot find), and I am still
quired 9 volts DC and will remember which was the last am looking forward to hearing
destroy the computer. trying to get out of the market from you as soon as possible to
word! I can't see it because it is place in Chalice. Most others
Dean electornics wish to still under the paper tearing edge make sure that your information
that I copy tell me that it is gets in the next update. Thank
point out that they are in no way and I can't press the advance 'Nonsense', with monotonous
associated with any such pro- key because there would be an you for your time and considera-
regularity. Is there anyone in the tion in this matter.
duct. The authorised version of ugly gap in the text. Tamworth area with enough pa-
the Alphacom 32 supplied by Thanks to the genius of Toni Very truly yours,
tience, who can assist me? I Dale F. Lipinski
Dean is fitted with a fail safe Baker there is a simple solution would ask my seven year old
power supply and it is not possi- by using the YOURS routine for son, but my ego has already
ble to accidently plug this into a slightly altered version of the taken a severe bashing. We 've sent on what info we've
the Sinclair Spectrum. CLEAR SCREEN routine which Desperately yours, got, meanwhile, maybe some of
The authorised version of the will clear only the upper part of George Bunn, our advertisers will read your let-
Alphacom 32 printer is available the screen; I omitted 3E80h and 98 Stonepit, ter - Ed.
from W H Smith's, Currys, John 3 2B1 5Ch and changed Kettlebrook
Menzies, Prism Distribution, 01 DF02h into 015F02h. This Tamworth
spares out L-TABLE from clear-
Terry Blood Distribution or direct
from Dean Electronics Ltd.' ing. The new CLEAR U-TABLE
Staffs. POKES
routine must be attached to the Dear ZX Computing
POKES WORDSHEEP program which Buyers' Guide I am a 1 5 year old student and I
ends at 60957 and this will do own a 48K ZX Spectrum. One
Dear Sir it: Dear Mr. Elder: day playing around with the
I am in the process of compiling I am publishing a "BUYERS POKE command, I finally came
a book for Spectrum Games- 1010 RESTORE 1040 GUIDE TO SINCLAIR - TIMEX up with a short program which I
players, which will include hints 1020 FOR n = 6 0 9 5 8 TO PRODUCTS & SERVICES" and find very useful. Once placed
and tips for adventure games 60977 wish to include information on before your program it will erase
and POKE'S for infinite lives etc 1030 READ a; POKE n,a; your publication in it. there is a everything if BREAK/SPACE is
for arcade games. NEXT n need for quality publications, pressed during the program; a
I would welcome contribu- 1040 DATA 33,0,232,34, such as yours, to keep users in- good program to prevent your
tions from your readers and 175,92,1,95,2,62, formed about their computer. program being changed. Here is
should any be used in the book 32,205,57,236,205, Information on subscription the program:
then the sender will be subse- 12,236,195,229,235 rates, correct mail address, and
quently rewarded. a description of what is featured
Yours sincerely And now; in the publication would make 10 POKE 23613,2
H ZUCHOWSKA Write a screenful of text plus sure that you are listed correct- 20 POKE 23614,91
37 Grove Gardens the next words in the lower part ly. If you do not distribute 30 POKE 23298,0
Off Grove Lane of the screen, send the text to overseas (to USA & Canada 4 0 POKE 23299,0
Handsworth the printer and afterward press especially) please send the infor- 50 REM YOUR PROGRAM
Birmingham CAPS SHIFT + SYMBOL SHIFT. mation anyway. I will make note SHOULD START FROM
Your last words will stay on the of that fact in the guide. HERE
screen to the great relief of that I wish to make the guide as
Absent Minded short time memory sievel
Sincerely yours,
complete as possible covering I hope that if you print this in ZX
ALL Sinclair and Timex com- Computing the readers will find
Dear Ray, Louis Colombier puter products and services. it useful. I find ZX Computing a
Using my favourite program W. Germany With this in mind I have already great magazine and am an en- ^

7 ZX COMPUTING JUNE/JULY 1 9 8 5
WELCOME

thusiastic reader; keep up the My admiration and con- houses which market such soft- an acknowledgement of my ap-
good work!! gratulations go to Alan Davis for ware who offer an update or ex- plication let alone any news-
Yours faithfully "The Golden Chalice". I almost change deals to their existing letters. I wrote back three times
HARRON ANSARY pulled my hair out trying to solve customers. Such s o f t w a r e since mid-September after I
Lusaka, Zambia it, but it's worth going bald over:houses realise the importance of learnt that the cheque had been
well worth five stars. Let's have customer relations and so cashed on the 4th September,
more mind-benders like this. benefit from the most effective twice through registered mail to
Anomalous Your last edition (Oct/Nov) was and yet the cheapest form of make sure that my letters reach-
Phenomena? too ZX81 orientated: I have a publicity that is available to ed their destination. However I
Spectrum, so I'm biased; let's anyone. I refer to advertisement never got an answer to these let-
Dear Sir, have more balance. through word of mouth from ters either. My conclusions are
As a member of the Association Wishing you, the staff and all their satisfied customers. that the ISUG is another way for
for S c i e n t i f i c S t u d y of readers the best for '85. Regrettably, CP Software is its organiser/s to make a quick
Anomalous Phenomena I am in- Regards not such a company! It is indeed buck. (Does a Vic Webber really
terested in cases of anomalous Laurence Creighton most unfortunate that they do exist?)
computer effects. S. Africa not believe in offering their I wrote to you hoping you
Can I appeal to readers for P.S. Anyone want a code to customers an after sales service would publish this letter so that
any information, at first or se- Break Into "Manic Minder"?? to equal, let alone rival com- your esteemed readers would
cond hand, no matter how Write to me enclosing a S.A.E. panies such as OCP, not be cheated out of their
bizarre, c o n c e r n i n g unex- with I.R.C's. MICROSPHERE, LERM, and money just as I have been. It
plainable malfunction or unex- CAMPBELL SYSTEMS, to name would also be a good idea were
pected output? All accounts will a few. Computer magazine publishers
be treated in strictest con-
fidence, and should be sent to:
Bad Attitude I bought a copy of CP Soft- to check on the authenticity or
w a r e ' s "SUPERCODE I I " , otherwise of the clubs mention-
Roger C Morgan Sir, which is an excellent utility pro- ed in their columns.
1 5A Kensington Court Gardens In previous issues of your gram, as well as their "BRIDGE Yours sincerely,
London W8 5QF magazine, as well as other PLAYER", "BRIDGE TUTOR - Charles Bajada
magazines catering.to owners of A D V A N C E D " & "BRIDGE Malta
Golden Chalice Sinclair machines, I have from TUTOR - BEGINNERS" and
time to time come across letters have been very pleased with all
Dear Sir, from readers praising the after- of them. In fact I went as far as I.S.U.G.
Just wanted you to know how sales service offered by certain to r e v i e w their " B R I D G E Re: International Sinclair
much I enjoy your magazine. software houses. PLAYER" program in the
User Group.
More's the pity it couldn't be I too have had similar ex- "READERS' REVIEWS" section I write to enquire whether any of
brought out monthly! I started periences but in addition, as a of your magazine. However, your readers have encountered
computing November '83, and user of mainly business and utili- when I recently came across a problem similar to mine. In
haven't switched off my TV ty software, I am especially their advertisement announcing June 1984 1 paid £ 10 to the In-
since! pleased that there are software "SUPERCODE III" and
dependent Sinclair User Group,
"BRIDGE PLAYER 2 " , I very
189 Rosehill Road, Burnley,
foolishly believed that they, like
Lanes as my first annual
some of the other software
membership fee. Within a few
houses mentioned above,
days I received the first newslet-
would also offer their existing
ter. Since then, despite writing
customers an update service.
several letters, I have received
But no! I was told quite bluntly
nothing further. Neither have I
that they would only exchange
had a reply to my letters.
faulty tapes and if they upgrad-
ed their programs, then they I consider that I am therefore
would draw the line there. justified in denouncing the ISUG
as nothing more than a sham. It
It is sad that CP Software is reputedly run by a man called
should take this attitude and all I Vic Webber. If Mr. Webber is
can say to them is, they should reading this letter I would invite
take a lesson in customer rela- him to justify his lack of action
tions from the companies that I with money belonging to other
have mentioned earlier in this people. If any of your readers
letter. have had this problem, or indeed
Yours faithfully, if they have had successful deal-
S. Datoo ings with this group, I should be
obliged if they would write to me
as soon as possible. I am con-
I.S.U.G. templating a certain course of
action but would welcome com-
Sir, ments from other interested per-
I would like to bring to the atten- sons before I do so.
tion of your readers what some Yours sincerely,
"computer clubs" truly are. In John Scholfield,
July of last year I sent an applica- Blackburn, Lanes.
tion together with a cheque for
£14 to VIC WEBBER ISUG {i.e.
International Spectrum Users
Group ?????) of 189 Rosehill
Bank Charges
Road, Burnley, Lanes., BB11 Dear Sir,
2QX, after reading about the After reading your article about
"club"(sic> in a magazine. On joystick interfaces for the Spec-
paper the "club" really seemed trum, I ordered by bank draft a
a good one but in truth it's a real stick at Downsway Electronics,
NOTHING. I never even received because you tested it as one of

8 ZX COMPUTING JUNE/JULY 1 9 8 5
WELCOME

RAND USR 836


This is a loading function which
loads y o u r p r o g r a m and
automatically breaks into it. To
use the function, type in FAST
and then RAND USR 836.
USR 3086
This function scrolls the screen
and prints something at the
same time. To use it in your pro-
gram, type in PRINT TAB USR
3086;"whatever the message
is" or if you want to want it 5
spaces from the beginning of the
line, PRINT TAB USR
836 + 5;"whatever the
message is".

RAND USR 0
This function clears all memory
including whatever is above
RAMTOP. It is also a quick way
of restoring RAMTOP to normal
if you have lowered it.

POKE I6419,x
This function will LIST any line
from 0 to 2 5 5. Just LIST the line
that you want to view from (e.g.
LINE 1 7) and then type in POKE
16419,x where x is the line
which you have just LISTed.

POKE 16418,0
the best. Unfortunately the bank r e p o r t of the W a f a d r i v e . before saving the code, and to This function will allow the use
in England deducted £3 in Although I still think it is a splen- save it with a BASIC loading line of the bottom two lines of the
charges, so I phoned did item, I think that I have found such as 'LOAD * "name": screen. Use the statement with
Downsway how to handle this. a small 'bug' in its ROM. POKE 65535,n' {n being the a program, as it will not work
They said, they would send the You have probably come PEEK value of 65535). This is after the program has been
joystick to my address, so ignor- across it yourself already, but if effective, though a little broken into or if it is not a pro-
ing the £3 they did not get. you have not, the enclosed copy cumbersome. gram line or after the program
Otherwise I would have had to of my letter to the manufac- I suspect that somewhere in has stopped. Do not INPUT or
pay again by bank £3 and £3 turers will explain it. It may be the Wafadrive ROM is a check- SCROLL in this mode, as the
costs. I think this is a way of ser-
something that you would like to ing routine which ensures that machine will crash. To get back
vice giving of more than 100%. pass on to the readers. the address does not exceed into normal mode, type in: POKE
May be it should be useful if " R e c e n t l y , I bought a 65535, but that the ROM writer 16418,2.
you could indicate in your Rotronics W a f a d r i v e , and has overlooked the fact that,
magazine a way to handle for although I am delighted and im- when saving machine code, the POKE 16510,0
readers on the continent to send pressed with it, there is one sum 'starting address + number If you have a machine code
money to your advertisers. Now small point which I find inconve- of bytes' = 65536. My purpose routine at line 1, and you do not
the total extra costs for me were nient, and which makes me in writing to you is to ask wish it to be accidentally edited,
£2 at the bank in Holland, £2 at think that I have stumbled upon whether you can suggest any type in POKE 16510,0 and line
the bank in England, about a 'bug' in the Wafadrive ROM. short machine code routine 1 will change to line 0. This line
£3.50 plus £ 2.7 5 for import tax If you are trying to save onto which would correct this, and cannot be edited. If you want it
and tax administration fee. wafer a block of machine code which could be used whenever changed back to line 1 again,
Yours faithfully which resides at the top of the it was necessary to save byte type in: POKE 16510,1.
H. A. van Brakel memory, it is impossible to save 6 5 5 3 5 . I should be most
Parnassiaweg 9 byte 65535. The necessary in- grateful for any help that you are POKE 16389,68
8881 CE West Terschelling struction, such as 'SAVE * able to give me." If you have got a RAM-pack con-
Holland "name", 65501, 35' produces I will let you know what they nected, and you wish to go into
the report 'Out of range'. I have say about it, if they reply. 1K Mode without disconnecting
Well, personally, when I've had tried to save the byte by itself, Yours sincerely, the RAM-pack, then you can
to send money abroad I've but SAVE. . . 6 5 5 3 5 , 1 pro- (Mrs.) Carol Brooksbank lower RAM-TOP to 1 K by typing
found an International Money duces the error report, and Tile Hill in POKE 16389,68 and then
Order, bought from a Post Office SAVE. . . 6 5 5 3 5 , 0 does not Coventry NEW.
(no bank charges!) the best way save the byte.
of doing things — Ed. For the same reason, it is im-
possible to save all the User
More POKES POKE 16389,128
If you are in 1K Mode, and you
Defined Graphics. The usual in- Having been a ZX-81 computer would like to get back to 16K
struction 'SAVE * "name", enthusiast for a few years now, I Mode without losing your pro-
wafadrive USR " a " , 21 * 8' produces have picked up many bits and
the same error report, though if bobs which have helped me on
gram, type in FAST and then
POKE 16389,1 28. Now type in
Dear Ray, you are prepared to save only 20 my journey through BASIC. I LIST and WAIT.
You mentioned in the Dec./Jan. UDG's, all is well. have compiled a list of some of Yours faithfully,
issue of ZX Computing that you The only solution that I have these bits and bobs into the S. Huggins,
intend shortly to give a detailed so far found, is to PEEK 65535 following list: Northampton. .J

9 ZX COMPUTING JUNE/JULY 1 9 8 5
GENERAL NEWS

OCP and watford = I'm not too sure of them myself


so I'll be reading their press
the versions supplied with their
machine!
supermarket fit shopping baskets
to them and let shoppers drive
Business releases with interest! One of the greatest benefits around their stores?). With a bit
of the new versions is that they more enterprise from other
The OCP suite of office pro- can operate with floppy and areas life could be much more in-
grams Stock, Purchase and Meanwhile hard disk peripherals, a serious teresting!
Sales Manager really provide im- criticism of the older programs A lot of promotion is going in-
pressive power for a small The slowly developing market
for QL software and peripherals as public confidence in the to this product, rallies, exhibi-
business, handling 6000 items microdrives has yet to be won. tions and even a Land's End to
as a standard and up to 1 5,300 looks a little healthier lately.
Strangely enough the falling Still determined to get into the John O'Groats run is being con-
items if required. educational field, and why not I sidered. Despite criticisms on
The choice of the Watford pound has been cited as a fac-
tor. It appears that as our pound ask, I know of many teachers the grounds of safety, 5,000
Electronics disk interface from who prefer to use the Spectrum CS's have been sold so far.
those available was explained as is worth less, the QL is more
competitive in the international to the BBC, Sinclair Research I am peeved!
ideal because of the compact gave 5 2 5 machines to I asked for one to try out say-
DOS, the small amount of Spec- market. It's an ill wind etc, etc;.
Strathclyde University with the ing I was waiting for the review
trum memory required by the Anyway, at the time of going intention that every student
to press there are 33 software sample and was told I would
system, its speed, and high who needed one for his studies have towait a long time. Igetthe
capacity (800K on a single dou- packages, available w ith several could have one. A great idea Sir
more in the pipeline, and 17 impression that Sinclair won't
ble sided disk up to 3.2 Mbytes Clive, but why stop there, why be sending us one.
with a four drive system!). peripherals on sale for the not give one or two to every
machine. One such package is
This is in line with the existing
program available with this GST's QL Assembler, this tends
school in GB, that would really
upset Acorn! And how about
Cut price Saga
system, Tasword II, Masterfilm to emphasise the 'serious' use one for our office while you're at
of the machine as only keen pro- Saga Systems have cut the price
and Omnicalc is supplied on disk it. Thanks. . . of their Emperor keyboard for
with the system as part of the grammers or commercial writers
are likely to want to use machine the Spectrum. Explaining that
package. drop from £54.45 to £ 4 9 . 9 5 ,
I have been convinced of the code.
The other interesting thing is
QL steps out Saga's David White commented
potential of the Spectrum for that: "because we have now
serious use for quite some time the price, £39.95. Those who Sinclair's aim is to sell 200,000 reached sales of 10,000 units,
now, in fact this issue is typed upgraded from the Spectrum QL's in the UK this year and I the manufacturing cost has
on a Spectrum with Saga 1 will be upset at the price of QL hope he achieves that target, fallen and we have passed this
Emperor keyboard, Tasword II, software, but you have to bear but there will no doubt be a few reduction on to the consumer."
Euroelectronics ZXLprint III, in mind that the machine was minor modifications before the
designed as a business machine David White also remarked
Centronics printer interface and public take it to their bosom, it that the Emperor is compatible
a Shinwa CP80 printer, so it is and business users are used to could do with a drop of £50.00
paying in the hundreds for their with the Spectrum+ , though
good to see companies taking or so for a start. Outside the UK, quite how that would work
advantage of its capabilities. software due to the limited sales Sinclair will be launching the QL
such programs can be expected. escapes me at the moment.
via mail order in the United Nonetheless the Emperor is a
QL Drive States for $ 4 9 9 . Managing nice unit and received a good
QLUB revamped Director Nigel Searle will be
heading the operation which will
review in our February issue.
It is no secret that Sir Cltve is Also on the way from Saga
disappointed at the response to Not only the software but also include marketing and collabora- are a Graphpad and joystick in-
the QL in respect of the number the organisation has been tion with American Express. A terface which, used together
sold but rather than cut and run, modified and now members of similar arrangement some years will allow you to draw pictures
Sinclair Research have decided the QL User Bureau have better ago led to 50,000 sales of the onto the television screen using
to put more money and more facilities. now m y t h i c a l Z X 8 0 , and a joystick. Further details should
promotion into their wonder For a start, membership is Sinclair obviously hope to repeat be available shortly. Saga can be
machine. free to all purchasers of the QL this success. contacted at 2 Eve Road, Wok-
One of the problems is that after March 4th upon product ing, Surrey GU21 4 JT.
the market has moved on from registration (that'll peeve those C5 trundles on
the hobbyist/enthusiast owner
who could discuss at length the
who paid!), and a free telephone
helpline service is available from
New Gen Squash
The C5 has gained a certain
relative merits of the Z80,6502 Psion between 9.30 and 5.30 notoriety, especially as it is a The latest in the long and in-
and the 68000 CPU to the every weekday. fairly regular star of Spitting Im- creasingly sweaty line of games
general user whosimply looks at Old members of the QLUB age. Many members of the based on sports is New Genera-
the amount of equipment he may feel less irritated however public have taken to it and I tion Software's 'Jonah Barr-
gets for his money. In this light as they will not have to pay for suspect that it is because it ington Squash'. Developed with
who can deny that the Amstrad the new, improved version 2.0 looks like fun, not a word usually the help of no less than Jonah
looks to be one of the best of the Abacus, Archive, Easel associated with travel now- himself, the game features voice
deals? However, Sinclair are and Quill programs. Non- adays. synthesis which announces the
c o n v i n c e d t h a t t h e y can members are being charged at Quite a few retail shops have scores. The price is not yet
educate the non-specialist into £1 5.00 per program or £50.00 decided to stock it including known, but hopefully we will
u n d e r s t a n d i n g w h a t the for the set. New owners should, Comet and selected Woolies review the game next time
benefits of the QLare, I must say of course, check that these are (why doesn't some enterprising around. B

10 ZX COMPUTING JUNE/JULY 1 9 8 5
BOOK NEWS

BOOK NEWS • Our own regular contributor Alan Giles is a professional writer
and his latest book, published by Melbourne House is "Quick QL
Machine Language" which costs £7.95.
Fans of his series who own a QL will no doubt rush to get it, if you
are not interested in the topic on which he writes for us at least you
can read it to get an idea of his literary style. It's well produced as are
Collins Collection £7.95. This is well written,
much easier to understand and all the books we've seen from this company.
contains information and in-
For general interest or CSE/O structions on the text and • Fontana Paperbacks came out with a great idea some time back
level exams, an interesting book graphic functions of this com- with a series of books which involved the "Bytes Brothers". These
is "The Automated Office" by plex and versatile piece of equip- books provided pure enjoyment but also some educational value as
Burgess and Joseph St. John ment. Perhaps the manuals are computer programs were a feature of each episode. They are all
Bate, priced at £7.95. The deliberately badly written to written by Lois and Floyd McCoy and at £1.25 each they provide
author attempts to show the allow enterprising individuals to simple computer concepts and a means of motivating slower
d e v e l o p m e n t of t h e new write books on it, a sort of job readers. The full range consists of: Input an Investigation, Program a
technology and its effects upon creation scheme? Problem, Enter the Evidence, Compute a Clue, Record a Robbery,
the traditional office worker and Garry Marshal! has written and Go To A Getaway.
even which jobs may cease to "Microcomputer Puzzles"
exist. Each member of the office which is a collection of problems • An unusual book from Sigma Technical Press, written by Gareth
is examined in detail, the which first appeared in the Greenwood and priced at £6.95, the "Micro Cloak and Dagger
secretary, clerk, manager and Observer magazine. Each puzzle Book" is a book about creating, writing and solving codes and about
executive. Equipment and is set up with background infor- cryptography in general. I know from the letters and programs we
developments in technology are mation and hints and techniques get sent that there is a good deal of interest in this field and I expect it
examined and discussed and an are suggested, you are then left will sell well.
idea of the future is formulated. to write the program. Solutions
If you are fortunate enough are given at the back of the book c
so if you are the compulsive «npartfon
to own an Epson printer then
you will know that it is harder to peeker type then there is not
understand some bits of the much point buying the book, but
manual than to learn machine if you enjoy a challenge and are
cod el wondering what to turn your
Susan Curran to the rescue computing ability to then this is
with her book "Get More From an amusing and absorbing way
The Epson Printer" which costs of spending some time. £6.95

I Accolade indeed when a book such as "The Sinclair Story" is


in Brief published by Duckworth. Written by Rodney Dale and priced at
£9.95 I'm sure the interest in this erstwhile folk hero of the masses
• Fontana have an interesting range of books on the market for the (and that includes yours truly) will ensure good sales.
Spectrum and even one which includes the ZX81. Carolyn Hughes
has written the 1 st and 2nd "Steps With Your Spectrum" at £ 1.2 5 • "Capital Radio's Book of Computers & Simple Programming" is
and £1.50, "Tim Hartnell's Giant Book Of Spectrum Games" is jointly credited by Interface Publications as being written by Kelly
£3.95, "The Good Software Guide" by Matthew Spencer is Temple (Capital Radio DJ) and Roger Munford (Ex ZX Computing
£3.95, "Better Programming for your Spectrum and Z X 8 1 " and Editor) and Peter Shawe (Ex ZX, Computing contributor). Obviously
"New Adventure Systems for the Spectrum" are both by S. Robert we wish them well with it and it's nice to know there's life after ZXC!
Speel at £3.50 and £3.95.
• Sinclair's Logo program is comprehensively documented and I
• Andrew Pennell has written "The Sinclair QDOS Companion" was surprised to see "Logo on the Sinclair Spectrum" by Graham
which gives would-be machine code programmers a good idea how Field published by Papermac.
the QL performs and how to utilise some of the powerful features As I glanced through I realised that this is actually a nice comple-
built into its operating system. £6.95 from Sunshine Publications, ment to the manuals supplied and suggests alternative means and
12/13 Little Newport St, London WC2H 7PP. Also from them is methods. Logo is such a vast and versatile language that no doubt it
"Sinclair QL Adventures" by Tony Bridge and Richard Williams could support several books like this without exhausting the
which features a specially devised adventure generator. £5.95. possibilities.

' Attention all TEACHERS! If you're browsing hoping to make • "Machine Code Extensions for Spectrum Basic" by Rob Baines
sense of this technology because the Head has dumped a computer and published by Hewson Consultants at £4.95 is a superb collec-
on you then I recommend "Computers In The Primary School" as a tion of routines which add BASIC commands such as PROC, DEF-
book full of advice, simple beginners instructions, ideas, sugges- PROC, ENDPROC, IF/THEN/ELSE.
tions and reviews. Perfect material and should be compulsory Careful entering and a fair bit of time is needed to enter all these
reading, available from Macdonald & Evans Ltd, Estover Rd, routines but it is a task worth undertaking if you intend doing a lot of
Plymouth and written by Terry Russell. basic programming.

• "Beginning BASIC with the ZX Spectrum" (&Spectrum +) by • Two books from Century Publishing Co, Teach Yourself
Judith Miller is published by Macmillan at £ 5.9 5 and is a straightfor- Assembler Z80 by Paul Overaa and "Assembler Routines for the
ward guide to programming concentrating on practical examples. Z 8 0 " is by David Barrow and both are £7.95.
The more complex maths functions are deliberately omitted and The first is a rather general but nonetheless good book and the
at the end of each chapter some questions and tasks are set — there second is a collection of general routines, most of which can be used
is an excellent chapter on making music! If you want to study pro- on the Spectrum or ZX81 but is most suited to the programmer who
gramming then this could be the book for you. thinks in Hex and considers Basic beneath contempt.

ZX COMPUTING JUNE/JULY 1 9 8 5 11
HARDWARE NEWS

which has three sockets and


Kempston Grand provides for the Kempston,
Prix Sinclair or cursor keys control,
Two new joysticks from Kemp- which makes it a very versatile
ston, the Formula 1 is based on device. Also applied is a ROM
the Pro 5000 model but has the cartridge port for the rather rare
switches changed to micro swit- cartridges that were supposed
ches and has been moulded in to take the game playing world
the colours of the Kempston rac- by storm.
ing team, as has the Formula 2, And finally, rehoused in a
which is in the pistol grip style Spectrum + type case is their
with buttons on both the base Centronics E interface to run one
and the top of the stick. of the many full size printers.
Their new model of joystick They claim it is compatible with
interface retains their 'Kemp- most other interfaces such as
ston' standard mode of opera- disk, micronet and interface 1.
tion but has rehoused in a case Although their publicity depart-
more fitting to the Spectrum + ment sent five press packs on
style. Complementing this is these items, not one of them
their 'Pro' joystick interface mentioned a price!

Microframe gives "Catalogue", "Format", and


a little bit more "Erase". The system used in the
DOS is logical and simple, ie
Gordon Micro Ltd. has just an- Load D1 "name". The com-
nounced their Microframe. Ap- mands are programmable and
parently, it not only has a floppy the "name" can be a variable
disc controller interface for use assigned during the run of the
in any model of the Spectrum, program.
but because of its five slot mother- Because the Microframe has
board, they say it's a micro- a soft operating system, each of
sized version of the Mainframe the interface cards shortly to be
Computer, allowing the serious announced by Gordon Micro,
user the opportunity to learn and such as RS232 — Centronics
experiment with real computer Parallel, Input/Output Ports,
applications. Digital to Analogue Convertirs,
The floppy disc interface, Robotics, Bar Code Reader and-
after a reset and a RUN com- Joystick Controller will have
mand, automatically, through basic statements directly pro-
the on-board PROM, calls the file grammable to operate them.
"SYSTEM" and loads the disc They are keen to promote the
operating system (DOS) into the e d u c a t i o n a l value of the
on-board 1 6K RAM, which has Microframe and cards, therefore
the same address location as the with each of the modules,
BASIC ROM which means that documentation is given explain-
no register or memory are used ing the circuits and the software
on the Spectrum. used. For further information,
The DOS seems very com- contact: Gordon Micro Ltd., 3
prehensive and supports the Callendar Road, Heathfield in-
commands "Load", " S a v e " , dustrial Estate, Ayr KA8 9DJ.
"Merge", " O p e n " , "Close", Tel: ( 0 2 9 2 ) 2 8 0 4 6 7 .

12 ZX COMPUTING JUNE/JULY 1 9 8 5
HARDWARE NEWS

feature of the QL. The interface


1.44 MB disk which supports up to four drives
system for QL on a standard multibus provides
a whole host of resident utilities
Micro Peripherals Ltd have pro- including a screen editor, job
duced a 3.5 inch floppy disk control as well as additional file
drive system to operate with the handling commands.
Sinclair QL. With its ease of installation
The system which has been the disk drive system makes an
designed and manufactured in ideal compliment to the QL's
the UK with cost in mind is powerful 68008 processor and
available in three separate units is suited to small business and
which can be purchased in- mass storage applications. The
dividually. These are an inter- interface module has an RRP of
face module, first and second £99 and the first and second
disk drives. Each drive is housed Disk Drives are available for
in a rigid black textured steel £189 and £159 respectively
case. The two Drive system has (all prices ex VAT). Micro
a total formatted capacity of Peripherals Ltd, Intec Unit 3,
1.44MB and provides fast file Hassocks Wood, Wade Road,
Basingstoke, Hants. RG24 0 NE.
The year of the educational dimensions which
could be explored, for instance
handling using the multitasking
robots? IGR suggests it could be used to
play with the cat(?).
As prices drop and technology Now, regular readers may
advances many people are have noticed that my moggie
becoming more interested in the has not been mentioned for the
application of the computer to last couple of issues, this is
robotics. Intergalactic Robots because after the last encounter
Ltd (IGR) have produced a ver- with a computer when he was
satile device which sells for nearly electrocuted every time
£79.95 in kit form, £99.95 ful- the power went on, he avoids it
ly built or £129.9 inclusive of whenever he can. Still I'll ask
Sinclair's Logo program. The lat- IGR for a loan of one of these
ter in particular seems a very Zero 2 robots and let you know
good deal. what it does for the Spec-
Apart from the great fun this trum/Feline relationship. IGR,
area of computing opens up Unit 208, Highbury Workshop,
there are many practical and 22 Highbury Grove, London N5.

Data Deutche claimed that the head is easily


From Germany and marketed by adjustable from the outside, an • Turn your ZX81 into a robot with Maplin's "Trundle" package,
Twillstar C o m p u t e r s , (17 important feature which is im- on sale for only £49.95 (not including a ZX81). Contact them at
Regina Road, Southall, Mid- portant yet all too frequently PO Box 3, Rayleigh, Essex SS6 8LR.
dlesex) comes a large im- omitted.
• Full colour screen dumps can now be printed on the Seikosha
pressive looking cassette data I would have liked to have GP700 or the Epson JX80, and four colour dumps on the CGP11 5
recorder. commented on how it perform- and the MCP40, thanks to the latest version of the Euroelectronics
The unit stands upright and ed and indeed, Twillstar very ZXLprint III.
Twillstar claim that it has a preci- kindly sent one along, unfor- The software is included in an onboard Eprom and it still costs
sion tape drive and was design- tunately the mains adaptor was £34.95 + £9.95 for a cable. I use this interface to produce the
ed specifically as a computer a two pin round one and incom- listings for ZXC and have nothing but praise for it and the company.
recorder to make it more reliable. patible with our three pin-square They can be contacted at 26 Clarence Square, Cheltenham, Glos.
Manufactured by the Walton sockets, the instructions were in
• Chaos was caused over the suppliers of the Slomo device which
Electronics plant in Munich and German and I did not like the look
we reported on recently, however all is now clear and it is being
given the title MC3810 it of a sentence that begain
marketed by Nidd Valley Micro Products Ltd., Stepping Stones
features a tape counter and a " A c h t u n g . . . " The cost is
House, Thistle Hill, Knaresborough, N. Yorkshire at £ 14.95 and a
series of lamps to indicate the £25.95 + £3.95 for cables +
super, useful little device it is too!
various functions. It is also £4.95 for the PSU.

ZX COMPUTING JUNE/JULY 1 9 8 5 13
SOFTWARE NEWS

BUDGET Atlantis Software c o m p i l e d f r o m BASIC t o


machine code Using the Mcoder
This company has two ranges of from PSS. This is not bad in

SOFTWARE
games available, their normal itself, but to get professional
products at £1.99 which in- graphics you need separate
clude "Eights", a card game user-written routines.
favourably reviewed by Clive Good games which would
Smith, and the new £2.99 have been excellent value at the
Lately the market has seen an in- should try this one as I'm in my "Atlantis Gold" programs. £1.99 price and, though lacking
crease in the amount of soft- second childhood already! As we go to press there are sophistication, are fun.
ware available in the £1.75/ QUANN TULLA - a moderate t w o in the latter category, El Dorado is their adventure
£3.50 range and I thought we'd d i f f i c u l t y space adventure Nicotine Nightmare and Self game in which you are trying to
take a closer look this month. where your task is to save the Destruct which are arcade type re-establish Inti as one of the In-
universe from the Empire. I programs with elements of the ca Gods. This is quite complex
Games without spent ages on this one, I solved
the initial problems easily
chase and jump programs. They
are fair games, the graphics are
and interesting and one to col-
lect if you are into adventures or
Frontiers enough but then couldn't find not bad, rather like early Spec- one to try if you are not. This one
8th Day Software the cupboard key even with the
aid of the Hint S h e e t .
trum games and movement is a is priced at £1.99. Atlantis Soft-
little jerky. This is probably a ware, 18 Prebend Street, Lon-
There are six programs available Frustrating. result of the fact that they were don N1 8PF.
from this company at the mo- IN SEARCH OF ANGELS -
ment, all text adventure games again moderate difficulty but
and all produced using the Quill with a "James Bond" type
adventure writing program. theme.
Although they have been out for FAERIE — is an advanced dif-
a while now, testing and review- f i c u l t y game w h i c h t h e y
ing adventure games tends to describe as a "surrealistic fan-
take longer than arcade games. tasy", Titania, Cyclops and a
The set is very well presented Snowman are among the cast of
and each program has a difficul- characters.
ty level given so you can go FOUR MINUTES TO MIDNIGHT
straight to the more complex if — also advanced level, sets you
you are a hardened adventurer as one of the 10% of the sur-
or ease in gently if not. The vivors of a bacterial holocaust.
topics are varied and interesting Here you don't save civilisation,
and, to give them briefly are: you rebuild it.
ICE STATION ZERO - a begin- A great selection to cover
ners game which has you trying most tastes, the games have a
to defeat Stirling, the mad ter- nice atmosphere and are well
rorist who has taken over the designed to allow you to begin
polar research station and ptay and then present a problem,
threatens to destroy New York. by then you're hooked and will
It has some quite devious spend time working out the solu-
twists, and once you get to the tion. (Hopefully). At this price
station you only have 30 moves you may be tempted to buy one
in which to complete the even if you've never played an
necessary tasks in sequence! adventure before and I'm sure a
CUDDLES - moderate difficul- lot of new fans will be won,
ty in which you are a young child greatly recommended.
entering the rather unfriendly Available from 18 Flaxhill,
land of make believe. Cliff said I Moreton, Wirral L46 7UH.

5D Software start. The inserts are commer-


cially printed but with amateur
tronic before rushing into the cut
throat, competitive world of
can, an unusual feature is that
some creatures will trade with
Six tapes each at £3.45 and artwork, some of this does look commercial software. you rather than simply attempt
each tape contains two or three quite attractive though, Gavin Barker, 12 Fleming to destroy you.
games. Gavin Baker has shown Racehorse Trainer for example. Field, Shotton Colliery, Co. At the price they sell at I
great initiative in setting up this Cavern Chaos and Ptarmigan Durham DH6 2JF. would wholeheartedly recom-
venture and I only wish I could on one tape are two adventure mend that you add this one to
recommend his programs to programs which work quite well your collection.
you. and in my opinion are the best of Finders Keepers
The fact is that they are not the bunch, mainly because Mastertronic (1.99) Soft aid
very good, they all seem to be adventure games are reasonably
based on other games, although acceptable in BASIC. Weed At- Having mentioned Mastertronic Computer people have always
quite ingeniously disguised, and tack, Electron, Wash 'n' Slosh it is nice to be able to give the impressed me as being the most
are either written in BASIC (not are the main titles of the other thumbs up to their latest release. pleasant and cheerful that I have
very successful for arcade three separate tapes. All these When they began they suffered met. There are a few exceptions
games) or compiled by the PSS games are of about the standard from much the same problems I admit, but in general that goes
program which produces the of listings which are printed in as does 5D but they have listen- for the users, the manufacturers
problems we mentioned with BASIC in most mags. ed, learned and succeeded. and the media.
the Atlantis games. As I said, I admire the attempt This game is a beautifully It was only to be expected
Also, they suffer from ir- but really you ought to take the produced graphic maze game, really that when someone came
ritating flaws, in PAINTCRAZE time to learn machine code, the animation is smooth and col- up with the idea to do with soft-
for instance, if you are caught at don't take the admiration of ourful, and in play it is quite ad- ware what Bob Geldof did for
the paint pot then you have no friends and relatives too serious- dictive. You, as a knight of the music in aid of Ethiopia then the
way of avoiding the monster ly and look at the competition Polygon table must search and response would be overwhelm-
when your subsequent lives from companies like Master- find as many treasures as you ing.

14 ZX COMPUTING JUNE/JULY 1 9 8 5
SOFTWARE NEWS

Soft Aid is the title of the and get a superb collection and In Brief
compilation of programs from help those less fortunate than
most of the major software ourselves. And if you pirate it • From Collins publishers comes the Collins Gem Revision Soft-
houses w h i c h have been then may your Spectrum wither! ware, there are four sets of their established revision booklets com-
donated for this project. And plete with a question and answer type computer tape which con-
every program on it has been a
best seller. In fact, the response
Go for Gold sists of nine independent programs. Suggested for CSE, O level
and the new 1 6 + exams the subjects covered are Physics,
was so great that several com- British Telecom leaves the Biology, Chemistry and of course, Computer Studies. Each pack
panies could not get their pro- realms of budget software with costs £8.95 and is available from most larger stores.
grams included, and these are the launch of their "Gold Edi-
acknowledged on the insert. tion" range of programs. These • Leonardo is the program which should put the spark into the
However the games from those sell at the more normal price of Creative Sparks products. It is a graphics package which appears
who did get their programs used £5.95 for the graphically ex- to provide sophisticated drawing capabilities for the Spectrum.
make this the best collections of cellent Buggy Blast and the top Aimed at programmers, artists, draughtsmen and doodlers, it con-
programs ever to be marketed. priced and challenging Gyron at sists of the drawing package and a user program to allow you to ac-
For £4.99 (in many cases £9.95. tually make use of your creations.
this is less that the original price Gyron is a 3D maze game Priced at £9.95 we'll get Colin Christmas to give it an in depth
of the individual games on this which requires both strategy review as soon as we get a copy. Available from good computer
tape), you get Spellbound from and arcade reactions to suc- shops.
Beyond, Starbike from The ceed. Two programs are sup-
Edge, Kokotoni Wilf from Elite, plied on the cassette, a begin- • All four of the Psion QL programs have been modified and im-
The Pyramid from Fantasy, ners game and the "real" game. proved, if you get a QL now make sure the version supplied is the
Horace Goes Skiing f r o m With each copy of the game 2.0 set. Existing owners who have forked out to be members of
Melbourne House, Gilligan's there is a free entry form to allow the QL club get it, but if you haven't then it'll cost you.
Gold from Ocean, Ant Attack you to take part in their competi-
from Quicksilva, 3D Tank Dual tion, each entrant who sends • More revision software from Megacycal Software Ltd. All are
from Real Time, Jack and the the correct solution will gain a good study aids and the titles are Images (ray construction
Beanstalk f r o m Thor and place in a tournament to find the diagrams) DC (current electricity), Motion (velocity and accelera-
Sorcery from Virgin. Plus the hit overall winner. And what does tion) and Revise Physics..
single recorded by Band Aid. the winner get? Nothing less I haven't got a price list but the company is at PO Box 6,
than a Porsche 9 2 4 (One Birkenhead, Merseyside L43 6XH. I have sent them to Mike Ed-
Out of every tape sold £3.00 munds for a review along with the Collins programs.
goes to the fund, the rest is used owner, ex-software house pro-
to cover basic production and grammer — not really, only jok-
ing) or its cash equivalent. Can't • Even more Educational programs! Two tapes from Software
distribution costs. So if you
be bad! Cottage each with two programs on a musical note. Firework
haven't got it by now, go get it
Music and Water Music provide drill and practice exercises and
Jumpy Snake Blues and Honkey-Tonk are game based activities.
The cassettes are £6.95 each and can be obtained from 19
Westfield Drive, Loughborough, Leics LE11 3QJ.
A great bit of news is that they also do ZX81 programs, Music
Education 1,2, and 3 and Firework Music are the four programs in
the range and cost £5.00 each.

• Level 9's adventure programs must be among my favourites, I


daren'tstarttoplayoneorthat's the end of my work for a week or
two! (It could be even longer, I still haven't solved Lords Of Time).
So, it was with mixed feelngsthat I saw Emerald Isle released, not
only with 230 locations but with 230 graphic illustrations too.
They assure me that it is slightly simpler than their other adven-
tures and because of this it sells at £6.95 instead of their usual
£9.95 price. Oh well, if this issue is late then you'll know why.
Level 9 are at 229 Hughenden Road, High Wycombe, Bucks
HP13 5PG.

• Light Magic sounds like an impressive art and design program


from New Generation Software, brush mode has ten different
brushes in twenty different sizes!
It was developed as an aid to their in-house graphic designer
Activision action version.
Great European Road Race Sally Ann Batley and proved so impressive that they decided to
requires the skills involved in market it. Many exciting features such as mirror, copy, move,
With their stated aim of being
driving in a rally and could be a enlarge, fill and rotate, are also included.
the leading software house of
1985, Activision have a whole hit among fans of this kind of It is available from the company at The Brooklands, 1 5 Sunny-
new range of programs released game. For fans of their pro- bank, Lyncombe Vale, Bath BA2 4NA and will set you back
or about to be released. grams, Activision are running £14.95.
Ghostbusters must be their their o w n s o f t w a r e club,
most spectacular success so far membership of which is free. • Mirrorsoft continue to keep up their output of a variety of pro-
and it will be interesting to see if The main business is, of course, grams, Phineas Frog, Secret Agent is described as an arcade
any of their subsequent games to advertise and sell their adventure, Ancient Quests is a two-game pack which puts you in
will match its success. games, however the last issue the pyramids and in Dracula's castle, and Caesar's Travels is
contained 16 colour pages and descibed as a "unique animated interactive program/storybook
The Music Studio is an am- pack". Sounds fascinating.
bitious program which uses the also contained news, articles
and reviews. Anyone who Star Seeker is a planet, star and constellation simulation pro-
limited sound features of the
wishes to join the club should gram. The first three cost £7.95 and the last is priced at £9.95.
Spectrum to create music. As it
was initially planned on the write or phone Activision at 1 5
Harley House, Marylebone • Highsoft announced recently that their acclaimed Highsoft C
C 6 4 , A m s t r a d and MSX
machines it will be interesting to Road, L o n d o n N W 1 , Tel compiler is to be sold retail and should be available from most
see whether it manages the con- 01-486 7588. discerning software shops.

15 ZX COMPUTING JUNE/JULY 1 9 8 5
SOFTWARE NEWS

Look out for the game of the show Supergran, will it do for Chaos is their latest and is for one to eight players. The press
Tynesoft what the song did for Billy Connolly? release looks interesting (£7.95). And finally, D Day has been con-
verted to run on the QL, however it has also undergone a price con-
• We look forward to receiving a review copy of Cauldron from version to £24.95 — if you buy an expensive machine than you
Palace Software, the screen shots look first rate. They are at 275 can afford. . .
Pentonville Road, London, N1 9NL and the game costs £7.99.
• Metacomco have reduced the price of their QL Assembler
• We keep getting press releases for The Rocky Horror Show pro- Development Kit to a mere £39.95, above comment applies. No
gram but so far it has failed to materialise, it had better be good address but their phone number is 0 2 7 2 4 2 8 7 8 1 .
after all this delay! CRL describe it as a fully animated graphic
adventure and guaranteed non-sexist. • Two good adventures which fans of this genre could well enjoy
are Clues ' 0 ' and Curse of the Seven Faces from Imperial Soft-
• Minder is complete and DK'Tronics tell us they're only waiting ware.
Thames TV's approval, hopefully they will have it before this gets Clues ' 0 ' has many references to a certain French detective and
on the shelves of your local newsagents. some quite humorous messages and events. The programs are
£8.95 each and should be available from your local shop, if not try
• With the 128K of memory available Talent Computer Systems Imperial House, 1 53 Churchill Road, Poole, Dorset.
have released two text adventures for the QL. The Lost Kingdom of
Zkul is a traditional sorcery game and West is set in Indian territory. • Simtron of 4 Clarence Drive, East Grinstead, West Sussex
Both are priced at £19.95. RH19 4RZ have produced Car Cure which is a sort of computerised
GraphiQL looks like a very comprehensive graphics utility pro- fault finding manual. An interesting idea especially if you have
gram and most of the functions you can think of are included, I say been banished to the garage with your computer. Simtron are sell-
most because no matter how comprehensive it is someone is ing their program at £9.95.
bound to think of something not included if I say "all". This one
costs a massive £34.95, expensive by home computer standards • Stay Kool continues the trend of mispelt titles. This one is from
but cheap by business/professional standards. that well respected and experienced company Bug Byte. For
Talent are at Curran Buildings, 101 St. James Road, Glasgow £6.95 you can explore over fifty locations of a spaceship in full car-
G4 ONS. toon style animated graphics. Available from most stores or Bug
Byte Ltd., Mulberry House, Canning Place, Liverpool L1 8JB.
• For the machine code programmer, Tomorrow's Dream Soft-
ware have produced Titan. This is a machine code monitor and • CCS extend their already vast range by two more programs;
debugging utility and is well written, easy to use and an invaluable Maverick lets you play Jackpot Draw Poker against five op-
aid to sorting out those fatal crashes. A wide range of useful func- ponents, each with different "characters". Learn or develop your
tions are provided including relocation, single stepping, string skill without risk of losing a lot of money or getting shot.
research and breakpoints. Nato Alert is a non-nuclear strategy/wargame simulation which
The company hopes to branch out into arcade, adventure and I'm sure will find enthusiasts ready and willing to purchase. Both
strategy programs, and if they are as well written as Titan then it games are priced at £5.95 from Cases Computer Simulations Ltd,
will be a new and exciting company to watch. Available from Rich- 14 Langdon Way, Blackheath, London SE3 7TL.
mond House, 1B Sydenham Road, Bristol BS6 5SH, Titan costs
£8.00 on tape and £1 5.00 on microdrive cartridge. • Ski Star 2000 marks Richard Shepherd's debut into the arcade
field. It appears to be a very flexible and unusual program in that
• A load of releases from Games Workshop recently which in- you get a 3D skier's view as you run the course and there are 16
cludes Tower of Despair and its sequel Key of Hope. We received basic courses of which two are infinitely redesignate. The com-
our first copy of one of their games recently and it should be pany reside at Elm House, 23-25 Elmshot Lane, Cippenham,
featured in one of the review sections, look for Talisman. (£7.95). Slough, Berks and the price of the program is £7.95.

original as it must be possible to distribution system. Ocean have


get, a straightforward Zap-em- acquired most of the rights and
all game, it will be a favourite are actively involved w i t h
among young arcade fans and I Websters in the distribution of
forecast that it will have a good- these games, the only thing now
ly run at the top end of the is to see whether they match up
charts. to the advance publicity.
In line with the general trend Blue Max is a flying gme
of boosting sales with prizes which involves dealing out
they are offering a genuine death and d e s t r u c t i o n by
Moon Cresta arcade machine to shooting down enemy planes,
the first person to get a score of bombing targets and straffing
over 30,000. Check with them gun emplacements and tanks.
first that it hasn't been won as Good clean family fun.
these offers tend to be won Bruce Lee pits you against
almost before we can print various foes including a wizard
them. £6.95. and you have to dispatch them
Also at the same price is Con- using your more human, but no
fuzion of which I have little infor- less lethal, weapons of hands
mation except "The confusion and feet. This features twenty
The incentive technology.
Anyway, congratulations to
innovation — Hundreds of con-
fuzion bombs on sixty four
locations and multiple player op-
tions. £7.95.
incentive Tom and runners up Rex Taylor levels". Make of that what you Yet another club to join, the
Well the Ket trilogy was finally and Mark Procyshyn. will. US Gold Club, however this will
won by Tom Frost aged 47 and Incentive's latest program is cost you £9.95 + 75p P&P. For
it's great that, for a change, it
wasn't a young whizz kid. Don't
a conversion of the arcade
classic Moon Cresta, now this
U.S. go for gold this you get a sweatshirt, badge,
poster, membership card and
get me wrong, I've nothing was a particular favourite of The adverts for this range of pro- discount on software.
against younger computists, it's mine in the arcades and I was grams from the states have US Gold, Unit 8 , The
just that we all tend to forget rather dubious about how it been around for a while now but Parkway Industrial Estate,
sometimes that people of all would transfer. But, was I sur- at last the games have started Heneage St., Birmingham B7
ages use and enjoy t h i s prised) It is as close to the to emerge from the confused 4LY.

16 ZX COMPUTING JUNE/JULY 1 9 8 5
mmm

CASSETTE/DATA RECORDER
For your home computer, will allow easy loading of even the most
stubborn program. Features include single key record,
mains/battery, accepts standard computer leads and 5 pin
DIN connector. Also provides exceptional audio quality
tor fine listening. ^ ^ _
(Batteries not included) £ , ^ 4 . ^ 0

MEGASOUND
For 48K Spectrum and ZX Spectrum +.
Achieve amazing sound capabilities that
your Spectrum has been lacking. Just plugs
into the user port at the rear of your computer
and amplifies sound C 1 A QC
through your T.V fclU-SjO

SPECTRUM JOYSTICK INTERFACE 56 WAY EXTENSION*


Simply plugs into the user port at the rear of CONNECTOR
the computer and accepts any Atari style joystick Cheetah s 6" long extension cable
including Quickshot and Kempston. enables Spectrum peripherals
Comes without rear C 1 1 c n to be distanced
edge connector at t I I .OU from your computer £7.95 fcs

or with connector which allows other


peripherals to be stacked
32K RAMPACK up at £12.75
Upgrade your 16K ZX Spectrum
now! The Cheetah 32K Rampack
simply plugs into the user port at the lll'
TO
rear of your computer and increases
AERIAL SPLITTER
the memory instantly. OQQ QC
to 48K t j y . y o Cheetah's neat splitter unit
complete with self adhesive pad
allows you to keep your T.V. and
computer aerial leads plugged in
without disturbing p g y tyg-
R.A.T. the picture t ^ . ^ O
Conventional joysticks
are dead! The Cheetah
Remote Action
Transmitter is the most
sophisticated computer k
i... •
controller available!
Infra red transmission -
so there are no leads
trailing across the
Milillflli
living room. Touch
control, extremely fast, HI-STAK FEET t

can be used with These instantly applied stick on feet EXTRA LONG AERIAL LEAD
Cheetah RAT/ for your ZX 81. Spectrum, New Brain, Over 15 long. Our super lead will allow you to
Kempston compatible VIC, TRS etc. tilt the computer sit back away from your T V. and enable you
software. Complete and make your keys easier to see to play games in the comfort p -i C f i
with and more enjoyable to use, of your armchair I .DU
receiver/ allowing smoother PRT Q Q
interface. £29.95 programming Z.fc.5/%7
IpNMKKIIMIft^^^
All Cheetah Peripherals have rear edge connectors
for compatibility with all Sinclair accessories.
Prices include VAT, postage & packing.
Delivery normally 14 days.
Export orders al no extra cost. — r
Dealer enquiries welcome
* *
Cheetah, products available from branches of V/
•'I,
'i^BSI&Si^ W}fSMITH$ Rumbelowsj
WOOUfHORTh Spectrum dealers

Marketing '
Cheetoh Marketing Ltd 24RoyStfeef
and all good computer stores. London EC IR3DJ Tel 01 833 4909
Tele* 8954958
HARDWARE REVIEWI

Discovery Disc
had that worked with them
would operate on this system.
My copy of the original Trans Ex-
press on tape for tape to m/drive
transfer would not even load

Drive System
successfully, however their
specially written disc version
will no doubt work as im-
pressively as did their original,
and the various programs which
included options for making
microdrive backup copies also
failed to work.
Oh well back to hand conver-
sions, no immediate apparent
with a flourish and fanfare Opus a d v a n t a g e to the use of
microdrive syntax. Doing it this
Supplies Ltd. announced the launch of way varies between easy and
impossible and my yardstick is
the "most advanced and how long it takes to convert
Tasword II. This conversion was
comprehensive" disc drive system for completed in fifteen minutes
with a further half hour to add

the Spectrum yet. luxuries like a CAT and ERASE


option to the menu. Easy!
There was one other pro-
First impressions blem, the manual had not in-
structed me to connect the
This is a completely self contain- Mic/Ear leads so I had to
ed unit consisting of 3-5" disc unscrew the assembly and plug
drive, interface, power supply them in, these were now sotight
unit which provides power for against the drive case that they
the Spectrum as well as through kept twisting the unit out of
port, Centronics printer port, place. I tightened the screw to
joystick port and BAA/ video hold it but a nagging worry that
port. An impressive set of extras the thing might move and cause
indeed! the port connector tracks to
I unpacked it and was pleas- short out remains with me now.
ed to find the manual^booklet I consider this to be a major
very simply written. To use the design fault and I got round it by
unit with virtually any Spec- adding a ribbon extender cable
trum, Spectrum+ , or other and not having the units con-
keyboard, all you do is plug it into nected by the screw. It is possi-
the user port at the back and, in ble to obtain such a ribbon from
the case of the Sinclair Opus themselves, but as an op-
keyboards, screw it into place tional extra, not included with
with a single screw. the drive itself.
My first problem came in In operation the drives were
working out how to position the about as fast as the other
TV aerial lead as the case was so systems I'd used, about twenty
close and wide it covered this seconds to load a program
and alt the other Spectrum The manual explains its with some SA/V houses to supp- which normally took close to
sockets. The phono plug fitted operation and gives some ex- ly their programs on disc. At the five minutes, but they operated
to my Spectrum's lead was too amples, I found it easy to time of writing there are six almost silently, a great change
bulky and I had to find a spare, understand and the examples packs available each at £ 14.95 from the strangled gurgle I'm us-
but then I realized that a slight were good. The joystick port is and they are: ed to. The 3.5" discs are double
gap in the case which coincided Kempston compatible and this Technician Ted/International density 40 track and two are
with the cable's position was to makes it usable with a great ATC from Hewson supplied free by Memorex who
be used and, with a bit of many games. M u g s y / S p o r t s Hero f r o m are to make and sell them.
twisting and bending, the Spec- The system is available in Melbourne House Finally we would just like to
trum and drive were connected. two formats, a single drive unit Codename Mat/Kentilla/Jasper add that any questions or pro-
Power on, an on/off switch for £199.95 and a dual drive from Micromega (an excellent blems we had with the unit were
at the back of the case was unit for £ 3 2 9 . 9 5 . There is an set!) very promptly dealt with by the
another useful extra, and all upgrade drive available to con- Designers Pencil from Activision people at Opus, and if their sales
seemed to function perfectly. vert a single drive to double drive Trans Express from Romantic support is as efficient as that
The s y s t e m uses all the at £ 1 39.95. Robot (a good tape to disc then it is to be recommended. All
Microdrive syntax plus some ab- One of the problems that has utility) in all, the unit seems to repre-
breviations and operates in a held up the development of disc Mini Office from Database sent very good value for money,
similar fashion. This means that drive systems for the Spectrum Publications (a good general and with the distribution and
the use of sequential files, not is the marketing of such units. business pack, see our full software backup that they have
feasible with some other drive Opus have made an impressive review in this issue.) arranged this is likely to repre-
systems, is possible, and start in this area by selling ex- sent a serious challenge to the
another advantage is that many
programs may be compatible.
clusively through the Boots
chain of stores. Another limita-
inuse other disc drives on the market.
Opus can be contacted at:
The disadvantage is that Inter- tion is the software available in Earlier on I said that the unit may 55 Ormside Way, Holmethorpe
face I and the Microdrives are in- this format and again Opus have be compatible with Microdrive Industrial Estate, Redhill, Surrey
compatible. had the forethought to arrange S/W, unfortunately nothing I RH1 2LW.

18 ZX COMPUTING JUNE/JULY 1 9 8 5
0 1
NOW THERE ARE
m
m HI-RES PROGRAMS FOR
THE 16KZX-81

FORTY NINER
In 1849 the Great American Gold Rush started. Almost everyone who could sold
up everything and dashed to the west coast to look for this precious metal -
including you!
You must excavate this precious metal - but can you survive the giant rats and
that vicious Gremlin which will come to infest your mine? Can you trick the
ft snakes into leaving their comfortable nests and destroy the rats for you? Can you
keep the Gremlin at bay?
Ca vc
V^ftat* w Riches await you - but so do the hazards!
t

ROCKET MAN
Get rich quick by collecting Diamonds that are simply lying there waiting for you!
Oh . . . I forgot to mention that there are one or two problems!
There is an expanse of shark infested water between you and the Diamonds and
a strange breed of Bubble that seems hell bent on getting you in it! Somehow
you must cross it
You have a Rocket Pack to help you (a Vulture on higher levels) but you must
rush around the platforms and ladders collecting cans of fuel (legs of lamb with
the Vulture) and cursing that weird Bubble. Once you have enough fuel then it's
Chocks Away! Fu 9 i eS
9. p,: °fla rnb
*'C*ns l o i t e r
Oh . . . but don't run out of fuel on the way - otherwise it's... SPLASH! O/rf

Dl
Z-XTRICATOR
A long time ago. in a galaxy far. far, away a terrible war took place between two
hostile races. Any prisoners taken could not expect to live very long in the hands
of their captors. Their only hope lay with a group of valiant warriors - the
XTRICATORS - whose task it was to rescue fellow beings from the alien planet's
surface. You are about to take on the role of such a warrior

Please send me:


Available from all good computer shops or send
QTY TOTAL AMOUNT
cheque/P.O. for £5.95 (inc. P&P) to:
FORTY NINER £5.95 Software Farm,
ROCKET MAN £5.95 FREEPOST (No stamp required) (BS3658),
BS8 2YY.
Z-XTRICATOR £5.95
TOTAL Software Farm. 155 Whiteladies Road. Clifton, Bristol BS8 2RF.
Telephone (0272) 731411. Telex 444742 AFMADV G
zx
I.
SPECTRUM UTILITY

Norman Green in Derbyshire makes life


a little easier for 16 and 48K
programmers

When I was a schoolboy, I was limit myself to discussing just entered at 6629. Its function is
often told to use my loaf. Any two of the many routines in to delete lines from the basic
day now, I expect to hear some Spectrum ROM and then show program. Before this routine is
youngster told to use his ROM! It how they may be linked called, the address of the first
would be sound advice, even together to provide a short but byte in the lowest-numbered
though not a true parallel. Using very powerful utility program. line of the block to be deleted
one's loaf is to use one's own Readers who do not yet feel at must be loaded into the DE
brains: to use your ROM would home with machine code will register pair; and the address of
be to make use of someone nevertheless be able to key-in the byte following the last byte
else's; and if, like me, your com- and use the concluding pro- in the highest-numbered line of
puter is a Spectrum, the brains gram, which is written entirely in the block must be loaded into
you would be using are those of BASIC with the machine code the HL register pair.
Uncle Clive and his team of ex- stored in a data line from which it Although they may sound
perts at Sinclair Research. The will be transferred to a tem- complicated, use of these two
Spectrum ROM, with over six- porary home in the printer-buffer routines is simplicity itself. I
teen thousand bytes of perma- section of RAM each time the have seen complicated machine
nent memory, contains many program is RUN. code programs of considerable
very useful subroutines just length which take several
waiting to be called by some minutes to delete a block of
grateful user (or should I say
USR?).
into the ROM lines. The code which I am about
to offer is a mere 1 9 bytes long
Although ROM can be called The first of the aforementioned and can delete a large chunk of
from the keyboard using the routines is situated in the Spec- unwanted program in a fraction
USR Key in instructions such as trum ROM at decimal address of a s e c o n d . It is more
'RAND USR 0 0 0 0 ' or 'LET 6510. Its function is to deter- straightforward than the much-
L = USR 0 0 0 0 ' , the ROM mine the address in RAM of the used method of corrupting the
routines are at their most useful first byte in a program line length-of-line bytes in order to
when called from machine code whose line number has been fool the computer into thinking a
programs, in which the pro- previously entered into the HL block of lines is all one single
grammer can easily arrange for register pair. After calling 6 5 1 0 , line, and then having to delete
the entry conditions of any par- the HL register will contain the this by keying.
ticular routine to be satisfied. required address. For those familiar w i t h
In this short article, I shall The other routine may be assembly language mnemonics

20 ZX COMPUTING JUNE/JULY 1 9 8 5
SPECTRUM UTILITY

these are p r i n t e d b e l o w , basic program. The lines are


alongside the 19 bytes of numbered 9990 to 9 9 9 8 so ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
decimal machine code. that if transferred to tape by key- :::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::
Any line numbers are admissi- ing SAVE "delete", it may be :::::::::::::::::::::::::::::::
ble, providing the first is not recalled whenever required by 9 9 9 0 REM DELETIONS
higher than the second. If the keying MERGE "delete", when
9991 DATA 33,0,0,205,1X0,25,229,
two are equal, then single line the high line-numbers are unlike-
deletion is effected. If numbers ly to clash with the program be- 33,0,0,35,205,110,25,209,205,229
which have not been allocated ing edited. When no longer re- ,25,201
to program lines are entered, quired, "delete" may be used to
then all lines encompassed by delete itself; although it should 9992 RESTORE 9991: FOR n=0 TO 18
the two numbers will be deleted. be noted that the deletion of line : READ a: POKE 23300«-n#a: NEXT n
(This also applies to the number 9998 by this method will pro- 9993 INPUT "Enter lowest line-nu
zero and to all numbers greater duce the report " C Nonsense in -
than 9999). BASIC, 9 9 9 8 : 1 " , but on this raber in *'block to be deleted:
• «
I conclude with the promised occasion it may be ignored. t aa

9994 POKE 23301,a-256*INT (a/256


): POKE 23302,INT (a/256)
Ld HL, 0 33 , 0 # , 0 * , First line no. into HL.
CALL 6510 205,1 10,25, Using your ROM. 9995 INPUT "Enter hishest line-n
PUSH HL 229, Store returned address on umber l n block to be deleted:
Stack. •;b
Ld HL,0 33 , 0 # , 0 # , Second line-no. into HL.
9996 IF b< a THEN INPUT "Re-ente
Inc HL 35, Line no. above deletion
block. r second line-number,";' FLASH 1
CALL 651 0 205,1 10,25, Using your ROM. ;"NOT"; FLASH 0;" lower than the
POP DE 209, Reclaim address from Stack
f i r s t : ";b: GO TO 9996
to DE.
CALL6629 205,229,25, Using your ROM. 9997 POKE 23308,b-256*INT (b/256
Ret 201 . Return to Basic. ): POKE 233.59, INT (b/256)

* * U'ne numbers are poked here in usual way, least significant 999S RANDOMIZE USR 23300
byte first. ::::::::::::::::::::::::::::::::::::::::::::
•••••••••••••••••••••••••••••••••••••••••••a
•••••••••••••••••••••••••••••••••••••••••••a
•••••••••••••••••••••••••••••••••••••••••••a
Assembly Language Listing ::::::::::::::::::::::;:::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::

DK'Tronics
structions do not mention the
fact. Incidentally, make sure the
autofire switch is off when pro-
gramming the interface, other-

programmable
wise strange things happen.
During the few weeks I have
had the interface, it has always
performed perfectly. Coupled

joystick
with my Quickshot II joystick it
proved a worthy addition to my
armoury (although I still haven't
beaten McEnroe and his friends
in 'Match Point'). When com-

interface
pared to other programmable in-
terfaces on the market, the
DK'Tronics product emerges
favourably. It is certainly one of
the cheapest available (some
non-programmable interfaces
cost only a few pounds less),
I had never been lucky enough to program, and a fairly brief set of loaded the driver program. The and reliability should be assured
own a joystick interface (sob), instructions. The interface unit program, encouragingly entitled coming from DK'Tronics. The
so when our kind editor offered is well put together and fits ' J o y ' , loaded in about 30 only real criticism is the com-
me this one to review I eagerly snugly behind the spectrum via seconds and auto-ran. After a plexity of manual programming;
accepted it. I started to have silly a through-ported edge connec- further 3 0 seconds of key press- it is far easier to stick to using the
ideas about winning a game in tor. The joystick socket is sen- ing I had a fully operational tape.
'Match Point', and even worse, sibly located on top of the unit so joystick ready to do its worst. I After all those kind words, it
escaping from the horrors of the the joystick plug does not foul find that I rarely program the in- would be very hard for me not to
'Underwurlde'. With these pro- on any larger add-on keyboard if terface manually as it is much recommend the DK'Tronics in-
mising thoughts in mind I set fitted. The interface is compati- more complicated, and the terface to prospective pur-
about discovering the relative ble w i t h i n t e r f a c e 1 and diagonals are not programmed chasers. So I'm going to take the
merits of the DK'Tronics pro- microdrives. {i.e. you cannot fire and move at easy way out and give the
grammable joystick interface. Following the instructions the same time). thumbs up to a good product at a
The £ 2 2 . 9 5 package in- carefully, I plugged in my The interface supports the competitive price.
cludes the interface unit, a joystick, flicked the little switch autofire option found on some DK'Tronics, Saffron Watden,
cassette containing the driver on top of the interface and then joysticks, but surprisingly the in- Essex.

21 ZX COMPUTING JUNE/JULY 1 9 8 5
POWERFUL AND INEXPENSIVE BUSINESS SOFTWARE
FOR ZX81, T/S1000 and T/S1500 COMPUTERS
ZX-TEXT ZX-CALC ZX-CALENDAR

TboT *

i»ti
FEB
RENT
PRNTR.
3®e
335
DECOR. 125
115
EL.ECTY.
TELPHN. 75
as
LNDRY.
FOOD lie
MEDCN.
IN5RC. 4.41
S5
ais
CLTH5.
CTU.
• • • • • • • • • • I
35

A word processor is to a computer user An electronic spreadsheet calculator is the Time management is an important aspect of
what a typewriter is to a typist, except that the fundamental basictool for summarising, reporting any serious business and personal agenda.
former has more advantages than the latter and analyzing in matrix form any accounting, Planning how to spend our time leaves us better
mathematical or scientific manipulation of num- prepared before and while we are spending it
ZX-Text can operate in 16-64K RAM providing
bers ZX-Calc operates in 32-64K RAM and affords
from 1350 to 9000 words per document It and we remain better organized after we finish
a maximum of 3360 characters / spreadsheet The
features 6 different options: write, read. edit, spending it ZX-Calendar operates in 16-64K
entire matrix consists of 15 columns (letters A-O)
and 30 rows {numbers 1 -30) with 8 characters/ RAM affording 30 appointments in 16K, 100 in
print, save and clear text Text is written on a
cell Unlike other popular ESCs, ZX-Calc uses in 32K. 180 in 48K or 250 in 64K. Each
per-line basis with quick speed and with
calculations and within cells all 14 math functions appointment record holds a maximum of 220
horizontal back-space and delete capabilities
on the ZX-81 /TS1000 It offers a unique 'SUM characters The mam menu includes enter,
being available You can also access the function that totals one or more rows/columns search/check/sort, change, save, clear and
editor directly from write mode and vice-versa simultaneously. Parenthesis can be used within print any and all appointments made on a
Text can be proof-read on a per-line basis equations. There is no fixed limit on how many specific date or with any party. Output to either
allowing for enough time to determine it any equations may be entered Formulas may be
the ZX/TS printer is permissible This program
editing is needed The text editor allows a line stored in all 420 cells of the spreadsheet. The
display affords 1 Srows/colums Loading of data will permit you to remember to do something or
of text to be deleted, inserted, replaced and to be somewhere important by cataloging your
into more than one cell can occur across/down
listed for editing You may also change a word one or more row/column simultaneously. With answers to six questions that you must account
or expression within a line, stop or start text vertical windowing you can arrange a set of col- for in order not to waste time when it is scarce:
while it is scrolling up the screen, begin umns in any order, or practice using fixed-variaWe- when, with whom, at what time, for how long,
reading text from the first line of the file, re- alignment display formats The menu offers 6 where and what are you going to discuss and
enter write mode from the editor, return to the options: enter /erase, move, calculate, print, save conclude when you get together with someone
and clear the spreadsheet. Enter/erase allows
main-menu or create a window so that you else? The program lets you permanently
the entering, deletion or data alignment within a
can. read-edit two files simultaneously The originate, record, classify, search, sort,
cell through the use of a mobile cursor. With the
print option takes text displayed in 30-coiumn move option you may move around the entire calculate, modify, summarize, obtain a written
format on the screen and outputs to either the sreadsheet to access any row, column or cell report and store your answers to the preceding
ZX/TS printer. (With Memotech's Centronics The calculate option allows you to enter labels, questions so that you will not forget what you
values or formulas into a cell or write and enter decide to do with your time This program
Parallel Interface 80-cotumn and lower/
equations that will act upon the data already within identities your time according to when you are
higher - case output is possible) Files may the spreadsheet You can also enter bar graphs going to spend it and with whom you are going
be saved on tape cassette with the use of into a cell m this option. Absolute/relative replica- to share it Through these forms of labeling
one single command, or by the same token they tion, down/acrossacoiumn/row.isalsoallowed
appointments you are able to verify or modify
can be erased from memory / storage so that by this option Also this option allows the auto-
matic calculation of the entire spreadsheet with how your time is budgeted without wasting ink,
the full capacity of the program can be used
one single command Print allows you tooutputto paper or more time trying to remember what you
for other purposes such as composing letters, said to yourself or what someone else said to
either the ZX /TS pnnter the entire spreadsh eet by
reports, articles, memos, standard forms, column-sets and row-pages through use of the you or where you placed certain written
instructions, ads, graphs, t e l e p h o n e COPY command. The entire spreadsheet may be messages that you now can't find. With this
directory, lists of customers, members, saved on cassette tape or you may clear all data program you will know where you can find
friends etc Also copies of files are always from it or erase the program from RAM entirely exactly what you need to know about where you
less expensive and easier to run than using a The most salient advantage provided by an ESC
want to and have to be. or where you have been,
over specifically vertical applications software is
photocopier. Other advantages are savings in before you get and after you got there. Thus. ZX-
that an ESC provides a reusable framework with
time, paper, ink, correcting mistakes and which you can compose any specific financial Calendar will let you plan your time so that you will
adding afterthoughts more efficiently than model rather than just be limited to only one stati- never have to worry about what is ahead or what
doing them through either handwriting or cally fixed format for storing, displaying and came before, for you will always know, by using it
using a typewriter. manipulating numerical data. to never be caught astray by any time-frame.

$11.95 $11.95 $11.95


$1.50 SHIPPING AND HANDLING/PROGRAM

A.F.R. SOFTWARE -1605 Pennsylvania Avenue, No. 204 - Miami Beach, Florida 33139
DEALER INQUIRIES WELCOME (305) 531-6464 FL -ORIDA RESIDENTS INCLUDE-5% Sale Tax
L-l C 1984
mf.ti «a/ngs JTWDiWTOS
QUEST F O R ORION STAR FORCE
ETERNITY QUEST SEVEN
. jSL-J

Bffiinl
ZX EDUCATION

Mathmania —
will always be 111. Another in-
teresting fact is that the first five
digits of the decimal part of
form a prime number.

Primefact
= 3.14159 thus 14159
is prime. Try it out on the pro-
gram. Again, there is a group of
numbers called 'repunit'
numbers which are all repeated

Wembley teacher R. s. Moreland invites


units. The numbers 1 1 1 , 1 1 1 1 ,
11111, are all repunits. Which

you to have fun with numbers.


of these and other repunits are
primes?
Finally, here are two pro-
There are many programs which number, but are re-arrange- The largest prime number blems which should keep you
have been written for playing ments of these digits still prime? found by a computer in 1952 busy for a while, and both may
games, zapping aliens, working Try timing how long it takes the was 2 2 * 8 1 - 1 . In 1 962 the use the program 'PRIME
through an adventure trail, and computer to do the calculations largest was 2 4 4 2 * - 1. In 1 968 FACTORS':-
the like. All of these give the for numbers of varying length. in Illinois the 23rd Mersenne
player a sense of excitement Also, try numbers which are the prime, 211213 - 1 , was Problem 1
based upon speed of reaction or sums of a prime and different discovered by using an Atlas How many 'palindrome'
working through a set of clues even numbers, such as 11 + 6 , computer. A special postmark prime numbers can you find? A
given in an adventure. There is or 11 + 8 , or 11 +20 etc. Is showing this, was struck and palindrome number is one which
however an area which can be there a pattern? used on envelopes for a long reads the same both backwards
just as exciting to many people, Another problem to try time afterwards. By 1971 the and forwards, for example
and that is 'discovery', in par- is. . . " For a given perfect largest prime was 2 1 9 9 3 7 - 1 3156513.
ticular, discovering the solution square (take a fairly large one, a discovered by Bryant Tucker-
to a puzzle, or a problem. Playing calculator would be handy for man at the IBM research centre Problem 2
with numbers can be a very this!) how many ways are there in New York. Using each of the nine digits,
rewarding pastime and, who of adding two primes to make up The method for generating 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 once on-
knows, one may make an impor- that square? " . . . For example prime numbers is the same one ly, form a set of three primes
tant discovery in number theory. 2 5 may be made up of 2 and 2 3, which has remained unchanged which have the lowest sum.
Before computers were in- both primes, but 36 can be for nearly 2000 years, it was Thus the primes 9 4 1 , 6 5 3 , 8 2 7
vented, mathematicians did all made up adding 5 + 3 1 , or developed by Eratosthenes of add up to 2,421 but this is not
of their calculations in longhand 7 + 2 9 , or 1 3 + 2 3 , or 1 7 + 1 9 . Alexandria, and is called 'The the smallest sum.
on paper. When logarithmic and Can the sum of three primes Sieve of Eratosthenes', the
other tables were published, this make up a perfect square? technique is to write down the
made things a bit easier, but Numbers have fascinated sequence of positive integers
verifying and proving new mathematicians and laymen and then to proceed system-
mathematical propositions was alike for centuries, and in par- atically to cross out all com- 6 i7 1 4 3
still a tedious task. For example ticular the problem of finding a posite numbers, (ie. numbers
the evaluation of pi (TT) to, say, a formula for generating prrme which are products of previous
few hundred decimal places numbers has occupied more numbers), those which are.thus
took many months of painstak- man-hours than many other pro- sieved out will be the primes.
ing work. Again the determina- blems. Even today mathemati- There are many other in- 1 3 3 7 6 1
tion of whether a number was cians have not yet discovered a teresting facts about prime
prime could take many weeks to formula for yielding all of the numbers, for example the
work out for only a six or seven known primes. There are many diagram shows a 'Magic
digit number. A prime number is formulae which will give a whole Square' of prime numbers only. 3 1 7
a whole number which has no set of prime numbers, but not a
7 3
If any row or column or either
factors other than 1 or itself. Try general formula for all of them. diagonal is added up, the sum
working out using only pencil or The great mathematician
paper whether 1333 is a prime Euler proposed the formula
number. Simply try to divide x 2 + x + 4 1 for producing
1333 by successive known primes, but there are many
primes up to the number which numbers given by this formula
is the nearest to the square root which are not primes. Try using
of 1333. Time yourself to see 'PRIME FACTORS' as a
how long it takes. Next, using subroutine to a small program
the program 'PRIME FACTORS' which evaluates the Euler
see how the same job takes a primes from this formula.
matter of seconds. Another well known expression
Now for the interesting part, is that which generates
the program will find out Mersenne numbers (after the
whether any whole number, 17th century mathematician
(integer) up to 4,294,967,295 Marin Mersenne, a Parisian
P
(the limit of integer accuracy on monk). This formula is 2 - 1 10 P R I N T " P r o g r a m to v e r i f y th
the Spectrum) is a prime where p itself is prime. Again, a t a n u m b e r i3 p r i m e "
number. If it isn't, the program w r i t e a small program to
will give all of its prime factors. generate these numbers and 2 0 P R I N T ' " T y p e in y o u r number
Try and invent some prime test them with the program 2, o n e at a t i m e as r e q u e s t e d . "
numbers and test them. If you 'PRIME FACTORS'. An in- " " T o £ t o p at a n y s t a g e k e y in E
have found a prime number which teresting fact is that for 200
contains more than one odd digit years the Mersenne number . " • • " P r e s s any key to s t a r t "
67
try and re-arrange the digits to 2 - 1 was thought to be 40 DIM LM00!
see whether the number is still prime; in 1903 an American 50
prime, putting the odd digits at professor showed that it had
the end of the number of course. factors of 193, 707, 721 and 60 REM *** Input module ***
For example, 567323 is a prime 7 6 1 , 8 3 8 , 2 5 7 , 2 8 7 . 65

24 ZX COMPUTING JUNE/JULY 1 9 8 5
ZX EDUCATION
INPUT BC CLS 190 IF f a c t o r s INT ! t e m p / f a c t o r )
80 INPUT "Number please - t e m p THEN
! MS LET L ( i n d e x > a c t o r :
90 I T N«-= M s " OR N * - " S " THEN LET i n d e x - i n d e x f - l :
stop LET Flagyl:
ice L E T n u m b e r - 7 A L N« LET t e m p - I N T (temp/fact
110 IP number-INT (number><?0 or ) : GO TO 1 9 0
THEM PRINT "Not an intege 210 IF f a c t o r > t e m p AND f1ag-0
r " : GO TO 8 0 THEN GO TO 2 9 0
i2.e 220 I F f a c t o r ? 2 > t e m p AMD f l a g = l
130 REM KK* Initialise module * THEN LET L(index)etemp:
LET index*indexfl:
135 GO TO 2 1 5
1 4 0 I F n u m b e r = 3 OR n u m b e r ® 2 THE 230 LET - f a c t o r s - f a c t o r + 2 !
fl GO TO 2 9 0 GO TO 190
1 5 0 LET index'i: 238
LET temp=numfcer: 2 4 0 REM *** Printing module **X
LET flag=0 2 4 2
160 245 PRINT n u m b e r ; ' i s NOT prime
« »»* "
165 REM *** Mainline module *** ts factors are:- "T '
166 2 5 0 FOR j = l TO i n d e x - 1
170 IF 2*INT (temp/2)=temp THEN 260 P R I N T L(j>
LET L(index)=2! 2 7 0 NEXT j
LET flag-l: 280 P R I N T : GO TO 8 0
L E T i n d e x =* i n d e x » 1 : PRINT * number?
L E T t ernp - I NT (temp/2) " IS a prime number":
: GO TO 1 7 0 PRINT :
190 LET f a c t o r = 3 GO TO 8 0

Jury
If you would like to have your views taken into account when we
prepare our arcade reviews then send us this sheet (or a photocopy
or handwritten copy) and we'll feed them all into our overworked
Spectrum to get an overall assessment. We are only interested in the
very latest games on the market though!

Program name:
Supplier:

Price:
Type: (zap, jump, adventure movies, etc.)
Description:.

Graphics %
Instructions %
%
Difficulty

ZX COMPUTING JUNE/JULY 1 9 8 5 25
THE CREW
Personnel
files f o l l o w -
yours to
w command -
NAVIGATOR EXECUTIVE OFFICER SCIENCE OFFICER CAPTAIN ENGINEERING OFFICER 3RD OFFICER ENGINEERING OFRCER well almost..,
Shy, SWW and Direct Imaginative. Secretive, Unkkeable. Brilliant - Solid. Dependable. Courageous - Physically Strong. Low I.Q. Wilful. Ambitious, Cynical, Rebellious,
EiceHent leader. Potentially Rebellious Auihoratrtwe Resourceful. Untrustworthy. Unflappable
tnWkgcni — Panics Easily. Cautious. Loyal. Occasionally Illogical

Featuring
m m Games the unique
SPECTRUM 48K CBM64 Personality Control System
%
No. 1 Golden Square, London W1R 3AB, Telephone 01-437 0626 ^ £
I P YOU USE YOUR COMPUTER TO
P L A Y GAMES, T H E N YOU CAN'T
AFFORD TO MISS.

This fantastic new magazine appears


on M a r c h ZZ 1985 and on the f o u r t h
F r i d a y of every month after at the
price of 95p.

Each issue w i l l be produced in


c o o p e r a t i o n w i t h Eecaan our
Interplanetory Adviser who on his
home planet, Aargon, is a member of
the Association of Supreme Players.
He w i l l be monitoring developments
in the games industry and advising
Computer Gamer readers with all Also, all readers of Computer Gamer
their gaming problems. Included in w i l l have the opportunity to join
each issue w i l l be pages of review of our tremendous Reader's Club —
the latest games releases, special each member w i l l receive a
Adventure features and a help-line, membership card and a regular
invaluable articles on how to 'crack' newsletter which w i l l contain up-to-
specific games a high-score page, the-minute news and all sorts of
exciting programs to type in for offers on a variety of products.
most of the popular home computers,
news, competitions, reviews of So a l l - i n - a l l there's no w a y you can
peripherals and computers a f f o r d to be l e f t out of the great n e w
themselves if relevant to the games r e v o l u t i o n in games computing —
field and LOTS more. r u s h out and b u y y o u r copy N O W !

27 ZX COMPUTING JUNE/JULY 1985


ISOFTWARE REVIEWSI

will Mike Edmunds administer the cane


ting but also encourages ac-
curate and rapid responses.

or give gold stars to


The next title, Spellbox, con-
tains activities to aid word
building and accuracy. There are
Sinclair's latest? two sections both of which are
based upon the traditional
games, Noughts and Crosses
and Pelmanism. Although these
could quite easily be played by
more traditional methods, (i.e by
using pencil and paper) it must
be said that the instant feedback
of the computer provides an ad-
ditional incentive for most
children. Perhaps one vital ele-
ment that computers cannot
provide is the warm encourage-
ment of an adult and this aspect
is strongly stressed within the
notes.
The redefined character set is Both parts of Soundabout
clear and easy to read, an essen- help children to recognise and
tial for the child who is just use initial sounds. Pictures
beginning the reading process. shown require the child to press
The graphics are delightful, and the appropriate letter on the
good use is made of both colour keyboard, but it is a shame that
and sound throughout the whole programs of such overall quality
series. A recent review said that take no note of the fact that the
It always seems to be a very long follow-up writing activities the animals are not particularly keyboard uses uppercase! I sup-
time between releases by together with lots of praise an well represented but I could find pose it might be argued that this
Sinclair, and when they do ap- encouragement. no fault and the animation se- is a deliberate attempt to match
pear they often seem like the The guides give the general quences only add to the appeal upper to lower case but an
famed curate's e g g . . . . good aims of the programs and outline of the programs. overlay would be a distinct ad-
in parts! Not so this selection, the role of the micro in the Briefly, Aiphabetter deals vantage in this instance!
which appear to provide a education of children. There with sequential alphabetical Bodyswop contains some
wealth of educational ex- follows a step by step run-down order and ordering of words ac- very effective animation and re-
periences. With the exception of of the program, and information cording to their second letter. quires the child to spell the word
Number Painter and Estimator detailing how to transfer the These programs have several corresponding to the highlighted
Racer, both of which bear the programs to microdrive. This speed options wich enables part of the featured animal. Help
Psion and A.S.K. labels, all the last feature should be standard them to be used at various levels options are available with the re-
other titles are published under on all 'educational' programs and with children of differing quired answers either displayed
the Macmillan Education ban- this being a plea from many abilities. A graphic reward or hidden. Three programs in-
ner. The loading screens teachers with Spectrums in their follows each section and the troduce, reinforce and test
however, bear the logo of classrooms. Perhaps now that child is given a score to aim at for vocabulary based upon parts of
Fiveways Software . . . always the price of cartridges has fallen, the next time around. the body. The final section is
an indication of software of software houses will at last Wordsetter helps children to more of a reward than a teaching
educational merit. make life just a little easier for all sort words and pictures into program, and is an updated form
Each of the Macmillan titles those who have to wait, and sets. This concept is an impor- of the 'make a Beetle' game.
are well presented and come wait, while their cassettes load. tant stage of the learning pro- Taken as a suite of programs
with the usual comprehensive cess and there are two levels these contain many and varied
parent guide, for it must be said available, each of which can be ideas and exercises which will
that the intended market is more
home than school use. Having
Learn to Read played at three speeds. The pro- help to introduce and reinforce
gram is ideally for two players, the necessary skills required in
said that however, there is cer- There are five new programs each of whom aims to be the an effective and appealing way.
tainly a great deal of material which follow on from the Learn first to complete their set or
that can and will be used in many To Read series, these are theme. A picture or word is This is a job f o r . . .
classrooms. There is plenty of Alphabetter, Wordsetter, generated at random in the mid-
advice for those parents who Spellbox, Soundabout and dle of the screen and each child Maths programs are perhaps the
may be unsure of the part that Bodyswop. All have a similar must decide if it fits into his or most common type of educa-
they can play in developing the format and graphical content to her set. Correct answers give tional software available at pre-
child's reading skills. Parents are that found in the previous series, the child the picture, incorrect sent so it takes something quite
also encouraged to w o r k containing such entertaining responses take one of the pic- different to make an impact, par-
through the programs with the characters as Deb the Rat, Ben tures away. There is a healthy ticularly with teachers. Mac-
child and to reinforce the skills the Dog and, of course, the Fat sense of competition and the millan appear to have come up
gained at the keyboard with Pig. program not only helps with sor- with a new idea for their latest

28 ZX COMPUTING JUNE/JULY 1 9 8 5
SOFTWARE REVIEW!

ventures into mathematics, just maintaining the interest of the chosen, from Mr. Plod to Mr. idea of the wealth of material
as the current trend for adven- children throughout. Speedy. This is a very effective available for further study. None
tures is the 'Part one, followed The format on each level is way of developing a fluency of these four programs is im
by the sequel approach, and for the same — Macman is guarding with numbers and operations. mediately playable, you must
arcade games to have suc- a wall, behind which one or more Estimator Racer is essentially take a little time to soak up the
cessive programs based around prisoners are trying to escape. Chequered Flag with sums! The instructions and the intricacies
the same character, so, now we Unfortunately, holes keep ap- child needs to guide a chosen car of play. Once you are familiar
have Macman! pearing in the wall and it is the along a racetrack, all the while with them however, they are
Macman is the star of four pro- child's job to help Macman plug having to estimate the answer great fun and very demanding in
grams, The Caber Eater, The the gaps before a prisoner can to a displayed problem. This pro- terms of thought!
Treasure Caves, The Magic Mir- escape! The number of gram encourages the essential Disease Dodgers almost
ror and the Great Escape. In the prisoners is always on the in- skill of estimation and after a stands on its own as an arcade
Caber Eater, the emphasis is on crease and, needless to say, Mac- few runs you begin to get a real game. It is concerned with keep-
Addition and Subtraction. This man's job becomes increasingly feel for numbers, the mental ing the Dodger family alive when
is achieved in several ways but difficult. Watch out when one of arithmetic that takes place is faced w i t h a multitude of
essentially deals with 'find the them escapes ! tremendous, and thankfully the diseases and germs. The pro-
difference' type problems and In the Magic Mirror the child choice of cars available includes gram shows how health, diet
'truth sets' or 'sentences'. The needs to guide Macman to a fairly slow one. Good com- and exercise are interrelated and
idea is that children become reproduce the image on the petitive fun against others or also illustrates that people living
aware of relationships between other side of a mirror. The idea is against the computer, and fun in different countries of the
numbers, thereby increasing well implemented and a great which develops skills that are world face different problems of
skills and confidence. All of this deal of thinking is required on needed every day. health and diet. Of alt the pro-
leading to increased enjoyment. some of the higher levels to get a grams this perhaps is the least
Macman in the Treasure correct pattern before time runs
out and the mirror cracks. The
Science Horizons effective graphically, there are
Caves concentrates upon sub- colour attribute problems and
traction and, as with The Caber different levels are achieved by The last four programs come some of the foods represented
Eater there are five levels of in- using different numbers of mir- under the Science Horizons are not clear. This aside it is very
creasing difficulty. The adult rors and the angles at which heading and are simulations, of a playable and should provide
can set the required level if they are set. This program also sort. Even a review of this sort much 'food for thought'!
necessary or the child can pro- helps with the concepts of co- cannot do full justice to these Finally, Weathermaster. This
gress throughout the program at ordinates, plotting and grid- programs, as I feel that the full is a novel use for a computer,
his or her own rate. Both of work. First rate in all aspects. potential of these demands a basic meteorology (Nothing
these programs follow a similar The t w o Psion/ASK pro- concentrated approach for novel about that, have a look at
format, practice, reinforcement grams are not nearly as im- those intending to use them in Metp/ot,ZX October '84 - ED).
and reward. There are also Help pressive in terms of packaging the classroom. After using this program I have
facilities which automatically or length but nevertheless are Oil Strike is a business no doubt that television weather
come into play when errors are equally as effective as learning simulation concerned with the forcasts will take on a new clari-
made. Each of these programs aids. Each will fit into the 16K search for oil. It is reminiscent in ty. The program familiarises the
include entertaining games Spectrum and are more clearly some ways of The Mary Rose user with the charts, symbols
which also provide oppor- recognised as games with an (for the BBC) and gives graphical and terminology used by the
tunities for the child to plan educational content. representations of test drills and media. These ideas are set in a
strategies to maximise their These are the type of pro- rock stratas etc. There are com- game format with impressive
scores. grams that make children think prehensive notes, enough to en- results.
Good graphics and sound and who is to say that this can- sure that this could form the In conclusion I can only say
together with the chubby little not also be a hugely enjoyable basis or be an integral part of a that although these reviews
figure of Macman marching process? classroom topic for a con- may seem overly-enthusiastic I
steadily around the screen have Number Painter sets a target siderable time. • have been pleasantly surprised
certainly appealed to the classes number which must be made by Planet Patrol is a graphical at the new levels that educa-
that have used these programs c o m b i n i n g n u m b e r s and version of Mastermind but, tional software, whether for
so far. For the pupils the mathematical operations. This much, much more complex. It home or school, have reached.
mathematical content is almost follows the style of the 'platform also stimulates logical thinking Take two gold stars Macmillan
an aside, but learning is most and ladders' games that are cur- and forward planning. Put these and Sinclair! If you are somewhat
definitely taking place! The rently so popular, and has much factors together with an illustra- skeptical about my comments, I
other titles in the Macman of their appeal in play. Four dif- tion of the solar system, relative can only suggest that you get
series, Macman and the Great ferent speeds are available positions, sizes and motions of hold of some of these new titles
Escape and Macman's Magic depending upon the character the planets and you have some and see for yourself!
Mirror complement each other.
The former deals with shape and
conservation of area, whilst the SINCLAIR MACMILLAN
latter is concerned with reflec-
tion, translation and rotation. MACMAN MATHS SCIENCE HORIZONS LEARN TO READ
The Great Escape has six Macman and the Caber Eater Oil Strike Alphabetter
levels of difficulty ranging from Macman and the Great Escape Disease Dodgers Wordsetter
the making of shapes with Macman in the Treasure Caves Planet Patrol Spellbox
'bricks', through estimation and Macman's Magic Mirror Weathermaster Soundabout
conservation, to rotation, reflec- Bodyswap
tions and translations. I was
very impressed by this program {All above programs for the 48K Spectrum)
- it covers the subjects com-
prehensively and in a most en- Estimator Racer Number Painter Psion/Sinclair 16/48K
joyable manner. Macman is
again the star and the represen- Macmillan Education Ltd, Houndmills, Basingstoke, Hants RG21 2XS.
tations on-screen are superb,

ZX COMPUTING JUNE/JULY 1 9 8 5 29
Educational
POOLS PREDICTION
Outputs best draws, homes and aways. Features analytical draw
finder. Prints team form comparison graphs. Analyses and graphs Software for the
Spectrum
results every week. Takes full account of midweek games and
"Cup" matches between main league teams. Promotion/relefa-
tion option. (Can be used from season to season.) Easy to use,
even for beginners. No fiddly database required. Gives paper
printout of predictions if required. Full back-up service All
customers letters answered promptly. 36 wins (230 dividends)
Rose Scfhvort
NOW A V A I L A B L E '
received by author so far.
For 4 - 10 year olds:- Y O U N G L E A R N E R S 1-
"This is the best and most scientific of any program I have abacus, telling the t i m e , going shopping, snakes.
s e e n " — (Secretary, O r p i n g t o n C o m p u t e r Club)
Y O U N G L E A R N E R S 2 - estimating angles,
"Once again, thank you for one of the best investments I have times tables, deduce,estimating capacity.
made" — Mr D. L. B. (Feltham)
P R I M A R Y A R I T H M E T I C - add, s u b t r a c t ,
"I would like to congratulate you on your excellent service - it m u l t i p l y , divide.
is a rare thing these days" — Mr L. G. P. (Shrewsbury)
For 1 0 - 1 4 year olds:-
INTERMEDIATE ENGLISH 1
INTERMEDIATE ENGLISH 2

RACING PREDICTION INTERMEDIATE MATHS 1


INTERMEDIATE MATHS 2
An easy to use predictor, by the same author, for the flat racing
season. No knowledge of racing required. Input information from For " 0 " level students - F R E N C H , PHYSICS ( L i g h t and Heat)
any daily newspaper. Holds data on draw advantage and ground M A T H S ( G e o m e t r y . T r i g o n o m e t r y or Equations)
conditions for 37 British courses Self-teaching program is never For any age:- H I G H W A Y C O D E , L E A R N I N G T O R E A D M U S I C a n d
out-of-date. Q U A Z E R , a quiz game.
ASK FOR BRITISH POOLS at £11.95 Rose S o f t w a r e , 148 Widney Lane, S o l i h u l l , West Midlands B91 3 L H .
: AUSTRALIAN POOLS at £11.95 Tel: 0 2 1 - 705 2 8 9 5 (Trade enquiries welcome)
: FLAT RACING at £11.95 I ;
Allow 7 days for delivery. Cheques, P.O.s payable to Rombest Please send me x
Overseas customers please add £1 for P&P. I enclose cheque/P O. f o r £

ROMBEST Please send me a F R E E b r o c h u r e


Name
• *
Dept. ZX, 2 WELLAND CROFT, BICESTER,
Address
OXON 0 X 6 8GD.
AVAILABLE FOR 48 SPECTRUM ONLY
/

SKC
®
PERFECTION ASSURED
FLOPPY DISK MEET ANSI, DIN,
ECMA, IBM, JIS AND SHUGART
SINCLAIR CLINIC
SPECIFICATIONS. COMPLETE REPAIR SERVICE
EVERY DISK IS CERTIFIED
MINI FLOPPY DISK AND GUARANTEED TO BE For advice and help ring or visit us at our
100% ERROR FREE. Microcomputer centre.
LOW PRICE — HIGH QUALITY PROBABLY THE MOST SPECIALISED COMPUTER CENTRE
40 TRACK BOXES OF 10
S/S S / D . . . ....10.50 IN
ADD V.A.T TO THE
S/S D/D . . ....11.00
D/S D/D .. ....13.00 ALL PRICES. • HARDWARE NORTH • MONITORS
PLEASE ADD £1 • SOFTWARE • BOOKS
80 TRACK POST/PACKING. • UPGRADES • JOYSTICKS
S/S D/D . . ....15.00
• KEYBOARDS • MODEMS
D/S D/D . . ....16.90
• MICRODRIVES • PRINTERS
LOOK SPECIAL BULK PRICES
ACORN — BBC - SANYO — COMMODORE - AMSTRAD
40 TRACK MIN. 600 DISCS PER BOX
S/S D/D . , , 88p ADD V.A.T. TO
S/S D/D
D/S D/D
94p
1.05p
per disc ALL PRICES.
TV & Electronic
80 TRACK
S/S D/D . . . 1.21p
CARRIAGE FREE
FOR BULK ORDERS Components
D/S D/D 1.38
MICROCOMPUTERS — SOFTWARE — PERIPHERALS
ALL COMPUTER CASSETTES ELECTRONIC — TELEVISION — COMPONENTS
BOXES OF 100 A D D VAT TO AERIAL — EQUIPMENT
C10 £23 A L L PRICES PLEASE
C15 £24 A D D £3.50 P O S T / FOR FAST FAIR AND EFFICIENT SERVICE
C20 £25 PACKING
* TRADE COUNTER TRADE COUNTER*
BULK! LEADERLESS P.V. TUBES 9am — 5pm
7%4LS EPROMS
Closed W E D pm.
Dept. DZX VOLT REGS
C15 CASS. PLEASE 104 ABBEY STREET, ACCRINGTON, LANCS BB5 1EE
CMOS
L I N ICs ZENDIODES
Tel: (02547 36211 TRANSISTORS RESISTORS
RING FOR PRICES Telex: 635562 Griffin G for PV RAMS POWER SUPP.
Phone in Access/Visa orders (or same day dispatch. LEADS MODULATORS
IT'S 1985 — THE YEAR
OF COMMUNICATIONS
Why buy programmes for your Spectrum when a world of free
'telesoftware' is open to you. Discover Prestel, Micronet 800,
Viewfax, bulletin boards and open a whole new world. Even user to user.
Everybody's doing it — linking their home computers to giant mainframes
and networking to thousands of other micro users via the phone and a modem.
A whole new world of mainframe games, electronic mail, free 'telesoftware', electronic
notice boards, real time conversation, armchair shopping and home-banking will be at
your fingertips! And at local and cheap rate, phone charges are only around 40p for a whole
hour's entertainment.
Spectrum 16k, 48k, Spectrum + The VTX 5000 Modem comes complete with all the software
(in ROM) required to access the world of electronic communications, networks, telesoftware and databases
(both public and private.)
(User to user software on cassette £3.95 extra)
Terminal Emulation Software Package to link to commercial databases and bulletin boards which use ASCII
format on cassette £6.95.
The VTX 5000 requires no external power and fits under your Spectrum to become part of the machine.
Only one lead links your computer to the outside world.
FOR THE SPECTRUM 16K, 48K AND SPECTRUM f THE VTX 5000 IS AVAILABLE AT A VERY SPECIAL PRICE
£49.95 inclusive of VAT and P&P for a limited period only.
SPECIAL, SPECIAL OFFER
Order your VTX 5000 NOW and get a FREE quarter's subscription to Micronet 800 andj/iewfax,.
All modems provide 1200/75 baud, enabling access to I"Please send to me:
Prestel, Micronet 800, BT Gold, Farmlink, Citiservices, • Spectrum Modem(s) £49.95
Homelink, and some free bulletin boards {some • User to user software £3.95
databases and networks require a small subscription). • Terminal £ 6 . 9 5
Fully BT Approved. I enclose c
Simply clip the coupon and send it with a
cheque (payable to Modem House) to:
Address
MODEM HOUSE
lolanthe Drive
Exeter, Telephone.
Devon EX4 9EA Please allow 28 day delivery
Tel: (0392) 69295 This offer applies only while stocks last. ZX,

It's easy to complain


about advertisements.
But which ones?
Every week millions of advertisements appear in print, on posters or
in the cinema.
Most of them comply with the rules contained in the British Code of
Advertising Practice.
But some of them break the rules and warrant your complaints.
If you're not sure about which ones they are, however, drop us a line
and we'll send you an abridged copy of the Advertising Code.
Then, if an advertisement bothers you, you'll be justified in
bothering us.

The Advertising Standards Authority.'


If an advertisement is wrong,were here to put it right.
ASA Ltd. Dept 2 Brook House, Torrington Place, London WC1E 7HN

This space is donated in the interests of high standards of advertising.


the Slimer (technical term for
ghost) into the trap and captur-

Spectrum Arcade
ing him, it's onto the next one
folks, before the energy from all
the ghosts gets too large or the
centre spot of the city, the Tem-
ple of Zuul is reached by the
Gatekeeper and Keymaster.

David Howard tests his reactions on


A marshmallow alert can
happen at any time, where all

another batch of arcade releases


the Roamers will quickly join
forces to form the Marshmallow
Man. A dollop of bait must be
immediately dropped to prevent
him crushing any buildings. The
game will end if you can sneak
Match Day throw-in is taken, the direction is
controlled depending on the
has been shouting about on the
Commodore (not that word
two ghostbusters into the Tem-
ple of Zuul, but be prepared as
Ocean movement of the joystick or again) and the same scenario is this can take time while the
£7.95 keys, so passing to your own present on the Spectrum ver- forces of the spirit world join up
to turn the city into mayhem.
team should be easier than on a sion.
You may remember WORLD real football ground. The game starts with you be- Although this game does not
CUP by ARCTIC COMPUTING, ing granted a franchise to rid the create the same atmosphere as
one of the first good football city of ghouls, and to set you on the film, it is quite fun to play,
games on the market. MATCH your way the bank is lending the but I can see it at the bottom of
DAY is far superior to any other hefty sum of $10,000. Instead my tape rack after a few
and is of the same quality as In- of retiring there and then, you months. Putting all this aside the
ternational Soccer for the Com- have to purchase various items speech synthesis and theme
modore 64 — please ed, may I to help you achieve fame, for- music of GHOSTBUSTERS at
just mention this computer — tune and rid the city of all these the beginning of the game
(No, ED!) Obviously the graphics evil spirits. should even put Ray Parker
are not as good, but they are There are three screens Junior to shame.
very clear and the problem of where you select all your equip-
bleeding did not seem to occur. ment, from transport to the in- INSTRUCTIONS 95%
The ability to alter the colour of tricate ghostbusting traps. Hav- PRESENTATION 80%
the teams is a good idea, so you ing loaded up your vehicle, a ADDICTABILITY 75%
can pick the one that is most map of the city appears and all VALUE FOR MONEY 70%
pleasing to the eye and easiest the places that are having trou- ZXCFACTOR 6
to recognise. ble with the fiendish ghouls flash
The extensive menus at the
beginning are very useful, where
red, and once at these haunted
venues, GHOSTBUSTING can
Gift From The Gods
a number of details about the begin. Ocean
game can be changed. There is
The game is ideally played
Whilst travelling around the £8.95
not enough space to list them all map, if you should pass over a
here and you more than likely with a joystick, but if you are Roamer (a wandering ghost), he Ocean have delved into the dep-
would get bored, but to give you challenging a friend it is unlikely is frozen and can be vacuumed ths of Greek legend and come up
an idea it is possible to alter the that you will possess t w o up just before you arrive at the with an adventure game to play
names of the teams, play joysticks, so the keyboard will haunted venue. After directing on your ancient Spectrum.
against the computer, a friend or just about suffice.
in a league, alter the length of As with most of these games
each game, choose how each on the Spectrum, due to the
player is to control his team, dif- limitation of sound, headaches |
ficulty levels of play, and so on. can be obtained quite easily, but'
The game starts as the teams the on/off sound switch is a
run out on the pitch, with the Godsend. The reality of the
tune Match of the Day sounding whole match, with a reflection
(and no Jimmy Hill). It is a bit as the ball bounces and the
tedious waiting for positions to quality graphics make this a
be taken, but it is at least worthwhile buy, allowing you to
realistic. play football from the comfort of
The whistle sounds and the your armchair.
game begins. Playing against
the computer can be quite dif- INSTRUCTIONS
ficult, especially if playing on PRESENTATION
one of the harder levels (there ADDICTABILITY
are three levels in all — amateur, VALUE FOR MONEY
professional and international). ZXCFACTOR
As in most of these games, you
are in control of the player
nearest the ball. At times it can
Ghostbusters
be difficult to gain control of the Activision
ball, especially as there is no £9.95
facility to strike the opposing
player, but once in control, you Having heard the record and
can pass to fellow members, seen the film, you can now play
dodge the other team and the game, courtesy of Activi-
hopefully score. Then a kick or sion. This isthe game everybody

32
PECTRUM REVIEWS!

The game is based upon the safe. You have to get this report
life of Orestes. For those lesser before the headmaster does, or
mortals who are reading this else. In order to uncover the hid-
page and do not know who this den combination, the shields
person was, I shall explain. that are hanging on the walls
Orestes had a m o t h e r , have to be hit. The masters will
C l y t e m n e s t r a , a f a t h e r , become disorientated by the
Agamemnon and a Sister, Elec- flashing shields and will reveal
tra. Clytemnestra, in order to part of the combination. The on-
rule over Mycenae, evilly kills ly problem, of course, is the
her husband and banishes her history master, who cannot
two childrem from the iand. remember his part, so you must
Etectra is hidden in t h e get his birthday out of him, and
catacombs below the palace, write this on the blackboard, at
where Clytemnestra lives with which point his memory will be
her new husband Aegisthus, jogged and he will reveal all.
and Orestes, the Hero of the As well as this task, you must
game, with the help of the gods take part in the normal activities
must try and regain the kingdom of school, which involve going
from his mother. to lessons and playing. If you do
You are Orestes and control not go to the correct classroom
your figure on screen with a at lessontime, you will receive
joystick {virtually any) or lines as punishment. More than
keyboard. It is better to use a 10,000 lines will end this game
joystick as the game has an in- as Eric is suspended from the
telligent joystick facility, leaving school with writer's cramp. Fin-
out the need for complex com- ding a seat during a lesson is not
binations of keys. always as easy as it seems as
In order to reclaim Mycenae, they are soon taken up by other
Orestes must travel around this pupils. Even if you manage to
labyrinth and collect 1 6 Eucli- find a seat, you are invariably
dian shapes (geometric designs) shoved off onto the floor, gain-
and place them in the correct ing more lines. This school is
order around the chamber to find very much like a cartoon strip, and a l t h o u g h your score by the gods, and you must com-
the exit and end of the game. and the characters could be declines when you get killed, plete all three to show your wor-
Orestes has been given a sword straight from the Beano. The once it reaches zero, that's it. thiness.
and seven tears, which act as graphics are fair, but not so clear With a lot of practice, the ideal My first task is the easiest,
markers, to help him find his although they do not really let score could perhaps be reached. but requires a lot of initial
goal. Electra can also help in fin- the game down too much, as it is As with all these games, annoy- thought. Once done, it appears
ding the shapes; she appears as very enjoyable playing school, ing tunes are played along the to be quite easy. \ suggest,
an apparition and will lead you to f i g h t i n g the b u l l y , using way, but luckily there is an switch off the computer, have a
the correct place. Scattered catapults and having lessons on/off button. Pitfall II is also five minute break, and try again.
around are terrifying objects, with Mt. Whithit and Mr. Creak. compatible w i t h all major It is still frustratingly difficult
placed by the Demi-gods, which A must for all Non-Skolars. joysticks. t o . . . To what? The idea is to
will zap your strength and even- The graphics are adequate, climb the ledges and arrive at the
tually send you to the under- INSTRUCTIONS 90% but I feel could be a lot better to cave entrance. You jump from
world. PRESENTATION 85% match the standard of the rest of ledge to ledge avoiding the fall-
I enjoyed playing this game ADDICTABILITY 85% the game, but all in all, a good ing boulders, but one slip could
very much. The graphics are ex- VALUE FOR MONEY 85% buy and stimulating. quite easily see a life lost. Having
cellent, with smooth animation ZXCFACTOR 8 completed the first task and
and although I seemed to be run- INSTRUCTIONS 95% given yourself a pat on the back,
ning around the maze doing
nothing for quite some time. Gift
Pitfall II PRESENTATION
ADDICTABILITY
85%
90%
task two immediately arrives.
You are in a sacred temple inside
From The Gods is totally absorb- Activision VALUE FOR MONEY 85% the mountain that you have just
ing, interesting and fun. £6.95 ZXCFACTOR 8 entered. Minotaurs are on guard
and the idea is to reach the top
INSTRUCTIONS 95%
PRESENTATION
ADDICTABILITY
90% This is a nifty little number and is
90% of the Arcade Adventure sort.
Hellfire right pillar to get to the next
level. The fun comes when runn-
VALUE FOR MONEY 95% Pitfall Harry must find his niece Melbourne House ing from pillar to pillar as you are
ZXC FACTOR 9 Rhonda, his cat, Quickclaw, and £7.95 transported to another part of
the Raj Diamond as well as the temple and you have to
Skool Daze gathering up all the gold along
his journey. You are Pitfall Harry
This is the game I have been
waiting for. I have not had so
crack the right combination to
reach the exit. An added bonus
Microsphere and travel through many scenes much excitement in all my life. A was the springboard, which you
£6.95 containing balloons, caverns wonderful game. Steady on you can use to reach different levels.
and various dangers such as might say, have you got shares The third and final task is to
Microsphere have produced a bats, frogs, and scorpions. You in Melbourne House? Isn't this find your way through the maze
game that will not teach you to start off with 4 0 0 0 points and going a bit heavy AND before and locate the exit. Your mace
spell, as in the title, not teach aim for a perfect score of the game has been properly will kill any attacking monsters
obedience or good manners, but 199,000. reviewed? Perhaps, yes, but and break down the exit. The
will enable you to enter a The best thing about this HELLFIRE is a game that requires graphics in this game are
classroom where you can do game is that if you happen to die skill, concentration and nimble faultless and so is the game.
what you like, and even invent along t h e w a y , you are fingers and is the same as a 30 INSTRUCTIONS 95%
names for the lengthy cast. transported back to the previous year old finding out what it is like PRESENTATION 100%
You are ERIC, a mischevious red cross, which you pass over to play space invaders for the ADDICTABILITY 100%
little brat whose school report is during your mission. This means first time. There are three tasks VALUE FOR MONEY 100%
locked away in the staffroom that the game is virtually endless that have been set upon you ZXCFACTOR 10

ZX COMPUTING JUNE/JULY 1 9 8 5 33
I
COMMO

Argus Press
Soft ware (.roup
we take an in-depth look at an area
which is getting a lot of interest.

A couple of issues ago I reported


on a visit to Electromusic
Research Ltd and Mike Beacher,
And finally
the owner, who make the Midi . . approach the whole thing
interface sold by Rose Morris. from the other direction, get an
The response was fantastic, a instrument, keyboard or syn-
letter flooded in, and all the way thesizer, and use your computer
from Southend! as a tool to create music with it.
But seriously, this article did We wondered how many
generate a lot of interest from all readers would be interested in
over the world and so we this rather expensive way of do-
thought we'd have a special ing it, but two factors encourag-
issue on sounds. There are ed us, one was the amount of
several ways of creating sounds letters about our last item as
on the computer, even the mentioned, and the other was
ZX81 is capable, with a suitable my personal knowledge of two
peripheral, of sounds better than young people, both at school
the Spectrum's unaided BEEP. who worked all through their
holiday last year and asked for
The first w a y . . . money for birthdays and Xmas
so that each could buy a £635
With a Spectrum only, is to Korg Poly-800 synthesizer.
utilise the beep in an efficient Also, the recent appearance
and clever manner and, by an of the Casio CZ101, a full Midi
amazing coincidence we have a s y n t h for £ 3 9 5 and the
program which does this! If you likelyhood of even cheaper
have no musical ability and want machines to follow helped us to
to know how to go about pro- make the final decision to pre-
gramming music into your com- sent Midi in the home, an in
puter, we have an article on how depth look at how this system
to do that tool can be used by the non-
professional. By the w a y ,
The second w a y . . . should any reader reach top of
the pops, let us know! Mean-
. . is to add on a sound unit, while here is ZX Computing's
there are several for the Spec- contribution to the world of
trum and even some for the Culture, join the Club and Boy,
ZX81, we give a round up of all won't you have a lot of fun by
these. George!

35 ZX COMPUTING JUNE/JULY 1 9 8 5
PROGRAMMING FEATURE I

A Spectrum spectacular of Melodic as it runs across the page. The


placing of these is not random,
Masterpieces from Maestro Colin but determined by the timing of
the music which again would take

Christmas. too long to explain in this article.


So, how do these flats and
sharps affect our pitch values? If
a note is flattened simply sub-
PROGRAMMING tract 1 from its value, if it is
FEATURE provides two pieces of informa-
tion, the duration and the pitch
sharpened then add 1 to its
value. Try to remember this as
Well perhaps not quite so ex- — how convenient! Each note all too frequently it is the cause
treme, but the interest in micros has a name, a letter of the of some strange sounding notes
and music is increasing and with alphabet, and these run from A in a melody!
a little time and effort it can be to G, if you go higher than G then
a fascinating and fun way of
whiling away an hour or two.
you start with A again but it is
said to be an OCTAVE higher.
The Duration
Not only that, but a game The same applies if you want to This is determined by the type of
benefits greatly from having a go lower than A except you then blob put on the stave line. These
burst of a recognisable tune go to G and work backwards. all bear some relationship to
played at appropriate times even The position in the STAVE, each other, if you are familiar
with the Spectrum's limited the five lines running across the with Binary then it'll help, and
BEEP! page, determines its name (pit- also depend on the TIME
There are plenty of articles ch). The diagram (fig. 1) shows SIGNATURE and TEMPO of the
and programs which help you to the most common notes found music. In the majority of cases
enter and play sounds but very on a stave. The curly sign at the this does not affect the result, in
little has been produced for the start of the stave indicates that practical terms, when conver-
non-musician to convert it's the TREBLE clef, there is ting to the computer.
melodies into code which the another sign which looks like a In fig. 21 have given the dura-
computer will recognise. The backward C with two dots after tion names of the notes and
aim of this article is to remedy it which indicates the BASS clef. underneath the values which I
that and to give hints for the The great majority of the music found most satisfying for the
musically illiterate on how to that you will encounter wilt be duration of the BEEP. These are
produce computer music from written in the Treble clef and so, easily changed if a piece of
musical notation. for the sake of keeping this arti- music needs to be faster or
The ability to read music cle short enough for publication, slower and if you use the system
takes a great deal of study and I'll only deal with this one. of programming music that I
dedication but it is still possible In fig. 1 you will see the suggest later on, then altering
for even the most musically in- names of the notes and beneath these is very simple indeed. Of
competent to convert the manu- them their pitch values for the course it's not quite that simple,
script into recognisable tunes — Spectrum, if you have another sometimes there is the need for
all you have to do is follow this micro then look up the value of a period of time where there is
guide! middle C in your manual and nothing played at all, these are
Even the Spectrum manual pencil it in under the FIRST C signified by RESTS and these
presumes some knowledge of shown, adjust the value up and also have durations which cor-
music and although the Spec- down by a similar number as respond to the durations of the
trum + manual is a little better, I each note is offset on the notes, these are given as part of
hope to explain and develop diagram. All Spectrum users fig. 2
some of the assumptions which need do is look up the ap- And then there are extended
the manual makes. propriate note and transfer the notes, these may be shown in
value to the SECOND of the one of two ways, as a dot (.)
First things first. . . BEEP numbers. which comes immediately after
The Spectrum produces But, beware! Music also con- the note and this extends the
sounds by the BEEP command, tains strange devices called duration by one half the note
the technical method and the SHARPS (#) and Flats ( b ) and the effect of any sharps or flats duration value. For example, a
use of machine code are not go- these can affect the pitch value. which may have altered the crotchet follwed by a dot (a
ing to be dealt with here, but if If one of these appears at the value of the note previously, in- DOTTED crotchet) has a dura-
we get enough requests then very start of the stave then all cluding those at the very beginn- tion o f . 7 5 — the same as a crot-
perhaps a future article? the notes of that name, no matter ing of the music, for the duration chet and a quaver together —
BEEP is followed by two what octave they are, are af- of the bar. .5 + .25.
numbers, the first is the duration fected. If one of these appears These BARs I have been talk- The other way of extending
or length of time the note will just before the note then only ing about are not those which the length of a note is to TIE it
sound for, and the second is the the notes of that name in that sell refreshment (which I'm sure with a line curving between the
pitch or the actual note value. BAR are affected. Oh, and one you must all feel like indulging in two (or more) notes. This has
Let's have a look at the notes as more thing to add to the confu- by now), but the set of notes the simple effect of adding the
written in script form. Put in a sion, there is also a sign called a between any of the two vertical duration value of every note so
simplified manner, each note NATURAL ( Q ) and this cancels lines which divide up each stave tied, together.

'I
36 ZX COMPUTING JUNE/JULY 1 9 8 5
PROGRAMMING FEATURE!

PITCH V A L U E S

NOTE NAME A B C D E F G A B C D E F G
PITCH VALUE -3 -1 0 2 4 5 7 9 11 12 14 16 17 19

DURATION VALUES

REST

1
NAME
NOTE o
BREVE SEMI
J CROTCHET
J J
QUAVER SEMI
BREVE QUAVER
DURATION
VALUE
1 .5 -25 .125

IF I H A D A H A M M E R

I i,lu' IE * j j' J j | J- J; J | f f ^ P j | J. f j | f j .P~3


fc

" 5 5 25 .5
5 .25
25 .75 1.25
125 .5
£ A
5 .25 .25 .25 .25 .75 125
1.25 .5
5 .5
5 .25 .25 .25
2£ .25
99 3 7 10 7 10 10
10 99 12 12 10 7 3 7 3 99 3 7 10 10 7

ff¥r# ^

r e LJ r
r r f — » — w ~
1 1 ck PI • 1t ,r J T Tj* 1 1
j
'! J u f
1) n * T
« .75 1.25 .25 ^ .5 .5 2 .75 1.25
10 26 .5 .5 .25 25 25 25
10 99 13 13 12 10 15 15
10 99 12 12 10 7 3
99 10 -25 2 5 12
12 10

- 1

li j ' j \ t r cj j 1 j, j J1J J J j . j j- j > j


76
i125
s j12
. £
i r i fs5 5.75
i2 65 .25 .5 2 .75 .5 .25 .5
7 7 4 Q 7* j 3
1 3
?
3 3
* •25 .75 3 7 5 3 5

I
0 _2

i
a
1
I99
99 99

WE S H A L L O V E R C O M E

j 0 11= J
.5 5 .5 .5 .75 .25 1 .5 .5 .5 .5 .75 .25 1 .5 .5 .5 .5 ' 1 1
7 7 9 9 7 5 4 7 7 9 9 7 5 4 7 7 9 11 12 14

£) J^J u Jj r r ^ J J J
« 1~25 25 .25 .25 1 5 * 1 5 I 2 1 .5 .5 2 .5 .5 .5
11 9 11 9 7 9 11 12 12 9 7 9 7 5 4 7 7 * 5

1
21 3.5
.5 99
4 99 99
2 0

ZX COMPUTING JUNE/JULY 1 9 8 5 37
(PROGRAMMING FEATURE

Programming dicator when read into the pitch


variable.
9100 Data .5,7,
• 2 5 i 7 i > 7 5 f 91 • 5 / 7
which will show these techni-
ques in operation.
If this has whetted your ap-
petite then learning to read
When writing a piece of music
for the computer the most fre- The "Play" To use this from a main program music will not be that hard for
quent method seems to be to Subroutine or in a sequence then RESTORE you and perhaps even learning
simply get each duration and to the first DATA line of the tune to play an instrument may be on
pitch and write it as BEEP 9000 READ dur.pitch: If you require and GO SUB 9000, the cards!
.5,7:BEEP .25,9:BEEP .5,11 dur = 99 THEN in this way you can have several As far as existing computer
etc. etc. But if the tune is RETURN tunes which you can call as ware is concerned then I would
lengthy then an excessive 9010 If pitch = 99 THEN often as you like and in which personally recommend the
number of Beeps are needed, PAUSE 50 *dur: ever order you require. "Music Typewriter" from the
which of course means a great GO TO 9000 If you want to increase or Romantic Robot company as
deal of memory, and editing is a 9020 BEEP dur, pitch: GO decrease the speed of your tune one of the best produced for the
confusing task to say the least! TO 9 0 0 0 then all you have to do is alter Spectrum, this is closely follow-
As there are only t w o the BEEP in line 9020 as ap- ed by "Musicmaster" from
variables, plus the rests when Notice that the data termination propriate ie. BEEP dur/2, pitch to Sinclair. The DK'Tronics sound
required, I set up a subroutine value has to be duplicated or the double the speed or BEEP synthesizer comes with a free
which uses DATA and READ. subsequent READing of "pitch" dur * 2, pitch to slow it to half program which acts as a three
This is an all purpose routine and would cause the machine to speed. Alternatively, multiply- track digital recorder and is great
could be used to play several crash with an"out of DATA" ing " d u r " by a variable preset by for experimenting with. For the
tunes in any specified sequence report. the program will allow varying more dedicated, William Stuart
from the main program. The music itself is held in a speed music to be played in the Systems produce hardware and
The number of READs that series of DATA lines which con- same program. software to produce some
we make may vary from tune to tain the values for each BEEP. sophisticated sounds, but of
tune so I use the rogue value 99 My suggestion is that you put Finally course it is fairly expensive.
as a Data terminator when read each bar in a separate line to aid But now I'm off to get
into the duration and as a rest in- debugging. I include a short demo program Brahms and Liszt

1 0 FOR 1 = 1 T O 2T RESTORE 9100: IF I HAD A HAMMER


GO S U B 9 0 0 0 : N E X T i 9200 DATA . 5 , 9 9 , . 5 , 3 , . 2 5 , 7 , . 5 , 1 0
2 0 FOR i ~ l TO 3 : RESTORE 9200: , . 2 5 , 7

GO SUB 9000: NEXT i: STOP 9 2 0 1 DATA .75,10,1.25,10


8 9 9 9 REM P l a y t u n e routine 9 2 0 2 DATA .5,99,.5,12,.25,12,.25
9000 READ dur,pitch: IF dur=99 T , 10, . 2 5 , 7 , . 2 5 , 3
HEM RETURN 9 2 0 3 DATA .75,7,1.25,3
9010 I F p i t c h = 9 9 THEM PAUSE 5 0 * 9 7 H 4 DATA . 5 , 9 9 , . 5 , 3 , . 2 5 , 7 , . 2 5 , 1
dur: GO T O 9 0 0 0 0 , . 2 5 , 10, . 2 5 , 7
9020 BEEP d u r , p i t c h : GO TO 9 0 0 0 ^ 2 0 5 DATA .75,10,1.25,10
9099 REM d a t a for <?206 DATA . 2 5 , 9 9 , . 5 , 1 3 , . 5 , 1 3 , . 2 5
WE S H A L L OVERCOME ,10,.5,12
9100 DATA • 5 , 7 , . 5 , ,
, • 5, 9, .5,9 9 2 0 7 DATA 2 , 1 0
9101 DATA .75,7,.25,5,1,4 9 2 0 8 DATA .5,99,.5,10,.25,12,.25
9102 DATA • W | ' | 1J | ' f • f f f • J 9 ,10,.5,12
9103 DATA • 7 3 yrf'y * | N5 j 1 J 4 9 2 0 9 DATA .75,15,1.25,15
9104 DATA » 5 f 7 1 • 5 | 7 y • 15 $ 9 y * 5 11 1 9210 DATA .5,99,.5,12,.25,12,.2S
9105 DATA 1,12,1*14 i 1 0 y • I? 5 £ ^ £ i 2 * 5 y 3

9106 DATA 1 . 2 5 , 1 1 , . 2 5 , 9 , . 2 5 , 11 9 2 1 1 DATA .75,7,1.25,7


25, 9 9 2 1 2 DATA .5,99,.5,12,.25,12,.25
9107 DATA 1 , 7 , . 5 , 9 , . 5 , 11 ,10,.5,7
9108 DATA 1 , 12, . 5 , 12, .5,9 9213 DATA .75,3,.25,0,1,3
9109 DATA 9214 DATA . 2 5 , 3 , . 2 5 , 3 , . 5 , 3 , . 2 5 , 0
9110 DATA 1 , 9, .5,7, . 5, 5 , • 7 5 , — 2

9111 DATA 2,4 9215 DATA 2,3


9112 DATA * 5 1 7 | • 5 1 7 1 • 5 1 0 j m 5 15 9216 DATA . 7 5 , 7 , . 5 , 5 , . 2 5 , 3 , . 5 , 5
9113 DATA 1,4,1,2 9217 DATA 1,3,1,99,99,99
9 1 1 4 DATA 3 . 5 , 0 9218 REM some note lengths may
9 1 15 DATA . 5 , 9 9 , 9 9 , 9 9 sound s l i g h t l y t o o long
9 1 1 6 REM \s o m e n o t e s m a y n e e d or s h o r t , a musician
adjusting to suit personal w o u l d make allowances,
taste, I would shorten 3.5 y o u may c h a n g e n o t e dur
i n l i n e 9 1 1 5 t o 3 and malte lengths but t r y to keep
t h e . 5 in l i n e 9 1 1 6 up t o 1 the t o t a l l e n g t h of the
9199 REM data f or n o t e s t o a v a l u e of 2.

38 ZX COMPUTING JUNE/JULY 1 9 8 5 38
SHARP'S INVADES ENGLAND!
WAR in the EAST £9.95 BRITAIN INVADED! £9 .95
The simplest of the four but our best seller. As The most advanced of the four games. The play-
commander of the German forces you must er must defend England in this hypothetical in-
launch a surprise invasion of Russia, capture vasion during WW II. Effects of rail lines, weath-
and hold Moscow before the weather and the er, terrain & ports. Scrolling map, multiple at-
Red Army overwhelms you. Effects of terrain, tacks. Every German invasion is totally different
weather and fuel supply. Eleven types of divisions All this, and more makes this game a must! 11/2
and brigades. V/2 hr. playing time. Also for hr. playing time.
16K-ZX81.
Each game has a hi-res. map in color with sound.

FALL of the THIRD REICH £9.95


These are true military recreations of what hap-
pened. The ending depends on you. These are
not arcade or adventure games! No fast reflexes
As the German player your devastated army must
hold off the Allies and Russians on two different required. Not recommended for young children.
fronts, and hold Berlin as long as possible. Ef- Spectrum 48K
fects of rivers, forts, and mountains. Multiple No postage or handling required. All orders dis-
attacks are used on both sides. A real nightmare patched in 48 hrs. via air mail. Guaranteed satis-
for the player. 1 hour playing time. faction. Thousands sold in U.S.A.
Order by check/P. O./Visa.
ARDENNES £9.95 Now available to you only by:
In a desperate attempt you have to break through S H A R P ' S
the Allied lines, inflict heavy losses and capture Rt. 10 Box 459
as many towns as possible to prevent "Fall of the Mechanicsville, VA 23111
Third Reich". Scrolling map—brigade and regi- U.S.A.
ment size. 2 hours p'aying time. Tel: (804) 730-9697

OMNICALC 2 ims.

• OMNICALC 2 £14.95 t I!
i \^ J
T H E m o s t successful spreadsheet a v a i l a b l e for the S p e c t r u m .
Featuring: B l M
• F u l l s u p p o r t for the M i c r o d r i v e / n e t / R S 2 3 2 f a c i l i t i e s w i t h i n I n t e r f a c e 1. PWSfl
• Inbuilt graphics to draw histograms from your data.
• I n s e r t / D e l e t e c o l u m n and row functions.
• S e p a r a t e w o r k area to enable transfer of d a t a between spreadsheets (for c o n s o l i d a t i o n etc).
• C a n be used w i t h or w i t h o u t m i c r o d r i v e s , w i t h a full-size p r i n t e r .
1

• Complete with comprehensive manual. ^NMi

• OMNICALC 2 EXTENSION KIT £6.95 ^


• Run y o u r p r o g r a m f r o m d i s k ; w i t h the e x t e n s i o n kit y o u c a n i n c o r p o r a t e a d d i t i o n a l
c o m m a n d s . S u i t a b l e for m o s t a v a i l a b l e disk drives, i n c l u d i n g w a f a d r i v e s .
A l s o c a n be used t o a d d i n s p e c i a l p r i n t e r c o m m a n d s .
• S c r e e n - d u m p r o u t i n e ; designed p r i m a r i l y for I n t e r f a c e 1 o w n e r s w i t h E p s o n - t y p e
p r i n t e r s , t h i s r o u t i n e has single and d o u b l e size f a c i l i t i e s and c a n be used b o t h to
p r i n t the h i s t o g r a m s p r o d u c e d by O m n i c a l c 2 a n d g e n e r a l s c r e e n - c o p y r o u t i n e s in
other programs.
• F o r m u l a p r i n t - o u t r o u t i n e ; by p o p u l a r request. P r i n t - o u t s of the f o r m u l a used i n
every c e l l of the s p r e a d s h e e t .
MICROSPHERE; COMPUTER SERVICES LTD 72 ROSEttERY ROAD
n - i i r o n c o u i z o c
11 / / ' - / \ L O / / 7 / r / \ / r LOHDOI1 n 10 21A • TELEPHONE 01-883 9411
This program not only turns the
Spectrum keyboard into a piano Cavriel Hajibab of London
keyboard with an excellent
graphical representation of the wrote this brilliant program
which will give your
keyboard, but actually allows
you to play more than one note

Spectrum a
at once! This is achieved by us-
ing a vibrato effect and the final
result sounds like a Mandolin.
Unusual and very pleasing to the
ear. musical
The instrument will play
notes over one octave from mid- keyboard.
dle C to upper E. Keys A to
ENTER act as the white notes on
a piano and the appropriate keys
fm on the line above play sharps
and flats. each one, and when all five have
As you may imagine, the been entered the screen will
BASIC BEEP could not possibly display a number. This number
cope with this, and so Gavriel MUST be the same as the one
has resorted to machine code given at the end of the line. If it is
which has to be put into the not then answer " y " t o the pro-
memory by a special program. mpt and re-enter that line again.
Once all these numbers have
Entering the been entered you have finished
with the fig 1 program, so type
Program NEW and ENTER, and the
machine will give the same ef-
First type in the program given in fect as when you first switched
Fig 1. This is a loader program it on. But don't worry, the code
which will put the machine code is safe. (If you are worried then
into memory. Now look at Fig 2. SAVE " m u s i c " CODE, 1 0 1 0
This mass of numbers is before NEWing your computer.)
made up in the following way, Now type in the fig 3 pro-
first is a five figure number (star- gram and RUN it. Save the pro-
ting at 32768) this is the ad- gram, there are two sections to
dress at which the code is it, on tape and verify it. On all
stored. subsequent loadings the pro- FIGURE 1 . Loader Program
This address is followed by gram will auto run load in the t o DORDCP 6: PAPER ?: INK 7: c
five numbers, these are the machine code and be ready to LEAR 32766
bytes of machine code which use.
need to be entered, and finally If you want to test it without 20 LET CHECK=0: LET PRINT
there is a number at the end of reloading, then type RAN- AT 15 > 12? PAPER 3? "BYTELOADER":
the line, this number is the sum DOMIZE USR 32768. When PAUSE 50! CLG
of all the five bytes of machine you wish to end your musical
code and is used as a check. renditions then press CAPS/ 30 TOP A~32763 TO 337*78
w
(See fig 1 a. for an example). 40 INPUT "(D-DELETE LAST ENTRY
I " ; ( A > ; • -;A«: IF • • THEN G
T
(MACHINE CODE - five bytes) CHECKSUM. n n 10
ADDRESS
32768 205 87 130 33 255 710 50 TR THEN LET A~A -1 :
Figure 1a. PRINT AT C 1,0,,AT C 1,0?! LET C
MECK-CMECK- (PEEK A): LET C^=C-1:
So now run fig 1 and enter the LOCK and SPACE. To re-start
five bytes of machine code, one after a break use the USR PRINT #0; INK -1 J PAPER 0? FLASH
at a time, pressing ENTER after number as above. L;"ENTRY DELETED": BEEP .5,8: PA
p i
'•,-m

"•#111 —
Ife ' —

sm '
iff; ZX COMPUTING JUNE/JULY 19851
m M m: m mm .
S£p£! ',Ms" WM
Hi
«JBSe ••"I m
•• mm

32943 62 231 219 254 203


. TO 40
PAUSE 50. 3 2 9 4 8 79 2 0 4 191 1 2 9 6
1UGC
3 2 9 5 3 13 14 26 196 70
60 L E T B - V A L A *
3 2 9 5 8 130 62
7 0 POKE A , B ^ »B
231 219 234
P R I N T A ; - , 3 2 9 6 3 2 0 3 87 204
80 CHECK-CHECK 4
»B
32968 6 13
9 0 UET 14
L E T r-C * 1 32973 70 130 62 ii
100
I 3 2 9 7 8 254 2 0 3 103
1 1 0 I1 F <C/5
05 F L A S H 3 2 9 8 3 129 6 13
I N T AT C H E C K :
C H E C K S U M I N 3 2 9 8 8 196 7 0
LER PAUSE
J . P A U S E
«
w m
3 2 9 9 3 219 254 2 0 3
130

B E E P • S , 0
' ; O R E C T X OOF
RS
H «V/H»
JI
Q
3 2 9 9 8 227 129 6
PUT . IFT CHECK
- A M Y C OTRH R ENf c U AL_ETI rUFC
GO
K-0• Lfc
-1 3 3 0 0 3 18 196 7 0 9\
F CLS
:
. -

A * - L- E* T A-A-S: 33008 223 219 234


T
I F • F
•V 3 3 0 1 3 204 2 3 9 129
It
A N D
I C W 1 H T CI 3 3 0 1 8 14
120 16 196
U E T C - 0 T 33023 62 223 219
M - THEN
I '1 33028 79
A N D A « < < 204 231
US : G 0 W
1

I F 3 3 0 3 3 13 14 12
130
-M- THEN GO 3 3 0 3 8 130 62
223 :
I 33043 203
140 NE^.T 811> 'tf-fA 71 204 :
33048 6 13 14 10
33033 70 130 193 6
33 255 7lO
32~,68 2 0 5 33058 1 2 6 87 R
251 ~*o9 14 60
3 2 7 7 3 1 2 7 62 219 33063 253 243
129 658 211 234
32778 203 71 53 3 3 0 6 8 133 6 6
203 99 l 16 234
3 2 7 8 3 62 253 251 33073 32
18C 246 251 201
32788 71 201 I 2 ^ 6
3 3 0 7 8 2 5 4 21«?
53 301 254 703
3 2 7 9 3 11 14 196 3 3 0 8 3 2 0 2 65
251 918 129 19?
3 2 7 9 8 1 3 0 62 253 219 T3C8G I 2? 1
129 701 61 J 56
3 2 8 0 3 20~< 7 9 204 89 3 3 0 9 3 23 7 95
196 252 7 i I 254
32808 6 ! 1 t1 25 3 3 0 9 0 1 77 3 2 mm
2 19 7 I7 247 201
32813 53 130 62 253 33103 0 6 l l
32818 251 203 87 201 100 818
3 3 1 0 8 205 19
11
23 183 1 3 0 21
32823 129 6 11 I I 3 3 1 13 5 1
691 225 6 l L
3 2 8 2 8 196 53 130 62 253 3 3 1 18 2 5
9^5 205 I 9 l 30 • t'mw&MW?
32833 219 251 203 95 201
6 LL 11 271
33123 I 90 51
200 6
32838 1 1 1 I 29 33128 I I 23
62 162 205 I 9
3 2 8 4 3 21 196 53 130 3 3 * 3 3 24
1032 179 51 192
32848 253 219 251 203 103 331 38 L I
mm 172 14 21 205
3 2 8 5 3 2 0 1 122 129 6 1 1 3 3 1 4 3 l 3 0 24
130 112 168 5 4
3 2 8 5 8 11 19 196 53 33 l i t 6
929 11 II 19 ;
3 2 8 6 3 62 191 21^ 251 203 3 3 1 5 3 19
58^ 130 24 157 •
3 2 8 6 8 71 Z01 1 77 1 2? 6 33158 150 6
291 1 1 11 J
32873 1 1 I I I 7 196 53 3 3 1 6 3 205 19
856 1 3 0 21 j
• i 32878 1 3 0 62 191 219 2 5 1 3 3 1 6 8 54
782 134 6
Hit 3 2 8 8 3 204 167 129
I I J
203 79 33173 2 0 5 19
15 196 212 130 1
32888 6 11 II 33178 54
655 125 6 1
32893 53 130 62 191 219 33183
903 m 13 2 0 3 19 1
32898 254 203 87 201 155 33188
173 L 31 129 51 1
32903 129 6 L1 11 13 33193
632 11 14 11 2
3 2 9 0 8 196 53 1 3 0 62 191 33198
975 130 195 31 1
32913 219 254 203 95 201 33203 j 97 6 II 1
33208 1 2 0 5 19 130 1
33213 ;
48K SPECTRUM PROGRAM
fgj* <8

3 3 5 2 3 13 14 205 217
• >
7 ,
S'Vife:..
476
3 3 5 2 8 13 17 76 131 1 238
3 3 5 3 3 20 0 205 60 32 317
33538 6 12 14 27 205 264
3 3 5 4 3 2 1 7 13 17 35 131 413
33548 1 20 0 205 60 286
3 3 5 5 3 32 6 11 14 27 90
3 3 5 5 8 2 0 5 2 1 7 13 17 97 549
3 3 5 6 3 131 1 20 0 203 357
33568 60 32 201 1 5 2 3 2 477
3 3 5 7 3 152 3 2 132 32 152 520
33578 32 132 32 152 3 2 400
3 3 5 8 3 152 3 2 132 32 152 520
33588 32 152 3 2 1 5 2 153 521
3 3 5 9 3 154 1 5 3 134
32 152 645
3 3 5 9 8 153 154 1 3 3
134 1 3 3 767
3 3 6 0 3 154 3 2 1 3 2 1 3 3 134 645
3 3 6 0 8 153 134 3 2
152 152 643
3 3 6 1 3 146 1 4 7
146 1 4 7 3 2 618
3 3 6 1 8 132 146
1 4 7 146 1 4 7 738
3 3 6 2 3 146 147
32 1 3 2 146 623
3 3 6 2 8 147 146
147 32 132 624
3 3 6 3 3 1 3 0 131
1 3 0 131 1 3 0 752
3 3 6 3 8 151 1 3 0
131 1 5 0 131 753
3 3 6 4 3 130
131 1 3 0 131 1 3 0 732
33648
131 1 3 0 131 1 5 0 131 753
33633
148 1 4 9 1 3 0 131 144 742
33658
145 146 1 4 7 4 3 43 524
33663
43 32 77 83 83 320
33668
73 67 32 77 314
33673
69 83 84 82 79 397
33678
32 43 43 43
0
33683
0 0 0 0 0 0161
33688
0 0 13 13 13 43
33693
33698
13 13 13 7 0 32
33703
240 240 240 240 240 1200
2 4 0 2 2 4 128 13 13 622
33708
33713
13 13 7 0 0 37
0 240 240 240 240 960
33718
224 1 2 8 1 2 8 128 1 2 8 736
33723
128 128 128 128 767 i
33728
128 128 0 0 0 256
33733
0 0 235 0 0 233
33738
128 128 2 3 3 1 2 8 128 767
33743
128 128 128 0 0
33748
235 0 0 384
33753 0
0 0 253
1 2 8 1 2 8 128 128 512
33738
1 2 8 1 2 8 128 1 2 8 15
33763 527
13 15 13 15 13
33768 75
15 15 240 240 240
33773 750
240 240 240 240 240
33778 1200
0 0 0 0 0 0
33783
0 0 0 0 0 0
0 0 0
33788 0 0 0
Figure 3.
1 0 SAVE imu 5 l c LIME 20: 3AVE
"maestro'CODE 32768,1010
20 C L E A P 3 2 7 6 6 : LOAD - - C O D E
30 R A N D O M I Z E USR 3 2 : ' 6 8
AMERICAN & BRITISH
COMPUTER
BOOKS & MAGAZINES Would you like to transfer your Spectrum programs from
We offer a World-Wide service for books from all © MICRODRIVE TO MICRODRIVE ® TAPE TO TAPE
publishers and more than 50 magazines.
© TAPE TO MICRODRIVE © MICRODRIVE TO TAPE
Please fill in the coupon and ask for monthly listing of
NEW books and magazines. You may also subscribe to the Then do it with
following popular magazines starting from the current
issues. Europe Other
AMSTRAD CPC 464 USER £19 £27 ZX S p e c t r u m
BYTE £26 £32
COMMODORE USER £18 £28 •••••••••a
MSX COMPUTING £18 £28 o•u•a•a•a•a•n•a •a •c j
MSX USER £18 £28
PERSONAL COMPUTER WORLD £19 £28 •••••••nnn
QL USER £18 £28
SINCLAIR PROGRAMS £18 £28 TRANS-EXPRESS is the most comprehensive package of four m/c
SINCLAIR USER £19 £29 utilities for transferring Spectrum programs. They ore user- friendlv
YOUR COMPUTER £21 £32 simple to use, reliable & very efficient They wilt enable you to transfer
ZX COMPUTING £14 £24 any kind of programs up to the full 48.0k length. TAPE t 0o MIC
MICRODRIVE
These are SPECIAL 6 months Trial Offer Prices. will also automatically, if necessary, modify re-struc
both BASIC and m/c to RUN from microdrives
Please fill the coupon and send it with your cheque to:
TRANS-EXPRESS is an essential microdrive companion and an
COMPUTER BOOKS AND invaluable software back-up utility.
MAGAZINES — HAULSTERM LTD You can buy each of the four programs separately for £ 5.50 or
TAPE TO MICRODRIVE & MICRODRIVE TO MICRODRIVE for £ 7.50 or
91 Exeter House, Putney Heath, London SW15 T
® an entire package of all four programs on one tape for £ 9.95 or
Tel: 01-788 8746 on a microdrive cartridge for £ 14.95 only.

Name Tel:
'DRIVE TO M'DRIVE
Address
Please send me a copy of TRANS-EXPRESS 0 © ® © [ Z X
I wish to subscribe for 6 months to the following magazines: I enclose cheque/PO for IEurOC#*fi ordtri pleju *ddi] muti <2)
1 £ Name/Address...
2 £
3 £
Enclosed please find a cheque for Total £
Pteascsen^v^Us^ofbook^a^ • ZX6785
••MARTIC R t l t T 113 Melrose Ave, London NW2

• . .

co«r
HOME & BUSINESS FILING SYSTEM
The most versatile database for the 48K Spectrum
• Up to 36 User-Defined screen/print formats per file, and each
can display different selection of fields, in different sequence.
• High efficiency data packing, no wasted filespace. ^ C u s t o m
• Super fast, multi-level file search, record selection capability. weotioos-
• Up to 51 columns, and 22 lines per record can be displayed.
CoUecV**
• From 1 to 22 records at a time can be shown on screen.
• Up to 128 characters per field, 36 fields per record. ^ecovds
• Compatible with Tasman, Euroelectronics and Kempston KFEBTES
printer interfaces, and adaptable for most disc systems.
"... the best database for the spectrum is now even better." Sinclair User, Jan '85.
Design your own print layout with MF-PRINT. S^arop'
For Masterfile version 09; increases the number of columns to 136+, and has numeric
editing and column totals. Almost no reduction in space available for data!
\N\n©
) ccM*
• Masterfile version 09 £14.95 The programs are sent
on cassette by r&turn
MF-Print £6.95 Te\eP
• Masterfile with MF-Print £19.95 Prices include VAT
and PficP anywhere
within Europe
MICRODRIVE
COMPATIBLE
Uste-
All available for the 48k spectrum (+} Also available from leading computer stores
Gar
• Enhanced version available for Amstrad at £24.95 C\\p>

Campbell Systems (Dept. ZX )


Campbell Systems 57 Trap's Hill, Loughton, Essex
IG10 1TD, England. Tel: 01 508 5058
SOUNDS

Midi in The H o m e
Talented? Musically frustrated? Read
on * * *

There is a g r o w i n g trend You cannot create your own follows is available on the left compatible. Unusual for this
towards using the computer as a rhythms on the basic machine hand part of the keyboard which kind of instrument is a se-
tool in the composition and per- but for an extra £1 20 JVC also can be split into any of three quencer recorder which allows
formance of music using the produce a Composer unit which preset positions. two-track recording of two in-
new range of l o w c o s t plugs in and makes this feasible. The power supply unit is dependent sound generations.
keyboards and synthesisers. This machine seems aimed at separate from the instrument A full five octave, 61 key
We decided to keep up with this the home user rather than the and is plugged in in a similar keyboard is fitted.
trend and present a guide to professional, a 2.5 Watt stereo manner to the Spectrum's PSU. This is an exciting machine,
what is available and how it can amplifier is built in and is very A 4 Watt per channel stereo which could take up hours of
be used for both expert and loud in an enclosed room. Out- amplifier is built in, which is very your time playing with the dif-
newcomer alike. put is via phono plugs rather loud! A counter melody option ferent sounds and the millions of
As w e are a computer than the professional standard adds harmonies to the melody variations. The fifty alterable
magazine we are concentrating jack plug. Optional extra ac- line and an interesting feature sounds supplied show the range
on this aspect and our informa- cessories include a stand, ex- called "left to mono" plays the of instruments which can be
tion on the instruments is not "in pression pedal (volume) and car- top note of right hand chord as a mimicked and the beautiful (and
depth" — this could be the sub- rying bag. separate single note in the left weird) sounds possible. If
ject of a magazine in its own This is a high quality unit hand voice. sound, professional quality, and
right! which allows inexperienced The drums are not very versatility are what you want,
Arguably, CASIO are the players to produce interesting realistic and rather limited, coupled with a comparatively
Sinclair of the keyboard world, sounds quite quickly, but which however the rhythm patterns simple set of controls then this
three years ago their £ 4 0 is also versatile enough to please are very good and have a nice one demands your attention.
machine caused as much stir as the experienced. A graded set of " f e e l " which makes playing Siel's address is as previously
the ZX81 in its day, and even tunes in script form complete along easier. After a little confu- mentioned.
now t h e i r C Z 1 0 1 is the with suggested settings is also sion the machine fell into place
cheapest MIDI machine on the included. The drums sound very and I found it easy to get what I
w a n t e d , the f i v e o c t a v e
Korg Poly 800
market at around £350.00. I
know several people personally
realistic, though a little
monotonous, a common pro- keyboard gave a healthy range £635.00
who owned an early Casio, blem, and the voices are very and the sounds were very well Rose Morris & Co
went into computing and, retur-
ning to bigger machines have
good — note though, that you
cannot alter them, the Jazz
created. In particular I liked the
Pipe Organ, Strings and the
Ltd.
now linked both interests Organ, Piano, and Harpsichord Trombone, the latter not soun- This has proved to be a popular
together, and they are not all in particular, but this is very ding quite like the real thing, but machine, and computer users
millionaires either — one is a much a matter of personal giving a great sound anyway. It are made to feel at home by the
schoolboy and another is preference. Manual drums can is more for the player with added little joystick fitted in the top left
unemployed! be played and there are 24 per- accompaniment, but versatile corner of the instrument!
cussion effects! enough to enable an inex- The keyboard has 49 keys (4
instruments Arbiter Ltd, JVC House, perienced musician to make octaves) and the rear has two
good music.
Eldon Wall Trading Estate, main panels, a raised control
Staples Corner, Priestley Way, Siel (UK) Ltd, AHED Depot, panel and a flat reminder panel,
JVC KB600 London NW2. Hookwood, Reigate, Horley, the latter simply shows the
Surrey RHG OHY. related parameters and possible
£650.00 Siel MK900 values and is there to provide in-
Arbiter Ltd. £459.00 Siel DK80 formation rather than having
any function. It features a
This machine has 49 keys (4 oc- Siel (UK) Ltd. £699.00 MODE function which allows
taves), 10 voices, PCM drum you to choose between a single
sequencer w i t h 14 preset Spectrum users will feel at home A deceptively simple looking DCO operation with eight voices
rhythms and 4 variations on with this one as the control but- machine which is a true syn- or two DCO's of four voices
each for drums, bass, rhythm, tons have the same kind of rub- thesizer at a reasonable price. each. VCf on three DEG's
and arpeggio — each with in- bery feel that the original Spec- It features 1 2 voices, double (Digital Envelope Generators)
dividual volume control. The trum had! sound generation, dynamic which include the ADSR. A step
keyboard can be split as desired However, this is no criticism, keyboard (usually only found on time sequencer is built in which
so that left and right halves of the thinking behind it being that instruments at twice the price), provides a 256 note memory.
the instrument can play dif- a musician wishing to change 87 programmable parameters, MIDI is very comprehensive
ferent voices, the voices are in something during his perfor- ASDR, two DCO's and VCF's but in the short while I had the
two groups so that some voice mance would not be over gentle and four LFO's (see glossary). unit I couldn't find out how to
combinations are not possible. in hitting the button and for this MIDI IN, OUT and THRU sockets switch from POLY to OMNI
There is a chord and rhythm se- they are ideal. This instrument are provided and both OMNI and mode which the specifications
quence recorder and a melody features 61 keys {5 octaves), POLY modes are available. said it would do. However I
line can also be recorded. One 10 voices, a rhythm unit which This unit actually represents found that OMNI is not essen-
finger chords are provided or full includes drums, bass, rhythm great value for money, having tial, although it can be useful.
finger chording, and the rhythm and arpeggio and 10 preset many features normally not in- This is another fairly simple to
unit follows the chord played on rhythms. You can program your cluded on the cheaper synths — use machine with a tremendous
the left hand. A useful feature is own rhythmic sequences from such as a pitch wheel, for in- range of sounds and options, it
Ultra Chord which adds an ap- t h e manual drum o p t i o n stance. The Midi format is very may seem a bit expensive but it
propriate harmony to notes on which has four percussion ef- well implemented, and they is well built and has many extra
the right hand in relation to the fects. One finger chording, market their own interface and features which may be useful to
chord played on the left. w h i c h the rhythm pattern software which is, naturally, you, such as the joystick pitch

44 ZX COMPUTING JUNE/JULY 1 9 8 5
that you try one out before par-
ting with almost twice the
money for a "real" one.
Casio Electronics Ltd, 1000
N. Circular Rd, London NW2
7JD.
Casio CZ-101 and
CZ1000 Caution!
£345/£499 In nearly all the instrument
Casio Electronics manuals the Midi functions have
been rather vague, though the
We couldn't go without looking Siel and Korg manuals were very
at the Casio machines. These good.
two are essentially the same, It is important that you check
but the CZ1000 has full-sized that the machine will do what
keys rather than the miniature you want it to do and therefore it
CZ-101 version. Apart from is worth checking on the follow-
that they are identical in opera- ing modes which may or may
tion, so, are full size keys worth not be operational on the instru-
£1 50.000 to you? ment:
The units have two sets of
DCO, DC W and DC A OMNI mode is a general all-
p a r a m e t e r s , an envelope purpose mode where the instru-
generator with eight preset ment receives and plays ALL the
values, and a 49 key keyboard. information sent to it on all 16
There are 16 preset, 16 pro- channels. It transmits signals on
grammable and 16 optional channel 1 only. This is useful if
RAM voice memories, 48 tone you want to write and play parts
memories and programmable for a single instrument or do sim-
pitch bend and portamento. ple layering. It is USELESS if you
Even though the range of want to create multi-instrument
sounds is limited by the use of parts each playing independent-
presets for some parameters ly through several machines.
there is still a wide range of The better instruments feature
sounds and a tremendous varia- this as well as Poly mode. The
tion in each to be explored. JVC in common with most key-
This is the ideal instrument boards was OMNI mode only.
for those who wish to experi-
ment and have no preconceived POLY mode is the mode in which
ideas of what they are trying to you assign a channel to the in-
produce. I think it may be too strument and it only plays the in-
limiting for a synth expert who formation sent on that channel,
has audio images in his head, but there are 16 channels and the in-
for most of us it is a wonderful fo on the other 1 5 is ignored.
machine with enough scope to This is essential for creating
keep us happy for hours. It also multi instrumental musical
provides a reasonably cheap pieces, but can be time consum-
means of acquiring a second ing if you have to keep adjusting
machine to layer or connect up recordings to accommodate at
to form a Midi orchestra. the testing stage, this is where
The small size of the keys on OMNI mode is useful.
the CZ-101 may cause pro- Most synths run in POLY
blems to trained musicians, as Mode, but check before buying!
! s.t'Cf fingers tend to get in a twist,
»tU(t option however the average person There is a third mode, MONO
should not find any problems but this tends to only be includ-
and you soon get used to their ed on the top end of the range,
size. I liked it a lot and suggest ie. £ 1 0 0 0 . 0 0 + instruments. •

ZX COMPUTING JUNE/JULY 1985 45


SOUNDS
RIGHT Tlx 1 B 00 1 p12345678
Interfacing Micon interface
The instrument is connected to
£108.00
the computer, as you may have XRI Systems
guessed, by an appropriate in- (Including Step and Real Time In-
terface. This interface consists terfaced
of a means of connecting and This is one of the cheapest on
converting the signals from the the market and it shows in the
DIN pin connector to the Spec- rather functional look of the in-
trum via its user port. The bare terface, but don't be put off, it
essentials must be a MIDI OUT works perfectly and is easy to
socket to send information to — J i i i use. The Interface is a large
the instrument's MIDI IN socket, plastic box which stands upright
a MIDI IN to get signals from the
instrument's MIDI OUT and
^TTj •^Tj and is connected by a small plug,
the DIN sockets are fitted at the
preferably, but not technically top of the unit and consist of
essential, SYNC IN and SYNC MIDI IN, two MIDI OUT, and
OUT sockets to enable control SYNC IN and SYNC OUT. This
of, or from, an external source arrangement may pose pro-
such as a MIDI drum unit. blems if a lot of lead swapping is
required during a program run
Software and buying an extender cable
helps eliminate this, otherwise it
The range and applications are is stable enough.
extending daily, but the most
common and most generally STEP TIME SEQUENCER
useful are the following: The Software is top quality,
especially the Step Time se-
SEQUENCER quencer, this allows for ten one-
This stores and replays a series note tracks to be recorded either
of notes. These are computer singly or in blocks of chords.
variations of what is often built The procedure is to select
into an instrument but have ad- which track you want to record
vantages in that it can be easier on, indicate how many other
due to a higher degree of control tracks you want to involve (2/3
and editing of the music. for chords perhaps), press the
There are two main modes, note(s) and tap the Space bar to
STEP TIME which is writing enter it. The note(s) appears on
music note by note as many the stave in the base time length
computer music programs tend — down to 1/32 of a note, as
to be written, and is like "music previously decided by you —
by numbers". The advantages and further taps of the space bar
are that it is easy to convert from increase the note length in steps
manuscript to machine and of the base value. This can be
editing should be very easy. It is repeated until all ten tracks are
also a great way to experiment used, previously written tracks
as mistakes are not fatal, and can be edited or completely
the graphic displays can be im- overwritten.
pressive. This is a very powerful piece
The disadvantages are that of software, and all the control
some knowledge of music is options you could think of are in-
needed and it takes a very long cluded, such as Tempo, Patch
time to produce tunes of any change, Replay with or without
great length. The second is LIVE music displayed (time is not ac-
or REAL TIME and here the in my explanations I know when Having made this statement curate, but acts as a "trace
player simply plays and the com- it comes to the modulating ef- there will probably be several on"), and individual channel
puter records what has been fects many readers will have others which have been produc- assignment to each track. A
played. Favoured by the "play given up. If you could see it ed since this was written — let copy to microdrive facility is in-
by ear" musician and those with g r a p h i c a l l y and hear the us know and we'll put the record cluded and I converted it to Disk
little or no formal training. Disad- changes whilst seeing them straight. in about ten minutes.
vantages are that editing is dif- then I'm sure you'd agree that A Composer program is
ficult if not impossible and this is one area where a picture similar to a sequencer program REAL TIME SEQUENCER
graphic representations are not really is worth a thousand except it tends to be used to hold The Real Time Sequencer acts
usually possible. words! An Editor is an essential several parts which go to make as a simple recorder which
and important application, up a piece of music, ie. Bass line, replays the music as you play it.
EDITOR especially as sounds can then be Violin sections, Brass sections It worked perfectly but I found
Only of use to the synthesizer stored and recalled. etc. These may play different that it didn't have the same in-
owner, this makes creating or pieces of music at different terest for me as the other pro-
modifying sounds a fascinating times and is useful if you have gram. It performs a task similar
and much easier job as you COMPOSER more than one instrument or to the sequence record option
should get a graphic representa- Again this can be Step Time or "slave" units, such as Siel's built in to most keyboards. I
tion of the sound you're working Real Time. At the moment there EXPANDER. These are rather must add though, that it does
on. Only the most expert (and is only one company with a com- specialised but we will look at allow ten individual recordings
that does not include me) can pletely real-time composer pro- them as I do know of some peo- to be made, a far greater number
"hear" a sound and visualise the gram, and that is Electromusic ple who get together with their than usually supplied, and this
parameters required. Although I Research, run by Mike Beecher machines, link them together ability is not usually included on
have tried to be simple and clear (marketed by Rose Morris Ltd). and have their own orchestra!!! synths.

46 ZX COMPUTING JUNE/JULY 1985


SOUNDS

On Test ference between the two ver-


sions available is that the Rosetti
supplied. This was a pity as this
is a very strong and interesting
It is enjoyable to use and a lit-
tle more versatile than most
I tried it with the POLY 800 and interface is bright blue with JMS feature of the program. built-in sequencers, though
the JVC KB600 and it worked on it and the Siel one is black whether you decide it's worth
well on both. The JVC disap-
pointed me because it only func-
with "SIEL" written on it!
Software from either com-
The Arpeggiator £29.95 is up to you and the use
to which you want to put your
tioned in OMNI Mode, ie ac- pany runs on either interface, . . . w a s interesting but of machine.
cepted and played the music though the Micon software did limited value, useful for playing
from ALL the channels. This not work with it. All in all, this is along with and, when used with Composer
means it is not suitable for play- a sturdy, good looking, well the footpedals, can store and
ing specific parts of a composi- designed piece of equipment. replay in sequence up to 40 This is Rossetti's star program,
tion. It also only played in one chord arpeggios. It would have it is very similar to the XRI step
voice and the drum/rhythm unit
was not triggered, this means
Rossetti Software been more use if the patterns
could have been varied rather
time sequencer, arid is not really
my idea of a full composer pro-
that all the sophisticated extras 8 TRACK COMPOSER £49.95 than the fixed run up or run gram.
were unavailable when using LIVE SEQUENCER down the chord notes. A feature This one merited four and a
Midi. ARPEGGIATOR £19.95 to allow you to decide the order bit pages of a leaflet! It actually
However, some impressive (See our Special Offer Coupon of play or a random option would took me an hour to get to grips
single voice stuff can be produc- for Rosetti's address) have made this much more ver- with the program and I was quite
ed, (after all, a Piano only has satile. Verdict; fair, a pity it impressed. Each of the eight
one voice!) and by splitting the Two things are immediately ob- wasn't developed further. tracks hold only one-note se-
keyboard so t h a t all the vious with this company's quences, these are played into
keyboard is the left hand and wares; first, they all come in the computer from the key-
then splitting the voices, you
can record a chord and rhythm
distinctive blue library cases and
secondly the instructions,
Live Sequencer board, the only thing that is
recorded is the pitch of the note,
backing and add a live melody in although commercially printed The c o m p u t e r a c t s as a all note lengths are set to
a different voice. are VERY brief. There is less said straighforward tape recorder — quavers. Once the sequence has
The Korg performed as ex- on the Arpeggiator leaflet than well, slightly more actually as been played then the fun begins.
pected, except that I had pro- on most cassette inserts. The you can also auto start it or Lines of music shorthand are
blems making the patch-change assumption is that you should playback at varying tempos presented in five rows which are
operate mid-way through a know what you are doing, both without pitch distortion, and the note or line number, pitch
piece of music. musically and computer-wise. loop the sequence so that it eg. 4D (note D in 4th octave),
Having moaned, it is only fair replays continuously. Oh, and duration as a note symbol, gate
Assessment to say that as a user with only you can also get the machine to
smooth out and adjust the tem-
time (sustain), velocity
(volume). The last three are
general knowledge I really didn't
Impressive, especially the soft- have any major problems, ex- po and reassign the channel so alterable (editable) from a cursor
ware, and well w o r t h the cept that I couldn't operate the that another instrument replays and this is where a composition
money. My only real criticism is Arpeggiator with the footpedals it. takes shape.
that the instructions, although
well written are supplied on
single sided computer printout
paper, and t r y i n g to find
something by searching through
twenty four joined sheets was
most frustrating. In the end I
pulled them apart and filed them
in a ring binder — end of pro-
blem.
XRI S y s t e m s , 10 Sun-
nybank Rd, Sutton Coldfield, W.
Midlands.

JMS Midi interface


£94.95
Sold by both SIEL and ROSETTI,
for two different prices (£74.00
and £94.95 respectively) this
Italian interface is a very profes-
sionally made unit. It consists of
two units connected by a ribbon
cable some 60cms long. This
means you can plug or unplug
DIN sockets, while connected to
the Spectrum, with confidence.
One end of the cable is fitted
to a slim, tall box which fits on
the user port, the other end is at-
tached to the middle of a large
box with the DIN sockets either
side of it. There are three
sockets on the left, Control IN
for a rhythm unit or pedals,
THRU and MIDI IN. On the right
are three further sockets, all
MIDI OUT. The only visible dif-

47 ZX COMPUTING JUNE/JULY 1 9 8 5
SOUNDS

the graphical knobs they change


A wide range of editing op-
tions are provided and you could Glossary to the correct position.
then go away and work com- Some terms for the uninitiated. The DEG shape is displayed
pletely on the computer. Each of and modified as you alter the
the eight tracks are entered in ADSR: These are the four main variables of the average envelope parameters, and there is also a
this way and edited, and each generator, and stand for ATTACK — the speed at which a note h i s t o g r a m and numeric
can be assigned to individual reaches full volume, DECAY — the rate which it then drops to its r e p r e s e n t a t i o n of the
channels and replayed. A very playing level. SUSTAIN — this is the level at which the note sounds parameters. Colour is used well
worthwhile program and one continually, and RELEASE — the speed with which the note fades to highlight all these displays.
which could help in your quest to away after the key has been released. The only blemish on the
produce music. However, as horizon is a warning they give
with all their programs I feel that ARPEGGIO: series of notes which form a chord played in sequence. that some issues of Spectrums
there could have been more to it, cause a problem w i t h the
the method of entry seems an CHORD option, the synth doing
DC-: Digitally Controlled item. Synthesizer operations are controlled
uneasy compromise between a Sinclair type reset. This did in
either by numbers (digits) or by voltages, the newer system is digital
the musician and the computist. fact happen and, as I was using a
but there are still advantages to the earlier means of using voltages.
Perhaps this may have the ef- Spectrum + , it is likely that this
Many synths have a combination of both systems. Some operations
fect of appealing to both. option is 95% useless.
are Digitally Controlled Oscillators — DCO. Digitally Controlled
The graphic content of all Amplifiers — DCA. I loved the PLAY test option
these programs is very elemen- which arpeggios up and down
tary and most consist of menu FILTER: These are designed to block out frequencies selected by the and around the scale to try out
options and prompts; informa- user, this changes the quality of the note produced by the oscillator the sound, I could listen to it for
tion is given clearly and plainly and allows you to adjust the " t o n e " or timbre of the note. Most fre- hours. You guessed it, I'm im-
and the whole set is functional quently controlled by voltage as in VCF. pressed.
and workmanlike. I may have If you've got a DK80 then
given the impression that I don't KEYBOARD: Generally accepted as being an instrument which has this program is a must, and if
like these programs but I must several preset and unalterable sounds or "voices". These are often you haven't then it's a good
assure you that this not so, they bundled with sophisticated extras such as rhythm units, sequencing reason for considering buying
are all competent and will add and recording facilities. one! All their documentation is
new dimensions to your music, I on double thickness printer
was sad when I returned them to LAYERING: Using more than one voice, usually played in unison to paper, (rather down-market) it is
Rosetti — I think I'll take up their create the final sound. This is the most elementary way in which easy to understand yet enough
offer. . . MIDI can be used by simply connecting t w o or more information is also provided so
synths/keyboards with a five pin DIN lead. that a machine code expert
Siel Programs could write his own programs.
Live Sequencer LFO: Low Frequency Oscillator, this is used to "fatten out" a tone or
as a modulating waveform.
£122.00 Rose Morris
Sound Editor MIDI: Musical Instrument Digital Interface, the interface which Interface and
£54.35 should be (and is getting close to) a universal standard for transmit-
ting information to and from a musical instrument. Note that these Software
Two variations on each of these are in two forms for our purposes, as fitted to the keyboard/synth in
the form of DIN sockets and as the familiar add-on unit to be plugged At the time of going to press we
programs, each designed for the have not yet received their pro-
Siel instruments, either the into the back of the long suffering Spectrum.
ducts for review. We know
DK600 range (£999.99) or the though, that they were produc-
MK80 range. Although primarily MODULATION: Using a predefined voltage or control (LFO) to adjust
and modify a target sound. ed by Mike Beecher of Elec-
for their synths, they often work tromusic Research who we
with other instruments, this is featured in a recent issue, which
well worth checking especially OSCILLATOR: The source of the sound, a signal generator, as in
DCO. is an indication of high class. If
for the Editor which is superb! they arrive we will update this
(but I couldn't get it to work with article in the next issue but
the Korg). PATCH: A set up of the synths sound generation which is stored for
later recall. Similar to a "voice" on a keyboard. meanwhile I recommend that
But first, a mention of the Se- you take them into considera-
quencer, this does the same job tion before making your choice.
as the others mentioned, neither PCM: Pulse Code Modulation, this is something we computer users
are more familiar with, in effect it is a form of sound sampling, Their Composer in particular is
better nor worse, so what else is impressive.
there to say except that it work- storage and replay. It tends to produce startlingly realistic sounds
ed on the JVC as well as the but with a mechanical "feel" to them. Often used for drum
reproduction.
Siels? And Finally
SEQUENCER: repeated patterns are usually stored in memory and
Sound Editor replayed "in sequence". This is often an inbuilt feature but the com- The prices of the instruments
will vary quite a lot from place to
puter variations usually offer a lot more versatility and control.
This is the "Ultimate" program place so don't take them as
of the synth world. It has gospel, they are meant as a
SYNTHESIZER: An instrument which generates a sound which can guide.
everything, great graphics, then be modified by the adjustment of VCF's, DCF's, LFO's and a
user,-friendly and (eventually) wide range of tone and pitch controls. The end result is that many in- I must say a sincere thankyou
what soundsl struments can be mimicked very accurately and some strange and to all those who lent me all this
The program is menu driven very unusual sounds can be created. very expensive equipment,
and every screen allows you to Vince Hill Associates and Siel,
access an appropriate help Mr. Chapman and Rosetti,
VC-: Voltage Controlled item, this is essentially how the thing Richard Young and Casio, XRI
page. Most of the program operates, but adjusting the sound via voltage variations to such cir-
operates from screen pictures (who have just brought out a
cuits as an Oscillator — VCO, Filter — VCF, or Amplifier — VCA. Juno 106 and DX7 editor and
selected by cursor. From the
larger master displays you are about to release a composer
WAVEFORM: The form of the oscillation produced electronically program) and Paul Waby for len-
change to more detailed panels usually these can be produced in one of two forms, SQUARE, which
and as you alter the settings of ding me his Korg.
produced flutish, smooth sounds and SAWTOOTH which produces
brassy sounds.

48 ZX COMPUTING JUNE/JULY 1 9 8 5
SOUNDS

Software loud, all-in-one interface is


superb. The difference between
Music Maker £1.99 the ZX81 and Spectrum unit is
Malan ONLY the software, so you can
PO Box 390, Purleigh, Essex' get one for your '81 and if you
CM3600 upgrade to the Spectrum use it
Not very good and probably with that for the price of the ap-
not worth even the low asking propriate software.
price. I respect this company as they
have always been helpful and
Play, Type and Transpose seem to supply good backup to
£4.95 their customers who write from
Hilton Computer Services all over the world. Peter Moore,
14 Avalon Rd, Orpington, Kent the designer, is known to our
BR6 9AX regular readers for his hardware
A waste of money. project articles (last month's
was a Beep Booster). Backup
Music Maker £5.75 provided includes the produc-
Beilflower Software tion of music books containing
6 Rosewood Avenue, Green- Trichord arranged coding. The
ford, Middlesex first in this series is "Christmas
Disappointing, not bad for an Carols" and contains 25 carols
early attempt, but slow and set out in the tricord code (three
limited. columns of note/octave shor-
thand — C2) and the words.
Spectune £4.95 This is on sale from them for
XORsoft £5.95 with 50p p&p for Euro-
Very good; a good teaching pean sales and £1.50 for the
section will help you learn the rest of the world. (No extra for
basics of music, both step time GB.) Highly Recommended.
and real time record/play.
Recommended, especially if you William Stuart Systems
have l i t t l e or no musical Quarley Down House, Cholder-
knowledge. ton, Nr Salisbury, Wiltshire, SP4
Music Master £7.95 ODZ
Sinclair Research This company markets a range
A good program though of sound add-ons for both the
rather expensive. S/Time and ZX81 and the Spectrum and
R/Time entry and good playback they have some interesting soft-
and printout options. Instruc- ware, an arpeggiator and a com-
tions somewhat sparse. poser program. Using their pro-
ducts you can produce some of
Music Typewriter the effects described in the Midi
Romantic Robot £9.95 article.
113 Melrose Ave, London NW2 I suggest enthusiasts phone
Excellent, although S/time them on 0 9 8 - 0 6 4 - 2 3 5 and
entry only. Graphics and ease of discuss your requirements with
use make this program worth them. An example of their pro-
used to but produces very effec- ducts is the MUSIC SYN-
the high price. Printout option
provided and accurate timing on
Hardware tive sounds. THESISER (ZX81 and Spec-
replay. Top marks! BEEP AMPS trum) £25.50, this is similar to
These simply amplify the the other units except that up to
Make Music £5.95 volume of the Spectrum BEEP TRICHORD £29.95 three can be used simultaneous-
Buffer Micro Ltd. DK'Tronics £14.95 (interface Newtech (Micro) Develop- ly to produce 9 music channels.
3120 Streatham High Rd, and separate speaker "pod") ments, 1 Courtland Rd, Newton An offshoot of this unit is that
London SW16 6HG Unit 6, Shire Hill Ind. Est. Abbot, Devon TQ12 2JA. 16 input/output lines are also
For use with any program- Saffron Walden, Essex CB11 For both the ZX81 and Spec- provided for control of swit-
mable sound peripheral using 3AQ trum, this small but surprisingly chable devices.
the A Y - 3 - 8 9 1 2 chip, this Cheetah £9.95
simulates a three channel 24 Ray St, London EC1R 3DJ
recorder. Could be useful.
Firework Music/Water Music
Sound Units
SPECIAL OFFER FROM ROSETTI
£5.95
Jumpy Snake Blues/Honkey
These have a built-in sound
Tonk £5.95
Software Cottage generating chip, usually of the
AY type and offer three chan-
SAVE £49.90
19 Westfield Drive, In a special offer to ZX Computing readers ROSSETTI are giving a
Loughborough, Leics, LE1 1 nels of programmable sounds
for music or effects. free copy of their LIVE SEQUENCER and ARPEGGIO programs when
3QJ you buy both the INTERFACE at £94.95 and the 8 track COM-
Two packages, each con- POSER at £49.95 A SAVING OF £49.95.
taining two programs which are DK'Tronics £29.95
drill and practice exercises in the Separate speaker and interface, Send your cheque/PO for £ 146.95 (£2.00 for p&p) made out to
form of games. An interesting AY-3-8912 chip. Good soft- FD & H MUSIC, 1 38-140 CHARING CROSS ROAD, LONDON WC2
and painless way of improving ware program to use as a three and be sure to cut out and include this coupon as proof that you are a
your knowledge of musical track recorder supplied with the ZXC reader! (Photocopies will do also.)
notation. unit. Takes a bit of time to get

ZX COMPUTING JUNE/JULY 1 9 8 5 49
QL PROGRAM

A PUZZLE FOR THE


. . . END IF. To use this form of
the IF command, start with the
line:

IF condition THEN

Put nothing after the THEN;


you can place several state-
ments on any number of lines

by David Nowotnik
after this line, and all will be car-
ried out if the condition is met. If
you want to have some instruc-
tions if the condition is not met,
then the ELSE command follows
next. Again, you can have
The first few months of ex- the QL's powerful line renumber The strategy of program several program lines following
istence for the QL have not been facility can replace the PROC- writing in SuperBASIC is quite ELSE, all of which would be car-
happy ones. The computer and edure to any position required in different to Spectrum BASIC. ried out if the original condition
its producer have deservedly a program. You aim to build up a series of was not met. Finally, to inform
received a lot of criticism from You call a procedure simply PROCedures, each being a the computer that you have
the computer press. But now by using its name. Hence, in my distinctly independent new come to the end of the IF struc-
that many of the 'rough edges' program, when you see 'init' or command, which you can test ture, use the command END IF
have been smoothed, the QL is 'set up' in a program line, and de-bug, before moving onto (for an example, see lines 800 to
beginning to fulfil all those pre- these are effectively new com- the next PROCedure. The pro- 830}.
punch promises made for it. The mands calling the procedures of gram is then brought together
QL will be a big seller, and, no that name. Even when the pro- by calling these new commands Examples of SELect appear in
doubt, many Spectrum owners gram is not running you can call in the correct sequence. See if lines 5550-5650 and
will be making the transition to a procedure by typing in its you can spot that design in my 8 0 0 0 - 8 1 2 0 . SELect enables
the QL. To help with that transi- name — as you would a direct program. Even if you can't see the value of a variable to be
tion, this article will be offering command. that, one thing for sure — in the tested, and various actions to be
advice to Spectrum and 2X81 The use of PROCedures, and true spirit of the QL, you won't performed as a result of that
owners to adapt to Super some of SuperBASIC's other see any GOTOs or GOSUBs! test. In line 55 60, the first state-
BASIC. And, for QL owners, constructions encourage what The main ways by which you ment' = 1' effectively means 'if
there is a 'serious' game to play is commonly called structured can avoid using GOTOs are in the variable move one is equal
on your ' s e r i o u s ' home programming. A simple way of t h e m o d i f i e d f o r m a t of to one then. . . A s with the IF
computer. looking at this is that GOTOs and IF. . . THEN, and the new com- command, you could have
In the same way that the GOSUBs are excluded (although mand of SELECT. You'll see several lines of options if you
BASIC of the Spectrum was the QLstill has these if you really both in my program. You can wish before testing another
derived from that of the ZX81, must use them); the aim is to use IF. . . THEN in the same value of the variable. You even
so does QL's programming make programs more 'readable', way as on the Spectrum, but have an ELSE equivalent with
language owe much to its making them easier to under- you have a more powerful op- SELect. You can say ON
predecessor. I'm sure we'll see stand and de-bug, tion of IF. . .THEN. . .ELSE REMAINDER, and have several
yet better versions of BASIC in
the future, but SuperBASIC
deserves its name by present-
day s t a n d a r d s . Spectrum
owners may care to glance at
the program listing in this article;
many structures may look
familiar, but SuperBASIC also
has much more to offer. Par-
ticularly notable are PROC-
edures, and here's why —
Procedures are similar to
subroutines, but there are
enough differences to make
them much more powerful. Pro-
cedures work on their own set of
variables (although you can pass
variables to and form PROC-
edures in the normal way).
Using the LOCAL command,
you can identify those variables
which are used within the
PROCedure. Even if they are
identical in name to variables
within the main routine or other
procedures, use of the LOCAL
command keeps them quite in-
dependent. This leads to an in-
teresting and powerful possibili-
ty. You can readily build up a
library of PROCedures. You
need only know the input and
output variables, and, of course,
the purpose of the PROCedure,
and your PROCedure can be
slotted into any program in
which it might be required. And

50
QL PROGRAM

programs lines on what to do if window. The initials 'scr ' in- and Oric Atmos. This is my first the puzzle. The arrows show
the variable does not have any of dicate that the device you are version for the QL. you which number will move
the previous values tested. aiming that channel at is the When you RUN the program, which half, and in which direc-
SELect is a more powerful screen, and the numbers which you will get a choice of options, tion. The object is to re-form the
variant of the IF command. follow those initials define the for a demonstration, or to play original four large squares and
Other features you may spot width and height (in pixels) of the game. The demonstration place them in the same arrange-
in the listing are the two types of the window, and the position on will show you the starting (and ment they were in prior to shuffl-
loop structure. FOR. . . NEXT is the screen of the top left-hand finishing position) of the puzzle, ing. At the top right of the screen
one you'll know from Spectrum corner of that window. and the way in which it is shuffl- you will see a miniature version
BASIC, but REPEAT may be SCROLLis a command which ed, for you to return to its of the final arrangement of
new to you. An example ap- appeared on the ZX81, but original orientation. squares, to remind you of your
pears in lines 50 to 110. The disappeared on the Spectrum. The puzzle appears as a large aim in solving the puzzle. A
end of the REPeat loop appears The much more powerful ver- square on the screen, which is checking routine is built into the
in line 110. The loop is given a sion on the QL allows a window divided into four smaller, col- program, and you will be inform-
name (in this case 'demo op- to be SCROLLED up or down, oured squares of red, yellow, ed when you have successfully
tion', and the loop is ended with and by a specified number of blue and green. If you watch the solved the puzzle, and how
'END demo option'. You can pixels (for examples, see lines shuffling movement carefully, many moves it took you. Unlike
go around this type of loop 7140 and 7640). SCROLL can you should notice that there are the commercial versions of this
forever if you don't have some be modified further to SCROLL 8 possible ways in which the program, this version has only
exit possibility. With a REPeat only a specified number of rows puzzle can be moved. Imagine one level of difficulty, so once
loop, to exit the loop a condition of pixels within a window. The that you can divide the puzzle in- you develop a strategy for solv-
normally has to be met (see line command PAN allows the to t w o equal halves, both ing the puzzle, your aim must be
70 for the construction). The s p e c i f i e d w i n d o w t o be' horizontally and vertically. This to minimise the number of
EXIT command effects a GOTO, SCROLLed either left or right. gives you 4 possible 'halves'. moves necessary to solve it.
to the line immediately following You will notice quite a few The movement of these halves This version also differs from
the END REPeat. REM statements in my listing. involves sliding a half in the commercial versions in that it is
While I blandly said Spectrum This is quite deliberate, for the direction of its longest side. As written entirely in BASIC. This is
owners will recognise FOR and following reason. One disadvan- each half could be moved in one achieved by using the QL's
NEXT on the QL, there are tage Ot PROCedures compared of two directions, there are a enhanced BASIC facilities, part-
modifications which can make with GOSUBs is that the former total of 8 ways in which parts of cularly SCROLL and PAN in pre-
the QL version more powerful. can be used anywhere in the the puzzle can be moved. In defined windows. I hope that
These are EXIT and END com- program. So can a GOSUB, of sliding half of the puzzle, the the program is sufficiently well
mands, similar to those for the course, but not without a line piece which 'falls off' the edge documented to allow it to be
REPeat loop. number to identify its place in a of the puzzle re-appears on the understood without a detailed
All the preceding explana- program. So, to make the QL opposite side. description of how it works.
tions of QL commands should program easier to read, I have The same eight movements After all, 'readability' must be
make my program listing identified the start of each are used to solve the puzzle. On one of the aims of all program-
reasonably clear to Spectrum PROCedure with a double row of the screen, you will see numbers mers switching to QL's Super-
users, but there remains one stars, with the name of the and arrows. The numeric keys 1 BASIC.
more item to explain before I PROCedure about to be defined to 8 are used by you in solving
describe the program itself. In held within the stars. You should
use, t h e p r o g r a m will do something similar if you want
demonstrate the powerful WIN- y o u r QL p r o g r a m s t o be Program Listing: Nowotnik Puzzle
DOW, SCROLL and PAN com- readable.
mands of the QL. By using WIN- And now, at last, the pro- 10 FtEMark The Nowotnik Puzzle
DOW, you can identify to the gram itself. For me it has a short 20 R E M a r k by David N o w o t n i k
computer a specific area of the history, and you may be in- 30 REMark S e p t e m b e r , 1984
screen, which you can control in terested in the story behind the 40 init
many ways quite independent game. It originated three years 50 R E P e a t d e m o _ o p t i o n
of the rest of the screen. For in- ago when, whilst teaching myself 60 t i t l e : k e y _ p r e s s
stance, you can print to that Z80 machine code, moving 7 0 IF a * = " n " THEN E X I T d e m o _ o p t i o n
window, SCROLL or PAN the blocks of characters around the 80 s e t _ u p
window, or change the colour of screen developed into a game 90 s h u f f l e
that window. Lines 1070 to idea. What resulted was a mix- 100 P A U S E 2 0 0
1110 re-define the shape and ture of the Rubic Cube, and a 110 E N D R E P e a t d e m o _ o p t i o n
colour of two of the windows sliding puzzle. It was the similari- 120 s e t _ u p : view: s h u f f l e
which are 'provided' by the ty to the former which inspired a 130 m v = 0
computer when it is switched friend to nickname the program 140 R E P e a t g a m e
on', and lines 1120 to 1240 after myself, and that name 150 m v = m v + l
define 13 new windows which stuck when the ZX81 version 160 AT # 2 , 0 , 0 : P R I N T # 2 , " M o v e ";mv
are used in the game. The win- was marketed by a software 170 y o u r _ m o v e
dow is identified by the £ house. I went on to produce com- 180 c h e c k
number; this is the channel mercial versions, bearing the 190 IF OK THEN E X I T g a m e
which 'communicates' to that same name, for the Spectrum 200 END REPeat game

ZX COMPUTING JUNE/JULY 1 9 8 5 51
QLPROGRAM
210 CLS 3 1 0 0 AT # 2 , 5 , 2 : P R I N T # 2 , , , 5 A "
220 AT 2 , 4 : P R I N T wel1 d o n e ! " 3 1 1 0 P R I N T #2: P R I N T #2," <1"
230 PRINT: PRINT 1
you s o l v e d t h e p u z z l e ' 3 1 2 0 AT # 2 , 5 , 3 2 : P R I N T # 2 ,
240 PRINT in ':mv:" m o v e s . " 3 1 3 0 AT # 2 , 7 , 3 2 : P R I N T # 2 , "2>"
250 STOP 3 1 4 0 AT # 2 , 1 4 , 2 : P R I N T # 2 , " < 3 "
500 REMark 3 1 5 0 P R I N T #2: P R I N T #2," 6v"
510 REMark your_move 3 1 6 0 AT # 2 , 1 4 , 3 2 : P R I N T # 2 , "4>"
********************** 3 1 7 0 AT # 2 , 1 6 , 3 2 : P R I N T # 2 , " v 8 "
520 REMar k
530 REMark 3 1 8 0 FOR i = 1 TO 2
540 DEFine PROCedure your_move 3190 box$ < i)="rryy"
550 REPeat keys 3200 NEXT i
560 key_press 3 2 1 0 FOR i=3 TO 4
570 m o v e _ o n e = C O D E <a$)~48 3220 box$(i)="ggbb"
580 IF m o v e _ o n e > 0 A N D m o v e _ o n e < 9 THEN E X I T k e y s 3230 NEXT i
590 END REPeat keys 3 2 4 0 END D E F i n e
600 siide_piece 4500 REMark *********************
610 END DEFine 4510 REMark key_press
700 REMark ********************* 4 5 2 0 REMark * * * * * * * * * * * * * * * * * * * * *
710 REMark check 4 5 3 0 REMark
720 REMark * * * * * * * * * * * * * * * * * * * * * 4540 DEFine PROCedure key_press
730 REMark *
4550 a*=INKEY*(-1)
740 D E F i n e P R O C e d u r e check 4560 END DEFine
750 0K=0 5000 REMark *********************
760 IF box$(1> = " r r y y " T H E N 0K=0K+1 5010 REMark shuffle
770 IF b o x * ( 2 ) = " r r y y " THEN 0K=0K+1 5020 REMark *********************
780 IF b o x $ <3)-"ggbb" T H E N 0K=0K+1 5030 REMark
790 IF b o x $ < 4 ) = " g g b b " T H E N 0 K = 0 K + 1 5040 DEFine PROCedure shuffle
800 IF 0 K = 4 THEN 5 0 5 0 P A U S E 100
810 0K= 1 5 0 6 0 F O R k=l TO 30
820 ELSE 0K=0 5 0 7 0 m o v e _ o n e = R N D (1 TO 8)
830 E N D IF 5080 slide_piece
840 5090 PAUSE 50
END DEFine
1000 R E M a r k * * * * * * * * * * * * * * < 5100 NEXT k
1010 R E M a r k i ni t 5110 END DEFine
1020 R E M a r k * * * * * * * * * * * * * * * * * * * * * 5500 REMark **********************
1030 R E M a r k 5510 REMark slide_piece
1040 DEFi n e P R O C e d u r e init 5520 REMark **********************
1050 MODE 2 5 6 5 5 3 0 REMark
1060 DIM b o x $ ( 4 , 4 ) 5540 DEFine PROCedure slide_piece
1070 W I N D O W # 1 , 5 1 2 , 2 5 6 , 0 , 0 5 5 5 0 S E L e c t ON m o v e _ o n e
1080 W I N D O W # 2 , 5 1 2 , 2 5 6 , 0 , 0 5 5 6 0 =1: n u m = l : m o v e l e f t
1090 B O R D E R # 2 , 2 0 , 1 , 1 : B O R D E R # 1 , 2 0 , 1 , 1 5 5 7 0 =2: n u m = l : move__right
1100 P A P E R # 1 , 7 : P A P E R # 2 , 7 5 5 8 0 =3: n u m - 3 : m o v e l e f t
1110 C L S #1: C L S #2 5 5 9 0 =4: n u m = 3 : m o v e r i g h t
1120 O P E N # 4 , s c r _ 3 1 2 x 9 6 a 1 0 0 x 3 2 5 6 0 0 =5: n u m = 1 : m o v e u p
1130 O P E N #5, s c r _ 3 1 2 x 9 6 a l 0 0 x 1 2 8 5 6 1 0 =6: n u m = l : m o v e _ d o w n
1140 O P E N #6, s c r ~ 1 5 6 x 1 9 2 a l 0 0 x 3 2 5 6 2 0 =7: n u m = 3 : m o v e u p
1150 O P E N #7, s c r _ 1 5 6 x 1 9 2 a 2 5 6 x 3 2 5 6 3 0 =8: n u m = 3 : m o v e d d w n
1160 O P E N #8, s c r _ 1 5 6 x 9 6 a 2 5 6 x 1 2 8 5640 END SELect
1170 OPEN #10, s c r _ 3 1 2 x 48a1OOx 3 2 5650 END DEFine
1180 O P E N #11 , sc r _312x 4 8 a 1 O O x 8 0 6000 REMark **********************
1190 OPEN #12, s c r _ 3 1 2 x 4 8 a l O O x 1 2 8 6010 REMark move_left
1200 OPEN # 1 3 , s c r _ 3 1 2 x 4 8 a l O O x 1 7 6 6020 REMark **********************
1210 O P E N # 1 4 , sc r _ 7 8 x 1 9 2 a 1 O O x 3 2 6030 REMark
1220 O P E N # 1 5 , s c r _ 7 8 x l 9 2 a l 7 8 x 3 2
6040 DEFine PROCedure move^left
1230 O P E N #16, s c r _ 7 8 x 1 9 2 a 2 5 6 x 3 2
6 0 5 0 LOCal i
1240 O P E N # 1 7 , s c r _ 7 8 x 1 9 2 a 3 3 4 x 3 2 6 0 6 0 F O R i =num TO n u m + 1
1250 C S I Z E # 1 , 1 , 1 INK # 1 , 3 6 0 7 0 a $ = b o x * ( i , 1 ) : b * = b o x $ < i , 2 TO 4)
1260 E N D D E F i n e 6 0 8 0 b o x $ < i ) = b $ & at
2000 R E M a r k ***** 6090 colour
2010 REMark title 6 1 0 0 P A P E R #(9+i > ,cc
2020 R E M a r k * * * * * * * * * * * * * * * * * * * * * * 6 1 1 0 PAN # ( 9 + i ) , - 7 8
2 0 3 0 REMar k 6120 END FOR i
2040 DEFine PROCedure title 6130 END DEFine
2050 REMark 6500 REMark ********************
2060 C L S 6510 REMark move_right
2 0 7 0 AT # 1 , 4 , 3 : P R I N T # l , " T h e N o w o t n i k P u z z l e " 6520 REMark ********************
2080 AT # 2 , 1 2 , 1 : P R I N T # 2 , " D o you w a n t a d e m o n s t r a 6530 REMark
t i o n ? (y/n) " 6540 DEFine PROCedure move_right
2090 END DEFine 6 5 5 0 LOCal i
3000 REMark ***************** 6 5 6 0 F O R i =num TO n u m + 1
3010 REMark set_up 6 5 7 0 a $ = b o x $ ( i , 4 ) : b $ = b o x $ ( i , l TO 3)
********************** 6580 box$<i>=a* &b$
3020 REMark
3030 REMark 6 5 9 0 colour
3040 DEFine PROCedure set_up 6 6 0 0 P A P E R #(9+i > , cc
3 0 5 0 C L S #1 6 6 1 0 PAN # ( 9 + i ) , 78
3 0 6 0 P A P E R # 4 , 2 : C L S #4 6620 END FOR l
3 0 7 0 P A P E R #7,6: C L S #7 6630 END DEFine
3 0 8 0 P A P E R #5,4: C L S # 5 7000 REMark *********************
3 0 9 0 P A P E R #8,1: C L S #8 7010 R E M a r k move_up

ZX COMPUTING JUNE/JULY 1 9 8 5
52
QL PROGRAM
7020 REMark 7630 PAPER #(13+i),cc
7030 REMark 7640 SCROLL #(13+i),48
7040 DEFine PROCedure move_up 7650 NEXT i
7050 LOCal i,j 7660 END DEFine
7060 FOR i=num TO num+1 8000 REMark *********************
7070 a*=box*(1,i) 8010 REMark col
7080 F O R j=l T O 3 8020 REMark *********************
7090 box * < jt i ) = b o x * ( j + 1 , i ) 8030 REMark
7100 NEXT j 8040 DEFine PROCedure colour
7110 box*(4,i)=a* 8050 c o l o u r _ c o d e = C O D E (a*)
7120 col o u r 8060 S E L e c t ON c o l o u r _ c o d e
7130 PAPER #(13+i),cc 8070 ON c o l o u r _ c o d e = 9 8 : cc=l
7140 SCROLL #(13+i>,-48 8080 ON colour_code=l14: cc=2
7150 NEXT i 8090 ON colour_code=121:cc=6
7160 END DEFine 8100 ON c o l o u r _ c o d e = 1 0 3 : c c = 4
7500 REMark * * * * * * * * * * * * * * * * * * * * * 8110 END SELect
7510 REMark move_down 8120 END DEFine
*********************
7520 REMark 9000 REMark *********************
7530 REMark 90101 REMark view
7540 DEFine PROCedure move down 902p REMark *********************
7550 LOCal i,j 9XT50 REMark
7560 FOR i=num TO num+1 9040 DEFine PROCedure view
7570 a$=bo>:$ (4, i ) 9050 AT #2,1,32: PAPER#2,2: PRINT#2,"
7580 F O R j = 3 T O 1 S T E P -1 9060 P A P E R # 2 , 6 : P R I N T # 2 , " ": A T # 2 , 2 , 3 2
7590 b o x * ( j + 1 , i ) = b o x * < j,i > 9070 P A P E R # 2 , 4 : P R I N T #: ";: P A P E R # 2 , 1 : PRINT #2
7600 NEXT j
7610 b o x * ( 1 , i >=a*
7620 col

Gun S h o t Joystick
wrist action then you could do
worse than look at this one.
It has a nice solid feel, even
though it appears to be made of
ABS plastic, and movement is
firm and positive. There are two
fire buttons, one on the base and
one on th<» top of the pistol grip
stick. These fire quickly and
with a definite "click" which I
liked. A set of rubber suction
caps are fitted to the base, so it
can be stuck to a table or desk
for added control.
1 tried it with a selection of
games and found it made a
noticeable improvement in my
playing, on Moon Cresta my
score went from four figures to
five on the first play and I even
beat the built in high score! I
found that after about an hour
playing (don't we suffer in our
efforts to review for you!) that
my wrist and thumb ached, but I
suppose with constant use this
would cease to be a problem,
anyway there is an auto fire
feature on the next model up in
the range.
Priced at £8.95 it is one of
the best of its type, but I
wouldn't like to play Decathlon
From Vulcan Electronics comes joystick. Joysticks tend to be a but if you like this type which with it (or any other joystick for
a sturdy pistol grip style matter of personal preference essentially needs a fair bit of that matter).

53
1

ZX80 PROGRAM

Grandstand
when it comes to detail. At the
start of the game you can
choose from any team in the
four divisions plus a large selec-
tion of non-league clubs. Once
you have chosen your team they

The Middlesex master ZX80


are placed at the bottom of divi-
sion four.

programmer Mike Hyams strikes again


At the beginning of each ses-
sion there is a pause of about a

with a Strategy game!


minute while the F.A. Cup first
round draw is made. Each
season is a major undertaking as
full league tables are supported.
This means 46 games in Divi-
sion 4, plus any cup games
played. As it will take quite some
time to play even one season,
now is a good time to explain
saving to tape. At the beginning
of each week, option 4 allows
you to save the game so far to
tape. After you have
acknowledged that you really do
want to save, place a blank tape
in the cassette player (not the
master copy) and start recor-
ding. Then press NEWLINE and
wait about six minutes while it
saves. It is advisable to save
again if you are not too confident
of your recorder. As the SAVE
command returns the computer
to command mode the program
automatically stops. To restart
the game, and to start a game
that has been loaded from a
previous session, type GOTO
600.
The F.A. Cup is present in all
its glory, showing all the results
even when you are no longer in
the cup. At the end of each
season the promotions and
relegations are calculated, and if
you are lucky enough to gain
promotion you will find life
harder the further up the divi-
sions you go.
One last note; keep a careful
eye on your bank balance. As
there are no facilities for bank
loans, the Board of Directors will
take a very dim view of going in-
to the red, and will not hesitate
to show you the door.

IMPORTAISTT NOTICE: Lines


1 -7 MUST be copied exactly as
listed. That is, each name is nine
ZX80 owners of the world arise. w a i t b e t w e e n editions of Don't be fooled into thinking letters long (including spaces)
At last you can join the masses "Match of the day". Grand- that because it's for a ZX80 it and is followed by a ' / ' . All
with a football management stand, a game of strategy, takes must be a poor version. Grand- spaces must be included, and
simulation. No longer will you you into the world of football stand takes up over 1 5K when there are no spaces after the last
have to endure the seven day wheeling and dealing. running and pulls no punches name on each line.

1 REM LTVERPOOL/MAN. U T D . / N O T UNDEPLND/CHELSEA /WEST BROM/STO


TM. F . / O . P . R. /STHAMPTOM/WEST KE C. /TPSWCH T . / S H E F F WED/MEWCA
HAM /TOTTENHAM/ARSENAL / A . V/TLL STL E /
A /LUTON T . /WATFORD /NORWICH ? PEM BTPMNGHAM/NOTTS CTY/WOL
/LETCESTER/EV/ERTON /COVENTRY /S VES /MAN. C I T Y / G R I M S B Y /CARL I

54 ZX COMPUTING JUNE/JULY 1985


ZX80 PROGRAM

SLE /BLACKBURN/CHARLTON /BRIGHTO 41 IF HOME>AWAY THEN GO TO 47


N f\ EEDS U . /SHREWSBRY/BARNSLEY 42 IF HOME-AWAY THEN GO TO 51
/HUDDRSFLD/CARDIFF /PORTSMTH /F 43 LET P ( B 1 ) * P < B 1 )
ULHAM /MIDDLSBRO/C. PALACE/OLD 44 LET W ( B 1 ) ~ W ( B 1 ) + 1
HAM /OXFORD U . / W I M B L E D O N / S H E F F 45 LET L ( B 2 ) a L ( B 2 ) • 1
UTD / 46 GO TO 5 5
3 REM DERBY CTY/SWANSEA /CAM 47 LET P ( B 2 ) « P ( B 2 > + 3
BRTDGE/HULL C I T Y / B R T S T L R . / W A L S A 48 LET W < B 2 ) « W ( B 2 ) + 1
LL /BOLTON /BRADFORD / G I L L I M G 49 LET L ( B 1 ) » L ( B 1 ) + 1
HM/NEWPRT C . / B U R N L E Y /MILLWALL 50 GO TO 5 5
/WIGAN A - /ORIENT /LINCOLN /P 51 LET P ( B 1 > * P ( B 1 ) • 1
RESTON /BRENTFORD/BOURNEMTH/PL Y 5 2 LET P ( B 2 ) » P ( B 2 ) + 1
MOUTH /ROTHERHAM/YORK C I T Y / B R I S T 53 LET D ( B 1 ) « D ( B 1 ) + 1
L C./DONCASTER/READING / 54 LET D ( B 2 ) = D ( B 2 ) 4 1
4 REM SCUNTHRPE/SOUTHEND /POR 55 LET F ( B 1 ) * F ( B 1 ) 4 A W A Y
T VALE/EXETER /ALDERSHOT/BLACK 56 LET A ( B 1 ) ^ A ( B 1 ) • H O M E
PnnL/TRANMERE /PETERBORO/COLCHES 5"* ( ET F ( B 2 ) - F ( B 2 ) +HOME
TR/TORQUAY /HEREFORD /CHESTRFLD 5 8 LET A ( B 2 > — A ( B 2 ) • A W A Y
/STOCKPORT/CREWE A . /SWINDON /B 5 9 RETURN
URY /NORTHMPTN/DARLINGTN/MAN 101 P R I N T
S F T E I D / R O C H D A L E /WREXHAM /HALIF 102 P R I N T " P R E S S N / L TO SET UP
AX /HARTLPOOL/CHESTER / NEW S E A S O N -
5 PEM CHELTENHM/GRAVESEND/GLO 103 I N P U T Z «
UCSTER/GOSPORT /ALVECHRCH/WORKS 105 RANDOMIZE
np /OSWESTRY /WORKNGTON/HARROW 110 FOR A * 1 TO 24
B./SUTTON U./MAIDSTONE/NUNEATON 120 LET C ( A > = R N D < 1 0 > + 1 0
/PUNCORM /ALTRINCHM/WEALDSTNE/W 130 LET E ( A ) « R N D ( 5 )
ORCESTER/BATH /NORTHWICH/SCA 1 4 0 NEXT A
PBORO /KDDRMMSTR/FRICKLEY /TELFO 150 LET MATCH~0
PD /BARMET /ENFIELD /GATESHE 2 0 0 LET M=42
AD/BOSTON /WEYMOUTH /KETTERING 2 1 0 I F DIV=*3 OR D I V = 4 THEN LET
/ Y E O V I L T./DAGENHAM /BANGOR /T M=46
ROWBRDGE/ 2 2 0 FOR 9 = 1 TO 8 0
6 REM TEAM NAME/ 2 3 0 LET H * R N D ( 8 0 )
** PEM CLEMENCE / S H I L T O N /NEA 2 4 0 I F R ( H ) = - 1 THEN GO TO 230
L /HANSEN /OSMAN /BUTCH 2 5 0 LET R ( H ) - - 1
ER /MCQUEEN /KENNEDY /KEEGAN 260 IF H>48 THEN LET H^500fH-4
/ROBSON /WHELAN /DALGLISH 8
/SOUNESS /LEE /HODDLE /R 2 7 0 TF H < 2 5 THEN LET H = 3 0 0 + H
IX /RUSH /STAPLETON/DAV 2 8 0 I F H>24 AND H ' 4 9 THEN LET
IS /WITHE /BRAZIL /CROOK H-400+H-24
S /NICHOLAS /FRANCIS / 2 9 0 LET G ( Q ) - H
10 GO TO 9 0 0 0 2 9 5 NEXT O
2 2 GO SUB 3 0 3 0 0 LET I N C U P ^ l
2 3 FOR C ~ 0 TO 8 310 LET ROUND-1
24 P R I N T C H R * t P E E K ( X + 1 0 * ( B - t ) • 311 I F D I V < 3 THEN LET ROUND-3
C) ) f 350 FOR 0 - 1 TO 8 0
2* NEXT C 371 I F Q>24 THEN GO TO 3 8 0
26 RETURN 3~T2 LET W ( Q ) » 0
31 I F A ~ 1 THEN LET X~16427 373 LET D ( Q ) = 0
32 TF A = ? THEN LET X-16651 3"M LET L ( 0 ) * 0
33 I F A—3 THEN LET X= 1 6 8 ^ 5 3~75 LET F ( Q ) * 0
34 TF A=4 THEN LET X « 1 " M 1 9 3"*6 LET A ( 0 ) * 0
35 TF A = 5 THEN LET X « 1 ^ 3 6 3 377 LET P ( Q ) " 0
36 IF A~6 THEN LET 3^8 LET 0 ( 8 )
I-9 I F A-"* THEN LET X « l " r * 0 1 380 LET R ( Q ) = 0
38 RETURN 390 NEXT 8

ZX COMPUTING JUNE/JULY 1 9 8 5 55
ZX80 PROGRAM

500 LET POS=0 1297 LET CASH-CASH+AA


310 LET MOR=10 1298 LET B(Z)~0
520 LET UPDATE=0 1299 GO T O 1 0 1 0
530 L E T CUPGAME=0 1310 P R I N T "CLUB REPORT FOR "J
540 GO TO 1 0 0 0 1311 LET A ~ D I V
600 GO S U B 9 9 6 0 1312 LET B-M/2+1
610 GO TO 1 0 1 0 1313 GO S U B 20
1000 FOR P = 1 TO M 1315 PRINT
1010 CLS 1 3 1 6 P R I N T -SEASON - 1 SEASON
1020 PRINT 'SELECT AN OPTION" 1320 PRINT - D I V I S I O N "|DIVf-MONE
1030 PRTNT Y H•;CASH|-000"
1040 PRINT *1 - SELL A PLAYER" 1321 PRINT -POSITION -|POS,-MORA
1050 PRINT LE -JMOR
1060 PRINT "2 - CLUB REPORT" 1331 PRINT
10~*0 PRINT 1335 I F ROUND*1 THEN GO T O 1 3 4 6
1080 PRINT "3 - PERFORMANCE THIS 1336 I F INCUP=*1 THEN GO T O 1 3 4 0
SEASON" 1337 P R I N T - O U T OF F . A . CUP
1090 PRINT 1338 GO T O 1 3 4 5
1100 PRINT "4 - SAVE TO TAPE" 1340 PRINT -THROUGH F.A, CUP •I
1110 PRINT 1341 I F R0UND<8 THEN PRINT ROU
1120 PRINT "5 - MOVE ON TO MATCH ND • | R O U N D - 1

1 3 4 2 I F ROUND=8 THEN PRINT "SEM
1130 PRINT I-FINAL"
1140 INPUT Z 1355 PRINT " inwHiwm.
1150 I F Z < 1 OR Z>5 THEN GO TO 1 VMMMMMMM. JMI J W M I — « N M M

140 1 3 6 0 P R I N T " C L U B P E R F O R M A N C E FOR


1155 CLS P A S T " f " 9 SEASONS'
1 1 6 0 GO TO 1100+Z*100 1361 PRINT
1 2 1 0 P R I N T , " S E L L A PLAYER" 1 3 6 5 PRTNT *SSN L E A G U E " f " C U P
1 2 2 0 GO SUB 9 6 0 0 13">0 FOR N * 1 T O 9
1 2 4 0 P R I N T " E N T E R N O . OF P L A Y E R 1 3~*5 PR T N T N | - •IYCNM", DTV
T O S E L L OR" |X(N),
1 2 5 0 GO SUB 9 8 0 0 13~*8 T F 7 ( N ) < 7 THEN PRINT *ROUN
1255 INPUT Z D - J Z (N)
1 2 6 0 T F Z ' 0 OR Z > 2 4 T H E N GO TO 1380 IF Z<N)~7 THEN PRINT "S-FI
1255 NAL-
1 2 6 1 I F 7 = 0 THEN GO TO 1 0 1 0 1385 I F Z ( N ) « 8 THEN PRINT "FINA
1 2 6 5 TF B ( Z > - 0 THEN GO T O 1 2 5 5 LISTS*
1 2 7 0 CLS 1390 I F Z ( N ) « 9 THEN PRINT -***W
12^5 LET A - R N D ( 4 ) INNERS***-
1 2 " * 6 L E T B*=RND f 2 2 ) 1392 NEXT N
1 2 7 7 GO SUB 2 0 1395 GO S U B 9 8 4 0
1 2 7 8 P R I N T " HAVE OFFERED" 1399 GO TO 1 0 1 0
1280 LET AA»5*(5-DIV)*E(Z)4RND(6 1400 PRINT ,"CLUB PERFORMANCE-
) -3 1401 PRINT
1281 PRINT 1405 LET GAME=0
1285 PRINT "#"JAAJ"000 FOR "? 1 4 1 0 FOR N = 1 T O 6 0
1287 LET A - 7 1 4 1 1 I F P E E K ( 1 6 4 2 1 ) > 5 THEN GO T
1 2 8 8 LET B - Z O 1419
1 2 8 9 GO SUB 2 0 1412 PRINT
1290 PRINT 1 4 1 3 GO S U B 9 8 4 0
1 2 9 1 P R I N T "DO YOU A C C E P T THE OF 1 4 1 5 CLS
FER (Y/N)- 1 4 1 6 GO T O 1 4 1 1
1292 INPUT Z» 1 4 1 9 I F R ( N > - 0 THEN GO T O 1 4 8 0
1293 IF Z««"N" THEN GO T O 1 0 1 0 1 4 2 0 I F R f N ) > 1 0 0 0 THEN GO T O 1 4
1294 I F NOT THEN GO T O 1 50
292 1423 LET GAME*GAME•1

56 ZX COMPUTING JUNE/JULY 1 9 8 5 56
ZX80 PROGRAM

1425 IF R CN)>199 THEN PRINT • 1676 GO T O 1 7 5 0


A "J 1680 LET B2»=M/2+l
1426 IF R(N)<200 THEN PRINT * 1683 PRINT "
H "; 1690 IF HME-1 THEN GO T O 1720
1427 LET A - D I V 1693 LET B=*B1
1428 LET B-GAME 1696 LET A-DIV1
1430 GO S U B 2 0 1700 GO S U B 20
1433 LET Z"R(N)-<R<N)/100)*100 1703 LET B-B2
1440 PRINT " "|Z-(Z/10)*10|" - " 1706 LET A=DIV2
I 1710 PRINT " V
1443 LET Z - Z / 1 0 1715 GO SUB 20
1446 PRINT Z 1716 GO T O 1741
1447 GO T O 1 4 6 0 1720 LET B-B2
1430 PRINT -CUP " I 1721 LET A=DIV2
1431 LET B - R ( N ) / 1 0 0 1725 GO S U B 20
1432 LET A»B-(B/10)*10 1730 PRINT " V
1433 LET B»<B-A)/10 1735 LET B*B1
1453 GO T O 1 4 3 0 1736 LET A-DIV1
1460 NEXT N 1740 GO S U B 20
1460 NEXT N 1741 RETURN
1480 PRINT 1750 PRINT
1485 GO S U B 9 8 4 0 1760 PRINT
1490 GO T O 1 0 1 0 1761 PRINT "ENTER •!• FOR LEAGUE
1 5 0 0 P R I N T , " S A V E TO T A P E " TABLE","SINCE LAST CALCULATED,
1501 PRINT OR"
1 5 0 2 P R I N T "ARE YOU SURE (Y/N)" 1762 GO SUB 9800
1503 INPUT Z« 1763 INPUT Z
1 5 0 4 I F MOT Z « - " Y " T H E N GO TO 1 1764 IF Z»0 THEN GO TO 4000
010 1763 IF NOT Z«1 THEN GO T O 1763
1510 PRINT 1768 PRINT
1 5 2 0 P R I N T "PREPARE C A S S E T T E PLA 1 7 7 0 P R I N T "LEAGUE D I V . "JDIVJ"
YER A N D T H E N " A F T E R " i U P D A T E ? " GAMES"
1330 PRINT 1780 PRINT
1 3 4 0 GO SUB 9 8 4 0 1785 LET M 2 ~ ( M + 2 > / 4
1 5 5 0 SAVE 1790 FOR N = 1 T O M 2
1 5 6 0 STOP 1800 L E T B«Q<N>
1 6 0 1 CLS 1801 I F N < 1 0 THEN PRINT " "J
1 6 0 5 I F CUPGAME*! THEN GO T O 1 6 1805 PRINT NJ". "I
19 1810 GO SUB 2 0
1610 I F D I V < 3 AND < P ~ 3 8 OR P=33 1820 PRINT ,
OR P ~ 2 8 OR P * 2 3 OR P = 1 8 OR P=13 1830 PRINT N+M2J". "|
OR P — 8 ) THEN GO T O 8 0 0 0 1840 LET B*Q(N+M2)
1615 IF D I V > 2 AND < P ~ 4 2 OR P=*37 1850 GO S U B 2 0
OR P = 3 2 OR P * 2 7 OR P = 2 2 OR P=17 1860 PRINT
OR P = 1 2 ) THEN GO T O 8 0 0 0 1870 NEXT N
1619 LET CUPGAME-0 1880 GO S U B 9 8 4 0
1620 PRINT f "LEAGUE MATCH" 1890 GO T O 4 0 0 0
1630 PRINT 1900 FOR N « 1 T O 24
1640 L E T HME=1 1901 IF Q(N)*B1 THEN GO T O 1903
1650 IF P - ( P / 2 ) * 2 THEN LET HME= 1902 NEXT N
•5 1903 LET TMPK-PCBl)
1660 LET DIVl-DIV 1904 LET ENZ^RND(10)+RND(10*(TMP
1661 LET D I V 2 ~ D I V K+l)/P)
1670 LET B1«P 1903 LET M0R2*RND(10)+RND(10*(TM
1671 I F B 1 > M / 2 THEN LET B1«B1-M PK + 1 ) / P )
/2 1906 LET DEF2«RND(10)+RND(10*<TM
1675 GO S U B 1680 PK+1)/P)

ZX COMPUTING JUNE/JULY 1 9 8 5 57
ZX80 PROGRAM

1 9 0 7 LET MID2=RND(10)+RND(10*(TM 2260 INPUT 2


PK+1)/P) 2265 I F Z > 2 4 THEN GO T O 2 2 6 0
1 9 0 8 LET ATT2«RND(10)+RND ( 1 0 * ( T M 2270 I F Z < 1 THEN GO T O 1 9 1 0
PK+1)/P) 2275 T F NOT B ( Z ) » 3 T H E N GO T O 2
1 9 1 0 CLS 260
1915 PRINT , 2280 LET B ( Z ) « 2
1919 LET A = D I V 2 2290 GO T O 2 1 9 0
1 9 2 0 LET B»B2 2300 P R I N T "ENTER PLAYER TO REMO
1 9 3 0 GO S U B 2 0 VE"
1940 PRINT • "J 2310 INPUT Z
1 9 5 0 LET B=B1 2320 IF Z<1 OR Z >24 THEN GO TO
1955 LET A = D I V 1 2310
1 9 6 0 GO SUB 2 0 2325 IF NOT B(Z)~2 THEN GO T O 2
1970 PRINT 310
1975 LET EN=0 2330 LET B ( Z ) « 3
1 9 8 0 TOR N = 1 T O 2 4 2340 GO T O 2 1 9 0
1 9 9 0 I F B ( N ) = 2 THEN LET EN=EN+C 3001 LET HOME«0
(N) 3002 LET AWAY*0
2 0 0 0 NEXT N 3003 PRINT
2 0 0 5 LET E N - E N / 1 1 3005 FOR N « 1 T O RND(10)+2
2 0 0 7 LET D E F * 0 3 0 0 6 I F N » 1 THEN GO T O 3 4 0 0
2 0 0 8 LET M I D - 0 3 0 1 0 LET SH0T=RND(3)
2 0 0 9 LET A T T ~ 0 3 0 2 0 I F SHOT=»l T H E N GO T O 3 1 0 0
2 0 1 0 FOR N = 1 T O 8 3 0 2 5 I F S H 0 T « 2 THEN GO TO 3 5 0 0
2 0 1 5 I F B ( N ) = 2 THEN LET DEF=DEF 3 0 3 0 LET GOAL-EN+MOR+ATT-EN2-MOR
+E(N> 2-DEF2+RND(20)
2 0 2 0 I F B ( N +8 ) = 2 THEN LET MID=M 3 0 4 5 I F GOAL<0 THEN GO TO 3 5 0 0
ID+E(N+8) 3 0 5 0 L E T HOME-HOME + 1
2 0 2 5 I F B ( N + 1 6 ) - 2 THEN LET ATT= 3 0 6 0 GO TO 3 4 0 0
ATT+E(N+16) 3 1 0 0 LET G0AL=EN2+ATT2+M0R2-EN-M
2 0 4 0 NEXT N OR-DEF+RND(20)
2090 PRINT "ENERGY",EN,- * »EN2 3 1 1 5 I F GOAL<0 THEN GO TO 3 5 0 0
2 1 0 0 PRINT "MORALE",MOR,- " I MO 3 1 2 0 L E T AWAY*AWAY + 1
R2 3 4 0 0 LET B=B2
2110 PRINT -DEFENCE*,DEF,* -JD 3 4 0 5 I F HME=2 THEN LET B=B1
EF2 3 4 1 0 LET A = D I V 2
2120 PRINT - M I D F L D " , M I D , - ";MI 3415 I F HME=2 THEN LET A=DIV1
D2 3420 GO SUB 2 0
2130 PRINT -ATTACK",ATT,* -;AT 3430 I F HME«1 THEN PRINT - "iHO
T2 MEJ" - -;AWAY|- -;
2140 PRINT 3435 I F HME*2 THEN PRINT - "iAW
2150 PRINT -ENTER *1 • TO CHANGE AY(" - -J HOME!'
TEAM OR- 3440 LET B~B1
2160 GO S U B 9 8 0 0 3445 I F HME=2 THEN LET B=B2
2170 INPUT Z 3450 LET A = D I V 1
2180 I F Z = 0 THEN GO T O 3000 3455 I F HME=2 THEN LET A=DIV2
2190 CLS 3460 GO SUB 2 0
2200 GO S U B 9 6 0 0 3470 PRINT
2205 LET PLA=0 3480 INPUT Z *
2210 FOR N = 1 TO 2 4 3490 IF PEEK(16421)<6 THEN CLS
2215 IF B(N)-2 THEN LET PLA=PLA 3500 NEXT N
+1 3510 P R I N T " E N D OF GAME"
2220 NEXT N 3520 LET MATCH=MATCH+1
2 2 3 0 I F P L A > 1 1 THEN GO T O 2 3 0 0 3550 RETURN
2 2 4 0 P R I N T - E N T E R P L A Y E R T O ADD 4000 GO SUB 1 9 0 0
TO TEAM OR" 4001 GO SUB 4 0
2 2 5 0 GO S U B 9 8 0 0 4011 FOR N*=l T O 2 4

58 ZX COMPUTING JUNE/JULY 1985 58


ZX80 PROGRAM

4012 LET U < N > - 0 4 3 3 0 FOR I * H + 1 T O M / 2 + 1


4 0 1 3 NEXT N 4340 IF P(Q(H))>P(Q(I)) THEN GO
4 0 1 8 I F H H E - 1 THEN LET GATE=<5- TO 4 3 8 0
D I V ) * P ( B 2 > * 2 0 / < P * 3 > + 1 + RND < 5 - D I V ) 4 3 5 0 LET DUMMY«Q(H)
4 0 1 9 I F HME«2 THEN LET G A T E = ( 5 - 4 3 6 0 LET Q(H)*Q(I)
D I V ) * P < B 1 ) * 2 0 / ( P * 3 ) + 1 + RND ( 5 - D I V ) 4 3 7 0 LET Q ( I ) « D U M M Y
4 0 2 0 P R I N T "GATE # " i G A T E S " 0 0 0 " 4 3 8 0 NEXT I
4 0 2 1 GO S U B 9 8 4 0 4 3 9 0 NEXT H
4 0 2 3 CLS 4 3 9 5 LET A=DIV
4 0 2 5 LET R<MATCH>«100*HME+HOME+A 4 3 9 6 P R I N T "TEAM W D
WAY*10 L F A PT"$999
4 0 3 0 P R I N T "RESULTS DIVISION 4 4 0 0 FOR H = 1 T O M / 2 + 1
"; Di v 4 4 1 0 I F NOT H = 1 3 T H E N GO T O 443
4 0 3 6 I F HOME>AWAY THEN LET MOR« 0
MOR + ( 2 1 - M O R ) / 2 4415 GO SUB 9840
4 0 3 7 I F HOME<AWAY THEN LET MOR= 4420 CLS
MOR/2 4425 PRINT "TEAM W D
4045 PRINT L F A PT"$999
4050 LET U(B1)»1 4430 LET B=Q(H>
4060 LET U<B2)»1 4431 I F B = M / 2 + l THEN LET POS=H
4070 I F M=»46 T H E N GO TO 4 0 8 0 4435 PRINT Hj"•"J
4075 LET U(23)«l 4436 I F H < 1 0 THEN P R I N T " "J
4076 LET U ( 2 4 ) = 1 4440 GO S U B 2 0
4080 FOR N « 1 T O <M-2>/4 4450 PRINT " "I
4090 LET Z * R N D ( 2 4 ) 4455 TF W ( B ) < 1 0 THEN P R I N T " "J
4100 I F U ( Z ) * 1 THEN GO TO 4 0 9 0 4460 PRINT W(B)J" "J
4110 LET B2=Z 4465 I F D < B ) < 1 0 THEN P R I N T " "J
4120 LET U ( Z ) = 1 4470 PRINT D(B)J" "!
4130 LET H0ME=RND(2*P(Z>/P+4)-1 4475 I F L < B ) < 1 0 THEN PRINT "
4140 LET B - Z 4480 PRINT L ( B ) ; " ";
4150 GO S U B 2 0 4485 I F F ( B ) < 1 0 THEN P R I N T " "»
4160 P R I N T " " ; H O M E J " V "J 4486 I F F ( B ) < 1 0 0 THEN PRINT " "

4170 LET Z=RND ( 2 4 ) »
4180 I F U ( Z ) = 1 THEN GO TO 4170 4490 PRINT F{B)J" "i
4190 LET B1»Z 4495 IF A ( B ) < 1 0 THEN PRINT "
4200 LET U(Z)=1 4496 IF A ( B ) < 1 0 0 THEN PRINT " "

4210 LET AWAY=RND(2*P(Z>/P+3)-1 i
4220 LET B=Z 4500 PRINT A <B) J " "J
4230 P R I N T AWAY;" 4505 IF P(B)<100 THEN PRINT P(B
)
4240 GO S U B 2 0
4250 PRINT 4506 IF P(B)>99 THEN PRINT , , , ,
4 2 6 0 GO S U B 4 0 -;P(B)
4 2 7 0 NEXT N 4510 NEXT H
4280 PRINT 4520 PRINT
4 2 9 0 P R I N T - T H E NEW L E A G U E P O S I T 4525 PRINT "TABLE AFTER "JPJ" GA
IONS TAKE A B O U T 6 0 S E C S TO C A L MES"
CULATE. ENTER • ! • FOR NEW TA 4526 PRINT
BLE OR" 4 5 3 0 GO S U B 9 8 4 0
4 2 9 5 GO S U B 9 8 0 0 4 5 5 0 I F HME=1 THEM LET CASH=CAS
4300 INPUT Z« H+GATE*2/3
4304 IF P - M THEN GO TO 4 3 1 0 4 5 6 0 I F HME=2 THEN LET CASH=CAS
4305 IF Z * » " 0 " THEN GO T O 4 5 5 0 H+GATE/3
4306 IF NOT Z » « " l " T H E N GO T O 4 4 6 0 0 FOR H - l TO 2 4
300 4610 IF B(H)=3 OR B(H)=1 THEN L
4310 CLS ET C(H)=C(H)+10
4315 LET UPDATE=P 4615 IF C(H)>20 THEN LET C(H)=2
4320 FOR H = 1 TO M / 2 0

ZX COMPUTING JUNE/JULY 1 9 8 5 59
ZX80 PROGRAM

4620 IF B(H)=2 THEN LET C(H)=C( S(CASH)5-000"


H) - 1 5930 PRINT
4624 IF (B (H) = 2 OR B<H)=3) AND R 5940 PRINT -A NEW BOARD OF DIREC
ND(40)=40 THEN LET B(H)=1 TORS HAVE"
4625 IF B(H)=1 AND RND(10)>5 THE 5950 PRINT
N LET B(H)=3 5960 PRINT "TAKEN OVER , AND YOU
4630 IF C(H)=0 THEN LET B(H)=1 HAVE BEEN"
4640 NEXT H 59*70 PRINT
4650 LET DUMMY=0 5980 PRINT -SACKED -J
4660 FOR H=»l TO 24 5990 GO T O 5980
46~,0 TF B (H) >0 THEN LET DUMMY=D 6000 IF CUPGAME=1 THEN GO TO 10
UMMY+E(H) 10
4680 NEXT H 6010 NEXT P
4690 LET DUMMY=<5-DIV)*DUMMY/10 6110 GO T O 8 0 0 0
4700 LET CASH=CASH-DUMMY-5+DIV 6120 PRINT -PRESS N/L FOR END OF
4710 CLS SEASON-,-RESULTS-
4715 IF P=M THEN GO T O 5900 6130 INPUT Z%
4720 PRINT -TRANSFER MARKET" 6140 LET SET=0
4730 PRINT 6150 CLS
4740 PRINT 'CASH IN HAND 6201 IF DIV=1 THEN GO T O 6400
CASH;-000" 6205 LET 1=3
4750 PRINT 6206 IF DIV-4 THEN LET 1=4
4751 LET B=0 6208 PRINT -PROMOTED-
4752 FOR H=1 TO 24 6209 PRINT
4753 IF B(H)>0 THEN LET B=B+1 6210 FOR H—1 TO I
4754 NEXT H 6215 LET A=DIV
4755 IF B<16 THEN GO T O 4760 6220 LET STDIV=DIV
4756 PRINT -YOU HAVE A FULL SQUA 6225 LET STTM=Q(H)
D* 6227 LET B=STTM
4757 GO T O 5900 6228 GO S U B 20
4760 LET B=RND<24) 6229 PRINT
4770 IF NOT B(B)*0 THEN GO T O 4 6230 LET FINDIV=DIV-1
760 6235 LET FINTM=17+H
4780 LET A=7 6240 IF 0(H)=M/2+1 THEN LET FIN
4785 PRINT B(•. - f TM=22
4790 GO S U B 20 6245 IF DIV=4 AND Q(H)=M/24l THE
4795 PRINT N LET FINTM=24
4796 PRINT 6246 IF STTM=M/2+1 THEN LET SET
4800 PRINT "ENERGY -JC(B) = -1
4810 PRINT -SKILL -JE(B) 6250 GO S U B 9300
4820 PRINT 6260 NEXT H
4830 PRINT -DO YOU WANT THIS PLA 6400 IF DIV=4 THEN GO T O 6600
YER ?-,-Y/N- 6401 PRINT
4840 INPUT Z* 6402 PRINT
4850 IF Z««"N" THEN GO TO 5900 6403 PRINT -RELEGATED-
4860 IF NOT Z«=-Y" THEN GO T O 4 6404 PRINT
840 6410 LET I=»3
4870 LET GATE=E(B)*(5-DIV)*5 6420 IF DIV=3 THEN LET 1=4
4880 PRINT 6425 LET GATE=M/2+2
4890 PRINT -YOU HAVE PAID # - ; GA 6430 FOR H=1 TO I
te;-000' 6435 LET A=DIV
4900 LET CASH=CASH-GATE 6440 LET STDIV«=DIV
4950 LET B <B)=3 6450 LET STTM=Q(GATE-H)
5000 GO S U B 9840 6455 LET B*STTM
5900 IF CASH>-1 THEN GO T O 6000 6456 GO S U B 20
5910 CLS 6457 PRINT
5920 PRINT "THE CLUB OWES #";AB 6460 LET FINDIV»DIV+1

60 ZX COMPUTING JUNE/JULY 1985 6


ZX80 PROGRAM

6470 LET FINTM=H I-FINAL"


6480 IF STTM=M/2+l THEN LET FIN 8 2 3 0 I F R0UND=8 THEN PRINT "FIN
TM=22 AL "
6 4 8 5 I F D I V = 3 AND S T T M = M / 2 + i THE 8240 PRINT
N LET F I N T M = 2 4 8245 RETURN
6 4 8 6 I F S T T M = M / 2 + 1 THEN LET SET 8250 GO SUB 1680
=1 8260 PRINT
6490 GO S U B 9 3 0 0 8265 PRINT
6500 NEXT H 8 2 7 0 P R I N T "ENTER "1" FOR THE FU
6600 LET H=9 L L DRAW O R -
6610 LET X(H)=X(H-1) 8 2 8 0 GO S U B 9 8 0 0
6620 LET Y(H)~Y(H-1) 8 2 9 0 INPUT Z
6630 LET Z ( H ) ( H - l ) 8300 IF Z=0 THEN GO TO 8 4 0 0
6640 LET H - H - 1 8310 I F NOT Z = 1 THEN GO TO 8 2 9 0
6650 I F H>1 THEN GO TO 6610 8315 PRINT
6660 LET X ( 1 ) = D I V 8335 LET H « = • •
6670 LET Y(1)=POS 8336 LET A * » " •
6680 LET Z(l)=RNDOUT 8340 FOR H=* 1 T O I
6690 LET DIV~DIV/4SET 8341 IF (H/2)*2=H THEN GO TO 83
6695 LET SEASON=SEASON+1 85
6 7 0 0 GO TO 1 0 0 8342 IF PEEK(16421)>5 THEN GO T
7 9 9 9 STOP O 8385
8000 LET 1=2** 8343 PRINT
(9-ROUND) 8344 GO S U B 9840
8 0 0 1 I F ROUND<3 THEN LET I=(3-R 8345 CLS
OUND)*40 8346 GO T O 8385
8002 IF DIV<3 AND R 0 U N D < 3 THEN 8350 LET A=G(H)/100
GO T O 8500 8360 LET B=G(H)-A*100
8004 I F I N C U P ^ l THEN GO TO 8 0 1 0 8370 GO S U B 20
8005 GO SUB 8 2 0 0 8375 IF NOT (H/2)*2=H THEN PRIN
8006 P R I N T * Y O U ARE NOT I N T H E C T " "|H*|" V -|A«$" "J
UP. • 8 3 8 0 I F ( H / 2 ) * 2 = H THEN PRINT
8008 GO TO 8 5 0 0 8 3 8 4 RETURN
8010 LET HME—1 8 3 8 5 GO SUB 8 3 5 0
8020 FOR H = 1 T O 8 0 8 3 9 0 NEXT H
8025 LET HME*-HME 8395 PRINT
8030 I F NOT G(H)/100=DIV THEN G 8 3 9 6 GO S U B 9 8 4 0
0 TO 8060 8 4 0 0 LET TMPK*(3-DIV1)*P
8040 I F NOT G(H)-(G(H)/100)*100= 8 4 1 0 GO SUB 1 9 0 4
H/2+1 THEN GO T O 8 0 6 0 8 4 1 5 LET GATE~ROUND*5*RND(5*ROUN
8050 GO T O 8 1 0 0 D)
8060 NEXT H 8 4 1 6 P R I N T "GATE # * i G A T E » * 0 0 0 "
8100 I F H M E = - 1 THEN LET HME-2 8 4 1 7 LET CASH=CASH+GATE
8110 LET B 2 = M / 2 + l 8418 PRINT
8120 LET D I V 2 = D I V 8 4 1 9 L E T R ( M A T C H ) *=B 1 * 1 0 0 0 + D I V 1 * 1
8125 I F HME=2 THEN GO T O 8150 00+HOME+AWAY*10
8130 LET D I V 1 * G ( H + l ) / 1 0 0 8 4 2 0 I F HOME>AWAY T H E N GO TO 8 4
8135 LET B1=G ( H + l ) - D I V / 1 * 1 0 0 90
8140 GO T O 8 1 8 5 8 4 3 0 I F HOME=AWAY T H E N GO TO 8 4
8170 LET DIV1«G(H-1)/100 60
8180 LET B1«G(H-1)-DIV1*100 8 4 4 0 LET INCUP=0
8185 GO S U B 8 2 0 0 8 4 4 1 L E T RNDOUT^ROUND
8190 GO T O 8 2 5 0 8 4 4 5 LET MOR=MOR/4
8200 P R I N T | " F A CUP - J 8 4 5 0 GO T O 8 5 0 0
8 2 1 0 I F ROUND<7 THEN PRINT "ROU 8 4 6 0 P R I N T - R E P L A Y T O FOLLOW :-"
ND " ; R O U N D 8 4 6 5 GO SUB 9 8 4 0
8220 IF R0UND=7 THEN PRINT "SEM 8 4 7 0 GO TO 8 4 0 0

ZX COMPUTING JUNE/JULY 1 9 8 5 61
ZX80 PROGRAM

8 4 9 0 LET MOR=MOR+(21-MOR)/2 8830 NEXT H


8 4 9 5 I F R0UND=8 THEN L E T RNDOUT 8840 GO SUB 9 8 4 0
=9 8850 I F ROUND-9 THEN GO TO 6120
8 5 0 0 LET DUMMY=H/2+l+DIV*100 8900 GO T O 4 6 0 0
8 5 0 5 GO SUB 9 8 4 0 9000 DIM W(24)
8 5 0 6 CLS 9001 DIM D ( 2 4 )
8 5 0 7 GO SUB 8 2 0 0 9002 DIM L ( 2 4 )
8508 PRINT , " RESULTS" 9003 DTM F ( 2 4 )
8509 PRINT 9004 DIM A ( 2 4 )
8 5 1 0 FOR H = 1 T O I <7005 DIM P (24 )
8 5 1 5 TF PEEK ( 1 6 4 2 1 X 5 THEN GO S 9006 DIM B(24)
UB 9 8 4 0 9007 DIM C(24)
8 5 1 6 I F P E E K ( 1 6 4 2 1 ) < 5 THEN CLS 9008 DTM E(24)
8 5 2 0 I F D U M M Y - G ( H ) OR D U M M Y = G ( H + 9009 DIM G(80)
1) THEN GO T O 8 6 0 0 9011 LET CASH=100
8 5 3 0 LET H*=STR*(RND(7-G(H)/100) 9012 DIM X(9)
-I) 9013 DIM Y(9)
8540 LET A$=STR*(RND(7-G(H+1)/10 9014 DIM 7(9)
0) - 1 ) 9015 DIM Q(24)
8550 IF A*=H* THEN GO TO 8530 9016 LET SEASON=l
9017 DIM R(80)
8 5 6 0 GO SUB 8 3 5 0
8 5 7 0 LET H=H+1 9018 DIM U ( 2 4 )
9 0 5 0 GO SUB 9 9 6 0
8 5 8 0 GO SUB 8 3 5 0
9 1 0 0 LET D I V = 4
8 5 9 0 GO TO 8 6 3 0
9 1 1 0 FOR A = 1 T O 5
8 6 0 0 LET A*=STR*(AWAY)
9 1 1 5 CLS
8 6 0 5 LET H*=STR*(HOME)
9 1 2 0 P R I N T "PTCK A TEAM BY NUMBE
8 6 1 0 I F HME=2 THEN LET A«=*STR« (
R OR"
HOME)
9121 GO SUB 9 8 0 0
8 6 1 5 I F HME«=2 T H E N LET H*=STR* (
9125 LET M~22
AWAY)
9126 T F A - 3 OR A = 4 THEN LET M=2
8 6 2 0 GO T O 8 5 6 0
4
8 6 3 0 I F H O A * THEN LET G(H/2)=G
9127 TF A ~ 5 THEN L E T M*=32
(H- 1 )
9130 PRINT
8 6 4 0 TF H * < A » THEN LET G(H/2)=G
9140 FOR B = 1 T O M
(H)
9149 TF B ^ 1 0 THEN PRINT " ";
8 6 5 0 NEXT H
9150 PRINT B | " . "J
8660 L E T ROUND-ROLIND+1
9160 GO SUB 2 0
8670 I F NOT R 0 U N D = 3 T H E N GO TO
9170 PRINT ,
8780
9 1 8 0 NEXT B
8675 FOR H=*l T O 2 2
9190 PRINT
8680 LET G(H+20) 00+H
9 2 1 0 INPUT Z
8685 LET G ( H + 4 2 ) « 2 0 0 + H
9 2 2 0 T F Z > 0 AND Z < M + 1 THEN GO T
8690 NEXT H
O 9250
8700 FOR H ~ 1 T O 3 0
9 2 3 0 NEXT A
8710 LET A « R N D ( 6 4 )
9 2 4 0 GO T O 9 1 1 0
8720 LET B«RND(64)
9 2 5 0 LET STDTV-A
8730 T F A = B T H E N " GO T O 8 " M 0
8740 LET DUMMY=G(A) 9 2 5 5 LET STTM=Z
8750 LET G ( A ) * G ( B ) 9 2 6 0 LET F T N D I V = 4
8760 LET G(B)=DUMMY 9 2 6 5 LET F I N T M - 2 4
8770 NEXT H 9 2 ~ 7 0 GO SUB 9 3 0 0
8780 LET CUPGAME«1 9 2 8 0 GO T O 9 5 0 0
8790 GO SUB 9 8 4 0 9 3 0 0 LET A-STDTV
8800 I F RNDOUT<9 THEN GO TO 885 9 3 1 0 LET B=STTM
0 9 3 2 0 I FT C - 6
8810 FOR H s 1 T O 2 0 9 3 3 0 I E T D^J
8820 P R I N T "WINNERS "J 9 3 4 0 GO SUB 9 9 5 0

62 ZX COMPUTING JUNE/JULY 1985 6


ZX80 PROGRAM

9350 LET A=FINDTV 9960 CLS


9360 LET B=FINTM 9961 LET AS=CHRS(128)
97"70 L E T C = S T D T V 9962 LET BS=CHRS(136)
9 7 8 0 LET D=STTM 9963 PRINT
9 3 9 0 GO SLIP 9 9 5 0 9964 PRINT
9400 LET A=6 9965 PRINT
9 4 1 0 LET B=1 HR*(130)F-
9420 LET C=FINDIV 9966 PRINT
9430 LET D=FINTM • • , - 1 "JA*|
9 4 4 0 GO S U B 9 9 5 0 9967 PRINT • M\ • ; CHRS (
9 4 5 0 RETURN 132);- • ; a s ; A S ; -
9500 LET M=24 9968 PRINT • F \ -;CHRS(1
9 5 1 0 RANDOMIZE 32>|A*|-| ";BS;" ";CHRS(1
9 5 2 0 FOR A = 1 TO 1 2 32);AS;AS!AS
9530 LET B=RND(24) 9969 PRINT - I V i A « ; A $ i A
9 5 3 5 I F B ( B ) > 0 THEN GO TO 9530 S;AS; "••"JBS, " * ! C H R S ( 1 3 0 ) ?M M M I A
9540 LET B(B > - 2 S;AS!AS;AS!CHRS(135)
9 5 4 5 NEXT A 9970 PRINT - ^ -;as;as;as
9550 LET B=RND(24) ;as;as;ASJ- -;chrs(130),- -;as;A
9 5 5 5 I F B (B)—0 THEN GO T O 9550 S;as;AS;AS;CHRS(135)
9560 LET B(B)=3 9971 PRINT - -;CHR«(130) J-
9 5 8 0 GO T O 1 0 0 -;AS;AS;AS;AS;AS;CHRS(135);-
9600 CI S |",CHRS(132);AS;AS;AS;AS!AS
9601 PRINT ,"TEAM PLAYERS" 9972 PRINT • •JCHRS(130);"
9607 PRINT " I=INJURED P=PLA -IAS;as;AS;AS;AS;-| | -;CH
YING- RS(130)jas;as;AS;as;as;••-
9609 PRINT "NO NAME- "SKL EGY 9973 PRINT • -;CHRS<130);•
-
STATUS ; A S j a s ; A S ; a s ; a s ; I -;AS
9619 LET A-7 ;AS;AS;AS;AS;••-
9620 FOR B=1 TO 24 9974 PRINT • •;CHRS(130);* M

9630 IF B(B)-0 THEN GO TO 9 6 6 0 " ;CHRS(13D ; - - ; CHRS ( 1 3 0 ) ; -


9635 IF B<10 THEN PRINT • ^ ."; as;AS;as;as;•••
9636 PRINT B | " . 9975 PRINT • ";BS,,CHRS(135
9640 GO S U B 2 0 ); • -;CHRS(130);as;as;AS;-•-
9645 PRINT ,E(B)S" •
J• C ( B ) , ' 9976 PRINT - -;bs;- M.
f •;CHRS(130);AS;AS;CHRS(13
9646 IF B(B)=1 THEN PRINT " I " 5)
m m
9647 IF B(B)—2 THEN PRINT P 9977 PRINT ,CHRS(131);-.-;CHRS(1
9648 IF B(B)=3 THEN PRINT 32);as;AS;CHRS(135);CHRS(131);-
9660 NEXT B ";bs;- • - ; a s ; C H R S ( 1 3 5 ) ; -
9670 RETURN 9979 PRINT ,• • • ; CHRS ( 1 3 1 ) , "
9800 PRINT -ENTER «0" TO CONTINU ;bs;- -;chrs(131)
9980 PRINT m m
E- -;BS,- I BS
9810 RETURN 9981 PRINT - ; b s , - • ; BS;
9840 PRINT -PRESS N/L TO CONTINU
E- 9982 PRINT -;BS,-
9850 INPUT ZS 9983 PRINT GRANDSTAND -;BS;-
9860 RETURN
9984 PRINT • • ;• B S ;
9952 GO S U B 30
9953 LET AA=X
9954 LET A=C 9985 PRINT A GAME OF STRATEGY
9955 GO S U B 30
9956 FOR E=0 TO 8 9986 PRINT
9957 POKE X+(D-L)*10+E,PEEK(AA+( 9987 INPUT ZS
B-L)*10+E) 9988 RETURN
9958 NEXT E 9999 PRINT PEEK(16396)+PEEK(1639
9959 RETURN 7)#256

63 ZX COMPUTING JUNE/JULY 1985


COMPETITION

The Binatone
usually a small hole for inserting
a screwdriver, a quick twiddle of
which has loaded many a reluc-
tant program, however,

Data Recorder
Binatone assure us that they
would be happy to adjust any
units which seem to have align-
ment problems.
The instruction booklet is
well produced and you'd have to

This issue we have half a dozen of


be a c o m p l e t e idiot to
misunderstand it. I tried it with a

Binatone's new Data Recorders to give


variety of tapes, some old and
some new and all bar one loaded

away!
successfully , then I tried it with a
program which had failed to load
on all my other recorders, and,
surprise, surprise it loaded first
timel
At £29.95 it is by no means
cheap, but it looks very im-
pressive and has performed ad-
mirably. I would recommend it
to anyone who feels that it is
w o r t h getting a dedicated
recorder for their computer."
For what it's worth, I can also
add that the recorder has been
more or less adopted for use in
our offices when we want to try
out software.

The competition
Somewhere on these two pages
you will see a small captionless
cartoon featuring (among other
things) a tape recorder. All you
have to do to win one of the
Binatone recorders is to supply
an absolutely hilarious caption to
accompany the cartoon. The
captions should be 'suitable for
mass consumption' i.e. not too
disgusting. Other than that, you
can do what you want.

t o Enter
Entries should be written either
on a postcard, or the back of an
envelope.

The rules
• This competition is open to
all UK and Northern Ireland
readers of ZX Computing, ex-
A few weeks ago a young lady The Review tape counter, monitor switch cept employees of Argus
came to the ZX office, laden and power switch are mounted Specialist Publications Ltd, their
with bulky looking carrier bags. on the front panel. printers and d i s t r i b u t o r s ,
"Oh my gawd," we all cried, But first, we'll let you hear what employees of Binatone and I
On the left hand side are the anyone else associated with the
"not another tape recorder to our reviewer said when we sent
ear and mic sockets — marked competition. As long as each en-
review?" But it was, of course. him the recorder to look at.
" o u t p u t / l o a d " and " i n - try is sent on an individual I
However, this particular unit "From Binatone comes their
put/save" — a remote socket envelope/postcard, there is no I
turned out to be really rather contribution to the computer in-
and a sliding volume control limit to the number of entries I
good, and so, when we received dustry. This recorder is an im-
(outputyload level). Also on this from each individual.
a 'phone call from the people at pressive looking unit which is
panel is a phase switch which • A l l e n t r i e s must be
Binatone asking — "How would rather large and the cassette
gives normal or reverse phasing postmarked before 31st July
you like to run a competition housing is upright while the keys
to the output, as far as I can tell 1985. The prizes will be award-
with the Data Recorder as a form a ledge at right angles at
this has no effect on the loading ed to the six entrants who pro-
prize?" — we jumped at the the bottom of it.
of spectrum programs. vide the best captions to accom-
chance, so we now have six of The whole unit is almost
these fine units to give to our square and as well as the usual A serious omission is that no pany our cartoon. No cor-
readers, regardless of which P l a y / R e c o r d / F . f o , r - provision for adjusting the head respondence will be entered into
machine you own. ward/Rewind/Stop/Pause keys azimuth has been made, this is with regard to the results, and it

64 ZX COMPUTING JUNE/JULY 1985


is a condition of entry that the Hopefully we will be able to
Editor's decision is final, carry a full review elsewhere in
t The winners will be notified this issue.
by post and the results publish-
ed in a future issue of ZX Com-
puting. Unique
The bad news is that Unique ap-
Temptation pear to have bitten the dust,
competition leaving the winners of their
Sandscorcher c o m p e t i t i o n
The winners of this competition prizeless. The good news is that
(their names were published last ZXC has managed to arrange for
issue), should by now have alternate prizes to be sent out.
received their prizes, as Tempta- The kind people at Argus Press
tion have written to us to con- Software have offered to supply
firm that the prizes were sent us with copies of their game,
out. The people at Temptation Alien, which has received some
tell us that they are surprised by rather good reviews in some
the immortality of the ZX81, other mags. The only reason we
and as a result have now releas- haven't reviewed it yet is that
ed a triple-pack of ZX81 games. Ray's, ahem, 'distressed condi-

tion' and a change in some of our The drive should have reach-
review team has thrown a bit of ed you by the time you read this,
a spanner into the works. The and we hope you enjoy it.
prizes should have arrived as
you read this. We hope all the
winners enjoy them, and we
Software Farm
apologise for their having to wait As I write this, our April/May
such a long time. issue has only just hit the

t,
newstands, but entries for the
Software Farm competition are
Thurnall Disc Drive already staring to come in. We
iiuaiaBai winner will of course, announce the
winners in our next issue.
And now, the moment you've all Next time around, with a little
been waiting for, the announce- luck, we hope to be able to offer
ment of the winner of the Thur- you the chance to win a wonder-
nall Disc Drive. This incredibly ful colour monitor for use with
lucky person is none other than: the Spectrum. Don't say we
Alan Smith, of Basingstoke. aren't good to you!

65 ZX COMPUTING JUNE/JULY 1985


A brilliant and machine code game from Stephen Ives
to test would be spaceship pilots in Essex.
The first sighting of planet ASP missiles — should be Lines 100 to 160 contain the if it goes wrong
was uninspiring, nothing but easy.... I machine code and the program
desolate waste and litter from to load it into line 50 REM. If the program crashes at any
picnicing aliens. The the heat Lines 200 to 7030 is the stage, reload it and check the
sensors of the Mk. 1 Cortina REMS and so forth main program, and line 9999 following lines:
Space runabout pinpointed a REM is also important.
small entrance leading into the Machine code is always a source Making quite sure that you • 100-1 25 and 1001-3016 if
depths of the planet. of problems so great care must have copies on tape, RUN the it crashes immediately without
Being a Wonderfully Alert be taken over this program. I can program. After a few minutes producing any display.
Life Loving Yobbo (Wally for assure you it's worth it! Enter the program should stop with er- • 111 if it crashes when you
short) I pointed my go-faster the whole program, saving at ror report 9/129. move.
striped bonnet towards it and regular intervals, and making • 114 if it crashes when you
floored the pedal. sure that each of the REM lines 1 fire.
Fancy the inhabitants being to 22 contain 32 characters — • 121 if it crashes when you
unfriendly! these often include quarter NOW for the big hit a fuel dump.
Just because our golfball characters found on keys 1 to 4. test • 116-119 if it crashes when a
team supporters destroyed a Line 50 MUST contain 600 () appears.
planet or two during the last in- characters, as this is where the Type RUN 200, newline. To
terplanetary cup season there's machine code will be stored the prompt for SPEED ti^ 30,
no need to take it out on the once you have entered this type hopefully you will be battling for Ammendments
average tourist! PRINT PEEK 17350 newline survival! If this is the case now
And wouldn't you know it, and the answer should be the remove one at a time (by typing You can redesign the cave by
my darn fuel tanks have started code of the character you used the line number and newline) all changing the patterns in REM
leaking! Still all I've got to do is (ie if you used 600 zeros then the lines 104 to 160. lines 1 to 22 but each line must
shoot their fuel tanks so the the number should be 28). If this SAVE your final program two have 32 characters and the two
ships' built in fuel absorbers can is not so then check the REMs or three times by typing GOTO 0 must remain in the same posi-
collect it, and simply dodge their carefully. 8 0 0 0 newline, and relex! tions.

66 ZX COMPUTING JUNE/JULY 1985


r

ZX81 CAME
7 REM 3605C9AF220E40D7B7ED427EFE892006
2142403605C9FE0028062144403605C9
8 REM & >=< 220E403E0ED7224540C9"
• ••I'll llll 117 LET P*=P*+"2A34403E0FA467CB
9 REM M . 4EC0CB66C01611218E00ED4B0C40097E
FE112808012100091520F4C9B7ED4222
10 REM ^ 4540360E2144403600C9"
118 LET P*=P$+"3A4840FE00203B2A
11 REM 4940012100AFED427EFE0E2806214840
3605C9AF220E40D7B7ED427EFE892006
12 REM 2142403605C9FE0028062148403605C9
220E403E0ED7224940C9"
13 REM 119 LET P*=P*+"2A34403E0FA467CB
56C0CB6EC01611219100ED4B0C40097E
14 REM mm FE112808012100091520F4C9B7ED4222
4940360E2148403600C9"
15 REM 120 REM I F F U E L • D U H P I H I T
121 LET P$=P$+"21434036002A3E40
16 REM 012100B7ED427EFE142801092B060336
002310FB011E0009060336002310FB2A
17 REM 4B4001960009224B40C9"
I 1 2 2 REM F U E L H T E C CHECH
18 REM () 123 LET P*=P$+"2A4B407CFE00200B
J 7DFE0020062142403605C9010A00B7ED
19 REM () 42224B40C9"
124 REM _0_R_I _V _E _R 17886
20 REM 125 LET P*=P*+"CDC643CDC1453A42
40FE05C8CD07443A4240FE05C8CD4944
21 REM 3A4340FE05CC8F45CDA744CD1B452A4D
402B7CB520FB2A4F4023224F40C3DE45
ia
22 REM
129 IF P*="" THEN STOP
50 REM THIS LINE M U S T CONTAIN 130 POKE A,CODE P**16+C0DE PS(2
600 CHARACTERS FOR THE ) —476
MACHINE CODE. 140 LET A=A+1
100 LET A=17350 150 LET P*=P*<3 TO )
104 REM 5 C P O L L B R O U T I N E 160 GOTO 129
105 LET P$="ED5B0C402121001901D 195 REM
602EDB02A0C4001B60209EB2A4040012 196 REM
000EDB07CFE43200C7DFEC0200721824 197 REM
0224040C901060009224040C911 200 REM U-llslAi a a IJMHflslSI
107 REM GEHB 201 REM
111 LET PS=PS+"ED4B0C4021FA0009 202 REM
223C402A3C40012100AFED42220E40D7 203 REM
D7D72A3C403A2540FEEF200123FEF720 210 PRINT AT 0,11J"DEATH CAVES"
012B0603E57EFE002807E12142403605 220 PRINT AT 1,11; 1 , 1 — — »
C92310F1E1220E403E06D73E89D73E86 230 PRINT AT 2,0;"YOU MUST STEE
D7223C40C9" R YOUR CRAFT - ^ ^ THROUGH THE C
112 REM O H 3 IdMliii3H AVES DODGEING THE WALLS AND ENEM
114 LET P*=P*+113A2140FE00281321 Y FIRE."
25403EDFBE280B2A3C4001220009223E 240 PRINT AT 6,0;"YOU MUST ALSO
40C921214036002A3E40012100B7ED42 COLLECT FUEL BY SHOOTING THE
220E403E00D701420009223E40220E40 FUEL DUMPS - >=< IF YOU RUN OU
2A0E407EFE1420062143403605C9FE00 T OF FUEL YOU GET KILLED."
20043E1BD7C921214036052A3C400122 245 PRINT AT 11,0;"THE DEEPER Y
0009223E40C9" OU GO THE HIGHER YOUR SCORE"
115 REM E N E M ¥ 5I ( * i & j G E T P 0 5 250 PRINT AT 14,0;"KEYS"
116 LET P*=P*+"3A4440FE00203B2A 260 PRINT AT 15,0; "
4540012100AFED427EFE0E2806214440 270 PRINT AT 16,0; 5"" MOVES

67 ZX COMPUTING JUNE/JULY 1985


ZX81 CAME
SHIP LEFT." 3000 POKE 16448,130
280 PRINT AT 17,0;",M, 8 MM MOVES 3010 POKE 16449,64
YOU RIGHT." 3015 REM C R L L - H . C - D R I V E R
290 PRINT AT 18,0;"""U"" FIRES 3016 RAND USR 17886
LASER BEAM." 4005 IF (PEEK 16459+256*PEEK 164
300 PRINT AT 21,0;"ENTER SPEED 60)< >0 THEN GOTO 5000
0(FAST) TO 200(SLOW)" 4010 CLS
310 INPUT SPEED 4020 PRINT AT 10,0;"YOU RAN OUT
OF FUEL"
4030 GOTO 7000
5000 CLS
1000 CLS 5010 PRINT AT 10,0;"YOU WERE DES
1001 POKE 16461,255 TROYED "
1002 POKE 16462,SPEED 5020 GOTO 7000
1010 POKE 16450,0 7000 PRINT AT 12,0;"YOU SCORED "
1020 POKE 16417,5 ;(PEEK 16463+256*PEEK 16464)*10
1030 POKE 16452,5 7010 PRINT AT 14,0; "PRESS »"T""
1050 POKE 16459,200 TO PLAY AGAIN"
1060 POKE 16418,0 7020 IF INKEY$<>"T" THEN GOTO 70
1 0 6 5 POKE 16463,0 20
1066 POKE 16464,0 7021 POKE 16418,2
1070 PRINT AT 22,0;"• 7022 CLS
fl TH CRV/E5 M 7030 GOTO 200
1080 PRINT AT 23,0;"• 8000 SAVE "DEATH CAVE0"
15 T E F' H E N I Ura^a^MM^MH 11 8010 RUN 200
1085 POKE 16418,2 9999 REM
1090 PRINT AT 0,0;
2000 RAND USR 17404

soon find yourself playing it at grams take to LOAD. That aside,


normal speed. the "Slomo" is a valuable addi-
The only minor irritation — tion to any computer buff's ar-
perhaps caused by having a Disk moury of peripherals.

Tired of being unable to play cause the red indicator to light,


those fast games, or do you and allow Jhe speed control
wish to take screen shots, or knob to De t u r n e d anti-
just stop a game that has no clockwise to slow the screen
"pause"? Then Nidd have the display to a standstill. Turning
answer to your problem — the the knob clockwise results in the
"Slomo". It is a handy small unit display gradually speeding up to
comprised of sloped hand con- virtually normal speed at full
trol 2 . 7 5 " by 1 . 7 5 " , and a yard turn. Press "Slow Motion"
of cable leading to a user port ex- again and the light goes out
tender which can be attached to showing that the "Slomo" is
the computer or behind any switched off.
peripheral which has a suitable When LOAD ing or SAVEing
extender. a program the device must be
As with all "add-ons", it is switched off, otherwise nothing
essential to switch the com- will happen. Load one of those
puter off when fitting the games that require fast reac-
"Slomo", which can then be left tions — such as "Bug-Eyes",
permanently plugged in. The in- "Leapfrog" or "Bruce Lee" -
struction sheet offers a simple switch on "Slomo", select the
test program involving filling the speed that you feel able to cope Drive and an FDS keyboard — is The Slomo costs £14.95, and is
screen with asterisks and then with and sit back to enjoy the that occasionally programs have available from Nidd Valley Micro
pressing "Freeze Frame". The game as never before. When the crashed after using the "Freeze Products, Stepping Stones
screen should stand still until the game becomes too easy at that Frame" button — which can be House, Thistle Hill,
button is released. Pressing the speed, just turn the knob slightly most frustrating, especially con- Knaresborough, North
"Slow Motion" button should and play it faster. You should sidering the time some pro- Yorkshire.

68 ZX COMPUTING JUNE/JULY 1985


PROGRAMMING ARTICLE!

Building A n
O(N) which equals minus one,
which indicates that the object
is being held by the player. The
computer then checks if Y $ ( TO

Adventure Brain
2), which is 'KN', is equal to
0$(N, TO 2), also 'KN', to be
sure that it is the same object, as
players can obviously carry

Part 2
more than one object. As this
comparison is true, the flag, FL,
is set to one and O(N) is set to
the present location number, L.
The object will stay at the loca-
tion where it is dropped, unless
Continuing his guide to Adventure moved again by the player. As
FL = I, the message 'OK - YOU
writing. Brian Robb introduces some DROPPED IT' is displayed to the
player. The computer then
special subroutines. returns to the main 'brain' pro-
gram and continues the game.

inventory
In the first article of this series I In the first article of this GOSUB V ( N } \ V(2) is line
began to explain how to build an series, X$ held the player's verb number 2000, and so the com- Another necessary routine deal-
adventure 'brain'. To complete input and V$ the verbs that the puter is directed to line 2000, ing with objects is the inventory
this brain, several specialised computer understands. This where the 'TAKE' routine is which prints a list of all the ob-
subroutines are needed and it is module compares the first three located. jects carried by the player.
these subroutines which I shall letters of the player's input with The f i r s t line of t h i s Figure eight shows the inven-
consider in this article. the first three letters of all the subroutine sets up the variable tory listing, which begins at line
To start with, after initialising known verbs, and, if a match is FL, used as an indicator flag. In 4000. Once more the flag, FL, is
the verbs (as shown in the found then the computer jumps the example, the location L, is set to zero and the message
previous article), the objects to to the subroutine represented by five, N is one, 0(N), therefore, is 'YOU ARE CARRYING : - ' is
be used within the adventure V{N), the program line number also five, Y$( TO 3) is'KNI'and printed. The following lines print
have to be initialised in the same where the subroutine begins. If 0$(l, TO 3) is 'KNI', and out the full list of the player's ob-
way. Figure one shows a listing no match is found the computer because these are equal the flag, jects. If the variable O(N) has the
which does this and matches then prints 'I CAN'T';X$,and the FL, is set to one and variable value minus one and not the
figure five accompanying the player must rephrase his com- 0(N) is set to minus one in the value of a location number, then
last article. Figure two shows mand until he finds a verb that next line. If 0(N) is set at minus this indicates that the player is
the Spectrum version. The ob- the computer understands. The one, and not, as is usual, a loca- carrying object number N. The
jects used in these listings are number of these verbs depends tion number, the computer then flag is set to one and 0$(N), the
only examples and should be upon the size of your adventure recognises that the player is car- object's name is printed on the
replaced with the objects you and the memory available to rying this object. As FL now screen. In this way a list of ob-
will be using in your own adven- you. To illustrate how this equals one, the computer prints jects carried by the player at any
ture. The number which follows adventure game system works, the message 'OK - IT'S time is printed on the screen. If
each object is the location I shall explain four necessary YOURS' and returns to the O(N) is never equal to minus one
number where that object will subroutines. module in figure 5. This module for all the objects then the player
first be encountered by the moves the computer to line I00 is carrying nothing and the flag
player (and this will change as
the game proceeds and objects
vocabulary to reprint the location descrip-
tion (without the taken object)
stays set at zero. If, after com-
pleting the loop, FL is still equal
are moved around). To start with, I shall consider and to enable the player to con- to zero tnen the message
It is necessary on the Spec- one of the most common adven- tinue the game. The PAUSE 'NOTHING' is printed, indicating
trum, but not on the ZX81, to turing verbs — TAKE. Figure six command in figure six is to allow exactly what the player is carry-
have a program module which shows the complete module to the player to read the message. ing. The computer then returns
reads both the verb and object which the computer is directed, Using the same example, from the subroutine to the main
data into the c o m p u t e r ' s and I shall explain how this with the input altered to 'DROP 'brain' program once more.
memory. Figure three shows module works. KNIFE', I can explain the drop Figure nine is a diagram
this routine. As an example I shall assume routine. The computer is showing the structure of the
Now that the computer has a that the player is in location five, directed to line 3000 where the program so far and where the
list of objects, a program module where a knife is to be found. The drop routine is located by the various listings fit in. In the next
needs to be added to the loca- player types 'TAKE KNIFE', module in figure five, as article in this series I shall deal
tion description printing routine which is split into X$: 'TAKE'; previously explained. with specific subroutines need-
to print out the object's name, and Y$: 'KNIFE'. 'TAKE'is verb Figure seven shows the ed for this particular example
along with the room description, number two and 'KNIFE' is ob- 'DROP' routine, which also adventure, incorporating techni-
if the player should walk into a ject number one, found in loca- begins by setting the flag, FL, to ques you can use in your adven-
room containing an object. tion five. Following on from the zero. The program goes around tures, and round up any loose
Figure four shows this self ex- string splicing module (covered the loop until it finds a value of ends.
planatory routine for both the in the previous article) the pro-
ZX81 and Spectrum, and gram comes to the module in
almost completes the central figure 5. Going through this Fiqurp 1! 7^91 v*rb initialising
brain program. module, N is given the value one
A final routine is needed for to begin with, so X$( TO 3) is
the brain program to use the equal to 'TAK' and V$(l, TO 3) is D I M O * f5, 10>
verbs and to-direct the computer equal to 'GO'. These two are not H770 DTM 0 ( 5 )
to the specific subroutine which equal and so N is increased to 2. RFM PUT OCJECTS INTO O*
deals with that verb. Figure five V$(2, TO 3) is equal to 'TAK'.
shows this routine for both As these two are equal the pro- 9230 L FT O* I 1 ) - " K N I F E "
Sinclair computers. gram then reaches 'THEN 873*7 RFM ASSIGN OBJECT LOCATION

69 ZX COMPUTING JUNE/JULY 1985


PROGRAMMING ARTICLE

<?740 LET O(1) -5 OT HERE"


8750 L FT O*(7)-'PISTOL 2 0 6 0 I F FL—1 THEN PRINT "OK - IT
8260 LET 0(2>=2 I S YOURS*
REM . . A N D SO ON.. 2 0 7 0 PAUSE 5 0 0
2 0 8 0 RETURN

Figure 2: Spectrum version Figure 7: Drop routine

8200 DATA "Kni^e",5,"Pistol",2: 3000 LET FL=0


REM etc. etc . . . . 3010 FOR N=1 TO 7
3015 REM 7-NO OF OBJECTS
Figure 3: ZX81 SET UP 3020 IF 0(N)=-1 AND Y*( TO 3)=0*
(N, TO 3) THEN LET FL^l
30 GOTO 8000 3030 OF O(N)—-1 AND Y«( TO 3)=0*
(N, TO 3) THEN LET 0(N)=L
Figure 3P: Spectrum data module 3040 NEXT N
3050 IF FL=0 THEN PRINT "YOU DON
30 RESTORE 8200! FOR 1=1 TO 8 T HAVE IT"
10 READ 0 « ( I ) ,O CI) 3060 IF FL=1 THEN PRINT "OK. YOU
50 NEXT I DROPPED IT-
60 FOR I~1 TO (number o* verbs) 3070 PAUSE 500
70 READ V * ( I ) , V ( I ) 3080 RETURN
30 NEXT I
Figure 8: Inventory routine
Figure 4:Object printing routine
4000 LET FLss0
270 PRINT
4010 PRINT "YOU ARE CARRYING:-*
280 PRINT "YOU CAN SEE * 4020 FOR N=1 TO 7
290 LET FL=0 4030 IF 0(N)=-1 THEN LET FL^l
299 REM 8=NO OF OBJECTS 4040 IF 0(N)=-1 THEN PRINT 0«(N)
300 FOR N—1 TO 8 4050 NEXT N
310 IF L=0(N) THEN PRINT 0«(N) 4060 IF FL=0 THEN PRINT "NOTHING

320 IF L—O(N) THEN LET FL=1
330 NEXT N 4070 PAUSE 500
340 IF FL=0 THEN PRINT "NOTHING 4080 RETURN
USEFUL"

FIGURE NINE: PROGRAM STRUCTURE


Figure 5: Verb routine

INITIALISATION (2) FIGURE 3<4

i
800 FOR N=1 TO (number of verbs
310 IF X*( TO 3)=V«(N, TO 3) TH LOCATION DESCRIPTION (1) FIGURE 3
EN GOSUB V(N) (2) FIGURE 4
820 NEXT N
STRING SLICING (1) FIGURE 6
830 PRINT "I CANT "J X *
840 GO T O 100 SUBROirriNE LOCATION (2) FIGURE 5

MOVEMENT SUBROUTINE (1) FIGURE 7


Figure 6: Take routine TAKE SUBROUTINE (2) FIGURE 6

2000 LET FL"=0 DROP SUBROUTINE (2) FIGURE 7


2005 REM 7-MO OF OBJECTS INVENTORY SUBROUTINE (2) FIGURE 8
2010 FOR N=1 TO 7
2020 IF L=0(N) AND Y«( TO 3)=0*< SPECIFIC SUBROUTINES ARTICLE 3
N, TO 3) THEN LET FL*=1 > LOCATION DESCRIPTIONS {1) FIGURE 1
2030 IF L=0(N) AND Y*( TO 3)=0*( (1) FIGURE 2
N, TO 3) THEN LET 0(N)=-1 > DIRECTION DATA (1) FIGURE 4
- • O B J E C T DATA <2» FIGURE 1-
2040 NEXT N (2) FIGURE 2
2050 IF FL=0 THEN PRINT "IT IS N ARTICLE 3 I

70 ZX COMPUTING JUNE/JULY 1985


K
PROGRAMMING FEATURI

Light
THE MAIN LOOP WORKING
A L R E A D Y YOU SHOULD
REPLACE IT BY THAT GIVEN IN
THIS ARTICLE.
The MAIN LOOP has been
altered for t w o reasons: (i) to get
rid of the six NOP instructions
which are currently stuck in the
middle, and (ii) to make room for
the new improved ESCAPE
routine. The ESCAPE routine
has been extended by five bytes

P a r t Six
of code which guarantee a
return to BASIC following all of
the procedures. The improve-
ment is, essentially, to ensure
that the HL' register contains a

Toni Baker continues our machine code


value of 2 7 5 8 on return to
BASIC. It means that HL' now

mega-program
no longer needs to be preserved
by individual procedures and

This part of the program concen- The MAIN LOOP for this pro-
trates on some of the simpler gram was first listed in Light
geometry functions. In par- Screen Designer Part 3. The ad-
ticular, I intend to activate four, dition of new code in part 4 (a
more of the keys. In order of copy screen subroutine) meant
complexity; TRIANGLE (key K), that the main loop could be im-
RECTANGLE (key. J), proved by altering part of the
PARALLELOGRAM (key U), and code, however the new code
CIRCLE CENTRE (key H). In ad- was in error and the correction
dition I intend to modify the main for it appeared in part 5. It
loop and ESCAPE routine (key stands to reason, therefore, that
SPACE) so that a full return to if I make further alterations in
BASIC is possible in all cir- part six then things will get very,
cumstances and without error. very confusing indeed, with the

ORG DK1B
CEB6DD ium_Loop CALL DDB6, ER_CURSORS Draw all required cursors.
CDB5DC CALL DCB5,0£T_CHH Halt for key press.
CDB6DP HADI_I00P_2 CALL D0B6,ER_C URSORS "Undraw" the cursors.
2A14DB Ii) HL,(CURSOR)
ED4B16DB ID 0C,(CURSOR+2)
D5 TOSH DB Stack the key scan.
78 ID A,E At- key code.
no; CP 05
2840 JR Z,CSR_D0VM Jump If "cursor down" pressed.
reo4 CP 04
28 J A JR Z,CSR_LEJT Jump If "cursor left" pressed.
rooB CP OB
2840 JR Z,CSRJJP Jump If "cursor up" pressed.
RtJ CP 15
28 57 JR Z,CSR_RIGHT Jump If "cursor ri®ht" pressed.
21ADDS KLJIEST ID HL,DEAD,HULL TABLE
OITTOO ID BC,0011
DBf CPU la key pressed In null table?
2801 JR Z,KL_ACTIOB Jvmp If s o .
2141W ID B1,J_FLA0S high
C*6 BIT 4,<HL)
CCC9DS CALL Z,DEC9,COPT_SCRKBI Copy screen If allowed.
CBAE M S 5, (HL)
D1 HL_ACTIO pop re DEj» keyboard scan.
211BDE ID HL t DElB,HADl_loop
«5 TOSS HL Force subroutine return address
to be KAD(_LOOP.
2142EE ID HL,DB42, CMD_ADDRS
14 INC D
280J JR Z,KL_CASE Jump unless "Shift" pressed. listing of a single routine spread therefore represents a saving of
11 POP HL Drop M A M _ L O O P address. over four issues. I intend, space. (All of the procedures in
1859 JR RXT_BA5IC Prepare to return to BASIC. therefore, to re-list the MAIN- this article corrupt HL', as, I'm
7B HLCASE ID A,I A:» key code. LOOP and ESCAPE routines in sure, will many in the future.
87 ADD A,A full and in one piece in this issue. Also, it has been pointed out to
85 ADO A,L NOTE THAT BOTH OF THESE me that the DRAW-LINE routine
6r ID l,A HLt points to subroutine address., ROUTINES HAVE BEEN UP- corrupts HL', which is a bug I
DATED, SO EVEN IF YOU HAVE had overlooked.)

71 ZX COMPUTING JUNE/JULY 1985


ROCRAMMINC FEATURE!

C «
25
id c , ( r l )
dfc hl
46 id b , ( h l ) BCt> subroutine address.
c5 push bc
2A14TB i d hl,(cursor)
&4B16DB id bc,(cursor+2)
C9 ret J « p to required subroutine.
cd1jed csr_lk7t c a l l ddi j , l e p t _ p u HOT* cursor left.
1800 j r csr_st0re
cdlysd csr_ri0ht c a l l ddi p, r iqht_pix Ho re c o n o r right.
1800 j r csr_stor£
cd25dd csrjjp c a l l mk9,up_pn HOT* cursor u p .
180} j r csrjstobe
CDJ6EC csr_d0wt c a l l dd36,doww_pix MOT* cursor down.
j r c,csr_ecit
M
>807 csr_st0re Jimp IX cursor cannot MOTS.
2214DB id (COSaOB),hl
ED4J16DB id (cursor+2 ),bc
01 csr_QIT pop de DKs- keyboard scan.
14 ixc d

288D jr z,MA»_ioop Loop back unless "Shift" pressed.


cdb6h) c a l l ddg6,dr_c tjrsors Re-draw the cursors.
76 halt
0 ( 76 halt Halt for 1/J5th of a sscond.
cdcodc c a l l dcco,get_chr_2 DKia keyboard scan,
1889 j r had! loop 2 loop b a c k .

RECTANGLE
ORG DE98
CD9EDE RET_BASIC CALL DE9E t ESCAPE
C31BDE JP DE1B,HA D)_LOOP
CDCCDC ESCAPE CALL DCCC,MESSAGE

c
12 DEPB 12 Print Message and await reply.
FEW CP "i*
CO RET NZ Return unless reply was "I*.
D9 EEC
El POP HL Drop return address to empty
the stack.
215827 LD HL,2758

o D9 EZZ HL' :«2758 to ensure return to BASIC.


C9 RET Return to BASIC
00 ESC_BTTE DEFB 00' Byte unused es yet.

PARALLELOGRAM
ORG E01C
CD41DD DRAW_TO_BC CALL D D 4 l , P H _ A D D R HLj- pixel address.
CJ04DP JP DTO4,DRAW_LIKE Ju*p to draw line.
El TESTJURXER POP KL HL:- address o f next Instruction.
M JA15EB LD A,(KARJCDU5)
PEBO CP BO
DO RET RC Return If Marker unused.
E9 JP (HL) Otherwise continue trem
next lnetruction.

C CD22B0
ED5B0EDB
TRIANGLE CALL EXE2,TESTJORBES
LD DE,(0RIQDf+2)
Return If M r k e r not In u s e .
DEi- origin cursor coords.
C5 PUSH BC Stack HaIn cursor coords.
D5 PJSH DE
C5 PUSH BC
ED4B12DB ID BC,(MARKER+2) B C : . Barker coords.
1843 JR PAR_5 JuMp to draw three lines.
C5 RECTANGLE PUSH BC S U c k aaln cursor coords.
ED5B0EDB LD D K , ( 0 R I 0 D U 2 ) DEt- origin coords.
D5 PUSH DE
C5 PUSH BC
42 ID B,D
CD1CE0 CALL B01C,DRAW_T0_BC Draw first line.

CIRCLE-CENTRE CI POP BC
C5 PUSH BC
CD1CB0 CALL K)TC,ERAW_T0_BC Drew second line.
C1 POP DC
D1 POP DE
D5 PUSH DE
4B LD C,E
1856 JR PAR_2 JUMP to draw regaining two lines.

72 ZX COMPUTING JUNE/JULY 1985


ROCRAMMINC FEATUR

ORG E050 ORG E06F


CD22B0 PARA LLELOORH CALL B022,TEST_MARXER Return if marker not In tide. C5 CIRCLE_CENT PUSH BC Stack cursor coords.
ED5B12DB LD DE,(KARKXS+2) DE:- nnrker coords. ED5B0EDB ID D E , (ORIGDi+2) DE:« origin coords.
2A0EDB ID HL, (ORIGfif+2) HLis origin coords. CDE&DE CALL DEE6,ADJUST_BD Adjust to ROM convention.
79 LD A f C PUSH BC
C5
95 SOB E PUSH DE
D5
5804 JR C,PARJTC01 21925C LD HL.MEKBOT
85 ADD A,L At- x coord of 4th m U * . 22655C ID (STXEKD),HL Point calculator stack into
D6 RET C Return 1/ off screen calculator nenories.
1802 JR PAR_I4 7A LD A,D
85 PARJCE01 ADD A,L At* x coordinate of 4th vertex. CC282D CALL 2D£8,STACK_A Stack origin-y on calc stack.
DO RET IIC Return If off screen. D1 POP DE
06 PAR_I4 H AF,Af Store In A * . 7B LD A,E
78 LD A,B CDB82D CALL 2D28,STACK_A Stack origin-x on calc stack.
92 SUB D CI POP BC
5807 JR C,PAK_KQ2 PUSH BC
C5
84 ADD A,H Aii jr coordinate of 4th vertex. LD A,B
78
D8 RET C Return if out of ranf*. CD282D CALL 2D28,STACK_A Stack cursor-y on calc stack.
FEBO CP BO
CI POP BC
DO RET KC Return if off screen.
79 ID A,C
1802 JR PAR_T4 CD282D CALL 2E£?8,STACK_A Stack cursor-* oh calc stack.
84 PAR_IEQ2 ADD A,H At* y coord of 4th vertex. LD HL,(STKB0T)
2A655C
DO RET HC Return if off screen. ID (STKEND),HL Restore (empty) cslc stack.
22655C
C5 PARJM PUSH BC EF CC_DRAW RST 28 Engage the calculator.
E5 PUSH HL Et recall H1 Ox
67 LD a,A EO recall HO 0*,0y
08 EC XT,AT' 51 duplicate Ox,py,Qy
6r LD L,A HLt« coords of 4th vertex. E2 recall M2 0x,0y,0y,Cy
85 PUSH HL OJ subtract Ox,Oy,Oy-Cy
C5 PUSH BC duplicate Ox.Oy,Oy-Cy,Oy-Cy
51
42 ID B,D
04 multiply Ox, Oy, (Oy-Cy) 2
46 ID C,E £1 recall Ml °*»0y,(Qy-Cy) 2 ,0x
CD1CE0 CALL E01C,DRAW_T0_BC Draw first line.
E5 recall H5 0x,qr,(0y-Cy) 2 ,0x,Cx
CI POP BC
Ox,Oy, (Oy-Cy ) 2 , Ox-Cx
03 subtract
CD1CE0 PAR_J CALL 801C,CEAW_TO_BC Draw next line.
51 duplicate Ox,Cy, (Oy-Cy Ox-Cx,Ox-Cx
CD 58 DP CALL DF38,CANCEL_NARK Cancel marker cursor.
Ox,Oy,(py-Cy) ,(Ox-Cx) 2
2
04 multiply
C1 POP BC OP add 0x,0y,(Oy-Cy) 2 +(0x-Cx) 2
CD1CE0 PAR_2 CALL B01C,DRAW_T0_BC Draw next line. 28 sqr Ox,Oy,radius
C1 FOP BC
38 end calc
CD1CE0 CALL E010,DRAW_TO_BC Draw next line.
185D JR C C H O V E

Geometry for itself the position of the


fourth vertex.
Procedures While using LSD it is possible
CD2E23
CI CC MOVE
CALL 232D.CIRCLEJ
POP BC
Draw the circle.
BCt« cursor coordinates.
for the user to produce some er- CD41DD CALL DD41,PII_ADDR HLta cursor address.
Four of the Designer's rors. Most of these are catered C3FJDE JP DEF3,M0VE Move origin to cursor position.
geometry procedures are given for by the program — for in-
in this article. The best way to il- stance — if you try to draw a
lustrate their operation is by triangle or a parallelogram whilst
diagram — therefore I have in- the marker cursor is inactive, or
cluded four such diagrams. Two if you try to draw a parallelogram The following changes must be made to the command addresses
of them - TRIANGLE and whose fourth vertex would need table *
PARALLELOGRAM require the to be off the screen. In both of DB44: 8F EO DEFWE08F, CIRCLE-CENTRE
use of three cursors at once. The these cases no error message DB54: 3 A EO DEFW E03 A, RECTANGLE
third cursor is called the will be supplied, however the DB56: 53 EO DEFWE053, PARALLELOGRAM
MARKER cursor, and may be ac- shape will not be drawn. There DB64: 2 A EO DEFW E02 A, TRIANGLE
tivated by the MARK key (key S) is, however, one error which DB82: 9E DE DEFW DE9E, ESCAPE
or deactivated by the CANCEL LSD cannot cope with: that is if
MARK key (key D). REC- you try to draw a circle which
TANGLE draws a rectangle will not fit on the screen. If this
whose sides are always horizon- error should occur you can
tal and vertical — therefore it is recover from it by the following
only necessary to specify two procedure: type the command
opposite corners. This is done CONTINUE to get back into
with the ORIGIN cursor (the Light Screen Designer (or RAN-
position of the last point plotted, DOMIZE USR 56789 if original-
or the position set by MOVE (key ly operated as a direct com-
A}), and the CURSOR itself. mand). Press ESCAPE (SPACE)
PARALLELOGRAM draws a four once to commence the program, tinue with, and hopefully com- Light Screen Designer will begin
sided shape in which all opposite and then press UNDO (key zero). plete, the remaining geometry to get some of the feel of its full
sides are parallel. It works out In the next article I shall con- functions. With these available, potential. --

73 ZX COMPUTING JUNE/JULY 1985


ZX PROGRAMMING

Machine
An introduction to Z80 Machine Code by
David Nowotnik
Ever wondered how a computer and PUSH AF (the 'A' register machine code routine in the and causing yourself some real
remembers where to turn to and the flag register combined) demonstration of flags program headaches.
after completing a subroutine? are the only PUSH instructions (Fig. 1 in part 3) had as con-
All will be revealed in this, the
fourth part of my machine code
permitted. When you PUSH
values onto the stack, the SP
secutive instructions PUSH AF,
POP DE. This placed the values
working with Bits
series. And, we will see lots of register is decremented by two, A and F onto the stack, then There are far more machine
ways in which the smallest unit so that it contains the new ad- placed them in D and E, respec- code instructions that deal with
of memory, the bit, can be utilis- dress of the next free position in tively. This enabled the F bits than there are ones which
ed to produce interesting the stack. The stack is built up register to be copied into the E manipulate bytes. So, it won't
machine code routines. But first, by moving DOWN in memory. register, from where it can be be of surprise to you that I won't
the stack! be covering all of them this time,
and I'll be saving some for the
The stack n e x t part of t h i s series.
However, having said that,
So far, we've dealt with many there is a very large number of
instructions to transfer bytes instructions w h i c h can all
from one place to another — be grouped into a relatively small
mainly from one register to number of categories. But
another, and between memory before we start to examine
and the registers. There is a some of these, it might be useful
special store of bytes of infor- to re-examine what a bit just
maton in RAM called 'the stack', happens to be.
which has its own set of Every byte of memory or
machine code instructions. The register in the Z80 processor is
curious thing about the stack is made up of 8 bits. Each bit is, ef-
that you usually don't have to fectively, an electrical switch; it
worry about where in RAM it is has two states, on or off, which
stored; the processor does this can be represented by the
for you automatically. You can values 1 or 0. There are 256
change the position of the stack To remove a value from the more closely examined. possible combinations of ones
if you want to (with special stack, the instruction POP is us- You have to be qurte careful and zeros in the eight bits that
machine code instructions), but ed, and the value 'POPed' from how you use the stack. It make up a byte, hence the value
it is usual to leave it where the the stack can be placed in one of operates by a last-on, first-off range that a byte can hold is 0 to
processor puts it after power- the register pairs. As part of the principle, so you must get the 255. In fig. 1 there is a BASIC
up, which is just below RAM- POP instruction, the SP register order on and off just right. The program for both ZX81 and
TOP. is twice incremented, to show stack is also used by the Z80 Spectrum which demonstrates
What is 'the stack'? It's a once more the address of the processor outside of your con- how the values of bits are com-
'pile' of bytes starting, as I said, next free place on the stack. All trol. Here's the answer to the bined to make up the value of a
just below RAMTOP, and the opcodes for the PUSH and subroutine questionl byte. When you RUN the pro-
building in a downward direction POP instructions are shown in When you call a subroutine, gram, the first thing you have to
in RAM. The purpose of the table 1. All are one byte instruc- either in BASIC, or a machine do is enter a decimal value. The
stack is to have a temporary tions. code subroutine, the return ad- binary representation of that
store of information (bytes) The stack is designed to dress is dumped onto the stack. value (ie the way it is held as
which you can dump there with make life easier for program- If you call several subroutines, ones and zeros in a byte) is
a simple one byte instruction, mers. For example, if you want the return addresses are placed shown on the screen. These bits
then remove just as simply. It to preserve the value in one of onto the stack in the correct are numbered 0 to 7 from right
works something like this: the registers while you use it for order, and you'll always return to left. Then watch the screen
There is a special two byte something else, simply PUSH to the right place in the program while you get a display of how to
register in the Z80 called SP, the the value onto the stack, then after each RETURN instruction calculate the decimal value of a
stack pointer, which contains POP it off when you need it. because of the last on, first off byte. Every time there is a '1' in
the first vacant address in the There will be examples of this principle of the stack. It is impor- a bit, then the value of that bit is
stack. If you want to store some later on. To transfer the values tant therefore, to make sure that added to the total. See if you can
information temporarily then from one register pair to another the number of POP instructions work out the relationship bet-
you use the instruction PUSH all you have to do is to PUSH one within a subroutine balances ween a bit value and its number
to place that information (bytes) register pair value into the stack, the number of PUSH instruc- (0 to 7). If you want to slow
onto the stack. You can only then POP it into the other tions (and not to POP a value off down the display, then increase
PUSH onto the stack the value in register pair. I demonstrated this the stack before one is PUSHed the size of the loop in line 1000.
a pair of registers; for example, in the last issue, although I didn't there), otherwise you could end With the knowledge that
PUSH HL, PUSH DE, PUSH BC, explain how it worked. The up removing a return address, each bit has the effective value

74 ZX COMPUTING JUNE/JULY 1985


ZX PROGRAMMING

of one or zero, it may not come


as a surprise to learn that the
simplest of machine code bit
Table 1. Opcodes for PUSH a n d POP instructions operations involves setting the
value of a specified bit to 1, or 0,
or testing whether a bit's value
Registers: HL DE BC AF is either 1 or 0. You can SET
(bit = 1) or RESET (bit = 0)
PUSH E5 D5 C5 F5 values, or test them with the BIT
POP El D1 CI F1
instruction, for any bit in the
main registers, A,B,C,D,E,H,L,
or a bit in a byte of memory ad-
dressed by HL. If you work out
Table 2. Opcodes f o r the SET/RESET/BIT instructions all the combinations, then there
are 64 SET instructions, 64 for
RESET, and 64 for BIT. All are
SET shown in Table 2. The SET,
Bit: 0 1 2 3 4 5 6 •7
RESET and BIT instructions are
all two bytes long, and all have
as the first byte of the instruc-
Register: A C7 CF D7 DF E7 EF F7 FF tion, the hex value CB.
B CO C8 DO D8 EO E8 FO F8 All the assembly language in-
C CI C9 D1 D9 El E9 Fl F9 structions for BIT, SET, and
D C2 CA D2 DA E2 EA F2 FA RESET require two arguments
E C3 CB D3 DB E3 EB F3 FB to complete the instruction; the
H C4 CC D4 DC E4 EC F4 FC first is the identifying number of
L C5 CD D5 DD E5 ED F5 FD
the bit (0 to 7), and the second is
the register, or byte (with (HL) )
(HL) C6 CE D6 DE E6 EE F6 FE identifier. For example, SET 5,E
places the value 1 in bit 5 of the
RESET E register, and RESET 1 ,L places
Bit: 0 1 2 3 4 5 6 7 the value 0 in bit 1 of the L
register.
Regi s t e r : A 87 8F 97 9F A7 AF B7 BF The BIT instruction tests the
B 80 88 90 98 AO A8 BO B8 value of the specified bit, and
C 81 89 91 99 A1 A9 Bl. B9 places the result in the zero flag.
If the bit value is 1, then 1 is
D 82 8A 92 9A A2 AA B2 BA
placed in the Z flag. The Z flag
E 83 8B 93 9B A3 AB B3 BB can then be tested, as described
H 84 8C 94 9C A4 AC B4 BC in the last issue. For example,
L 85 8D 95 9D A5 AD B5 BD BIT 3,(HL) tests the value of bit
(HL) 86 8E 96 9E A6 AE B6 BE 3 in a byte of memory identified
by the value in HL.
Another group of machine
BIT code instructions which work
on bits have the opcodes AND,
OR, and XOR. The first two will
Bit 0 1 2 3 4 5 6 7 be familiar to BASIC program-
mers; the machine code and
Regi s t e r : A 47 4F 57 5F 67 6F 77 7F BASIC instructions of AND and
B 40 48 50 58 60 68 70 78 OR are related, although that-
C 41 49 51 59 61 69 71 79 may be difficult to understand
D 42 4A 52 5A 62 6A 72 7A while I explain how they work!
E 43 4B 53 5B 63 6B 73 7B AND, OR, and XOR carry out
H 44 4C 54
bit-by-bit comparisons of two
5C 64 6C 74 7C
bytes. One byte must be in the
L 45 4D 55 5D 65 6D 75 7D 'A' register, the other byte must
<HL) 46 4E 56 5E 66 6E 76 7E exist in any register {including
'A'), or a byte of memory ad-
NOTEs All BIT/SET/RESET opcodes are preceded by CB dressed by HL, or a byte of data
stored immediately after the
operand in the machine code
Table 3. AND/OR/XOR Opcodes routine. The result of this com-
parison is stored in the 'A'
register, replacing the previous
value there. The result will ef-
Register/byte: A B C D E H L (HL) fect the values of the sign, zero,
and parity flags. Therefore,
AND: A7 AO A1 A2 A3 A4 A5 A6 E6 AND, OR and XOR are very
OR: B7 BO Bl B2 B3 B4 B5 B6 F6 similar to arithmetic machine
XOR: AF A8 A9 AA AB AC AD AE EE code operations, except that
their function is described as
'logic' rather than arithmetical.
* - n refers to an o p e r a n d a p p e a r i n g immediately after the
Fig. 2 shows a number of
o p c o d e f o r A N D , OR, o r XOR i n t h e m a c h i n e c o d e r o u t i n e . what are called 'truth' tables.
These show the result of com-
paring two bits by one of the •

75 ZX COMPUTING JUNE/JULY 1985


ZX PROGRAMMING

Fig.l. Binary Demonstration Program

'logic' operations, AND, OR, or 10 R E M B I N A R Y D E M O N S T R A T I O N


XOR. For example, if you AND a 20 REM BY DAVID NOWOTNIK
bit value 1 with a bit of value 0, 30 REM M A R C H , 1985
then the result is 0. OR the same 40 REM
two values, and the result will be 100 C L S
1; XORing 1 and 0 also give you
1. In fact, OR and XOR are very 110 P R I N T AT 2 1 , 0 ; " E N T E R A V A L U E (0-255) "
similar, except that 1 OR 1 = 1, 120 INPUT A
whereas 1 XOR 1 = 0 . 1 3 0 IF A < 0 O R A > 2 5 5 T H E N G O T O 1 2 0
How these 'truth' tables 140 L E T A= INT A
work in practice is also shown in 150 LET B*=""
Fig.2. Work your way through 160 L E T Z=A
the three logic 'sums' compar- 1 7 0 IF Z = 0 T H E N G O T O 2 5 0
ing each pair of bits with the cor-
180 L E T X = Z / 2
responding truth table. Then try
the three 'sums' which do not 1 9 0 IF X = I N T X T H E N L E T B $ = " 0 " + B $
have an answer. The answer 2 0 0 IF X O I N T X T H E N L E T B $ = " l " + B *
does appear at the end of this ar- 210 LET Z=INT X
ticle, together with the decimal 220 G O T O 170
equivalent of the binary answer. 2 5 0 P R I N T AT 4 , 2 ; " N U M B E R = ";A
You should be able to work out 260 LET B*="00000000"+B$
for yourself the decimal value — 270 LET L= LEN B$
if you' ve practised using the pro-
gram in Fig. 1. You may well be 280 LET B$=B$(L-7 TO )
asking by now "what is the use 300 PRINT AT 8,2;"BINARY= ";B$
of these 'logical operators'?" 400 PRINT AT 21,0;"NOW CONVERT BINARY TO DECIMAL"
There will be some examples of 410 LET S=0
them later on, but, in summary: 420 P R I N T AT 2 0 , 1 2 ; " T 0 T A L = ";S
AND is used mainly for mask- 500 FOR 1=0 TO 7
ing 'bits' within a byte. Say you 520 GOSUB 1000
wanted to reset bits 0 to 3 (i.e. 530 PRINT AT 7,17-I;"V "
make them all 0). You could use
the RESET command four times, 540 PRINT AT 10,2;"BIT VALUE = ";2^I
but it is far easier to use the 550 GOSUB 1000
machine code command AND 560 LET T= VAL B$(B-I>*2^1
11110000. As bits 0 to 3 in the 5 7 0 P R I N T A T 1 2 , 5 ; B * ( 8 - 1 ) ; " X " ; 2 ^ I ; " = "T
operand are all zero, then (from 580 LET S=S+T
the truth tables) the bits 0 to 3 in 590 GOSUB 1000
the result must also be zero. 600 PRINT AT 12,28;S
OR — In a similar manner to 610 G O S U B 1000
AND, the instruction OR will set
a block of bits so that they all 620 NEXT I
have the value ' 1'. For example, 630 PRINT AT 21,0;" PRESS ANY KEY TO CONTINUE
OR 0 0 0 0 1 1 1 1 ensures that 6 4 0 IF I N K E Y $ = " " T H E N G O T O 6 4 0
bits 0 to 3 will all be 1 in the 650 RUN
result. 700 REM
XOR allows comparisons of 1000 FOR J=1 TO 200
bits such that, if they are the 1010 NEXT J
same, then the result is 0, and if 1020 RETURN
they are different, the resultant
bit value is 1. When you PRINT Fig.2. Truth Tables, and e x a m p l e s of AND, OR, and XOR
OVER 1 on the Spectrum, you
are, in fact using the XOR in-
struction. Think of a pixel in the a) T r u t h Tables
INK colour as '1' and a pixel in
the PAPER colour as '0' (which AND Truth Table:
they are), and try a few PRINT
OVER 1 s to see the effect. AND, 11 Bit 1: 0 1 i 0 AND 0 = 0
OR, and XOR opcodes appear in ! Bit 2: 0 0 o s 0 AND 1 = 0
table 3. ••
1 0 l i l AND 1 = 1
In the style of previous parts
of this series, we'll now move
onto some machine specific ex- OR Truth Table
amples; ZX81 first, followed by
examples for the Spectrum. You 11 Bit 1: 0 1 1 0 OR 0 = 0
should see several of the items 1 Bit 2: 0 0 1 1 0 OR 1 = 1
of theory covered in this, and •i 1 1 1 1 OR 1 - 1
1
previous parts, hopefully help-
ing you to clarify the theory. The
XOR Truth Table
ZX81 examples contain more
on PUSH and POP, whereas the i•
ones for the Spectrum have Bit 1: 0 i : 0 XOR 0 = 0
more on the logical operators, so 1 Bit 2: 0 0 l : 0 XOR 1 = 1
it's advised that you read •i 1 1 0 1 1 XOR 1 = 0
through both sets of examples.

76 ZX COMPUTING JUNE/JULY 1985


ZX PROGRAMMING

b) E x a m p l e L o g i c a l Operations ZX81 Examples


AND OR XOR
Before we begin with the ZX81
00110101 = 43 01001000 72 11100000 = 2 2 4 examples; a word of warning
10100100 = 174 00101001 41 0 1 0 1 0 0 0 1 = 81 about the stack on the '81. As I
00100100 = 36 01101001 105 10110001 = 1 7 7 mentioned earlier, the stack ap-
pears just below RAMTOP, i.e.
RAMTOP as set up by the com-
c) E x a m p l e s to try for yourself
puter on power-up. If you lower
AND OR XOR RAMTOP, for example, to make
01010101 10100110 11001010 space for a machine code
routine, then you could be en-
00110011 11001100 01101100 croaching into the stack area.
A n s w e r s a t t h e e n d of t h i s a r t i c l e POKEing anything into the stack
area by mistake is a certain
Fig.3. ZX81 M a c h i n e code examples recipe for disaster. The safest
way to create space for machine
10 REM code at the top of RAM is to use
20 LET X=16514 NEW after lowering RAMTOP.
40 F O R 1=1 T O L E N A $ / 2 This will relocate the stack
50 LET J=16*< CODE A$-28)+ CODE AtC2)-28 below the new RAMTOP, but,
60 IF P E E K X = 2 7 T H E N P O K E X , J of course, wipe out any BASIC
70 LET X=X+1 program, such as a machine
BO LET A $ = A * < 3 TO code loader.
90 NEXT I To avoid any danger of cor-
rupting the stack, the examples
100 C L B in this issue use another method
110 FOR- 1 = 1 T O 10 of saving machine code on the
120 P R I N T " 1 2 3 4 5 6 7 8 9 0 A B C D E F G H I " ZX81; in a REM line. The
130 P R I N T "ABCDEFGHIJKLMNOF'QRS" method was introduced in the
140 N E X T I last part, but wasn't fully explain-
1 5 0 IF I N K E Y $ = " " T H E N G O T O 1 5 0 ed at that time. The position of a
160 R A N D U S R 1 6 5 1 4 BASIC program is fixed in the
170 G O T O 150 ZX81 's memory, starting at ad-
dress 16509. If the first line is a
First machine code routine: REM statement, then it (like all
other REM lines) is ignored by
30 LET A t = " 1 1 3 C 4 0 2 A 0 C 4 0 0 1 2 1 0 0 C 5 D 5 C 5 E 5 E D B 0 E 1 5 4 the BASIC interpreter, so you
5DC10901F702EDB0E1C1EDB0C9" can put anything you like into it,
including machine code bytes.
Assembly language listing And that is what the hex loader
LD DE,16444 113C40 DE=printer buffer addre in fig. 3 carries out. The first byte
LD HL,(16396) 2A0C40 HL=Di splay file start after the REM token in line 10
LD BC,33 012100 L e n g t h of c h a r a c t e r r o w will always be address 16514
(as long as no other line
PUSH BC C5 Store for future use precedes 10), so you can
PUSH DE D5 replace the 'dummy' full stops in
PUSH BC C5 the REM line by machine code
PUSH HL E5 bytes. Line 60 checks that you
LDIR EDBO S t o r e r o w in p r i n t e r are overwriting a full stop, and
POP HL El buffer not another character, then the
LD D, H 54 DE h a s first screen machine code byte is POKEd in.
Once in the REM line the
LD E,L 5D address machine code can be stored
POP BC CI Put 33 back into BC with the rest of the BASIC pro-
ADD HL,BC 09 HL=HL+BC gram. But beware; if you LIST
LD BC,759 01F702 Chars, for block move. the program, then you might
LDIR EDBO Block m o v e for SCROLL corrupt the display file with 'un-
POP HL El Printer buffer address printable' machine code values.
POP BC CI BC=33 Better to LIST 20, so that line 10
Replace bottom line does not appear on the screen.
LDIR EDBO
First of all, enter the main listing
RET C9 Return to BASIC in Fig.3, then add whichever line
b) Second Machine code routine 30 is appropriate for the routine
you want to try.
30 LET A$="2A0C400618C50620237EF6807710 The two machine code ex-
F923C110F2C9 amples in Fig.3 produce effects
Assembly Language Listing on the display file, so you'll see
straight away if they are work-
LD HL,(16396) 2A0C40 Load HL with D-File ing correctly. The first causes
LD B,24 0618 B = n u m b e r of r o w s the screen to 'rotate'; i.e. it is
LOOP 1 PUSH BC C5 Save row counter like a normal SCROLL except
LD BC,32 0620 N u m b e r of c h a r a c t e r s / r o w that the line which disappears
L00P2 INC HL 23 Get next character off the edge of the screen re-
LD A,(HL) 7E Load with screen character appears on the other side. The
* * * OR 128 F6B0 C o n v e r t to w h i t e on b l a c k rotate routine works on all 24 •

77 ZX COMPUTING JUNE/JULY 1985


ZX PROGRAMMING

rows of the screen, so press any LD (HL),A 77 P l a c e in d i s p l a y f i l e


key a few times to appreciate DJNZ, L00P2 10F9 Repeat to row end
the effect. The second routine INC HL 23 Jump over NEWLINE
converts the entire screen to a Recover the row counter
white on black display — in- POP BC Ci
stantly! DJNZ, LOOP1 10F2 D o a g a i n , until all d o n e .
As before, use a 16K (or RET C9 Return to BASIC
larger) RAM pack with these ex-
amples, otherwise they may not *** This r o u t i n e will always give you a white on black
work. d i s p l a y . Y o u can c h a n g e it q u i t e s i m p l y t o i n t e r c o n v e r t b l a c k
on w h i t e and w h i t e on black by c h a n g i n g t h e line m a r k e d with
three asterisks to:
Spectrum ADD 128 C680
Examples
Fig.4. Spectrum Machine Code Examples

The two Spectrum examples 10 C L E A R 2 4 9 9 9


use the same decimal loader as
used in Part 3. The CLEAR in- 20 L E T i = 2 5 0 0 0
struction lowers RAMTOP and 3 0 R E A D x : IF x = - l T H E N G O T O 2 0 0
moves the stack to below the 40 POKE i,x: LET i=i+l
new RAMTOP, so giving you an 50 GO TO 30
area of RAM which is quite safe 190 D A T A -1
to use. Type out the loader, then 200 C L S
add the DATA lines appropriate 210 F O R i = l T O 10
to the routine you want to try.
220 P R I N T " a b c d e f g h i j k l m n o p q r s t u v w x y z "
The first routine scans the
display file, and inverts every bit 230 PR I NT " ABCDEFGHI JKLMNOF'ORSTUVWXYZ "
(i.e. changes 1 to 0, and 0 to 1), 240 NEXT i
so reversing INK and PAPER. 250 RANDOMIZE USR 25000
,,M
The important instruction for 260 IF I N K E Y $ = * * * * N G O T O 2 6 0
this is XOR 255. The second 270 GOT TO 250
routine scans the attribute file
and 'toggles' the flash bit (that First Machine Code Example
is, turns FLASH on if it finds the
bit off, and vice versa). So, from 100 DATA 33,0,64,1,0,24,126
a non-flashing screen, you 110 DATA 238,255,119,35,11,120
should get the entire screen
flashing. Try it! 120 DATA 177,32,246,201
Both Spectrum examples Assembly Language Listing
display one way of overcoming
a major error in the Z80. Surpris-
ingly, when using DEC on a two LD HL,16384 210040 HL=Display File start
byte register, it doesn't reset the LD BC,6144 010018 B y t e s in d i s p l a y f i l e / *
zero flag when the double LOOP LD A,(HL) 7E Transfer bytes to A
register holds a value of zero. XOR 255 EEFF Invert bits
So, when using, say, BC as a L D <HL),A 77 Put byte back
counter, JR NZ after DEC BC will INC HL 23 Next byte
not work when BC becomes Decrement counter
DEC BC OB
zero. It's a common mistake
amongst beginners to machine LD A,B 78 T e s t if 0
code to assume (naturally) that OR C B1
it does. The way to overcome JR N Z , LOOP 20F6 If n o t , r e p e a t
this is shown in the examples. RET C9 Else return to BASIC
Having carried out the DEC BC,
the values in B and C are (effec- Second Machine Code Example
tively) ORed (after the value in B
is transferred to the A register). 100 DATA 33,0,88,1,0,3,126,198,120
Only when both B and C contain 110 DATA 119,35,11,120,177,32,246,201
zero will the result of the OR
operation be zero. The zero flag
is reset when the result of a Assembly Language Listing
logical operation is zero, so the
flag can be tested after the OR LD HL,22528 210058 S t a r t of A t t r i b u t e s
operation. LD BC,768 010003 N u m b e r of a t t r i b u t e b y t e s
The final items for this part LOOP LD A,(HL) 7E Load A with attribute
are the results of the tests. A D D 128 C680 Toggle on/off FLASH
These are as follows: AND LD (HL),A 77 Return the byte
00010001 (17); OR INC HL 23 Next byte
1 1 1 0 1 1 10 ( 2 3 8 ) ; XOR
10100110 (166). If you don't DEC BC OB Decrement counter
agree with these results, then LD A,B 78 T e s t if 0
try again, working through the OR C B1
program in Fig. 1 and the ex- JRNZ, LOOP 20F6 If n o t , r e p e a t
amples in Fig.2. RET C9 else return to BASIC

78 ZX COMPUTING JUNE/JULY 1985


USA NEWS

A c r o s s The P o n d
the screen, you will erase
anything in the path of the cur-
sor as you move it across the
screen.
There are other choices
Mark Fendrick looks at the U.S. market available to you as you proceed
along the command menu. If
place you want to draw perfectly
straight lines, proceed to the
VERTICAL/HORIZONTAL tog-
It is interesting to note how the Timex pulled the plug. Although mail order culture. Even in the gle, and select either direction.
North American Sinclair (Timex) many of the third party suppliers few shops where there is an (Normal drawing is in the V&H
market has developed along en- were initially uncertain of the over the counter Timex/Sinclair mode.) In either VERTICAL or
tirely different lines from that of future, it soon became obvious business, it represents a small HORIZONTAL mode, only
its counterparts in the rest of the that the new Timex/Sinclair part of the business which relies movement in the desired direc-
world. Today, in England, you computers (T/S 1500 and T/S on mail order business. tion will be recognized. Any
can walk into practically any 2068) would be in demand until One such company, whose motion in the other plane will be
shop that handles computers supplies were exhausted, and business is Sinclair computers, ignored. If you want to create a
and find Sinclair computers, that those new owners would is Zebra Systems, Inc., (78-06 straight line between any two
software and peripherals. Chain want to use their micros to the Jamaica Avenue, Woodhaven, points, go to the LINE selection
operations such as John Men- fullest. A few tentative at- NY 11421; (718)296-2385), and press the command button.
zies, and W. H. Smith carry a tempts from the people who and they are still very actively Then by moving the cursor to
vast assortment of goodies to were supporting the developing and producing add- each of the desired end points,
interest the Sinclair com- Timex/Sinclair line for the ons for our micros. Their most the computer will supply the line
puterist. No ZX owner ever has previous two years proved suc- recent d e v e l o p m e n t is a on the screen. Want to draw a
to explain his pride in his micro. cessful, and things were under- graphics interface which per- circle but freehand circles never
In North America, however, way. mits the use of a Koala Digitizing look right? The CIRCLE option
the Sinclair community has tablet. This combination allows allows you to define the position

i
developed into somewhat of an you to " d r a w " on the tablet of the centre of the circle, and
underground society. Walk into with the enclosed stylus, and t h e l o c a t i o n of the cir-
any computer establishment see the picture appear on the cumference, and the circle is
and announce that you are look- screen. drawn automatically. You also
ing for Timex/Sinclair com- The package comes with the have the ability to insert text into
patibles, and you are either graphics interface, (which at- your graphic from the keyboard.
laughed at, or find yourself try- taches to the rear expansion bus The final option allows you to
ing to explain how powerful of the T/S 2068 and has a type in other commands which
these little micros are. For a through connector which per- include switching the active and
while, while Timex was in the mits additional peripherals to be inactive screens, SAVEing the
current active screen, LOADing
business of selling Sinclair com-
puters, a few select stores did
New Products added), the Koala Pad, stylus,
Zpaint software, and an instruc- a screen to the active file, or
have an over the counter trade in Two products developed for tion booklet. The Koala pad is COPYing to your T/S 2040 (or
T/S 1000's a few software Timex were ready for the connected directly to the inter- Alphacom 32) printer. (Note:
titles, (I never spotted a store market, and were soon released face (there are two sockets, the original ZX printer, only a
which stocked the software that by third parties, the modem, to presumably for future few of which found their way to
Timex licensed from me, for ex- be p r o d u c e d by A n c h o r developments), you LOAD the the U.S., does not work on the
ample), and possibly a T/S2040 Automation for Timex, was software, and you are ready to T/S 2068.) Also from here you
printer (now available as the released by Anchor after licens- go. can clear the screen to start
Alphacom 32). But more likely ing both telecommunications creating a new graphic.
You have two development
than not, the line was more of an software packages from Micro- screens on which to work, one Finally, as promised, I have
afterthought than an actively Systems. The other package active and one inactive, and may been seeking out sources of
displayed product. which Timex commissioned switch back and forth between software for the American T/S
When Timex stopped pro- Micro-Systems to produce was them at will, along the bottom of owner. Now that SPECTRUM
ducing computers, and got out a word processing program the screen is your control menu, EMULATORS, ROMSWIT-
of the business, even this half- which would take advantage of from which you can set various CHES, and SPECTRUM ROMS
hearted effort at marketing many of the T/S 2068's ad- parameters for use in creating are readily available and popular
stopped cold! The T/S 1000's vanced features (such as 64 col- your graphics. By moving the in the U.S., mail order houses in
which were left were selling for umn display), and print to a full cursor to a spot on this menu, the U.K. can supply a variety of
as little as $29.00! Software size printer. The result was and pressing the command but- titles. A very reliable company is
could be had for as little as three MSCRIPT, a program com- ton on the pad, you may select SOFTWARE SUPERMARKET
or four dollars in some discount parable to any available for the the colour of the screen border, (87 Howard's Lane, London
stores. Soon, you could not find TRS-80 or IBM-PC. (MSCRIPT paper and ink. To draw, you SW15 6NU, England). They
any Timex/Sinclair related pro- has become my place the stylus on the pad, promise, and deliver, a very fast
duct in any store. Many people wordprocessor.) Without press the draw button and draw turn around time, and I have
were already w r i t i n g the Timex, though, there was no on the tablet. As you draw, the always received my order from
Timex/Sinclair obituary. The distributor. . . that is until tablet translates the pressure in- them in less than ten days after I
Sinclair dedicated publications Twenty-first Century Elec- to a digital signal which the com- mailed my order to them.
folded, and the general com- tronics (6813 Polk Street, Gut- puter can understand and (Always use airmail when sen-
puter magazines were no longer tenburg, NJ 0 7 0 9 3 ; (201) transfer to the display file. You ding trans-atlantic mail, other-
interested in reporting on our 8 6 9 - 2 6 1 6 ) licensed it for may draw in one of two modes; wise you will find it takes well
computers. In fact, only one distribution. either a thin stroke (pen) or a over a month to arrive — one
national publication is sold on Soon it was business as usual wide stroke (brush). The width way!) They accept VISA and
the newsstands which carries a for most of the Timex/Sinclair is selected from the command MASTERCARD which makes
Timex Sinclair Survival Column. developers and suppliers. But menu. If you make a mistake, or the exchange of currency ex-
No hope then for us Timex/ unlike in the rest of the world, want to change some part of tremely easy.
Sinclair owners? Quite the con- the products did not find their your graphic just change the Keep those cards and letters
trary, t h i n g s have been w a y into the stores, and DRAW toggle to ERASE, and in- coming and I will see you right
developed faster than before reverted to an almost entirely stead of placing something on

ZX COMPUTING JUNE/JULY 1 9 8 5 79
L
ZX81 article

w a r t s a n d all
take a while, so we do exactly
the same thing using Machine
Code instead. I used the HL
Registers, B Register and Ac-

(or a novice's
cumulator. And the sequence
went like this:
The Registers in the Z80
M.P.U. are simply temporary

guide t o m a c h i n e
storage locations. I visualise
them as pigeon holes holding an
8 Bit Binary Number (see Table

code)
1).
This would, unfortunately, keep
Scrolling the first line until the
end of line marker 118 at Ad-
dress No.1 + 3 2 was overwrit-

E Hutchinson is a brave man, here he


ten and the system would crash.
So, we keep this routine, but in-

reveals his darkest secrets from the


sert some means of checking
when we have reached the line

depths of Inverness...
end.
Now, we can do this by put-
ting the Newline Code into the
Accumulator and comparing the
Scroll left a n d . . . Bingo! The display
starts here at 16509 Try it. . .
the next Address is at the end of
the line which contains a New
contents of the Accumulator
with the contents of the Ad-
Whilst working on a project I had Now to put something into it, Line Chr. Code 118. The next dress held in HL. The number we
need of a Scroll Left routine and take the code for the letter A Address is the first column on want to compare is 118, but un-
the following is an account of (which is 38) and Poke it into the second line, so it looks like fortunately if we enter this into
how it was developed, including 1 6509. POKE 1 6509,38. And this: our REM where we are saving
all the mistakes. I am a novice at there we are, the system
the game, being self-taught, and crashes. Why?
I found that, in the main, books It turns out that the Display Address Contents
gave me techniques and end File Address is the last one
results, but with little indication before the display and NOT the
of how they were developed. first one on the screen. This is 16509 118 New Line
So, here now is my novice's the Display File Address + 1. So, 16510 Chr. Code 1 st Column Top Line Column 0
guide to Machine Code, Warts + 31 = 32 Characters
and all! POKE (16509 + 1),38. 16541 Chr. Code Last column Top Line Column 31
16542 11 8 New Line
First, I found the display file
An A appears at the top left hand 16543 Chr. Code 1 st Column 2nd Line
where the picture is stored. Ad-
dress 16396 contains the bot- corner. To save writing we'll call
tom half of the address, and ad- this position X. So,
dress 16397 the top half (see And so on (refer to Sinclair this Routine, the computer will
ch.27 of ZX81 manual, for X = (Peek 16396 + 256 * Manual Page 123.) think this is the end of the line,
details of the system variables). Peek 16397) + 1 In order to Scroll Left we have and do all sorts of funny things.
So. . . to take the Code in Address Therefore, we put in 119 and
This is the first column on the X + 1 and move it back to Ad- DEC. or substract 1. Now, we
PRINT PEEK 16396 + 256 * top line. There are 32 columns, cfress X, then move on, take also want someone to keep
PEEK 16397 so the last column is X + 31, and X + 2 and move it to X + 1 and so count of how many lines we
on. There are several ways to do have done and when we get to
Table 1 this. For instance, line by line as I 22 to return to the Basic Pro-
OpCode 42 LD HL, NN Loads the L Register with have, or column by column us- gram. So, table 2 looks like this:
N 12 * 1 + Contents of Location = 1 6 3 9 6
N 64 * 256 Table 2
And then loads the H Register Op Code 42 LD HL, 12, 64
with the contents of Location N1 12 Lower Value
16397. This is the start of the Nh 64 Higher Value
D File, and contains 118. Op Code 6 LD B,N Load B with
The first displayed Character is N22 This number
at location (HL) + 1. This is how many lines we have
Start Therefore to do
Op Code 35 Inc HL Increase HL by 1 Op Code 35 INC HL
HL now contains the Address Op Code 35 INC HL
of the first Displayed Op Code 62 LD A,N Load Accumulator with
Character. We do not want this N 119 This number
o n e . . . so Op Code 61 DEC A Subtract 1 = 1 1 8
OpCode 35 Inc HL Again. Now we have the Ad- Op Code 190 CP (HL) Compare with the number at
dress of the 2nd Character in Address (HL)
the top line.
Op Code 1 26 LD, A, (HL) Put the Code for this Character
into the Accumulator ing another Loop. In Basic we Now, if these numbers are
Then go back to the could do this by PEEKing into the same, in this case, 118,
OpCode 43 DEC HL Address of First Character each Address in turn, checking then the Z flag is set. In other
OpCode 119 LD (HL), A Put 2nd Chracter into 1 st Ad- to see if it is the end of a line, words, the answer is 0. I found
dress checking if we have done every this rather confusing at first,
Jump back to start. line and then POKE it into the because if the answer is 0 the Z
previous address. This would flag is set to " 1 " , but in fact the

80 ZX COMPUTING JUNE/JULY 1985


i
ZX81 article
flag is asking 'Is the answer conditions attached. In our jump to start. If B is zero, we 10 FOR N = 0 TO 255
zero'?, and the flag then in- case, jump back to the start, return to the Basic Program. So, 20 PRINTS CHR$N:
dicates 'YES' flag set or 'NO' Now there is only one other now our Program looks like this 30 NEXT N
flag reset. Rather a case of yes t h i n g . . . If B is zero after we (Table 4).
we have no bananas! Decrement it, then the job is Now, before we develop it fur- Then start the SCROLL with;
If a match is found then we done and we want to return to ther, try this one. I found it
are at the end of the line, so we the Basic Program. All we have fascinating. Use the Loader Pro- 40 RAND USR 16514
do not overwrite the end to do then is, after comparing A gram to enter this into a REM
marker. Instead, we subtract 1 and (HL), if a match is found we statement, then fill the screen Put in a timing loop;
from our number of lines. DEC B, and if B does not equal 0, with Characters using: 50 FOR N = 1 TO 20
60 NEXT N
Dec B Table 4 70 GOTO 40
Relative
And jump back to INC HL twice. Address Op This moves everything to the
We can do this in several ways. Code Op- left except the last column
We can find the Address of the erand Assm. Lang. Comment which it repeats all the way
first INC HL and just use JP N1 1 42 LDHLN1 Nh across the screen.
Nh where the Address is 2 12 N1 Low Value Byte For my purposes I needed to
(Nh * 2 5 6 } + {N1 * 1). The 3 64 Nh High Value Byte blank out the last Column so that
trouble with this is that if you 4 6 LD B,N Load B with I could print or plot other things
move the routine to a different 5 22 N this number in it, and then move them across
part of the memory it all has to 6 Start 35 INC HL jumps to here if B ^ O the screen. To print a blank the
be re-calculated. 7 35 INC HL Code 0 has to be put in. When
However, we have a lovely 8 62 LD A,N Load A with (HL) contents are 118 we are
instruction just made to order. It 9 119 N this number past the last Column. So, now
is called DJNZ e, which means 10 61 DEC A Subtract 1 our program looks like this
Decrement B and if the result is 11 190 CP (HL) Compare with Number (Table 5).
not zero then jump backwards or at Address (HL) Note that we have changed the
forwards a number of ad- 12 32 JRNZ,e If they are not the DJNZ,e to jump to the blanking
dresses, indicated by 'e'. If e is 13 3 (e-2) same jump forward 5 routine before going to start.
greater than 1 30 then we jump places otherwise
backwards (256-e) places. If
e is less than 130 then we
14 16 DJNZ,e Subtract 1 from B Machine code
jump forward e places (I sup-
15 246 (e-2) and if B = 0 jump to
start otherwise
loader
pose that if e = 130 we jump up 16 201 RET return to Basic Program
and down on the spot, though I 1 REM
17 126 LD A, (HL) Jumps to here if (HL) AAAAAAAAAAAAAAAA-
haven't tried it!). For reasons I is^118
don't yet understand you have AAAAAAAAAAAAAAA (about
18 43 DEC HL 30 or so)
to subtract 2 from e before you LD (HL), A
19 119 10 FOR N = 1 6 5 1 4 t o 1 6 5 4 4
use it. If a match is not found 24
then we carry on. (Table 3.) 20 JR,e 20 INPUT A
21 240 (e-2) Jumps back to start. 30 PRINT N,A
This means jump forwards or
backwards, but without any 40 POKE N,A
50 NEXT N

Table 3 Table 5
Op Code Operand Assm. Lang. Comment
Op Code 126 LD A (HL) Take the number out of Ad- 43 DEC HL This is the last Column
dress (HL) 54 LD (HL), N Put into the last Column
Op Code 43 DEC HL Find the previous Address 0 N Code for a blank
That is, one place to the left 35 INC HL Put HL back to its end of
Op Code 119 LD (HL) A And put the number into it line value
Op Code 24 JRe Then go back to the start and 24 JR,e Jump back to
start again the start again
233 (e-2)

81 ZX COMPUTING JUNE/JULY 1985


ZX81 article

Table 6
Relative
Address Op
Code Op-
erand Assm. Lang. Comment
1 start 42 LD HL NN Address of the start of 18 43 DEC HL
the D. File 19 119 LD (HL),A Replace it one step back
2 12 N1 20 24 JR,e
3 64 Nh 21 240 (e-2) Jump to loop 1
4 6 LD B,N 22 43 DEC HL Jumps to here if
5 22 N Number of lines to be (HL) = 1 1 8
Scrolled 23 54 LD (HL),N
6 Loop 1 35 INC HL Address of 1 st 24 0 N Blanks the last Column
Character 25 35 INC HL Sets HL to the end of
7 35 INC HL Address of 2 nd Line Address
Character 26 24 JR,e
8 62 LD A.N 27 234 (e-2) Jumps to loop 1
9 119 N 119 into the Ac-
cumulator
10 61 DEC A 118 in the Accumulator
11 190 CP (HL) Compare with Contents
12 32 JRNZ,e of HL Address and if When you have entered all the verter it would plot a continuous
13 3 (e-2) they do not match jump Machine Code just enter STOP moving graph of temperature,
3 + 2 places. {shifted A) and NEWLINE. You pressure and light intensity, in
14 16 DJNZ,e If they do, Dec B and, if will have a few 'A's left over, but fact, any varying quantity which
the they don't matter. When the can be represented by a varying
15 6 (e-2) Result is not 0, jump Program is SAVED the REM voltage. But I hope to go into this
6 + 2 places. statement is also saved so that later, the project I was working
16 201 RET If it is 0 return to Basic the Routine can be used with on when I developed the Routine
1 7 Move any Program. was an Echo Sounder interface
Chr. 126 LD A,(HL) Take Character from The Routine has several uses to turn the ordinary rotating LED
(HL) where a continuous graph of a Echo Sounder into a chart
varying quantity is required. Fed recorder.
by an Analogue-to-Digital Con-

/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/ This map was drawn and sent in by
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/ super spaceman David Christmas of
deepest Dulverton.
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / / By David Christmas
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / / ALIEN 8
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /

©
/ / / / / / / / One of four possible
/ / / / / / / / START locations
/ / / / / / / /
/ / / / / / / /
/ / / / / / / / • A cryogenic chamber
/ / / / / / / /
/ / / / / / / /
/ / / / / / / /
/ / / / / / / / 1
Location of objects used to
/ / / / / / / / activate cryogenic chambers
/ / / / / / / /
/ / / / / / / /
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/ Q Room with four exits/entrances
82 ZX COMPUTING JUNE/JULY 1985
REVIEWS

score is given. There are fre-


quent disasters to thwart your
struggle for success, for exam-
ple the plague may strike or rats
eat your grain.
Baron is a text-only game. It
is a reasonable simulation
although perhaps somewhat
short on interest to hold the at-
tention of the avid role player for
long.

of Doom

Nick Pearce looks at the new three


Finally in this set of three casset-
tes from Temptation Software is

pack' from Temptation.


Dungeons of Doom, a maze
game for up to four players. In
this game you have to find your
way through some 400 rooms
and 600 corridors in an attempt
to build up a high score by sur-
viving for as long as possible,
and at the same time kill
monsters or collect treasure.
The screen displays the room
or corridor you are in, and black
squares to the North, South,
East and West, and above and
below. Only on attempting to
move into one of these squares
is its nature revealed — corridor,
room, cave, or stone wall! And
any content — monsters or
treasure — becomes apparent.
Again the game is written in
BASIC, and is consequently
rather slow. After each move
there is a few seconds wait
whilst the display is updated to
show your current position.
Dungeons of Doom is not really a
computer "adventure" in the
true sense; it has locations and
objects, but no vocabulary.
Control is effected through the
use of movement keys. A
reasonably good game.
Each of these three programs
from Temptation Software use
Admiral Graf Spee display which shows the horizon
and, when you get very close,
machine code routines to speed
up the programs would result in
most of the available 16K
memory and take 7 to 8 minutes
the allied ship itself. To destroy a faster, more interactive and to LOAD. They each feature a
It is 1 940 and you are in com- the target you must fire whilst it improved game. 30 second "pre-load" program,
mand of the Admiral Graf Spee is in visual range. The instru- a good idea which overcomes
prowling the Atlantic. The mis- ment panel continues to be the frustrating problem of
sion is to sink as many enemy — show n in this second display. In-
strument readings are constant-
Baron waiting for perhaps ten minutes
only to find that the volume set-
Allied — ships as possible. The
Graf Spee is armed with six 11 ly updated. Baron is a role playing game of tings were wrong, the program
inch guns and two torpedo The game gets quite exciting strategy for one to four players. hasn't LOADed and you have to
tubes. The support ship Altmark as you get close to an allied ship Each player starts with 1500 start again. Incidentally I had no
is at hand to replenish your sup- and it starts to fire at you, rock- dubloons, 70 acres of land, and trouble loading any of these
plies and ammunition. ing the Graf Spee and inflicting 100 workers. The decisions to cassettes.
There are two main screen damage; or taking evasive ac- be made each year include The games are sold as a
displays. Firstly a map of the tion and moving out of range. whether to buy or sell land, "triple-pack", and are available
South Atlantic is displayed Graf Spee has the makings of w h e t h e r t o feed all your only as a set by mail order. Three
showing the location of the Graf a good game. I thought the workers, or let some starve — cassettes each containing a
Spee (denoted by a flashing pix- graphics had been used to good merciless dog; whether to hire or reasonable game for just under
el), and the allied ships (intermit- effect, but the game is let down fire mercenaries; and so on. If £6.00 must be good value for
tent flashing pixels). Also by its slow response to keyed-in you are too extreme your money.
shown is your instrument commands. This is partly workers revolt and impale you Admiral Graf Spee, Baron
display giving speed, compass because the player has to wait on the castle portcullis. Games and Dungeons of Doom are
heading, fuel, target distance, between moves whilst each in- last for five to 50 moves (selec- available as a set, price £5.99
and so on. strument reading is updated in table at the start), if you can sur- inclusive of VAT postage and
You close in on the allied turn, and partly because the vive that long! There is a year by packing, from Temptation Soft-
ships using the map, and then game is written entirely in year analysis of your perfor- ware Limited, 27 Cinque Ports
move to the second screen BASIC. The incorporation of mance as a Baron, and a final Street, Rye, East Sussex.-

ZX COMPUTING JUNE/JULY 1985 83


SPECTRUM DOMESTIC

1680 I F X=49 THEN LET SCORE=SCO


RE + 1
1681 I F X=0 THEN GO T O 1 6 8 3
1682 GO S U B 9 0
1683 FOR A - 2TO 4 : P R I N T AT A , 0 J
W«: NEXT A
1684 GO T O 1 0 4 0
1692 PRINT AT 2 , 0 ; " Q ' s . 37-42: M
ID-TERMS: Q.37."j OVER 1J A T 2,0;
- • J AT
4,0|"IN EACH 0 . THE THREE UPPER
TERMSCORRESPOND TO THOSE BELOW,
INSERT THE MISSING LETTERS
W
m

1693 PRINT AT 8 , 0 ; " F A C E (BODY) L


EGS :","NOSE (N***) KNEES"
1695 GO S U B 5 0 0
1696 I F A*=•ave1" OR A * = " n a v e l "
THEN LET SCORE=SCORE+1
1697 I F A*~"0" THEN GO T O 1 6 9 9
1698 GO S U B 9 0
1699 FOR A=2 TO 9 : P R I N T AT A , 0 ;
W«: NEXT A
1700 GO T O 1 0 4 0
1708 PRINT AT 2 , 0 ; " Q . No. 38:";
nmmmnuiiimiimurm
OVER l;AT 2,0;- •
1709 PRINT AT 4 , 0 ; ' P A S T (PRESENT
P
) FUTURE : ,"WAS ( I * * * ) WILL B E •
Part 2 1711 GO S U B 5 0 0
1712 I F A*=•s• OR A $ = ' i s " THEN
1 REM S T A R T E R PRO LET SCORE=SCORE+1
2 PRINT AT 0,9| T 1713 I F A*="0" THEN GO T O 1 7 1 5
I INK -PLEASE W
IGHT I f I.Q. TES 1714 GO S U B 9 0
1715 FOR A=2 TO 5 : P R I N T AT A , 0 ;
W«: NEXT A
1716 GO T O 1 0 4 0
1724 PRINT AT 2 , 0 ; " Q . No. 39:';
OVER l ; AT 2,0; - "
1725 PRINT AT 4 , 0 ; " C O M P L E T E (INC
OMPLETE) BLANK :","ALWAYS (S***)
NEVER"
1 7 2 7 GO S U B 5 0 0
1728 I F A*-"oroetimes" OR A * = " s o r o
© t i r o e s " THEN LET SCORE^SCORE+1
1 7 2 9 I F A * = " 0 " THEN GO T O 1 7 3 1
1730 GO S U B 9 0
1731 FOR A=2 TO 5 : P R I N T AT A , 0 ;
W*: NEXT A
1732 GO T O 1 0 4 0
1740 P R I N T AT 2 , 0 ; " Q . No. 40:";

Part two OVER


1741
I;AT 2,0;"
PRINT AT 4 , 0 ; " G L U T

(SCARCIT
of Greg Turnbulls Y) FAMINE :*,"MANY (F***) NONE"

probing program, 1743


1744
GO S U B 5 0 0
I F A*="ew" OR A * = " f e n " THEN
full details of which were LET SCORE=SCORE+1

printed last issue. 1745


1746
I F A*="0"
GO S U B 9 0
THEN GO T O 1 7 4 7

84 ZX COMPUTING JUNE/JULY 1985


I

SPECTRUM DOMESTIC

1 7 4 7 FOR A—2 TO 5: PRINT AT A,0J


U « : NEXT A 1807 GO SUB 300
1748 GO TO 1040 1808 I F X-l OR X = 3 AND Y = 1 OR Y =
1756 P R I N T AT 2 , 0 ; " Q . No. 4 1 : "i 3 THEN LET SCORE-SCORE+1
OVER 15 A T 2 , 0 J " " 1809 IF X-0 AND Y - 0 T H E N GO T O
1757 P R I N T AT 4 , 0 } " R U S H I N G (PASS 1811
ING) ENDURING : " , " E V A N E S C E N T (T* 1 8 1 0 GO SUB 9 0
**T) ETERNAL" 1 8 1 1 FOR A - 2 T O 71 PRINT AT A,0;
1759 GO SUB 5 0 0 W«: NEXT A
1 7 6 0 I F A * - ' r a n s i e n * OR A $ = " t r a n 1812 GO T O 1040
s i e n t ' THEN LET SCORE-SCORE•1 1820 PRINT AT 2,0;"Q. No. 45:";
1761 IF A«="0" THEN GO TO 1763 OVER I;AT 2,0; • "
1762 GO S U B 9 0 1 8 2 1 P R I N T AT 4 , 0 ; " R E A L , RENAL,
1763 F O R A - 2 TO 5 : P R I N T A T A , 0 J LITERALLY,";AT 6,0J"SIMILARLY, V
NEXT A ERITABLY"
1 7 6 4 GO TO 1 0 4 0 1 8 2 2 P R I N T AT 5 , 1 ; " 1 " ; T A B 8;"2"J
1 7 7 0 P R I N T AT 2 , 0 ; " Q . No- 42:"J TAB 1 6 ; " 3 " ; A T 7 , 3 J " 4 " ; T A B 15;"5"
OVER 1 » A T 2 , 0 | " " 1 8 2 3 GO SUB 3 0 0
1 7 7 3 P R I N T AT 4 , 0 ; " N A S C E N T (MATU 1 8 2 4 I F X = 5 OR X = 3 AND Y = 5 OR Y—
RE) S E N I L E : " , " G R E E N ( R * * * ) DECA 3 THEN LET SCORE-SCORE+1
YED" 1 8 2 5 I F X - 0 AND Y - 0 T H E N GO TO
1 7 7 5 GO SUB 5 0 0 1827
1 7 7 6 I F A * - " i p e " OR A * - " r i p e " TH 1 8 2 6 GO SUB 9 0
EN L E T SCORE—SCORE*1 1 8 2 7 FOR A—2 T O 71 P R I N T A T A , 0 ;
1 7 7 7 I F A * ~ " 0 " THEN GO TO 1 7 7 9 W«: NEXT A
1 7 7 8 GO SUB 9 0 1 8 2 8 GO T O 1 0 4 0
1 7 7 9 FOR A - 2 TO 5 : P R I N T A T A , 0 ; 1 8 3 6 P R I N T AT 2 , 0 ; " Q . No. 46:";
W«: NEXT A OVER i ; A T 2 , 0 ; " •
1 7 8 0 GO TO 1 0 4 0 1 8 3 7 P R I N T AT 4 , 0 ; " T O P O G R A P H Y , H
1 7 8 8 P R I N T AT 2,0;"8's.43-47:SIM EAP, PRIME, PLATEAU";AT 6,0;-HOL
I L A R / O P P O S I T E : Q . 2 6 " ; OVER 1 J A T E"
2,0J" 1 8 3 8 P R I N T AT 5 , 4 ; " 1 " ; T A B 13;"2"
" ; A T 4 , 0 ; " E N T E R T H E N o . s OF » TAB 2 0 ; " 3 " ; T A B 2 8 ; " 4 " ; A T 7 , 1 ; " 5
N
TWO WORDS W I T H E I T H E R N E A R L Y E Q U
A L M E A N I N G S OR A L M O S T O P P O S I T E M 1839 GO SUB 300
EANINGS." 1840 IF X«=5 OR X = 2 AND Y=5 OR Y=
1 7 8 9 P R I N T AT 8 , 0 ; " R A P P O R T , MERC 2 THEN LET SCORE=SCORE+1
URIAL, HAPPY,"iAT 10,0J"RAPACIOU 1841 IF X=0 AND Y=0 THEN GO TO
S, PHLEGMATIC" 1843
1790 P R I N T AT 9 , 3 ; " 1 " ; T A B 13;"2" 1 8 4 2 GO SUB 9 0
;TAB 22;"3";AT II,3;"4";TAB 15; • 1 8 4 3 FOR A - 2 TO 7 : PRINT AT A,0;
5" W«: NEXT A
1791 GO S U B 300 1 8 4 4 GO T O 1 0 4 0
1792 I F X-2 OR X - 5 AND Y - 2 OR Y- 1852 P R I N T AT 2 , 0 ; " Q . No. 47:";
5 THEN LET SCORE-SCORE*1 OVER l;AT 2,0;" •
1793 IF X-0 AND Y=0 THEN GO TO 1 8 5 3 P R I N T AT 4 , 0 ; " H A T E , AFFECTI
1795 ON, A F F L I C T I O N , " ; A T 6 , 0 ; " L O V E , P
1794 GO SUB 90 ASSION"
1795 FOR A - 2 TO 11: PRINT AT A,0 1854 P R I N T AT 5 , 1 ; " 1 " ; T A B 10;"2"
;W«: NEXT A ;TAB 22;"3";AT 7,I;"4";TAB 9;"5"
1 7 9 6 GO T O 1 0 4 0 1 8 5 5 GO SUB 300
1 8 0 4 P R I N T AT 2 , 0 ; " Q . No. 44: 1856 IF X-l OR X = 4 AND Y - l OR Y =
OVER l ; A T 2 , 0 | " " 4 THEN LET SCORE—SCORE*1
1 8 0 5 P R I N T AT 4 , 0 ; " T E N A C I O U S , RE 1857 IF X-0 AND Y - 0 T H E N GO TO
SOLVE, I R R E S O L U T E , " ; A T 6,0J"SOLU 1859
TION, TENACITY" 1858 GO SUB 90
1 8 0 6 P R I N T AT 5 , 4 ; " 1 " ; T A B 13;"2" 1859 FOR A-2 TO 7i PRINT AT A,0;
f TAB 2 5 1 " 3 " | A T 7 , 3 | " 4 " ; T A B 13;"5 W«: NEXT A

85 ZX COMPUTING JUNE/JULY 1985


J
SPECTRUM DOMESTIC

1860 GO T O 1 0 4 0 S WHICH HAVE NO R I G H T OR WRONG A


1868 P R I N T AT 2 , 0 J " Q * s . 4 8 - 5 0 : MA NSUERS, THEY ARE U N R E L A T E D T O T H
THS MID-TERMS: Q.26-J OVER 1!AT E 1 . 8 . TEST. YOU MUST ANSWER T H E
2,01"_ Q ' s . WITH A OR B AS Q U I C K L Y AND
•J AT 4 , 0J " I N EACH Q. THE 3 AS H O N E S T L Y AS P O S S I B L E , DO NOT
No.s ON T H E LEFT ARE RELATED T H I N K ABOUT T H E M FOR TOO L O N G A
TO THOSE ON T H E R I G H T , ENTER THE S EMOTIONS ARE I M P O R T A N T . THE
MISSING VALUE." RESULTS WILL BE G I V E N SOON A F T E R
1869 PRINT AT 8,0J" 7 (12) 5 : 8 THE END OF E A C H T E S T . "
(A) 3" 2 0 4 0 R A N D O M I Z E USR 6 5 1 1 0 : FOR
1871 GO SUB 400 1 TO L E N Y « : I F Y * ( Z ) = - " THEN
1872 IF X—11 THEN LET SCORE=SCO P R I N T • " » : GO TO 2 0 6 0
2 0 5 0 P R I N T Y « < Z > ; : BEEP .05,25:
RE + 1
1 8 7 3 I F X = 0 THEN GO TO 1 8 7 5 PAUSE 2
1 8 7 4 GO S U B 9 0 2 0 6 0 N E X T Z : R A N D O M I Z E USR 6 5 1 2 0
1 8 7 5 FOR A S I 2 T O 8 : P R I N T AT A , 0 I : P A U S E 2 5 : GO S U B 5 0 : CLS
G«: NEXT A 2065 PRINT -P.TEST N O . l : " ; OVER
1876 GO T O 1040 HAT 0,01" ,
1884 PRINT AT 2,0?"Q. No. 49:"! 2 0 7 0 P R I N T - 1 ) W H I C H WOULD YOU P
OVER I;AT 2,0;- • R E F E R TO B E A S C I E N T I S T ( A ) OR A
1885 PRINT AT 4,05" 3 (6) 2 : 3 POLITICIAN ( B ) ? » : GO SUB 6 0 0
(A) 3" 2 0 8 0 P R I N T - 2 ) DO YOU T H I N K T H A T
1 8 8 7 GO SUB 400 SOME W E L L - KNOW, ' H O N E S T ' PROFE
1888 IF X 5S
9 THEN LET SCORE=SCOR S S I O N S DO MORE HARM ( A ) T H A N G
E41 OOD ( B ) FOR T H I S C O U N T R Y ? " : GO S
1 8 8 9 I F X * 0 THEN GO TO 1 8 9 1 UB 6 0 0
1 8 9 0 GO SUB 9 0 2 0 9 0 P R I N T " 3 ) W H I C H I S MORE I M P
1 8 9 1 FOR A « 2 TO 4 : P R I N T A T A , 0 J O R T A N T TO A C R I T I C , DISCRIMINATI
W * : NEXT A ON ( B ) OR T O L E R A N C E ( A ) ? " : GO
1 8 9 2 GO TO 1 0 4 0 SUB 6 0 0
1 9 0 0 P R I N T AT 2 , 0 ? " Q . N o . 50:"J 2 1 0 0 P R I N T " 4 ) WOULD YOU R A T H E R
OVER I ; A T 2 , 0 ; - * BE YOUR OWN BOSS ( A ) , OR A R E C E P
1901 PRINT AT 4,05" 49 (15) 64 : TIONIST ( B ) ? - : GO SUB 6 0 0
16 (A) 144" 2 1 1 0 P R I N T " 5 ) S H O U L D A DOCTOR A
1 9 0 3 GO S U B 4 0 0 LLOW H I M S E L F T 0 BE E M O T I O N A L (B)
1 9 0 4 I F X—16 THEN LET SCORE=SCO I N T R E A T I N G P A T I E N T S , OR NOT ( A )
RE + 1 ? " : GO S U B 6 0 0
1 9 0 5 I F X = 0 THEN GO TO 1 9 0 7 2 1 2 0 P R I N T - 6 ) DO YOU F I N D I T HA
1 9 0 6 GO SUB 9 0 RD ( A ) T O MODIFY BEHAVIOUR REL
1 9 0 7 FOR A a = 2 TO 4 : P R I N T A T A , 0 J A T E D TO EVERYDAY R E L A T I O N S H I
W»: NEXT A P S OR NOT ( B ) ? - : GO SUB 6 0 0
1 9 0 8 GO T O 1 0 4 0 2 1 3 0 P R I N T - 7 ) ON H O L I D A Y DO Y O U
1 9 1 0 REM T I M E UP/FINISHED. P R E F E R TO S P E N D T I M E R E A D I N G ftc
1 9 5 0 P R I N T AT 2 , 0 | F L A S H 1J"TIME WALKING (A)OR MEETING PEOPLE (B
U P ! " J FLASH 0 : PAUSE 7 5 ) ? • : GO SUB 6 0 0
1 9 5 5 P R I N T AT 2 , 0 J " Y O U HAVE F I N I 2 1 4 0 P R I N T - 8 ) WOULD YOU F I N D BE
SHED A L L THE Q ' s . " : PAUSE 7 5 I N G A H E R M I T E A S Y ( A ) , OR HARD (B
1 9 6 0 P A P E R 6 : BORDER 6 : I N K 02 C ) ? " : GO S U B 6 0 0
LS 2150 PRINT - 9 ) WOULD YOU P R E F E R
1 9 7 0 GO SUB 4 0 0 0 : REM I Q R E S U L T TO MARRY A T H O U G H T F U L ( A ) , OR S
1 9 9 0 GO T O 3 5 OCIABLE P E R S O N ( B ) ? " : GO SUB
2 0 0 0 REM P E R S O N . T E S T N O . l . 600
2 0 1 0 P A P E R 6 : BORDER 6 : I N K 0 : B 2160 PRINT - 1 0 ) A R E MOST P E O P L E
R I G H T 0 : CLS : LET P T 1 A ~ 0 GENERALLY T R U S T W O R T H Y ( B ) , OR
2 0 2 0 PRINT -PERSONALITY TESTS:"J NOT ( A ) ? " : GO SUB 6 0 0
OVER I f A T 0 , 0 | " 2170 PRINT - 1 1 ) DO YOU L I K E ORGA
• » »
NISING P A R T I E S ( A ) , OR N O T
2030 LET THESE ARE TWO TEST (B)?H: GO S U B 600

86 ZX COMPUTING JUNE/JULY 1985


SPECTRUM DOMESTICI

2 1 8 0 P R I N T - 1 2 ) WOULD YOU P R E F E R ERRUPTED W H I L S T WORKING (A),


TO BE A L I B R A R I A N ( A ) , OR A OR NOT ( B ) ? " 2 GO SUB 6 5 0
S A L E S P E R S O N ( B ) ? • : GO SUB 6 0 0 3 0 7 0 P R I N T " 4 ) DO YOU E N J O Y SOME
2 1 9 0 P R I N T - 1 3 ) WOULD YOU D E S C R I HARD E X E R C I S E E V E R Y DAY (
BE Y O U R S E L F AS C A U T I O U S ( A ) OR O A ) , OR NOT ( B ) ? " : GO SUB 6 5 0
U T - G O I N G < B ) " : GO SUB 6 0 0 3 0 8 0 P R I N T " 5 ) T H E L A S T T I M E YOU
2 2 0 0 P R I N T " 1 4 ) WOULD YOU L I K E T BEGAN TO L E A R N A NEW S K I L L D I
O BE A C I V I L S E R V A N T ( A ) OR I N T H D YOU F E E L C O N F I D E N T < B ) , OR NO
E G O V E R N M E N T ( B ) ? " : GO SUB 6 0 0 T ( A ) ? " : GO SUB 6 5 0
2 2 1 0 P R I N T - 1 5 ) DO YOU E N J O Y B I G 3 0 9 0 P R I N T " 6 ) H A V E YOU F E L T STR
, NOISY P A R T I E S ( B ) , OR NOT ONGLY ABOUT E V E R Y D A Y IRRITATIONS
( A ) ? - ! GO SUB 6 0 0 ( A ) , OR NOT ( B ) ? " : GO SUB 6 5
2 2 2 0 P R I N T * 1 6 ) WOULD YOU F I N D I 0
T D I F F I C U L T TO MAKE A P U B L I C S P E 3 1 0 0 P R I N T " 7 ) H A V E YOU EVER WOR
E C H < A > , OR E A S Y ( B ) ? " I GO SUB 6 R I E D FOR HOURS A F T E R A S I T U A T
00 I O N WHERE YOU F E L T H U M I L I A T E D
2 2 3 0 P R I N T " 1 7 ) I N A T H E A T R E WOU ( A ) , OR NOT ( B ) ? " : GO SUB 6 5 0
L D YOU L I K E TO BE A S T A G E - H A N D ( 3 1 1 0 P R I N T " 8 ) WOULD P E O P L E REGA
A ) , OR AN ACTOR ( B ) ? " : GO SUB RD YOU AS A S E N S I T I V E P E R S O N ( A )
600 , OR NOT < B ) " : GO SUB 6 5 0
2 2 4 0 P R I N T - 1 8 ) DO YOU HAVE A RE 3 1 2 0 P R I N T " 9 ) DO YOU U S U A L L Y GE
ADY R E P L Y FOR MOST C O N V E R S A T I O T TO S L E E P E A S I L Y ( B ) , OR NOT (
N ( B ) , OR ARE YOU MORE R E S E R V E A ) ? " : GO SUB 6 5 0
-
D ( A ) ? : GO SUB 6 0 0 3 1 3 0 P R I N T " 1 0 ) WOULD MANY P E O P L
2 2 5 0 P R I N T " 1 9 ) ARE YOU SLOW ( A ) E CONSIDER YOU SHY ( A ) , OR NOT
, OR Q U I C K ( B ) AT M A K I N G NEW FR ( B ) ? " : GO SUB 6 5 0
I E N D S ? " : GO SUB 6 0 0 3 1 4 0 P R I N T " 1 1 ) DO YOU F E E L D I S T
2 2 6 0 P R I N T * 2 0 ) WOULD YOU D E S C R I URBED I F SOMEONE YOU KNOW F A I
BE Y O U R S E L F AS B E I N G F U L L OF ENE L S TO G R E E T YOU ( A ) , OR NOT < B ) ?
RGY < B ) , OR NOT < A ) ? " : GO SUB 6 0 " : GO SUB 6 5 0
0 3 1 5 0 P R I N T " 1 2 ) DO YOU ( A ) SOMET
2270 PRINT FLASH 1;AT 10,7;"TES IMES FEEL H A P P Y OR SAD W I T H O U T
T NO.1 OVER!-; F L A S H 01 GO SUB 5 ANY R E A L C A U S E , OR NOT (B)?"!
0 GO SUB 6 5 0
2 2 8 0 CLS : P R I N T " R E S U L T S OF P.T 3 1 6 0 P R I N T " 1 3 ) A T WORK DO YOU O
E S T N O . L : " J OVER 1JAT 0 , 0 ; " FTERN F I N D YOURSELF D A Y - D R E A M I N
G ( A ) , OR NOT ( B ) ? " : GO SUB 6 5
2 2 8 5 P R I N T " Y O U ARE " ; 0
2 2 9 0 GO SUB 8 0 0 3 1 7 0 P R I N T " 1 4 ) CAN YOU ( A ) REME
2 3 0 0 GO SUB 5 0 MBER H A V I N G ANY N I G H T M A R E S I N T H
2 3 1 0 GO TO 3 5 E L A S T F I V E Y E A R S , OR NOT (B)?":
3 0 0 0 REM P E R S O N . T E S T N O . 2 . GO SUB 6 5 0
3 0 1 0 P A P E R 6 : BORDER 6 : I N K 0 : B 3 1 8 0 P R I N T " 1 5 ) H A V E YOU A R E A L
RIGHT 0 : CLS : LET P T 2 B = 0 FEAR OF H E I G H T S / T U N N E L S OR O
3 0 2 0 P R I N T "PERSONALITY TEST NO. UT-DOORS < A > , OR NOT ( B ) ? " : G
2 : " I OVER I ; A T 0 , 0 ; " O SUB 6 5 0
• * t 3 1 9 0 P R I N T " 1 6 ) DO YOU U S U A L L Y B
3 0 3 0 GO SUB 5 0 E H A V E CARMLYAND E F F I C I E N T L Y I N A
3 0 4 0 P R I N T " 1 ) AS FAR A S YOU KNO N EMERGENCY ( B ) F OR NOT ( A ) ? " : G
W H A V E YOU E V E R ( A ) WALKED I N Y O SUB 6 5 0
OUR S L E E P , OR NOT < B ) ? " : GO SUB 3 2 0 0 P R I N T " 1 7 ) ARE YOU A V E R Y E
650 MOTIONAL P E R S O N D U R I N G NORMAL
3 0 5 0 P R I N T " 2 ) H A V E YOU B E E N O F F S I T U A T I O N S ( A ) , OR ARE YOU NOT
WORK DUE T O I L L N E S S FOR A T I M E P < B ) ? " : GO SUB 6 5 0
E R I O D L O N G E R T H A N MOST P E O P L E (A) 3 2 1 0 P R I N T " 1 8 ) DO YOU ( A ) F R E Q U
, OR NOT ( B ) " : GO SUB 6 5 0 E N T L Y WORRY ABOUT YOUR H E A L T H , O
3 0 6 0 P R I N T " 3 ) DO YOU HAVE A T E N R NOT ( B ) ? " : GO SUB 6 5 0
DENCY TO F E E L CONFUSED I F INT 3 2 2 0 P R I N T " 1 9 ) CAN YOU REMEMBER

ZX COMPUTING JUNE/JULY 1 9 8 5 87
ft
SPECTRUM DOMESTIC I

D E F I N I T E L Y A N N O Y I N G SOMEONE T H I 4010 PRINT "I.E. TEST RESULT:";


S YEAR ( A ) , OR NOT ( B ) ? " : GO SUB OVER I;AT 0,0;"
* *
650
3 2 3 0 P R I N T " 2 0 ) DO YOU SWEAT W I T 4 0 1 5 I F SCORE-0 THEN LET IQ=80
HOUT D O I N G MUCH E X E R C I S E ( A ) , O 4 0 2 0 I F S C O R E > 0 AND S C O R E C - 5 THE
R NOT ( B ) ? " : GO S U B 6 5 0 N LET IQ-85+(2*SC0RE)
3 2 4 0 P R I N T " 2 1 ) CAN YOU REMEMBER 4 0 3 0 I F S C O R E > 5 AND S C 0 R E < - 1 2 T H
YOUR M I N D G O I N G BLANK W H I L S T D EN LET I B - I N T (95+(2*(SCORE-6))
O I N G A JOB D U R I N G THE LAST F I V E )
Y E A R S ( A ) , OR N O T ( B ) ? " : GO SUB 4040 I F S C O R E > 1 2 AND S C 0 R E < = 1 8 T
650 HEN LET I Q - I N T (104+(2*(SCORE-1
3 2 5 0 P R I N T " 2 2 ) W I T H I N THE LAST 2) ) )
Y E A R CAN YOUREMEMBER M E E T I N G A T 4 0 5 0 I F S C O R E > 1 8 AND S C 0 R E < « 2 5 T
L E A S T T H R E E P E O P L E T H A T YOU T H O U HEN LET IQ—114+(SCORE-18)
GHT WERE DEFINITELY UNFRIENDL 4 0 6 0 I F S C O R E > 2 5 AND S C O R E < - 3 0 T
Y TOWARDS YOU ( A ) , OR NOT (B)? HEN LET IQ-120+(SCORE-25)
" : GO SUB 6 5 0 4 0 7 0 I F S C O R E > 3 0 AND S C O R E < - 3 5 T
3 2 6 0 P R I N T " 2 3 ) H A V E YOU E V E R (A HEN LET IQ—125+(SCORE-30)
) B E E N S H O R T O F B R E A T H W I T H O U T DO 4 0 8 0 I F S C O R E > 3 5 AND S C O R E < - 4 0 T
I N G ANY E X E R C I S E , OR NOT (B) HEN LET IQ-130+(SCORE-35)
? " : GO SUB 6 5 0 4 0 9 0 I F S C O R E > 4 0 AND S C 0 R E < - 4 5 T
3 2 7 0 P R I N T " 2 4 ) A R E YOU U S U A L L Y HEN LET 19-135+(SCORE-40)-1
T O L E R A N T OF O T H E R P E O P L E ' S WAYS 4 1 0 0 I F S C O R E > 4 5 AND S C 0 R E < - 4 9 T
( B ) , OR NOT ( A ) ? " ! GO SUB 6 5 0 HEN LET 19-138+(SCORE-45)-1
3 2 8 0 P R I N T " 2 5 ) ARE T H E R E ANY NO 4 1 1 0 I F SCORE—50 THEN LET IQ-14
RMAL S I T U A T I O N S WHERE YOU 2
FEEL DEFINITELY SELF-CONC 4120 PRINT "YOUR SCORE IS ";SCOR
IOUS ( A ) , ORNOT < B ) ? " : GO SUB 6 5 E;"/50"'*
0 4125 PRINT "YOUR I.G. RESULT IS
3290 PRINT " 2 6 ) DO Y O U O F T E R N F E ";19*'
E L UNHAPPY ( A ) , OR NOT ( B ) ? " : G 4 1 3 0 I F SCORE>—40 THEN PRINT "P
O SUB 6 5 0 ERHAPS YOU SHOULD T H I N K ABOUT A
3 3 0 0 P R I N T " 2 7 ) H A V E YOU S U F F E R E P P L Y I N G TO J O I N M E N S A ! T
D FROM D I A R R H O E A MORE T H A N H A T WAS AN E X C E L L E N T S C O R E . "
ONCE I N T H E L A S T TWO Y E A R S (A), 4 1 4 0 I F S C O R E < 4 0 AND S C O R E > - 3 0 T
OR NOT ( B ) ? " ! GO SUB 6 5 0 HEN P R I N T " T H A T WAS A G R E A T SCO
3 3 1 0 P R I N T " 2 8 ) ARE YOU U S U A L L Y RE, WELL D O N E ! NOT Q U I T E
SELF- C O N F I D E N T ( B ) , OR NO UP TO MENSASTANDARDS BUT I N THE
T ( A ) ? " : GO SUB 6 5 0 UPPER 10% AREA O F T H E P O P U L A T I
3 3 2 0 P R I N T " 2 9 ) DO Y O U B E L I E V E Y ON. "
OU CAN C O P E W I T H E V E R Y D A Y S I T U A T 4 1 5 0 I F S C O R E < 3 0 AND S C 0 R E > - 2 5 T
I O N S AS W E L L A S A N Y O N E E L S E (B), HEN P R I N T " T H A T WAS A V E R Y GOOD
OR NOT < A ) ? " : GO SUB 6 5 0 SCORE. I N T H E U P P E R 1 5 * OF T H E
3 3 3 0 P R I N T " 3 0 ) DO YOU U S E A S P I R POPULATION."
I N / S L E E P I N G - T A B L E T S OR T R A N 9 U I L I 4 1 6 0 I F S C O R E < 2 5 AND S C O R E > ~ 2 0 T
Z E R S MORE T H A N ONCE A MONTH <A HEN P R I N T "GOOD S C O R E . WELL ABO
) , NO: ( B ) ? T GO SUB 6 5 0 VE THE POPULATION AVERAGE."
3500 PRINT F L A S H 15 A T 10,7;"TES 4 1 7 0 I F S C O R E < 2 0 AND S C 0 R E > * = 1 5 T
T N O . 2 O V E R ? " ; F L A S H 0 : GO SUB 5 HEN P R I N T " F A I R S C O R E , J U S T ABO
0 VE THE POPULATION AVERAGE."
3 5 1 0 CLS : P R I N T " R E S U L T S OF P.T 4 1 8 0 I F S C O R E < 1 5 AND S C 0 R E > - 8 T H
E S T N O . 2 : M ; OVER I;AT 0,0;" EN P R I N T "AVERAGE SCORE, WITHIN
THE 6 8 % O F T H E P O P U L A T I O N BRACKE
3515 P R I N T " Y O U ARE " ; T. "
3520 GO S U B 9 0 0 4 1 9 0 I F S C 0 R E < 8 AND S C 0 R E > * 5 T H E
3530 GO SUB 5 0 N P R I N T "POOR S C O R E . BELOW T H E
3540 GO T O 3 5 POPULATIONAVERAGE.•
4000 REM I Q . RESULT. 4 2 0 0 I F S C O R E < 5 AND S C 0 R E > - 1 T H E

88 ZX COMPUTING JUNE/JULY 1985


SPECTRUM DOMESTIC!

N PRINT "VERY POOR. WITHIN THE


M •
LOWER 16% OF THE POPULATION RANG <B**L> BEAK f FLASH l f - I L - f FLA
E! " SH 0: PRINT
4210 IF SCORE=0 THEN PRINT "SUP 5070 PRINT -E) OPPOSITES:"1; FLA
ER CRETIN! YOU GOT THEM ALL WRO SH If "TENSE"; FLASH 0 f , TERSE,
NG. " SERIOUS, •; FLASH If-RELAXED"; F
4220 GO SUB 50 LASH 0: PRINT
4230 RETURN 5080 PRINT -F) MID-TERMS:-f"FIRS
5000 REM 16. TEST EXAMPLES. T (SECOND) THIRD : ONE (T-JHfr) T H R E
5010 INK 0: PAPER 6: BORDER 6: B E FLASH 1;-WO-; FLASH 0: PRIN
RIGHT 0: CLS T
5020 PRINT "I.Q. TEST EXAMPLES:" 5090 GO SUB 50: CLS
f OVER I f AT 0,01' 5100 PRINT -G) SIMILAR/OPPOSITES
• IT : • ' ; FLASH If-PUNISH-f FLASH 0;"
5030 PRINT "A) ANALOGIES:"DARK , REPUTE, REPLY, "; FLASH l;-REW
IS TO LIGHT AS X IS TO Y: ("f ARD"f FLASH 0: PRINT
FLASH If -BLACK-f FLASH 0 f , TREE 5110 PRINT -H) MATHS MID-TERMS:"
, PLANT, "5 FLASH If-WHITE-; FLA 11 (12) 13 : 4 (A) 6 -f FLASH
SH 0 f ' ) " * * I f - 5 - f FLASH 0: PRINT
5040 PRINT -B) SIMILARITIES: - *; 5120 GO S U B 50
FLASH If -ENTIRE-; FLASH 0 f , WID 5130 GO T O 35
E, EMPTY, -f FLASH If"WHOLE*; FL 9990 REH SAVE ROUTINE.
ASH 0 : PRINT 9998 CLS : PRINT "SAVE:": SAVE -
5050 PRINT "C> EQUATIONS: "* "21-6 I.Q. TEST.- LINE 1: CLS : PRINT
=3*(A) -f FLASH If"5"f FLASH 01 -VERIFY:-: VERIFY "I.Q. TEST.":
PRINT CLS : PRINT -O.K.-: STOP
5060 PRINT -D) LINKS:"*"INVOICE 9999 REM L I S T I N G OCCUPIES 34.5K.

89 ZX COMPUTING JUNE/JULY 1985


SPECIAL OFFER

Make Learning Fun


With Our s p e c i a l
Offer! £7-** Other programs in the Clever
Clogs series:
Party Tina for age 3+
With irutiai help from Mum and Dad any tots wiD iove to play these
party games They can blow out the candles or. the cake, sing along
with nursery rhymes, even draw or the screen Letters and numbers
are taught the fun way. Watch your whizzkids develop new skills and
learn how to use a computer.
6 different games and increased 'difficulty' option.. (S) (6) (C) (M) (A).
Ship«hape» for age 34-
See and understand SHAPES with 5 great games.
5 games with machine code animation and lively graphics to
encourage shape recognition. Shape Sorter and Dodgems aid
coordination Pattern Maker and Shape Maker will become great
favourites With Shipshapes you mustfillthe ship up from a helicopter,
by parachute! It sails away gracefully if you get it nght Clever Gogs
leads them through the program wtth songs and jokes and guarantees
fun aQ the way. (5).
Jnngie JamMe for age 5+
Can your whizzkids create their own unique zoo' Answer the
questions correctly andfinishthe picture — the possibilities are
endless Guaranteed to make them laugh. Enter the Great Safari Park
Chase and get the car past the spelling craps. They mil be off to a flying
start to their school work and learn how to use a computer
2 different games and increased 'difficulty' opbon(S)
Sam Safety for age 5*
Teach adventurous Sam roadsense and guide him safely home.
A real-time adventure with machine code action. You walk Sam across
a town of your design using the cursor keys or a joystick Pick up the
prizes as they appear learn all about Pelican crossings, Zebra
crossings, traffic lights and road signs. Get home safely with as many
prizes as you can and get your Road Safety Certificate wtth this new
way to leant roadsense.
FREE Sam Safety badges enclosed. (S)(C).
Wiizz Quiz for age 7+
A game of skill and chance for M players that's a real challenge to
today's whiakids. Programmed with 100 general knowledge
questions which gives them aflyingstart to their school work and
helps them become skilled in the use of a computer.
With increased 'difficulty" option. (S) < 0 (M) (A).
Blockbuster for age 7+
The puzale with a mObon billion variations.
Can your whizz kidfindthe answer0
The puzzle is made up of 12 blocks which must befittedtogether to
make a rectangle. You can link the blocks by rotating and (lipping
them in the Workbox. Machine code action makes for lively graphics.
Answer the Quiz tofinda complete solution to the puzzle. You can reset
the 100 questions too. Baffle, fhimmox and perplex, it will tease all the
family. Shape recognition, reflections and rotation are taught the fun
way. 5 'difficulty' options and a FREE competition (S).
I wish to take advantage of your special offer, and would like to order Star Trucker for age 9+
the following Clever Clogs programs at a cost of £3.99 each. Answer the questions correctly and become a Space Pilot trading
beyond hyperspace tofindthe Power Crystals. Asteroids, leaking fuel
. . . . copies of Party Time . . . . copies of Shipshapes tanks, dust belts, accidents — all have to be mastered Strategy and
dear thinking are vital Every game is different, it's a real-time
adventure with great graphics and the chance to enter a competition to
. . . . copies of Jungle Jumble . . . . copies of Sam Safety write the words to the Space Academy theme.
With increased difficulty1 option (S) (B) (Cj.
. . . . copies of Whizz Quiz . . . . copies of Blockbuster
. copies of Music copies of History Mystery Also available: Music
(age - 7 +).
. copies of Star Trucker The original price of all these
items was originally £7.99.
Cheques, postal orders etc. should be made payable to: They are now available to
Argus Press Software, Liberty House, 222, Regent Street, London readers of ZX Computing for the
W1R 7DB. special price o f £3.991

90 ZX COMPUTING JUNE/JULY 1985


BOOK REVIEWS

and written by Geof


Wheelwright and Ian Scales is
probably required reading for
anyone who wants to read the
Cornwall Handbook. Subtitled
the 'ZX Spectrum 48 K Com-
munications Guide' it is a
This issue, we look at The Hacker's machine-specific introduction
to the subject and actually ex-
Handbook — both of 'em! plains all the technical bits that I
didn't understand in the first
book. The page layout is quite
It's nice to see some computing [CENTURY] useful in that the margins carry
books coming out that aren't I C O M M I ! \ If ATH^V-CJ I brief explanations of any jargon
just variations on the '25 Spiff- that may appear in the main
ing Games/Machine Code for THE text. Starting absolutely from

HACKER'S
Morons' format. first principles with a chapter en-
April saw two new releases titled 'Why Communicate?' the
for those who want to explore a u t h o r s assume no prior
the communications abilities of knowledge of the hardware,

HANDBOOK
their machines. Coincidental^, software and facilities available.
they were both called The This Handbook though, is not
Hacker's Handbook (which may concerned with breaking into
make this review a bit confus- other people's systems and
ing) but they take quite different _MUGO CORNWALL 7v deals only with the 'legitimate'
views of the subject of hacking services available quite freely to
itself. The first, published by anyone.
Century Communications and There are chapters on Prestel
written by Hugo Cornwall (an and Micronet, Bulletin Boards,
alias, of course) explores the various types of electronic mail,
glamorous semi-legal aspect of and, thank heavens, a gentle in-
hacking and caused a certain guioe troduction to modems and inter-
amount of controversy when faces (ok, hands up everyone,
published, with 'a top Scotland me included, that has seen the
Yard Detective' declaring 'no legendary RS232 interface
good can come of anything in referred to all over the place —
this book.' This of course will even on Spitting Image — but
probably do wonders for sales never had the faintest idea what
but wether or not the criticism the damn thing actually does).
will be proven true remains to be The authors' style is a little drier
seen. than Cornwall's but as they had
Admittedly, the book does a lot of explanatory material to
give detailed accounts of events present, that was probably in-
such as 'The Great Prince Philip evitable.
Prestel Hack' and even of bugs It is interesting to compare
in those hole-in-the-wall cash the attitude that this book takes
dispensers, so I suppose that the to the kind of hacking that Corn-
Police concern is not entirely wall deals w i t h . This, the
without justification of some authors tell us, is increasingly
sorts. The problem here is that becoming an activity for profes-
theft of information is not illegal, sional criminals, whereas the
mainly because the law hasn't 'sporting activity' that Cornwall
yet caught up with recent ad- discusses is now the exception
vances in information rather than the rule. This is a
technology — it could certainly debate that will go on for ages,
be argued though, that breaking and if you want to be in on it,
into private files is immoral and then I can recommend both
ought to be illegal. But here, the these books to you, though I
book's author adheres to the should add that for the beginner
view of the Hacker as a sort of the Longman Handbook is pro-
computerised Raffles — more bably the more essential of the
interested in the challenge of a t w o , and provides the ex-
good break-in than in material perience and information that
gain, and having a strict code of you will need to fully appreciate
honour. 'Hackers' he tells us, the Century Handbook. S.D.
'should not be interested in
fraud.' Title: The Hacker's Handbook
It's a matter of semantics — Longman — Author: Hugo Cornwall
really, but a Hacker, according think a little too technical in average computer book. The Publisher: Century
to Cornwall's definition is not in- places for the beginner (I got lost author's style is clear and un- Communications
terested in criminal activities, on several occasions whilst complicated and his enthusiasm Price: £4.95
therefore anyone who does em- reading it), and probably re- for the subject carried me
bark on hacking with criminal in- quires some experience with through the technical bits that Title: The Hacker's Handbook
tent is not a Hacker, but a modems and knowledge of went over my head. Well worth Author: Geof Wheelwright and
criminal. Still, the ethics of hack- things like protocols in order to buying. Ian Scales
ing aside, the Century Hand- get the best of the book. Even so The second Hacker's Hand- Publisher: Longman Software
book is a very good read. It is, I it is much better written than the book, published by Longman Price: £5.95 -

91 ZX COMPUTING JUNE/JULY 1985


REVIEWS

we t h e Jury
In the next section the aliens
materialise, nip backwards and
forwards before finally making
kamikaze dives on you. The play
levels are perfect, you can
Your task is to progress achieve reasonable success in

JCo
through eight sectors which are the first few attempts and this
variations on the corridor flying
F
will encourage you to try for a
theme, finally destroying 20 higher position in the high score
Lurgons in that sector in order to chart. You just KNOW you'll do
cause a power reversal which better next time. As a pure zap
will destroy them. There are a lot 'em all space game it is one of
of things to watch, scanner, the best, a must for arcade en-
computer, life mode, phaser thusiasts.
lights and energy, and all the
while the attacking aliens! GRAPHICS
ADDICTIVrTY
GRAPHICS OVERALL
ADDICT IV rTY
OVERALL

...NO UMJTS

A Day in The Life


£5.95
Micromega
A humorous game dedicated to
"the man who put us ail into
business", this has you guiding
the Head of Sinclair around
several screens of objects to col-
lect and people to avoid. An
unusual combination of plat-
form and maze games and all in a
3D perspective.
The graphics looks sparse in
comparison to some games on
the market, but after a few plays
I came to appreciate the unclut-
Buggy Blast
tered display — simple in con- Firebird
cept it may be, but simple to play £5.95
it is not. A nice sense of humour
runs throughout, and I even This is a graphically excellent
found the insert notes funny. 'zap the aliens' type of game,
The object of the game is to which I found very difficult to Moon Cresta Brian Bloodaxe
get Clive to Buck House to be in-
vested as Dame Commander of
master. One of the reasons I
found it difficult was that there
£6.95 £5.95
the British Empire, you start in are no joystick options. There is Incentive The Edge
his house in bed and have to get a choice of two sets of keys, Software
clothes and a key to get out, OWOMXP for Life, Right, Up, The first ever game to feature
avoiding the animated TV, Down, phaser and normal fire, WOW! "Primary Imbalance" quoth the
Spectrum, cat (so far it's just like and the cursor keys plus X. This was one of my favourite ar- insert. I still don't know for sure
home — Ed.) and the bug in the I personally preferred the first cade games and I thought when what it is but I hazard a guess
attic. Objects bounce off each option, but, although the I saw the adverts "Oh yes, that it is the silly/unlikely solu-
other and just as you think cassette tells you to remove all another inferior, highly hyped tions to the problems such as
you've got it sussed they collide peripherals, I tried it with the copy", but boy was I wrong! walking on the Shark's fin!
and come back unexpectedly — AKG Protocol 4 joystick inter- This has all the challenge and You as Brian, have invaded
exit one of your five lives. Scor- face and guess what? It worked. features of the original, if you the Brits in 1983, you have to
ing is simply calculated by the Life became easier. want to try it out just go to your wander round collecting and us-
time in which you complete There is a lot happening in nearest arcade and put 20p in ing objects until you get the
each screen and the top score is this game, different aliens at- the machine of the same name. crown jewels and sit on the
kept and displayed. tack you from all sides, and Even the music/sounds are the throne. Once you have done
I liked it but f o u n d it deciding which one to try and hit same. You are travelling in a that then the insert notes say
frustrating as it looked so easy, needs quick assessment of the three-stage rocket when the evil the REAL task of the game will
probably Underwurlde experts relative value of each. On my aliens materialise in the centre of be explained.
may find it rather easy, but for first go I killed nine or ten and the screen and attack in a swirl- This is a platform and jump
most of us the difficulty is just scored nothing! This is a full ing pattern. Hit them and they type program but with a style of
right, making you want just ONE blooded program and it is quite split into two, hit them again and its own. It is unfair to categorise
more go. hard to score in the early stages they die, destroy them all and it more than generally, each
Micromega, 230-236 — it's not for those who give up another wave appears. After screen is carefully laid out in line
Lavender Hill, London SW11. easily or want a purely mindless five waves the second stage of with the plot, although no at-
slaughter of offending aliens. your rocket appears, and if you tempt to stay in a logical time se-
GRAPHICS * • • • Experienced players may find successfully dock with it you quence has been made — Nights
ADDICTIVITY • • • • • this challenge will keep them on c o n t i n u e w i t h t w i c e the and Cruise missiles in the same
• • • •
OVERALL their toes for some time. firepower (you'll need it!). game!

92 ZX COMPUTING JUNE/JULY 1985


REVIEWS

The animation is very good, place, make bombing runs on If you like sporting action unforgiveable design flaw, then
movements and jumps must be your spaceship. As they enter simulations or even if you I would give The Mighty Magus
timed accurately, I'm afraid that and attack they send down a haven't up to now, this is a must an unqualified 'thumbs-up', but
I didn't get very far before I had stream of missiles. as it provides all the best in com- as it is, that one flaw spoils the
to write this review, but it is one Simply by dodging back and puter graphic sports actions. game.
that I shall be going back to. forward and firing continuously I Baseball is very similar to You play the part of the
There is a great deal of influence got through the first few sheets, Rodf\ders which most of us have aforesaid Magus. Starting at the
from the Monty Python team in (there are four screens to a played at some time. This game topmost level of an underground
the (il)logic of this program, this sheet), before the speed of the allows you to play either the dungeon, you must penetrate
is implicitly acknowledged in the attackers increased to such a computer or an opponent, using deep into the lowest levels to
cassette picture and the ear rate that I couldn't survive. One the keyboard or a Sinclair type face your arch enemy, Fraug the
curdling music. It was not hard thing I found interesting was the twin joystick interface. Dragon. As you descend, you
to get started, however I soon style of presentation and move- There are not many two can move around various sets of
got stuck only a couple of ment, this reminded me very player interactive games around stairs and platforms, and use a
screens into the 100 that are much of the Demo screens of and this is strange considering SEARCH option to look for
there to be explored. Quite often Oasis' White Lightning program. that the game that started the useful objects along the way.
I found myself sitting and trying I suspect that this was written video game craze was just that You begin with a certain amount
to puzzle out the next move, not using it and would be interested — remember Pong? Just about of power and magic which are
too successfully in most cases to know if this is the case. If so every option you can think of depleted by falls from platforms
— although I enjoy adventures, then it is one of the first commer- has been included — number of and magical combat with the
some of the logic baffled and ex- cial quality programs I have seen innings per game, difficulty denizens of the dungeon but can
asperated me! produced by a "games writer" level, select playing keys, be boosted by things you find
utility. names and team colours. Each along the way.
GRAPHICS • * * * Although not particularly in- team takes a turn to bat and These underground
ADDICT IV rTY • * * * spired or inspiring there is not a field. The normal rules apply, monsters are well animated,
• • * *
OVERALL lot wrong with this game, the three strikes, run out or touched though your own movement
graphics are good, movement is gets a player out, getting round and the scrolling dungeon layout
smooth and it is enjoyable to the bases, either in one go or in are fairly jerky. Also, some of the
play. I suppose that it lacks stages scores a run. traps on the dungoen floor are
sophistication when compared The screen display is nothing quite difficult to avoid as they
to other programs. I played it for short of brilliant! The top third often look no different from the

r
over an hour but have not really shows the crowd with a huge normal, safe, floor tiles.
experienced a desire to have display type billboard which at I was really enjoying playing
another go. various times shows close ups this game until the fatal flaw
Interceptor Software, Lindon of the pitcher, batsman or even that I mentioned earlier became
House, The Green, Tadley, cheerleaders, as well as the apparent. The dungeon layout is
Hants. scores and advertisements for randomly generated, which is
various companies. The bottom fine as it provides plenty of
GRAPHICS • * * two thirds show a 3D bird's-eye variation but the drawback to
ADDICT IVITY • • view of the whole field. When
• * * this is that very often you can
OVERALL playing, each player controls drop into a dead-end and find
various actions and men in turn yourself with no way out. This
and a real degree of skill can be means that you simply have to

w
acquired with practice. abort and start the game again
Imagine is dead, long live Im- from the beginning. This, as I
agine! said, is an unforgivable over-
sight, and makes the game in-
GRAPHICS * * * * * credibly frustrating. Surely
ADDICTIVITY • • • • • some sort of check could have
* * * * *
OVERALL been built into the game to pre-
vent this?
Mighty Magus is (or rather,

Q MIGHTY could be) a very good game, but


the 'dead end' syndrome could
well result in the cassette being
thrown out the window in
Halaga frustration. It's up to you to
decide if you're prepared to risk
£5.95 it.
Interceptor
Software GRAPHICS
ADDICTIVITY
* * *
• *
*
*
• * *
Sent to Cygnus Major for OVERALL
mineral resources by the Federa-
tion of Space Research, you run
into a hostile alien reception. On-

5n
ly your skill with the anti-matter
plasma gun will save you.
This is an average shoot 'em World Series L
up space game which you can Baseball
play with most of the joystick
£6.96? The Mighty Magus

M
options available. The aliens
zoom onto the screen in set pat- imagine Ouicksilva
terns, take up their positions £7.99
while the next squadron enters, Imagine do for Baseball what
and finally, when they are all in Psion did for tennis! If it wasn't for one absolutely

93 ZX COMPUTING JUNE/JULY 1985


REVIEWS

I understand that parachute. All the graphics are


Mikro-Gen's next offering will well drawn and the animation is
be a game based on Wally's son, very smooth. Even the move-
Herbert. I look forward to it with ment of the Wriggler is novel in
quivering anticipation. that rather than just moving left/
right/up/down, you have to
GRAPHICS • • • * • adopt a sort of wriggly side-to-
ADDICT IVITY • • • • side movement if you want to
• * * * •
OVERALL move quickly.
The only minor irritation that I
found was the tune that played
after losing a life. Why do pro-
grammers insist on using these
silly little tunes? Nobody likes
them and they only slow the
game d o w n w h i l e y o u ' r e
waiting to get on with it.
Gremlins Still, that aside, I enjoyed
Adventure inter- Wriggler and will be going back
national to it, to try and find the rest of
the locations. It's just that little
£9.95 bit different from the rest of the
current crop and well worth buy-
Following their Marvel Comics ing.
tie-in series, Adventure Interna-
tional have now moved into the P.S. I'd just like to thank RR
film world with a game based for the cute fluffy toy they sent
along to publicise the game
u p o n the C h r i s t m a s h i t ,
Gremlins.
Everyone's a wally which has proved very popular
Gremlins is a sort of introduc- Mikro-Gen 4MTNT M s * . in the ZX offices.
tory adventure aimed at people £6.95 GRAPHICS
w h o may not have played
ADDICT IVrTY
adventure games before, but Mikro-Gen's Wally games seem
who may be attracted to this to be taking on a life of their own OVERALL
U^CFVIAMIKT HOTTW
game having seen the film. And and multiplying to form a whole
anything which helps to make series of games. However, if
adventuring more popular is to they'reallasgoodas Everyone's
be welcomed. A Walty, then I shan't be com-
The sentence parser is very plaining.
sophisticated, and the graphic Unlike any other arcade or
drawings of the locations are ex- adventure type game, this one i
cellent. As well as being highly allows you to control more than
detailed and colourful (the pic- one character — you can choose
ture of Gizmo is sooo cute!), the between Wally himself, Thelma

f t
* KWUt raou K h m t
graphics also feature a limited his wife and the rest of the cast FM U O M O F ^ R , , m I ^ I

1
animation. In one scene, there is of thousands (well, six actually).
a 'flashing' Gremlin, just as in
the film, and the pictures change
As all these characters wander
around town they must figure
Wriggler
in response to your commands- out how to complete various Romantic Robot
in one location, the command tasks, eventually opening a safe £6.95
'Kill Gremlin' results in a picture to get at their wages.
of a headless Gremlin being add- The locations in the town are Despite the cassette cover that
ed to the scene. all well drawn, and contain some seems to promise yet another
The quality of the graphics interesting surprises. On one oc- 'shoot the catepillar' game,
and parser are just the sort of casion I took Wally into a Wriggler is more original and
thing that will encourage the telephone box and ended up more fun to play than you might
first-time adventurer to get to playing some sort of Asteroids expect.
grips with the techniques of this game! You play the part of a worm
type of game, but they have The animation of all the (that's novel for a start) taking
taken a toll on the memory characters is very good. They part in a race around a garden.
available, so that there are are all drawn in big chunky The garden is populated by
relatively few locations to ex- sprites and really do 'walk' assorted nasties, ants of various
plore, and the problems will not rather than just wiggling their types and a superbly animated
be too hard for seasoned adven- legs. The inevitable colour spider that is instant death if it
turers to solve. But then, clashes occur, but the touches you. Beyond the boun-
Gremlins wasn't designed for characters always remain clear- daries of the garden are an
veterans, so we can't criticise it ly defined and solid-looking. To underground labyrinth and
on that score. be honest, I've not made much (although I haven't found them
So, if you're a novice adven- of a dent in the game so far as yet) a mansion and planet sur-
turer looking for a place to start, the instructions don't give too face, so there's plenty of scope
for wandering around and ex-
then go and get Gremlins (if you
can afford it — the price is it's
much away. But this is inten-
tional of course, for, as with ploring. Bruce Lee
only real flaw). Ultimate's games, half the fun Scattered along the way are US Cold
lies in figuring out the mechanics various items including food to £7.95
GRAPHICS • • • • of the game and what you are keep you going, ant sprays for
ADDICT IVrTY • • • • supposed to do with all the ob- when you're caught in a tight I enjoyed playing this quite a lot.
* • • •
OVERALL jects that you come across. spot, extra lives, and even a Basically, it's just a glorified plat-

94 ZX COMPUTING JUNE/JULY 1985


REVIEWS

form game in which you, Bruce cited about it. If it were a budget tion, try to navigate the new
Lee, have to go through the wo-arTE* game say, £1 . 9 9 / £ 2 . 5 0 it
would be excellent value, but for
screen, and, if you lose all your
lives, you can just reload the
chambers of a Wizard's fortress
collecting lanterns which will £ 6.95 it's not top of my shopp- SAVEd game and try again.
enable you to continue deeper ing list. The graphics are quite good,
into the fortress and eventually some of the sprites are very
confront the Wizard himself. GRAPHICS good, but the attribute problems
But, what makes this so ADDICTIVrTY of the original are still present
much more fun than the average OVERALL and Harry himself seems to
platform game is the presence of move rather more slowly than
your two foes, the Ninja and the he used to ( g e t t i n g old
wobbly Samurai called the perhaps?). But all things con-
Green Yamo. In most games of sidered, if you're in the market
this type, the monsters which for yet another platform game
you must avoid are simply you could do worse than taking
sprites moving in a fixed pattern. a bite out of Choccie Egg.
However, in this game, the Ninja
and Yamo are fully animated op- GRAPHICS

m
ponents who chase you all ADDICTIVfTY
around the temple, the Ninja Stay Kool OVERALL
bashing you over the head with Bug Byte J5t*fi\ SPECTRUM
his broken stick, and the Yamo
leaping at you with a flying kick.
£6.95 s
«

Of course, you can retaliate Chuckie Egg 2 managed to add a


with flying and karate chops of couple of new features to the
your own, and I must admit that I standard platform format, but
found this the most enjoyable Stay Kool is about as unoriginal
aspect of the game. Working out an addition to the hordes of JSW
how to get through the fortress clones as you can get. In fact,
chambers isn't terribly hard, but you could even say that it's
watching as your Bruce Lee more of a Manic Miner clone
figure leaps across the screen than of the more modern JSW.
and kicks the Yamo all around There is one room in Stay Kool
the floor is great fun. I got my that is more or less a straight
younger brother to play, using copy of one in MM (I think it was
the two player option, and the called Return of the Kong Beast,
house resounded to cries of or something like that).
'poke him in the eye' and 'kick
his head in!', until well after mid-
Even the graphics are a step
backwards, for although the
Chuckie Egg
night. It's all terribly childish, I various 'monster' sprites are A & F Software
know, but great fun nonethe-
less.
animated adequately the figure £6.90
of Luke Warm (the hero of the
All the figures are very nicely piece) is pretty slow moving, At long last the sequel to one of
animated and detailed, and you and very flickery. my all time favourite games has
can make out who's who even The plot of the game, such as arrived. At first I was a bit disap-
when they're all on top of each it is, is that Luke's spaceship has pointed to see that all the cute
other, kicking and punching for been damaged in a battle and ducks and hens of the original Death Star inter-
all t h e y ' r e w o r t h .
chambersthat you pass through
The that Luke, in order to launch his
escape pod must rush around
game had been abandoned in
favour of a more conventional
ceptor
are all well designed, and the the ship collecting fuel pods platform game arrangement. System 3 Software
oriental designs make a nice, before the ship overheats. The But, Chuckie Egg 2 (or Choccie £7.95
colourful change from the usual logic of all this seems pretty Egg as it is cutely subtitled due
type of graphics in platform dubious when you actually see to its Easter release date) is still Some of the more game orien-
games. My only criticism of the the sort of rooms that the ship very enjoyable. tated 'zines have been raving
game is that your path through contains, but what the heck, it's You must move Henhouse about this, but I can't really see
the fortress is fixed unlike the only a game. Harry around a large factory what all the fuss is about I'm
rooms in JSW which allow you Most of the rooms are quite (120 rooms) and collect the in- afraid. Death Star Interceptor is
to take any path through the well designed, being hard gredients to make Easter Eggs. a very competent piece of pro-
house that you want. Conse- enought to require a bit of Along the way you will meet gramming, but apart from the
quently, after a few games it can thought, but not so hard that manic hoovers, shaggy dogs, third screen it's really just space
get a bit boring having to go you die instantly. And, as in moles and other assorted deadly invaders w i t h s o u p e d - u p
through the same route time JSW, you don't have to collect sprites. In addition, Chuckie Egg graphics.
after time, but this is where the the objects in each room before 2 has an arcade/adventure ele- The first screen is a bit of a
combat saves the game from moving on to the next, so if an ment that allows you to carry bore. You have to launch your
getting stale. Of course, if the object seems too hard to reach various objects (normally only ship from a runway and steer it
fortress were more complicated you can carry on exploring and two at a time) that you will need through some sort of portal. The
then the memory wouldn't be come back later. And, as a mat- to solve some puzzles (for in- whole thing lasts about five
available for the combat and ter of fact I did find the game in- stance, in order to get past the seconds and seems fairly hit or
animation, so the game as it is teresting enough to want to shaggy dog, you must first col- miss, as the ship rather over-
probably struck the right carry on wandering through the lect a bone to distract him with). reacts to its controls. The launch
balance. Definitely worth get- rooms. Despite the simplicity of Another adventure-type ele- is announced by some good
ting, I think. the game it is well enough ment is the inclusion of a SAVE speech synthesis, better than in
designed to hold my attention. game facility that comes in very Ghostbusters I think, but listen-
GRAPHICS • • * • In fact, it's not a bad game at all handy. If you come across any ing to this doesn't make the
ADDICT IVfTY • • • • really, it's just that it's so clone- screens that look too tricky, you screen any more interesting to
* • • •
OVERALL like that I can't really get very ex- can just SAVE the game posi- play. •

95 ZX COMPUTING JUNE/JULY 1985


REVIEWS

The second screen is the good, or the plot which is ex-


Space Invaders Bit. The tremely challenging, but the
graphics are excellent, no doubt subtlety and range of control
about it. The attacking ships which is possible using only five
start off as points moving controls either via a joystick or
against the starry background the keyboard.
and growing and taking on The game continues the
shape as they zoom in on you, adventure of Maroc and his
but you are still just stuck mov- graphic representation is the
ing your ship left and right (with same as in Avalon. However this
a small room for up and down is not just a simple case of
movement) at the bottom of the revamping the plot to cash in on
screen, space invaders style. Avalon's success, as there are
The third screen is far and enough new features to make it
away the best. The action for a game in its own right. The
once matches the graphics as screen is presented in the same
you zoom along the trench sear-
ching for the Death Star's weak
spot. The perspective graphics Spectrum
are excellent and the chase The p l o t is based on
through the trench gets pretty
frantic.
mythological characters and in-
volves Morag attempting to
The House That
If you're looking for a shoot reconstruct the all-powerful jack Built
'em up, them I suppose that this Dragontorc. Morac's almost im- Thor
or Incentive's Moon Cresta are possible task is to prevent her
from doing this and to rescue
£5.95
the zap games of the moment,
but I'm afraid that for me the Merlyn w h o is being held This program presents you with
trench sequence on this just prisoner by her. With the nineteen screens of cartoon
didn't make up for the other character interaction, locations quality scenes which you must
screens that you have to go which need mapping, puzzles to discover and explore to find the
through first. be solved and a specific task, hidden objects. Not content
this must be close to perfect in with having cats or dogs for pets
GRAPHICS the implementation of adventur- Jack has a selection of very
ADDICT IVrTY ing in a graphic manner. vicious monsters who wander
OVERALL I find Maroc's tendency of around killing him on contact.
The graphics are very well
drawn and the animation is
good. However the infamous
Spectrum colour attributes pro-
blems which causes colours to
overlap is rather evident,
something which is almost
unavoidabie with the brightly
coloured screens of this pro-
gram.
The actual insert instructions
contain an unforgivable error,
the keys mentioned are 2X;/for
LRUD, in actual fact they were
QWOK in my version. A joystick
option was provided.
Control is good. Jack moves
positively and accurately. Some
of the entrances and exits need
specific directions to operate,
you can move freely from loca-
tion to location without having
to collect the object first and
many of the locations are in-
geniously designed.
I enjoyed the program for
about an hour and then got
bored, I have considered re-
running it from time to time but
never got round to it. There
doesn't appear to be enough
variation in the action to make it
Dragontorc way as Avalon, 3 D perspective bouncing off boundaries one really addictive. This would be
an excellent game for those who
that makes control difficult and
Hewson with the scroll at the bottom for
messages and options. One of- frustrating, and the colour at- enjoy the maze/chase type of
Consultants the new features is "Sensory tributes sometimes overlap, but programs w i t h excellent
£7.95 Animation" which makes the these are minor quibbles. graphics.
characters react to you depen-
The amazing thing about this is ding on how you act towards GRAPHICS • • • • • GRAPHICS • • • * *
not the graphics, which are them. Most are initially rather ADDICT IV rTY • • • • •
ADDICTIVfTY • * *
• • * • • * * •
superb, the sound which is very aggressive! OVERALL OVERALL

96 ZX COMPUTING JUNE/JULY 1985


A SPECIAL OFFER J 11I11III IIl 11L
THE ZX COLLECTION,
includes programs for the Sinclair range of machines,

TO ZX READERS
1 1 1 1 1 1 1 1 |.._J_ < L 1 1 . 1 . 4 • * 1 * - J 1 L
extensive range of listings for readers to key in and
includes games for alien zappers, thinkers and board

NOW ONLY £1-50- INC PxP game players, educational programs and a wide
variety of utilities and useful routines.

R.R.P
I I I I I I I L
There are also reviews of software by
people that actually use them, readers'
opinions and there will be over 130 pages
of editorial.
For those that own a ZX80, ZX81 or Spectrum,
THE ZX COLLECTION is an absolute must,
whether they be games fanatics or more serious
microcomputer users.

I am enclomlng my (delete am necemmary)


cheque/Postal Order/International Money
Order for £
(made payable to ASP Ltd)
OR
Debit my Acceme/Barclaycard *
('delete o« necemmary)

Please use BLOCK CAPITALS and include post codes.

NAME (Mr/Mrs/Miss)

ADDRESS

POSTCODE

ignature

Date
Argus Specialist Publications Ltd,
1 Golden Square. London W1R 3AB.

n T x r r i i i i T T
SPECTRUM SIMULATION

SIGNALMAN
road traffic!).
The levers are colour coded
(Yellow = distant, red = starter
or home or advanced starter,

Duncan Munro has done a lot of


black = ground signal, green =
gate lever, magenta = king

research in Londonderry to ensure the


lever, and cyan = d o w n line
junction route indicator).

accuracy of his signal box simulation 1 ='ON' (at danger or caution)


0 ='OFF' (clear)

So, to pull off the Down


This program simulates the made proportional to time on an quires a 48K Spectrum. Starter, input DSO. A demo
working of a modern signal box exponential, rather than linear It has been thoroughly mode operation is available to
and is based on the actual work- basis, so that a balance has to be tested and debugged. It is assist in familiarising the lever
ing practice of the local Cole- achieved, as in real life, between 'idiot proof' and wil not per- frame operation. When you
raine box. In order to get the running the trains on time, and mit trains to be driven while have accepted a train, and set
details right, I spent some time keeping the road open to traffic the gates are closed to rail the routine up, you change roles
with the signal man on a recent for as long as possible. traffic, neither can a train be and become the engine driver!
Saturday afternoon when traffic Skill is required in efficient driven past a signal at When you have driven the train
was quite busy. I had a very in- and effective route setting and danger. It will also stop and to its correct position, i.e. up to a
teresting time, away from the driving the trains while in the request an immediate 'Acci- signal at danger, or out of sec-
computer for a change, discuss- section. The program is not 'fast dent Investigation' if t w o tion, you will return to the box
ing and watching the actual moving' in the arcade game trains are allowed to collide, automatically. Otherwise key
o p e r a t i o n s and w o r k i n g sense but rather corresponds to or are driven into the buffers. 'S' to return to the box.
methods. the speed of operation required
in real life practice. The degree A description of the train
The Coleraine Section in-
cidentally was one of the first to of difficulty can be changed by Operating c o d e s and t h e o p e r a t i n g
timetable are shown at start of
be fitted with track circuiting, small alterations in the delay
function exponential power
instructions the program. The train codes are
colour light signalling, and a alpha numeric, containing 5
route indicator board in the box value. A valueof 2,forexample, You are in charge of a Signal
instead of 1.5 will increase road characters. The first is a
in the late 1930's. Box. Your section is controlled numeral, 1 to 4, giving the train
The Coleraine signal box has delays to the point where a high by colour lights based on British
score is almost impossible. A description, the second and
many interesting features, in- Signalling Practice. Seven trains third characters are alpha and in-
cluding control of two level demo mode option is included, wil be offered to you in se-
allowing the user to familiarise dicate the line on which the train
crossing games, a lifting canti- quence of the operating time is travelling when entering sec-
levered rail bridge across the himself with the lever codes and table, from 15.00 hours on-
the operation of the gates, tion, and the last t w o are digits
river Bann, and control of trains wards (you will find it useful to showing the time due in section.
on the main Belfast-London- signals, points, trains, etc. make a note of the timetable
merely by pressing one key Thus, ' 2 D M 0 5 ' signifies or-
derry line as well as the branch codes for reference). No more dinary (stopping) passenger
line to Portrush. There are 48 when instructed. than 2 trains in section are per- train due on the down main line
levers in the lever frame so my Once a train is accepted and a mitted. The branch line train is a at 1 505 hours.
computer simulation is a con- route set up for it, the operator local rail bus. After discharging
siderable simplification with on- changes roles to become the passengers, the rail bus must
ly (!) 1 6 levers. Nevertheless, engine driver. After driving the wait for the MAIN line train, and
the program does include all the train to its correct place (a stop then be rerouted back via the
essential features. These in- signal, across a junction, or out DOWN BRANCH line.
clude full interlocking of the of section) he reverts back to the Therefore, the rail bus must
crossing gates with the signals signalman role. cross over to the Down Line
and points levers through a king The program structure and before you can accept an UP
lever as in real life. The lever col- detailed instructions are describ- MAIN line train. The seventh and
our coding is also accurately ed separately. However one or final train is a DOWN freight train
represented within the limits of two items are noteworthy — which has to be diverted to the
the Spectrum's 8 colours. It 1. Due to the large number (3 7) siding, and then all signals set to Lever interlocking
does not attempt however, to of user-defined graphics, 'ON' and the crossing gates
handle the various bell codes ex- these are split into two sets closed. Your score will then be There are 3 types of interlocks
change between adjacent signal and each set called up as shown. BUT NO SCORE IF YOU - variables LOCK, KL and L (n)
boxes, as this would require a needed by poking values into CRASH! — to ensure that:
program in its own right, and system variable 2 3 6 7 5 . The score takes into account a) the signals cannot be set to
also slow operation down to an 2. The program makes full use delays in routing of trains clear if gates are shut (to rail
unacceptable level. There may of Boolean operators (AND, through your section and ex- traffic).
seem to be a lot of beeps used NOT) to ensure correct signal cessive delays to road traffic b) the gates cannot be shut if a
but, in practice, a signal box is a interlocking with the gates, due to keeping the crossing signal is at clear
surprisingly noisy place with dif- and t o e n s u r e c o r r e c t gates closed. Car drivers' ag- As in real life practice, it is
ferent bells, buzzers, and subroutines are used to run gravation is indicated on an ex- necessary to have an in-
telephones sounding every few the trains correctly at a points ponentially rising decibel scale! termediate lever, called a KING
minutes. various possible scenarios, For safety reasons, the lever, which must be pulled off
The p r o g r a m c o n t a i n s and is essential in directing gates, and the signal levers are before any signal lever is pulled.
several novel features, including the trians correctly at a points fully interlocked. Gates must be It must also be set back 'ON'
working in real time to a pre-set junction. opened first before pulling off before the gates can be opened
timetable. At the end of the pro- The method of directing any other levers. The King lever or closed, when the gates are
gram, the overall efficiency of the train at a junction, is, I interlock (labelled KL) must then opened, they are physically
the signalman is calculated and believe, somewhat unique. It be pulled off before you can pull locked in position by latch set in
displayed. This takes into ac- is fully explained in the off any signal levers. This se- the road surface. The diagram
count both the efficiency in run- subsequent text. quence must be reversed before illustrates the sequence of inter-
ning the trains to the timetable Finally, the program re- closing the gates (remember locking. ' 1 ' means lever is pulled
and the delays imposed on the quires 24.1 K for the Basic that closing the gates here 'OFF'. ' 0 ' means lever is. set
road traffic. This delay has been listing and consequently re- means closing to rail traffic, not 'ON'.

98 ZX COMPUTING JUNE/JULY 1985


SPECTRUM SIMULATION!

Program structure two trains already lever routines the digital clock
in section and including display.
Lines whether a train interlock setting 9 0 0 0 - 9 3 0 0 Calculates the
has been (see text for displays final
20-90 Train codes and accepted into details). scores as
Timetable. section. Une 3 2 2 7 - separate
100-254 Define USR 1000-1090 Controls the lever ot = time gates performances
graphics and frame operation opened against rail
store first 17 and calls Line 3 2 9 5 - timetable
characters at appropriate cumrd = operation and
addresses 6 5 3 6 8 subroutine. cumulative road road traffic delay
upwards. Store 1100-1160 Finds starting traffic delays for and also shows
remainder at coordinates of a each interval of overall
addresses train entering time gates performance.
6 4 , 0 0 0 and up. section and lights opened and 9 5 0 0 - 9 9 9 0 Demonstration
280 and Poke system up route closed. mode routine.
600 etc. variable 2 3 6 7 5 indicator. 3300-4050 Operates signal USER
to call up required 1170-1360 Main routine to levers, sets GRAPHICS Use the graphics
set of graphics. drive trains. appropriate signal mode key when
295-680 Draw layout {the 1400-1590 Accident Notices. colour, changes typing the letters
draw statements Program stops if the points, and A, B, C, D, etc.
are left in the activated. sets signal after the PRINT
original format of Warning Notices interlock. AT statements in
one number 1600-1720 if incorrect lever 5000-5390 Evaluates the lines 3 0 0 , 3 0 5 ,
minus another. I operation track on which 330,360,
found this was attempted. each train is 390-400,410,
essential to the Calculates the standing. Sets 414,416,418,
task of plotting 1900-1950 time, in minutes, the appropriate 520,522,
and drawing to an that the gates variables pt 1, pt 620-642,675,
exact pixel have been 2, pt 3, p t 4 , for 677,678,
position and opened and train 1 and vt 1, 7 5 0 - 7 9 0 , BUT
correcting any increments the vt 2, vt 3 , vt 4, NOT'm lines 650
errors). value to the for train 2 . or 652 or 656 or
750-790 Add ink colours. power 1.5 to give Returns to 800.
800-805 Store lever codes aggravation level subroutines Use graphics key
and on an 2 1 0 0 - 2 2 2 0 to again at lines
corresponding exponentially evaluate the 3180,3208,
signal print rising scale of correct direction 3218,3219,
coordinates for 'decibels' (rd). to move E, W, 3222,3225,
use in subsequent 2000-2040 Exit from driving NE, SE, SW, or 3270,3277,
subroutines. routine, and NW) for in keys 3278,3284,
865-877 Start the clock return to signal ' 5 ' , ' 8 ' , o r ' Q ' or 3285,3287,
(see the Sinclair box operation. 'P' (see text for 3356,3376.
Manual). 2100-2220 Subroutines for details). and again at lines
900-965 Main control trains 1 and 2 to 7000-7015 Subroutines to 3910 t o 3 9 5 0 ,
program — determine new call up but only the letter
controls which print positions, appropriate set of after the PRINT
subroutines to 3000-3070 individual train graphics. statement, not
call depending on codes. 8000-8060 Calculates the the letter after IF
whether one or 3100-3297 Gate and King actual time for u$ = " " .

TO open the gates: Pull off KL KL = 0


Signal levers can now be pulled
At the start, LOCK = 0 off.(L(1), etc. 0).
(gate lever)
KL= 1 (King lever)
L(n) to L(14) = 1
shut the Gates:
(the signal lever All the signal levers must be
locks are all set reset to ON L(n) to L(14) = 1).
to1). Set on KL KL=1
Pull off CO Open Gates. Set on CO Close Gates
LOCK=1 LOCK = Q

LOCK KL L
0 1 1 START - GATES CLOSED
1 1 1 OPEN GATES
1 0 1 PULL KING LEVER |UUUUDE>DBB55555KC|
1 0 0 SET SIGNALS JDHSJfl5HDlg3d5LO
1 0 1 RESET SIGNALS 1 =ON
1 1 1 RESET KING LEVER
0 1 1 CLOSE GATES 0 =OFF

99 ZX COMPUTING JUNE/JULY 1985


Point operation one for NW. When the point
lever is not pulled off, the pixels
are not set and the train direction
The subroutine to determine in is E-W. So, there are 5 possible
w h i c h direction the train travels configurations as s h o w n in the
at a point junction is contained in diagrams.
lines 5 0 0 0 - 5 3 9 0 . When the Lines 5 0 2 0 - 5 0 5 0 and lines
nw lever operating the points has 5 2 6 0 - 5 2 9 0 are required to con-
been pulled o f f , t w o additional vert PRINT A T coordinates to
pixels are 'set' at the junction, pixel c o o r d i n a t e s . Then the
(or junctions in the case of the POINT value (1 if set; 0 if not
ground discs). These t w o pixels set) is obtained of the pixel coor-
are set in one of four unique d i n a t e s a n d r e c o r d e d in
combinations, one for NE direc- variables pt 1 -4 for train 1 and v t
tion, one for SW, one for SE, and 1 -4 for train 2 .

5 CLEAR 6 3 9 9 9 GHT 1509 3UM09"


10 REM " S i g n a l m a n " b y D.J.Munro 84 PRINT AT 10,0;"BRANCH ORD P
20 REM train codes ASS. 1512 2UB12"
23 PRINT AT 0,3;"DESCRIPTION 86 PRINT AT 11,0;"UP ORD P
CLASS" ASS. 1516 2UM16"
30 PRINT AT 1,3?" 88 PRINT AT 12,0;"DOWN ORD FRE
m I GHT 1520 4DM20"
33 PRINT AT 2,0?"EXPRESS PASSE 90 PRINT Hi;"Press any key to
NGER" 5 AT 2 , 2 5 ; " 1 " cont i nue" : PAUSE 0! CLS
4 0 P R I N T AT 3 , 0 ; " O R D I N A R Y PASS 95 INPUT "PLEASE SET CAPS MODE
ENGER"}AT 3,25;"2" , THEM ENTER-;c«
45 PRINT AT 4,01"EXPRESS FREIG 100 PRINT AT 16,8;"PLEASE WAIT'
m
HT";AT 4 , 2 5 * "3"
5 0 P R I N T AT 5 , 0 | " O R D I N A R Y FREI 105 RESTORE
GHT • ; AT 5,25?"4" 1 1 0 FOR n= 1 TO 37
55 PRINT HI J"Press any key to 1 15 IF n > —18 THEN GO S U B 7010
conti nue": PAUSE 0 : CLS 120 READ a«
60 PRINT AT 0,12?"TIMETABLE" 130 FOR x =0 TO 7
65 PRINT AT 1,121" " 140 READ a
70 PRINT AT 3,1;"DESCRIPTION 150 POKE USR a * + x , a
TIME DUE CODE" 160 NEXT x

72 PRINT AT 4 , 1 5 ! " I N SECTION" 170 NEXT n


74 PRINT AT 5 , l ; " 179 REM route indicator light
— - _ _ _ _ • 180 DATA "a",0,0,0,24,24,0,0,0
76 PRINT AT 6,0;"UP EXPRESS PA 181 REM up arrow
SS. 1501 1UM01" 182 DATA "b",87,85,87,84,116,0,
78 PRINT AT 7,0;"BRANCH ORD PA 0,0
SS. 1503 2UB03" 184 DATA " c " , 4 , 2 , 1 2 7 , 2 , 4 , 0 , 0 , 0
60 PRINT AT 8 , 0 | " D O W N ORD PA 185 REM d o n n arrow
SS. 1505 2DM05" 186 DATA "d",0,0,0,32,64,254,64
82 PRINT AT 9 , 0 | " U P EXPR. FREI ,32

100 ZX COMPUTING JUNE/JULY 1985


SPECTRUM SIMULATIO
1 8 8 DATA '©•,0,0,0,206,170,170, 238 DATA • 1 • , 0 , 0 , 0 , 0 , 2 4 , 3 6 , 6 6 , 1
170,206 29
190 DATA -f-,0,0,0,169,173,239, 239 REM lever
235,169 240 DATA -m*,0,24,60,60,60,60,6
191 REM road surface 0 , 24
192 DATA -g-,171,85,171,85,171, 241 REM lever frame
85,171,85 242 DATA •n•,231,231,231,231,23
194 DATA -h-,42,85,42,85,42,85, 1,231,231,231
42,85 243 REM route indicator light
195 REM gate warning lights 244 DATA - o - , 0 , 0 , 0 , 24 , 24 , 0 , 0 , 0
196 DATA - i - , 0 , 0 , 0 , 0 , 9 6 , 2 4 0 , 2 4 0 245 REM siding junction arm
,96 246 DATA "p",1,1,1,1,255,8,8,8
198 DATA " j 6 , 1 5 , 1 5 , 6 , 0 , 0 , 0 , 0 247 REM up line open gates
199 REM right gate post 248 DATA •q-,255,129,130,132,13
200 DATA -k",231,103,103,103,10 5,142,177,255
3,103,103,231 250 D^TA "r-,255,141,113,225,33
201 REM closed gates, right ,65,129,255
202 DATA -1-,255,129,193,193,16 251 REM down line open gates
1,185,181,211 252 DATA •s-,255,177,142,135,13
203 DATA -m",203,173,157,133,13 2,130,129,255
1,131,129,255 254 DATA -t-,255,129,65,33,225,
204 REM closed gates, left 113,141,255
205 DATA -n-,255,129,131,131,13 280 GO SUB 7000
3,157,173,203 295 FOR y-0 TO 31
206 DATA -o-,211,181,185,161,19 300 PRINT AT 9,y J -B'
3,193,129,255 305 PRINT AT 12,y;-B"
208 REM track section 310 NEXT y
209 DATA -p-,0,255,0,24,24,0,25 320 FOR x=3 TO 8
5,0 325 LET y=x-3
210 REM l e f t g a t e post 330 PRINT AT x,yi"B"
211 DATA - q - , 7 , 6 , 6 , 6 , 6 , 6 , 6 , 7 335 NEXT x
213 REM d o w n l i n e light arm 340 FOR x=6 TO 12
214 DATA -a-,0,56,68,130,130,13 350 LET y = x - 6I
0,68,56 360 PRINT AT x,yj-R-
216 DATA " b - , 1 , 1 , 1 , 1 , 2 5 5 , 0 , 0 , 0 380 NEXT x
217 REM up line light arn 390 PRINT AT 10,11J"8"
218 DATA -c-,0,0,0,255,128,128, 392 PRINT AT 10,251"B"
128,128 396 PRINT AT 1 1 , 1 0 ! " 9"
220 DATA -d",56,68,130,130,130, 398 PRINT AT 1 1 , 2 6 ; - B"
68,56,0 400 PRINT AT 13,231-R-
221 REM down line colour light 402 PRINT AT 13,221-|•
222 DATA 'e-,0,56,124,254,254,2 405 FOR y - 1 7 TO 2 2
54,124,56 410 P R I N T AT 1 4 , y j - R -
223 REM up line colour light 412 NEXT y
224 DATA -f-,56,124,254,254,254 413 PRINT AT 14,18J-|•
,124,56,0 414 PRINT AT 10,30f-BC-jAT 13,0
225 REM junction indicator j•DEF"
226 DATA - g ' , 2 4 , 1 2 , 6 , 3 , 1 , 0 , 0 , 0 416 PRINT AT 7 , 1 3 1 " 5 b " I AT 8 , 135
227 REM ground disc on • GH" SAT 13,131 -GM-JAT 1 4 , 1 3 J - Sb"
228 DATA 'h*,60,90,153,153,153, 4 1 8 P R I N T AT 8 , 1 5 ? - K - J A T 13,12J
153,90,60 •
229 REM ground disc of* 419 REM up 1i ne
230 DATA •i-,60,70,143,157,185, 420 PLOT 0,73! DRAW 255,0
241,98,60 422 PLOT 0,78! DRAW 255,0
231 REM ground disc arms 423 REM down line
232 DATA -j*,128,128,128,128,25 424 PLOT 0,97: DRAW 255,0
5 , 0 , 0 , 0 426 PLOT 0,102: DRAW 255,0
236 DATA • k • , 0 , 0 , 0 , 2 5 5 , 1 , 1 , 1 , 1 427 REM siding
237 REM junction arm 428 PLOT 133,62: DRAW 46,0

101 ZX COMPUTING JUNE/JULY 1985


SPECTRUM SIMULATION!
430 PLOT 133,37: DRAW 47,0 675 PRINT AT 18,y| INK ikf-M-
431 REM u p branch 677 PRINT AT 19,y; INK 0;'N-
432 PLOT 0,134! DRAW 50,104-134 678 PRINT AT 20,y;-N"
434 PLOT 0,148: DRAW 49,99-148 680 NEXT y
435 REM down branch 700 INPUT " SWITCH ON?(Y/N)-$q«
436 PLOT 0,130: DRAW 50,80-130 710 IF q*=-Y- THEN GO TO 730
438 PLOT 0,124: DRAW 49,75-124 712 IF q*=mym OR q«=*n- THEN G
439 REM loop 1/2 O TO 725
440 PLOT 77,80: DRAW 20,100-80 720 GO TO 700
442 PLOT 78,75: DRAW 20,95-75 725 INPUT -PLEASE SET CAPS MODE
443 REM loop 3/4 , THEN ENTER-tc«: GO T O 700
446 PLOT 198,100: DRAW 20,80-10 730 BEEP .2,50
0 7 5 0 P R I N T AT 1 3 , 3 0 ; INK 6|aE-|A
448 PLOT 197,95: DRAW 20,75-95 T 13,25; INK 2 ; - E - ; A T 13,15; INK
449 REM siding junction 2; - E -
450 PLOT 180,63: DRAW 13,76-63 7 6 0 P R I N T AT 1 3 , 7 ; INK 2;-E-
452 PLOT 181,58: DRAW 13,71-58 7 7 0 P R I N T AT 8 , 0 ; INK 6|"Fa|AT
455 PLOT OVER 1127,103 8,11; INK 2 ; - E - ; A T 8 , 2 4 ; INK 2;-
456 PLOT OVER 1|29,101 F*

457 PLOT OVER 1J 2 6 , 9 8 780 PRINT AT 3,2; INK 2;-F"


458 PLOT OVER 11 2 8 , 9 6 790 PRINT AT 11,8; INK 2;-H-|AT
460 FOR y=16 TO 21 10,15; INK 2 ; - H " ; A T 10,23; INK
470 PRINT AT 8,y|"B' 2;-H-JAT 11,28; INK 2;"H"|AT 14,
472 PRINT AT 1 3 , y j • 26; INK 2 ; - H -

480 NEXT y 800 LET -UJUDUHUSDJDADSDHDDS


496 PRINT AT 8,22;"I" 1S2S3S4S5"
500 PRINT AT 14,16;"•* 805 LET p«=-0302080008110824130
505 PRINT AT 14,17;"B" 61307131513251330110810151023112
510 PRINT AT 13,171- V 81426"
518 REM gates closed 810 DIM 1(14)
520 PRINT AT 9 , 1 4 J " L - J AT 10,14 J 815 REM set all signal locks to
M" ON
522 PRINT AT 1 1 , 1 3 ; " N " I AT 12,13 820 FOR n-1 TO 14
1
; •O 822 LET 1 < n)=1
590 REM * * * * * c a l l second set of 824 NEXT n
graph i cs 830 REM i n i t i a l i s e variables
600 GO SUB 7010 835 LET i k = 0 : LET t r * l
620 PRINT AT 13,30;•8§";AT 13,2 837 LET demo-0
5 ; " B E " I AT 13,15»-8§' 840 LET tr1=0: LET tr2-0
625 PRINT AT 14,26;'H- 845 DIM x (2) : DIM y (2)
630 PRINT AT 13,6;-GOB" 850 LET o t = 0 : LET Rd«0: LET CUM
635 PRINT AT 8 , 0 f Q * ; A T 8,10;'C r d —0
D"jAT 8,23;"CD" 855 REM set king lever lock to
640 PRINT AT 11,7;-CH*;AT 10,22 ON C< g a t e lock to OFF.
;*gH«;AT 10,15;-HB-;AT 11,281"HK 860 LET KL-l: LET LOCK-0
865 REM set time to 1500 hre.
642 PRINT AT 2 , 1 ; * L*;AT 3,2;'P* 867 POKE 23674,41: POKE 23673,5
650 PRINT AT 16,8;-UUUUDDDDDSSS 0: POKE 23672,224
SSKC 1 I 869 DEF FN m(x,y)=<x+y+ABS (x-y
652 PRINT AT 17,8;•JDHSJASHD123 ) ) /2
45L0' 870 DEF FN u()=t65536*PEEK 2367
656 PRINT AT 18,3;"l=ON";AT 21, 4+256+PEEK 23673+PEEK 23672)/(50
2 ; -0« O F F - ^60*60)
660 PLOT 63,32: DRAW 193-63,0: 871 DEF FN t ( ) =*FN m ( F N u ( ) , FN u
DRAW 0,15: DRAW 63-193,0: DRAW 0 ( ) )
,-15 872 LET sthr-INT (FN t ( ) )
668 L E T c»*=*2622522260000034" 873 LET stmi n=INT ((FN t ( ) - s t h r
670 FOR y*8 TO 23 ) *60)
672 LET i k=VAL c»(y-7) 875 PRINT AT 17,26;"TIME*

102 ZX COMPUTING JUNE/JULY 1985


SPECTRUM SIMULATION
8 7 6 P R I N T AT 18,29f"HRS" set for signal operation
8 7 7 P R I N T A T 1 8 , 2 5 | s t h r J AT 18,2 1 0 4 5 I F K L OR NOT LOCK T H E N GO
7 ; " 0 " ; A T 1 8 , 2 8 1 s t m i n : BEEP .01,2 SUB 1 6 0 0 : GO S U B 1 8 0 0 : GO T O 1 0 1
0 5
880 I N P U T "DEMO M O D E ? ( Y / N ) " ! q * 1 0 5 0 REM * * * f i n d l e v e r fc s i g n a l
885 I F q » « - Y " THEN GO TO 9 5 0 0 c o l o u r and p r i n t position
890 GO SUB 9 0 0 1 0 8 0 GO SUB 3 3 0 0
895 I F t r >—8 T H E N GO SUB 1 0 0 0 : 1 0 9 0 GO TO 1 0 1 0
LET c u m r d - c u n r d ^ r d : GO TO 9 0 0 0 1 1 0 0 REM f i n d e n t r y point
897 GO T O 8 9 0 1 1 0 5 I F d « < 2 TO 3 ) = " U B " AND n t l
9 0 0 REM I H i m main program THEN LET x ( l ) * 3 : LET y(1)~0
9 0 5 LET n t 1 * 0 1 LET nt2»0 1 1 1 0 I F d * ( 2 TO 3 ) = " U B " AND n t 2
9 1 0 I F t r l AND t r 2 T H E N GO TO THEN LET x < 2 ) = 3 : LET y<2)~0
965 1 1 1 5 I F d « ( 2 TO 3 ) - " U M " AND n t l
9 2 0 GO SUB 3 0 0 0 + < t r * 1 0 > THEN LET x U > ~ 9 : LET y(1)=0
a
9 3 0 I N P U T " A C C E P T CODE | ( d « M " 1 1 2 0 I F d * ( 2 TO 3 ) = " U M " AND n t 2
?<Y/N)";q* THEN LET x < 2 > * 9 : LET y < 2 > = 0
935 I F q * = " Y " AND ( t r l OR t r 2 ) 1 1 2 5 I F d « ( 2 TO 3 ) * " D M " AND n t l
THEN LET t r = t r + i : GO TO 9 5 0 THEN LET x < l ) * 1 2 : LET y(l)=31
937 IF " Y " AND NOT t r l AND N 1 1 3 0 I F d « ( 2 TO 3 > ~ " D M " AND n t 2
OT t r 2 T H E N LET t r i a l s LET ntl* THEN LET x ( 2 ) = 1 2 : LET y(2)=31
IS LET t r * t r + 1 : GO TO 9 5 6 1 1 4 0 REM s h o N t r a i n position
9 4 0 I F q®< > " Y " AND q » < > " N " THEN 1 1 4 5 I F n t l THEN PRINT BRIGHT
GO TO 9 3 0 1? OVER H A T x ( l ) , y t l ) | " Q *
9 4 5 I F q « ~ " N " THEN GO TO 9 6 0 1 1 5 5 I F n t 2 THEN PRINT BRIGHT
9 5 0 I F t r l THEN LET t r 2 = l : LET 1J OVER 1 | A T x(2),y(2)|"0-
n t 2 = l : GO TO 9 5 6 1 1 6 0 RETURN
954 LET t r l « l : LET ntl~l 1 1 7 0 REM * * * d r i v e t r a i n * * *
9 5 6 P R I N T AT 0 , 3 } " T R A I N " ; d « ; " 1 1 7 4 P R I N T AT 0 , 3 | " OPERATE TR
accepted• A I N CONTROLS
9 5 8 GO SUB 1 1 0 0 : GO S U B 1 0 0 0 : G 1175 PRINT AT 1 , 3 1 " S H O R T FLASH:
O SUB 1 1 7 0 : RETURN key or * 8*
9 6 0 I F NOT t r l AND NOT t r 2 T H E N 1176 PRINT AT 2 , 3 J-LONG FLASH:
GO SUB 1 0 0 0 : RETURN key Q' or i pi •
9 6 5 GO SUB 1 0 0 0 : GO SUB 1 1 7 0 : R 1 1 7 7 P R I N T AT 3,3|" Key 'S* t
ETURN o ca11 box
1 0 0 0 REM l e v e r f r a m e operation 1178 PRINT AT 4 , 3 1
1 0 0 5 GO S U B 1 8 0 0
1 0 1 0 I F LOCK T H E N GO SUB 1 9 0 0 1 1 8 0 REM * * * * * * * t r l - s h o r t flash!
1 0 1 2 I F NOT LOCK T H E N P R I N T AT tr2-1ong flash
6,6|" 1182 I F t r 2 THEN PRINT BRIGHT
1 0 1 5 INPUT "ENTER LEVER C O D E " J r * 0 J OVER 1J AT x ( 2 ) , y ( 2 ) } "Q-: PAUS
1 0 2 0 I F L E N r * < > 3 AND r « < > " R S " T E 15
HEN GO TO 1 0 1 5 1183 IF tr2 THEN BRIGHT
PRINT
1 0 2 5 I F r * * " R S " THEN RETURN 1? OVER 1J AT x(2),y(2)I"0-: PAUS
1 0 3 0 I F r « ( l TO 3 > » " C O 0 " T H E N G E 15
O SUB 3 2 0 0 : GO T O 1 0 1 0 1184 IF trl THEN PRINT BRIGHT
1 0 3 2 I F r « ( l TO 3 > * " K L 0 " THEN G 0f OVER 1|AT x(l),y<lM"Q*
O SUB 3 1 0 0 : GO TO 1 0 1 0 1185 IF trl THEN PRINT BRIGHT
1 0 3 4 I F r » ( l TO 3 ) * " C 0 1 " T H E N G 1 ! OVER 1|AT x(l),y<l)J"0"
O SUB 3 2 5 0 : GO TO 1 0 1 0 1186 IF INKEY»«"" THEN GO T O 11
1 0 3 6 I F r « ( l TO 3 ) » " K L 1 " T H E N G 82
O SUB 3 1 5 0 : GO TO 1 0 1 0 1190 I F t r l THEN PRINT BRIGHT
1 0 3 8 I F r » < 3 > < > " 0 " AND r»<3X>"i 0f OVER 1 I A T x ( l ) , y ( l ) f 9"
" THEN GO TO 1 0 1 0 1191 I F t r 2 THEN PRINT BRIGHT
1 0 3 9 I F r * ( 1 ) < > " U " AND r « U X > " D 0! OVER H AT x(2),y(2)i Q-: PAUS
" AND r * ( 1 ) < > " S " T H E N GO T O 1 0 1 E 15
0 1192 I F I N K E Y « = " S " THEN GO TO 2
1040 REM f i r s t check interlocks 000

ZX COMPUTING JUNE/JULY 1985 103


SPECTRUM SIMULATION!
1193 IF t r l THEN GO S U B 5000 HE BUFFERS! "
1194 IF tr2 THEN GO S U B 3200 1540 PRINT AT 1,0; FLASH 1| BRIG
1195 IF NOT t r l THEN LET ptl=0: HT li INK 2;"CONDUCT ACCIDENT IN
LET pt2=0: LET pt3«0: LET pt4=0 VESTIGATION!"
1196 IF NOT tr2 THEN LET vtl=0: 1550 PRINT AT 2,2i INK 2i" KE
LET vt2=0: LET vt3~0: LET vt4=0 Y *R* TO TRY AGAIN
1200 REM ****check for signal at 1560 PRINT AT 3,2; INK 2i"
danger KEY *E * TO END
1202 IF INKEY*="8- AND x(1)<10 A 1565 FOR n=15 TO 10 STEP -1: BEE
ND ATTR (x<1)-l,y<1>+1>=58 THEN P 10/n,n: NEXT n
GO TO 2000 1570 IF INKEY«="R" THEN RUN
1204 IF INKEY<="5" AND x(l>>10 A 1580 IF INKEY*="E" THEN STOP
ND ATTR (x(1)+1, y(1)-1)=58 THEN 1590 GO TO 1570
GO T O 2000 1600 REM Naming routine -
1206 IF INKEY*="P" AND x(2)<10 A attempting interlock override
ND ATTR <x(2)-l,y<2)+l)=58 THEN 1610 FOR n=l TO 10
GO TO 2000 1620 BEEP .1,50
1208 IF INKEY»=*Q" AND x(2)>10 A 1630 NEXT n
ND ATTR ( x ( 2 ) + l , y ( 2 ) - l ) = 5 8 THEN 1640 PRINT AT 1,3J FLASH 1| INK
GO TO 2000 2 i " GATES MUST BE OPERATED!
m
1210 IF INKEY»="5" OR INKEY»="8"
THEN GO S U B 2100 1650 PRINT AT 2,3t INK 2i" KIN
1220 IF INKEY»="Q* OR INKEY*="P" G LEVER MUST BE *ON*
THEN GO S U B 2200 1660 PRINT AT 3,3; INK 2;" ALL
1230 REM IHHHkheck if train hit SIGNALS MUST BE *ON*
buf f e r s 1670 PRINT AT 4,3; INK 2;"PULL S
1235 IF <y<l)<«17 AND x(l)=14 AN IGNAL IF KING LEVER OFF"
D t r l ) OR l y ( 2 K « 1 7 AND x(2)«14 1680 PAUSE 100
AND t r2) THEN GO TO 1500 1700 LET o*="

1240 REM check for train out of
s e c t i on 1710 PRINT OVER 1|AT 0,3io«;AT

1244 IF (y(1)<0 OR y<1)>31) AND 1,3 J o*{AT 2,3io«;AT 3,3{o*iAT 4,


t r l THEN LET trl=0: GO TO 2000 3 Jo*
1245 IF (y(2)<0 OR y(2)>31) AND 1720 RETURN
t r2 THEN LET tr2=*0: GO TO 2000 1800 REM lever frame header
1290 REM < I B M M II c h e c k trains not 1810 LET o«="
m
c o l 1i ded
1820 PRINT AT 1,3J" OPERATE LE
1295 IF x(1)*x(2) AND y(l)»y(2) VER FRAME
THEN GO T O 1400 1830 PRINT AT 2,3i" Key *RS* w
1350 REM If all O.K.,repeat for hen route set. "
next inkey entry 1840 PRINT AT 3,3;o*|AT 4,3io*
1355 IF t r l THEN PRINT BRIGHT 1850 RETURN
l; OVER 1 ; AT x d J . y l l U ' O " 1900 REM road t r a f f i c delay
1356 IF tr2 THEN PRINT BRIGHT 1910 LET rd-INT <<t<(FN t ( ) ) * 6 0 *
1| OVER HAT x<2> , y ( 2 ) f "Q- 6 0 ) - o t > / 6 ) . 5 )
1358 BEEP .1,40 1920 PRINT AT 6,6;*Aggro=";rd;AT
1360 GO TO 1190 6,16;"decibels"
1400 REM trains collided 1950 RETURN
1420 PRINT AT 0,0) FLASH li BRIG 2000 REM JHHHHtreturn to operate
HT li INK 21" YOU CRASHED INTO O s i gnals
THER TRAIN!" 2 0 0 2 I F d e m o AND LOCK THEN GO S
1440 PRINT AT 1,0; FLASH lj BRIG UB 1 9 0 0 : GO T O 2 0 2 0
HT li INK 2J"CONDUCT ACCIDENT IN 2003 IF demo AND NOT LOCK THEN
VEST I G A T I O N ! " GO T O 2020
1460 GO TO 1550 2005 LET o«="
*
1500 REM hit siding buffers
1520 PRINT AT 0,0| FLASH 11 BRIG 2006 IF NOT LOCK THEN PRINT AT
HT li INK 2J " YOU CRASHED INTO T 1,3 i d*: GO TO 2015

104 ZX COMPUTING JUNE/JULY 1985


SPECTRUM SIMULATIO
2007 GO S U B 1900 3207 PRINT AT 18,23;* •
2010 PRINT AT 1,3; FLASH 1|" 3208 PRINT AT 21,23; INK 4;"M-
REM:ROAD TRAFFIC! 3210 GO S U B 7000
2015 PRINT AT 0,3jo«|AT 2f3»o*;A 3216 FOR n=l TO 5
B
T 3 , 3 ; a * I AT 4,3io« 3218 PRINT AT 7,15; INK 2;*I ;AT
2020 BEEP 1,45: BEEP 1,45 14,12; INK 2;"J-: BEEP .3,30
2030 IF t r l THEN PRINT BRIGHT 3219 PRINT AT 7,15» INK 7;-I-;AT
11 OVER 1|AT x(1),y(1)I"Q" 14,12; INK 7;"J-: BEEP .3,30
2035 IF tr2 THEN PRINT BRIGHT 3220 NEXT n
U OVER 1|AT x(2),y(2)I"O" 3221 PAUSE 20
2040 RETURN 3222 PRINT AT 9, 14; •P";AT 12,13;
• p*
2100 LET y ( 1 ) - y ( 1 ) + <INKEY*» * 8 " ) -
<INKEY*="5") 3223 PRINT AT 10,14;- - 1 AT 11,13
• • •
2110 LET x(1)-x(1)+(INKEY*®*8* A »
ND p13)-(INKEY*—'8" AND ptl) + (IN 3224 GO SUB 7010
KEY*=-5" AND pt2)-(INKEY»*"5• AN 3225 PRINT AT 8,13;"OR-;AT 13,13
D pt4) ; • 51"
2120 RETURN 3227 LET ot«(FN t ( ) ) * 6 0 * 6 0
2200 LET y(2)=y(2)+(INKEY«='P")- 3230 REM set gate lock to ON
(INKEY**"9") 3235 LET L0CK*1
2210 LET x(2)=x(2)•(INKEY»='P" A 3245 BEEP .3,30: BEEP .3,30: RET
ND vt3)-(INKEY*=*P* AND vtl>+CXN URN
SS
KEY«=*Q* AND v t 2 ) - ( INKEY* *G" AN 3250 REM close gates
D vt4) 3255 REM check if KL set to ON
2 2 2 0 RETURN
3260 IF KL~0 THEN GO S U B 1600:
3000 REM JHHHHHHfrtr a i n codes for
GO S U B 1800: RETURN
scheduled arrival tines:
3265 PRINT AT 21,23;* •
1501,1503,1505,1509 hours.,etc.
3270 PRINT AT 18,23; INK 4;*M-
3010 LET d » « - l U M 0 1 - RETURN
3273 GO S U B 7000
3020 LET d»«"2UB03* RETURN
3276 FOR n-1 TO 5
3030 LET d*="2DM05" RETURN
3277 PRINT AT 7,15; INK 2;"I";AT
3040 LET d*="3UM09• RETURN
14,12; INK 2 ; " J B E E P .3,30
3050 LET d«="2UB12* RETURN
3278 PRINT AT 7,15; INK 75"I-}AT
3060 LET d*»*2UM16" RETURN
14,12? INK 7 i • J - : BEEP .3,30
3070 LET d**"4DM20* RETURN
3279 NEXT n
3100 REM open g a t e s - p u l l off 3280 PAUSE 20
k i ng 1 ever 3284 PRINT AT 8,13;"Gh«;AT 13,13
3105 IF LOCK-0 THEN GO S U B 1600 ; " gh-
: GO S U B 1 8 0 0 : RETURN 3285 PRINT AT 9,14;-L•;AT 10,14;
3 1 2 0 P R I N T AT 1 8 , 2 2 ; " " - M"
3 1 3 0 P R I N T AT 2 1 , 2 2 ; INK 3;"M" 3287 PRINT AT 11,13;-N-;AT 12,13
3135 L E T KL—0 i " Q"
3140 BEEP . 1 , 4 5 : RETURN LET LOCK-0
3290
3150 REM close gates-return 3292 BEEP .3,30: BEEP .3,30
king lever 3293 GO S U B 7010
3151 REM f i r s t check all signals 3295 LET cumrd=cumrd*rd
set to danger 3296 LET rd-0
3152 FOR n=l TO 14 3297 RETURN
3153 IF l ( n ) « 0 THEN GO S U B 1600 3300 REM lever colour
: GO S U B 1800: RETURN 3305 LET ik=*2
3 1 5 4 NEXT n 33 10 IF r$(1)*•S * THEN LET ik=0
3170 PRINT AT 21,22; INK 3;* • 3312 IF r«(2)«*D" THEN LET i k=6
B
3180 PRINT AT 18,22; INK 3;*M» 3314 IF r«(l)=-K THEN LET i k=3
3185 LET KL=1 3316 IF r«(l TO 2)*"CO" THEN LE
3190 BEEP .1,45: RETURN T i k« =4
3200 REM open gates 3318 IF r«(l)="D" AND r»(2)="J
3201 REM check if KL set to ON. THEN LET ik=5
3205 IF KL=0 THEN GO S U B 1600: 3319 LET x —0
GO S U B 1800: RETURN 3320 FOR p=l TO 27 STEP 2

ZX COMPUTING JUNE/JULY 1985 105


SPECTRUM SIMULATION
3325 IF s»(p TO p*l)-r%(1 TO 2) 3910 IF u«=-E" THEN PRINT INK
THEN LET x=7*((p+1>/2> ikjAT x,y|*E»: BEEP .4,25
3330 NEXT p 3920 IF u$="F* THEN PRINT INK
H B
3340 REM abort if no match ikiAT x,y; F : BEEP .4,25
3345 IF x-0 THEN RETURN 3930 IF u*="I" THEN PRINT INK
3350 REM lever to 'on' i k J AT x , y i " I " : BEEP .4,10
3355 IF r$(3)="l" THEN PRINT AT 3940 IF u*=#H" THEN PRINT INK
21,x|- - 1k J A T X,y»-H-: BEEP .4,10
3356 IF r%(3)="1" THEN PRINT AT 3950 IF u«»"G" THEN PRINT INK
18,x{ INK iki-N- ikiAT x , / ! " £ • : BEEP .4,25
3370 REM lever to 'off* 3960 REM now alter points
3375 IF r*(3)»-0- THEN PRINT AT 3970 IF r*(3)~"0" THEN. LET a-0
18,xi" " 3972 IF r$(3>="l" THEN LET a=l
3376 IF r*<3>=-0" THEN PRINT AT 3975 LET a*=r*(l TO 2)
21,xj INK 1k J " M " 3980 IF a*="UJ" THEN PLOT OVER
3500 REM signal colour aI 5 0 , 9 8 : PLOT OVER aJ51,103
3510 IF r%t1 TO 2)<>"DJ" AND r%( 3990 IF a*="DJ" THEN PLOT OVER
2)<>"D- AND r * ( 3 ) 1 * THEN LET a}27,103: PLOT OVER a;29,101:
ik=2 PLOT OVER a*26,98: PLOT OVER a
3515 IF r « ( l TO 2)<>*DJ" AND r%< 52 8 , 9 6 : PLOT OVER a?50,74: PLOT
1)< >"S" AND r%(2)< >"D" AND r * ( 3 ) OVER a;51,79
="0- THEN LET ik*=4 4000 IF a*=•SI" OR a*="S2" THEN
-
3517 IF r*<l)=-S- AND r«<3>=*0 PLOT OVER a»76,79: PLOT OVER
THEN LET ik=2 a?77,74: PLOT OVER ai99,96: PLO
3520 IF r * ( l TO 2)="DJ- AND r*(3 T OVER a;98,101
THEN LET ik=0 4010 IF a*="S3- OR a«=•S4" THEN
3530 IF r«(l TO 2)="DJ" AND r«(3 PLOT OVER ai196,96: PLOT OVER
>=•0" THEN LET ik=5 ai197,101: PLOT OVER a?218,74:
3535 IF r«(2)="D -
AND r*(3>»"l" PLOT OVER a;219,79
THEN LET ik=6 4020 IF a*="S5" THEN PLOT OVER
3540 IF r*(2)="D" AND r*(3)= B
0" a?194,77: PLOT OVER a*195,72
THEN LET ik=4 4050 RETURN
3600 REM now find position 5 0 0 0 REM c a l c u l a t e pixel coords,
o-f t r a i n t r 1
3610 LET n=l: LET z=*0
5020 LET ql=175-(x(1)*8)
3620 FOR p~l TO 27 STEP 2
5030 LET q2=168-<x(1)*8)
3630 IF s*(p TO p+l)=r*Cl TO 2)
5040 LET p i =4 M y tl)*8)
THEN LET x=VAL p* <n TO n+1): LE
5050 LET p2=3 +(y<1) * 8 >
T y*VAL p*(n+2 TO n+3): LET z=p:
5100 REM now record if pixel set
LET p=27: GO TO 3650
3640 LET n= n + 4 5J10 LET p11=POINT <pl,ql)

3650 NEXT p 5120 LET pt2=P0INT <p2,q2>

3770 REM now find correct user 5130 LET pt3=P0INT <pl,q2)

gr aph i c 5140 LET p 14=P01NT (p2,ql)

3780 IF x= 3 OR x-8 THEN LET u*= 5190 RETURN


5200 REM calculate pixel coords.
3782 IF x=13 AND y<>6 THEN LET of train tr2
u^'E" 5260 LET w1=175-(x(2)*8)
3785 IF <x=10 OR x=ll OR x~14> A 5270 LET w2=168-<x(2>*8)
m m
ND r * <3)— 0 THEN LET u*="I * 5280 LET vl«4+<y(2)*8)
3790 IF <x«10 OR x~11 OR x= 14) A 5290 LET v2=3+<y<2)*8)
B
ND r«(3)="l" THEN LET u«»'H 5300 REM now record if pixel set
3795 IF x= 13 AND y»6 THEN LET u 5350 LET vtl=POINT (vl,wl)
* G" 5360 LET vt2=P0INT <v2,w2)
3800 REM set signal interlock 5370 LET vt3=P0INT «vl,w2)
3810 IF r*(3)="1" THEN LET 1<<2 5380 LET vt4=POINT (v2,wl)
+1)/2)=1 5390 RETURN
3820 IF r«<3)=-0" THEN LET l((z 7000 REM f i r s t user graphic set
4 1 ) / 2 ) = 0 7005 POKE 23675,88: POKE 23676,2
3900 REM now alter signal 55: RETURN

106 ZX COMPUTING JUNE/JULY 1985


SPECTRUM SIMULATIO
7010 REM second user graphic set 9520 INPUT "ACCEPT CODE ";(d«)S"
7015 POKE 23675,0: POKE 23676,25 ?<Y/N) Y";f«
0: RETURN 9523 GO SUB 1100
8000 REM calculate the time 9524 GO S U B 9900
8010 LET hr=INT (FN t O ) 9525 PRINT AT 4,3; FLASH 1J"Key
8020 LET min=INT ((FN t ( ) - h r ) * 6 0 '8'-drive out of section"
J 9526 GO SUB 1130
8030 IF mi n < 1 0 THEN PRINT AT 18 9527 REM' * * t r a i n out of section
, 2 5 ; h r »AT 1 8 , 2 7 J • 0 " 5 AT 18,28jmin 9528 REM **close gates
: BEEP .01,20 9530 PRINT AT 4 , 3 Jo*
8040 IF mi n > - 1 0 THEN PRINT AT 1 9533 LET h*="UDlUHlUSlKLlC01"
8,25» hr;AT 18,27;min: BEEP .01,2 9535 GO S U B 9900
0 9537 REM accept UP BRANCH ORDINA
8060 RETURN RY PASSENGER,"2UB03"
9000 REM JHHHHfrcalculate overall 9540 LET h*="CO0KL0UH0UJ0"
performance 9542 LET m=10: LET ntl=i: LET tr
9010 CLS 1 = 1: LET tr=2
9020 GO SUB 8000 9545 GO S U B 3000+(tr*10>
9040 IF m i n< = 2 0 THEN PRINT AT 0 9546 INPUT "ACCEPT CODE "J(d«>;"
,0;"GOOD RUNNING TO TIMETABLE": ?(Y/N) Y"ff*
LET score=100: GO TO 9070 9548 GO SUB 1100: GO S U B 9900
9050 IF m i n >=40 THEN PRINT AT 0 9550 PRINT AT 4,3| FLASH lJ'Key
, 0 i •OVER-RAN TIMETABLE BY >20min *8 * - d r i ve to UP starter"
s.": LET score=0: GO T O 9070 9551 GO S U B 1180
9060 LET score=INT (200-(5*min)) 9552 REM * * t r a i n in section
9070 PRINT AT 1,0?"TRAIN RUNNING 9553 REM * * c l o s e gates
=";score!"X" PRINT AT 4,3;o*
9130 LET narm=140 9556 LET h»="UJ1UH1KL1CO1"
9110 IF cumrd< =norm THEN PRINT 9558 GO S U B 9 9 0 0
AT 3 , 0 ; 'NORMAL ROAD DELAY*: LET 9560 REM Haccept DOWN ORDINARY
3 r
33 1 : GO TO 9150 PASSENGER,"2DM05"
9120 LET aggro=INT ((140/cumrd)* <?564 LET hS= " CO0KL0DH0"
100) 9565 LET m=7: LET ntl=0: LET nt2
9150 PRINT AT 4,0?-ROAD TRAFFI C= =1: LET tr2=l: LET t r - 3
"jaggro;"%" 9567 GO SUB 3000+(tr*10)
9160 LET total=1 NT (aggro • score) 9568 INPUT "ACCEPT CODE ";(dSM"
/2 ?(Y/N) Y"Jf«
9180 PRINT AT 6,0;"OVERALL RATIN 9570 GO SUB 1100: GO S U B 9900
G = " i t o t a l ; "%" 9573 PRINT AT 4,3; FLASH II"Key
9200 PRINT AT 18,11;"PROGRAM END *9 * - d r i ve to DOWN starter"
ED:";AT 18,29;"hrs" 9575 GO S U B 1180
9300 STOP 9580 REM * * t r a i n in section
9500 REM demo mode 9581 REM H c l o s e gates
9501 LET demo=l 9582 PRINT AT 4,3;o*
9502 PRINT AT 1,6; INK 2;"DEMO M 9585 LET h<="DH1KL1C01"
ODE' 9587 GO SUB 9900
1
9503 PRINT AT 2 , 3 » "PRESS * ENTER 9589 REM f f t r a i n in section
KEY 9590 REM * * open gates
9504 PRINT AT 3,3?"WATCH CODE AN 9591 REM * * set route for DOWN
D SCREEN" MAIN PASSENGER
9505 DIM h*(20) 9593 LET h*="CO0KL0DA0DS0"
9506 LET o*=" 9595 LET m=10
M
9597 GO S U B 9 9 0 0
9507 REM *****accept UP EXPRESS
9600 P R I N T AT 4 , 3 ; FLASH l?"Key
PASSENGER,"1UM01" 'Q'-d r i v e o u t of section"
9510 LET h*="CO0KL0US0UH0UD0" 9602 GO S U B 1 1 8 0
9515 LET m=13: LET n t l - l : LET nt' 9603 LET ntl=0: LET nt2=0: LET t
2=0: LET tr1=1: LET tr=l r 2=0
9517 GO S U B 3000+(tr*10) 9605 REM * * train in section

ZX COMPUTING JUNE/JULY 1985 107


SPECTRUM SIMULATION
9606 REM *-* reset for UP BRANCH 9660 PRINT AT 2,0; FLASH l;"Key
PASSENGER *S* for performance rating "
9608 PRINT AT 4,3So* 9662 PRINT AT 3,0; FLASH 1i"of f
9610 LET "DS1DA 1 S 3 0 U S 0 " irfit 3 trains of timetable."
9615 GO S U B 9900 9665 IF INKEY«="S" THEN GO T O 9
9617 PRINT AT 4,3? FLASH l;"Key' 000
8'-run to down line-Key S" 9667 GO TO 9657
9618 PRINT AT 5,4; INK 2; FLASH 9900 REM find lever code
1J*Do NOT drive out of section* 9910 FOR e=» 1 TO m STEP 3
9620 GO SUB 1180 9920 LET r*=h*(e TO e*2>
9622 IF trl=0 THEN CLS : GO TO 9925 INPUT "ENTER LEVER CODE •; (
9655 r S ) ; f *
9625 REM train in section 9930 IF r*="CO0" THEN GO S U B 32
9626 REM * * reset for DOWN line 00: GO TO 9972
9628 PRINT AT 4,3io*JAT 5,3Jo« 9940 IF r*="KL0" THEN GO SUB 31
9630 LET "US1S31DA0DJ0DS0DH0" 00: GO TO 9972
9632 LET m=16 9950 IF r*="C01" THEN GO S U B 32
9633 GO SUB 9900 50: GO TO 9972
9635 PRINT AT 4 , 3 J FLASH li"Key 9960 IF r*="KLl" THEN GO SUB 31
' 5 ' - d r i v e out of section" 50: GO TO 9972
9638 GO SUB 1180 9970 GO SUB 3300
9640 REM H t r a i n s out of section 9972 IF LOCK THEN GO S U B 1900
7
9641 REM * * c l o s e gates 99~ 3 IF NOT LOCK THEN PRINT AT
9645 PRINT AT 4,3io* 6,6;"
9647 LET "DH1DS1D31DA1KL1CO1" 9975 NEXT e
9650 GO SUB 9900 9980 LET r*="RS"
9655 PRINT AT 1,6; FLASH l; INK 9985 INPUT "ENTER LEVER CODE " ! <

2;"END OF DEMO " r*);f*


9657 BEEP .5,50 9990 RETURN

T o r t o i s e Wise
ed the noisy city to savour the
tranquil delights of the country.
We decided to go down and
see them for a day.

More lines from a parent who gets "What will we do all day?"
asked number two son from the

left behind. back seat of the car.


"Play on their Spectrum of
course" said his brother. " I
remembered to bring some
games. Did you?"
Some houses d o n ' t have two hares, standing together in This old Tortoise handled the "Hold on a moment" I put in.
chimneys anymore. Ours does. the front garden, their faces powerless hours in style. An old "What makes you two think
Chimneys can catch fire. Ours drawn with anxiety. The eldest oil lamp, coffee on the camping they will have a micro? Never
did. Last week. was clutching the Spectrum stove, and a good book. mind a Spectrum. Not everyone
"Don't panic," 1 screamed, under one arm, his cassette The hares went frantic. The has a computer in their home
as somewhere up in the soot an recorder under the other and he Spectrum sat silent and still in you know." Their jaws drop
inferno raged. And no one else in had a tangle of leads around his front of the dark screen. They open and they turn a little pale.
the house did. I know that neck. His younger brother stood rattled its keys in vain. They They inch closer to each other
because as I 'phoned for the guard over the portable T.V., a sweated by candlelight. They on the seat.
Fire Brigade I could not help but box of tapes and a bundle of paced around in the dark fidget- "They don't ??????" they
be impressed by the way my magazines. ting and groaning. Waiting for gasp.
two sons calmly and quietly "We saved all the valuables" their lifeline to be reconnected. "They might not even have
made their way past me to go they announced as I approach- "This is Boring" they moan- electricity," " I told them.
upstairs. ed. "Is it safe to take them all ed with the regularity of the pips "Oh no," they croaked in
In fact I did not see them back in now?" on a digital watch. "What can horror. "Not again."
again for the next half hour. I didn't sleep too well that night. we do?" "It's a hard life," I joked.
" G o o d n i g h t and Thank One afternoon, a week "This has been the worst "It's the end of the world,"
you," said the Fire Chief when it earlier, our humdrum existence night of our lives", they wailed they squawked. I chuckled
was all over. " I should get the had been livened up by some as they went to bed in Com- quietly to myself and thought,
boys in now. It's all safe, and it bright spark a few doors away puterless Darkness. Can it be so " t h i s balances t h i n g s up
must be pretty cold out there". who had inadvertently done easy to throw them off their somewhat. One up for the Tor-
Boys? Out? Where? something shocking to the elec- stride, I wondered? That night I toise in the great Race. It doesn't
I started after the happy tricity cable supplying our slept quite well. Tortoise wise. bother me." And for a while I did
fireman into the night. Then I houses. We were without elec- Then there was the invitation not feel as if I was quite so far
saw them. My two sons, the tricity for most of that evening. to visit some people who had fl- behind.

108 ZX COMPUTING JUNE/JULY 1985


Getting a program typed in is often only the
start of your problems. Ed to the rescue.
Typing in a program is a useful
exercise. Apart from the pa-
tience required, techniques
learned and the end program to
be used, probably the most
educational part of it is tracking
down the bugs introduced by
yourself or occasionally by our
publication system.
In debugging you gain a
much deeper insight and
understanding on how the pro-
gram actually works than by
merely typing it in, but tracking
down these errors is an art in
itself and needs some skill. So
here are some tips to help you in
your efforts when faced with
that cryptic error report!

1 NEXT without FOR


Look back through the program,
either the loop has not been set
up — no related FOR 'letter' =
No1 TO No2 line, or the letter
has been re-used as an ordinary
variable within the loop with a
LET 'letter' = No.

2 Variable not found


This is one of the most common 3 Subscript wrong 7 RETURN without GOSUB this and it can happen on an auto
errors. Again, the problem may Connected with DIM A(No) or Somehow the computer has start program (saved with a LINE
not lie in the line where the error DIM A$(No). If the number in the reached a RETURN command number). Good programming
was detected and reported. If brackets on the line where the other than via a GOSUB instruc- usually RESTORES to the cor-
there is only one variable, which error is reported is greater than tion. Check a GOTO hasn't been rect line number before using
may be one or more letters or a the one in the original DIM state- entered in place of a GOSUB. READ.
string ($) variable, then that is ment, is not an integer or is less Check for a missing GOSUB.
the problem. There may be more than 1, then this report is
than one variable in the line sec- I FOR without NEXT
generated. If the subscript —
tion reported and you will have B Integer out of range See report 1 but this time the
number in brackets — is a
to identify the offending one. In An integer (whole number) NEXT is missing!
number then check and change,
a line PRINT AT Y,X;A$ the however, if it is a variable then either as a number of variable is
culprit could be Y or X or A $. To follow the procedure for tracing too big or small and you are at-
tempting to do something like Note that the letters I have used
find out which of them is caus- variables. It has probably ex- for examples could by ANY let-
ing the problem (it may be more ceeded the limits, look for lines PRINT AT 0,33 - not allowed!
Check any variables involved as ters not just A$,X,Y etc and de-
than one) type in turn as a direct with the variable being altered pend on the particular choice of
command: with + - * / : if necessary add per report 2 and trace it back
through the program looking for the programmer.
limiting code. For example: This is by no means a com-
adjustments to it by + — # / :
PRINT Y Enter/Newline Add limiting code if needed — prehensive list but I have tried to
PRINT X Enter/Newline IF X >10 THEN LET X = 10 see report 3 cover many of the most com-
PRINT A$ Enter/Newline mon error reports. Personally, I
4 Out of memory get almost as much satisfaction
Note which produces the error As well as for programs which E Out of DATA from debugging as I do from pro-
report. Now look back through are too big, it may happen if the A Spectrum problem. Check the gramming I do assure you,
the program printout for the line previous program set RAMtop. number of DATA items match however, that there is absolute-
which sets it up — usually a LET Before despairing, enter CLEAR the number of READs; usually ly no truth in the rumour that we
or FOR command. Did you leave USR " a " - 1 on the Spectrum: on one (or more) has been missed deliberately inject bugs into our
it out? Does the program get the ZX81 SAVE the program, out. Attempting to reread a listings in order to introduce you
there "or has a GOTO/GOSUB turn the machine off and on, DATA list without first using a to the dubious delights of
been wrongly addressed? then reload the program. RESTORE command will cause debugging!

ZX COMPUTING JUNE/JULY 1985 109


I

ZX81 PROGRAMMIN
leaving the stack/queue like this:
aM or l
I

. fj
»

As you can see, both QP and SP


move one place to the right ( + 1)
for each item on the queue. To
stop the queue running over the
end of available memory, array
Advanced techniques discussed and UO is treated as a circular list or
racetrack. This means that if at
presented by Frazer Melton of any time QP or SP exceed the
upper limit of UO they will
Lincolnshire. automatically have their values
changed to 1 to point at the left-
most (lowest subscript) element
in array U. (Lines 9 0 0 3 &
STACKS & QUEUES — LIMIT (Lines 9 1 1 6 & 9117).
A variable called the Stack
been popped off. An example of
correct nesting is: PUSH A,
9023).
IN THEORY Pointer — SP — holds the loca- PUSH B, PUSH C, POPC, POP B,
Strings can also be PUSHED
and POPPED; but, because they
tion of the last item pushed onto POP A. An example of incorrect cannot be stored in a numerical
A computer stack stores the stack. Assuming the stack nesting: PUSH A, PUSH B, POP
variables in the same way as a array, the actual string of
consists of variables A, B, and C A, POP B. (This fails because the characters is dumped in string
stack in "the real world". For — C being the most recent entry value returned by POP A will be
example, if you put a £ 1 coin on array U$. Pointers to the first
— the stack will look like this: the value pushed on by PUSH B). and last character are PUSHed
a table, and on top of that a 1 p, Stack operations can be com-
and on tope of the 1 p a 50p you onto the stack/queue.
plex:
will have made a stack of coins. The operations involved are
The first coin onto the stack complex but can be summaris-
PUSH A, PUSH B, PUSH C, ed:
— the £ 1 — is on the bottom of POP C, PUSH D, PUSH E, POP E,
the stack. The last — the 50p — PUSH String:
The line connecting SP to POP D, POP B, POP A 1) Write string into U$
is on the top. In computer terms variable C indicates that the con-
you have PUSHed the coins on- 2) PUSH pointer to first
tents of SP are to be treated as but they must always be cor- character onto stack/Queue
to the stack. When it comes to the address of the top stack ele- rectly nested.
taking the coins off the stack 3) PUSH pointer to last
ment in array U(). B is stored in Queues need 2 pointers: one character onto stack/queue
you are forced to do so in reverse U(SP-1). A is stored in U(SP-2>. to tell the computer where to
order: first the 50p, then the 1 p, POP String (Off stack):
The sequence of operations write data in, and another to tell 1) POP Pointer t o last
and finally the £1. The last item for a PUSH is as follows: it where to read data out. In the
onto the stack — in this case the character, (off stack)
programs below QP (Queue 2) POP Pointer t o f i r s t
50p — is always the first off. LET S P = S P + 1 pointer) is the data-out pointer,
Because of this, stacks are call- character (off stack)
LET U(SP) = T and SP (Stack pointer) the data- 3) Read string from U$
ed LIFO structures (LIFO = "Last in pointer. SP is common to the
In: First Out"). POP String (Off queue):
— leaving the stack like this: queue and stack to allow easy
In computer terms you have transfer of data between them, 1) POP pointer to first
POPped the coins off the stack. and to keep demands on com- character (off queue)
Queues, in contrast to stacks, puter memory to a minimum. 2) POP pointer t o last
are FIFO structures One consequence of having a character (off queue)
(FIFO = "First In: First Out"). c o m m o n data e n t r y point 3) Read string from U$
This means that the order of It is necessary to add one to the
stack pointer before the data is (through the stack pointer) is In diagramatic form PUSH String
items onto a queue in the same that a PUSH to the queue is iden- might look like:
as the order off. written onto the stack because
the stack pointer always points tical to a PUSH to the stack. A
Imagine a queue of people of POP from the queue, however, 1) Write string into U$
to the topmost item on the
a supermarket checkout. The is opposite in effect to a stack
stack. The next free space is
person at the front of the queue POP: ie it pops off the first var-
always at U(SP + 1 )
(ie the first person to join the riable to be pushed onto the
queue) will be the first to be POP works on similar lines to
PUSH, but here the data transfer stack/queue.
served and the first to leave the Assuming, once more, that
queue. The person at the rear of is from the stack to the tem-
porary variable T: variables A, B, and C have been
the queue will have to wait for all PUSHed onto the stack (and
those ahead to be served before queue), array UO will look like
he/she is served. The same LET T = U(SP)
LET SP = SP-1 this: (A, B, and C are on the stack/-
terms (PUSH & POP) are used queue before PUSH string)
for movements of items onto in An/- i
(PUSH) and off (POP) a queue. which, by reversing the PUSH l
sequence, returns the stack to „ t 2) PUSH pointer to first
its original form: SP character onto stack/queue
STACKS & QUEUES
— IN PRACTICE SP points to the items most
recently PUSHed onto the
Both stacks and queues require stack/queue; QP to the first item y ,
PUSHed onto the stack/queue.
an area of memory to be reserv-
ed for their use. In the stack/- Pushes and pops to and from a A POP from the queue does QP
SP
f 1

queue program listed below stack must be nested. This this:


numerical array UO is set aside means that, in the previous ex-
for this purpose. The maximum ample, A could not be popped LET T = U(QP) 3) PUSH pointer to last
size of UO is set to the value of off the stack until T,C and B had LET QP = QP + 1 character onto stack/queue

110 ZX COMPUTING JUNE/JULY 1985


ZX81 PROCRAMMIN
• ••I CHI— 1 LET var = TMP
POP var from Queue:
UF— - -
O i
ABC* , GOSUB POP Q TMP
QP " LET var = TMP
SP
PUSH string$ to Stack/-
POP (stack) string does the Queue
reverse: LET T$ = string $
1) POP pointer to last GOSUB PUSH STRING
character off stack POP string $ from Stack:
UK GOSUB POP S STRING

u POM TAR
LET strings$ =T$
Ut ABC* POP string $ from Queue:
GOSUB POP Q STRING
OP-
SP-
It LET string$ =T$

2) POP pointer to first Lines 9 0 0 1 , 9 0 0 2 , 901 1,


character off stack 9012, 9021, 9022, 9031,
9032, 9057, 9058, 9067, Stack and queue subroutines
9068, 9071, 9076, 9087,
9090-7 detect error conditions 9000 REM + + + + PUSH TMP + + + +
(ie trying to POP a non-existent 9001 LET COUNT = COUNT+1
item or PUSHing too many items 9002 IP COUNT>LIMIT THEN GOSUB STACK ERROR
for array U to contain). If you can 9003 LET SP = SP+ 1
be certain that no such error 9004 IF SP>LIMIT THEN LET SP= 1
3) Read string from U$ (into conditions will occur they can be 9005 LET U(SP) = TM P
omitted. 9006 RETURN
Lines 9092 to 9097 form a
"Jump Table". Whenever an er- 9010 REM + + + + POPSTMP + + + +
ror is detected the program 9011 LET COUNT = COUNT-1
jumps to one of these lines. In 9012 IF COUNTCO THEN GOSUB STACK ERROR+ 1
turn, they send the program to 9013 LET TMP= U(SP)
an error correcting subroutine. 9014 LET SP= SP - 1
One possibility for such a 9015 IF SP<1 THEN LET SP= LIMIT
subroutine is to have an alter- RETURN
USING THE nate memory area for the stack/-
9016
SUBROUTINES queue. The exact details are left 9020 REM + + + + POP Q TMP + + + +
to the stack/queue user. 9021 LET COUNT = COUNT-1
All data movements between Before the stack/queue is us- 9022 IF COUNT<0 THEN GOSUB STACK ERROR + 2
the stack/queue and your pro- ed it must be initialised. GOSUB 9023 LET TMP= U(QP)
gram are through the temporary 9070 at the start of your pro- 9024 LET QP = QP + 1
variables TMP and T$: gram will do this. Lines 9080 9025 IF QP>LIMIT THEN LET QP= 1
and 9084 dictate the size of the 9026 RETURN
PUSH var to Stack/Queue: memory area for the stack/-
LET TMP = var queue. You can put your own
GOSUB PUSH TMP values in here (LET LIMIT = 5 0
POP var from Stack: and DIM U$(200> are a useful Stack and queue (string) subroutines
GOSUB POPS TMP size for a small program).
9030 REM + + + + PUSH STRING + + + +
9031 LET OCCUPIED = OCCUPIED + LEN T$
9032 IF OCCUPIED> LEN U$ THEN GOSUB STACK
ERROR + 3
9033 LET SEP = SFP + LEN T$ - 1
>9034 IF SEP>LEN U$ THEN GOTO 9043
9035 LET U$ (SFP TO SEP) = T$
LET TMP = SFP
t
9036
9037 GOSUB PUSH TMP
9038 LET TMP = SEP
9039 GOSUB PUSH TMP
9040 IF SEP= LEN U$ THEN LET SEP = 0
9041 LET SFP = SEP+1
9042 RETURN
9043 LET CUT = LEN U$-SFP+1
9044 LET SEP = SEP-LEN U$
9045 LET U$ (SFP TO ) = T$( TO CUT)
9046 LET U$ ( TO SEP) = T$ (CUT +1 TO )
>9047 GOTO 9036
9050 REM + + + + POP S STRING + + + +
9051 GOSUB POPS TMP
9052 LET SEP = TMP
9053 GOSUB POPS TMP
9054 LET SFP = TMP
9055 LET T$ = U$ (SFP TO SEP)
9056 IF SEP< SFP-1 THEN LET T$ = U$ (SFP
TO > + U$( TO SEP)
9057 LET OCCUPIED = OCCUPIED-LENS T$
9058 IF OCCUPIED < 0 THEN GOSUB STACK
ERROR + 4
9059 RETURN

ZX COMPUTING JUNE/JULY 1985 111


ZX81 PROCRAMMIN
9060 REM + + + + POP Q STRING + + + + 9090 REM + + + +ERROR JUMP
9061 GOSUB POP Q TMP TABLE + + + +
9062 LET QFP = TMP ? 9092 GOTO ???? (Stack error +)
9063 GOSUB POP Q TMP 7 9093 GOTO???? ( + 1)
9064 LET SEP = TMP ? 9094 GOTO???? ( + 2)
9065 LET T$ = U$ (QFP TO SEP) ? 9095 GOTO???? ( + 3)
9066 IFSEP<QFP-1 THEN LETT$=U$(QFP f 9096 GOTO???? ( + 4)
TO ) + U$( TO SEP) ? 9097 GOTO???? ( + 5)
9067 LET OCCUPIED = OCCUPIED-LENS T$
9068 IF OCCUPIED<0 THEN GOSUB STACK LINES USED: 9 0 0 0 to 9099
ERROR + 5
9069 RETURN
variables used
COUNT Number of items on stack/queue
LIMIT Number of memory locations for stack/-
Stack and queue initialisation routine queue
STACK ERROR First line of jump table
9070 REM INITIAL + + + + + + SP Stack pointer
9071 LET OCCUPIED = 0 UO Array containing stack/queue
9072 LET PUSH TMP = 9 0 0 0 TMP Temporary variable
9073 LET POPS TMP = 9010 QP Queue pointer
9074 LET POP Q T M P = 9020 OCCUPIED Number of characters on stack/queue
9075 LET PUSH STRING = 9030 SEP End of string in U$
9076 LET COUNT = 0 SFP First free character in U$
9077 LET POPS STRING = 9050 U$() String array dump for stack/queue
9078 LET POP Q STRING = 9060 T$ Temporary variable
? 9080 LET LIMIT = ??? PUSH TMP First line of Sub "PUSH TMP"
9081 DIM U(LIMIT) CUT Temporary variable
?
9082 LET SFP= 1 POP S TMP First line of Sub "POP S TMP"
9084 DIM U$(???) POP Q TMP First line of Sub "POP Q TMP"
9085 LET SP = 0 QFP First character of string on queue
9086 LET QP= 1 PUSH STRING First line of Sub "PUSH STRING"
9087 LET STACK ERROR = 9092 POP S STRING First line of Sub "POP S STRING"
9088 RETURN POP Q STRING First line of Sub "POP Q STRING"

Micronet
delay to long before pressing w i t h a clearing bank. Not-
ENTER again. Normally you tingham Building Society over-
should wait until the remote came their clearing problems
computer has paused before through an association with the
pressing CAPS SHIFT /ENTER. Bank of Scotland. To confuse
On Telecom Gold you may need the issue, Bank of Scotland have
Since Prism (the distributors of BREAK while looking at one of to send the RETURN code since started their own separate
the VTX5000 modem adaptor the menus and type in the several times before the remote home banking service on
for the Spectrum) ceased following line of BASIC: computer "wakes u p " , you Prestel. In many ways the two
trading, it has been possible to may also find it useful to type services are very similar, allow-
buy a VTX5000 for discount 800 INPUT t$:LET the command: ing the VTX5000 user to pay
prices as low as £ 5 0. This opens t$ =t$ +CHR$ 1 3 :GO SUB bills and move money between
up a whole new world of tx:GO TO 2000 TERM TYPE PRESTEL accounts at any time of day or
microcomputer communica- WRAPS night. In conjunction with a
tions for even more Spectrum If you RUN this version of the credit card it is thus possible to
users. You don't have to call program it will wait for a line of order and pay for a wide variety
Prestel/Micronet w i t h the input. While it is waiting you can this causes the Telecom Gold of items through Prestel without
VTX5000, it is possible to call a telephone the computer you computer to pause at the end of ever leaving your armchair. The
variety of other services which want to use, when that answers every screenful of information. differences between the two
use the 1200/75 baud asyn- with a whistle, switch the line Of course, if you have one of the home banking services come in
chronous transmission protocol, switch from its upper to its VTX5000s with a Homelink the way they are funded. The
such as the British Telecom PSS lower position and replace the power on screen rather than the Bank of Scotland service is
or Telecom Gold services, or a telephone handset. Most ser- standard Micronet power on openly funded by service
vast array of private viewdata vices require an initial RETURN screen you already know that charges, whereas the Not-
systems and bulletin boards. code, so press ENTER. When you don't have to use your t i n g h a m Building S o c i e t y
Quite a few of these systems y o u w a n t t o send more V T X 5 0 0 0 e x c l u s i v e l y for Homelink service depends on
require the user to key ENTER characters to the remote com- Micronet or Prestel Microcom- you investing several thousand
(also known as RETURN) at the puter hold down CAPS SHIFT puting. Homelink is a home pounds, for which you receive
end of every input line. Normally and press ENTER and the input banking service on Prestel run normal interest — but as this
the VTX5000 converts ENTER line quotation marks will reap- by the Nottingham Building money is effectively tied up, the
to the hash code that Prestel re- pear. U n f o r t u n a t e l y , the Society. A Building Society is difference between the normal
quires at the end of some com- V T X 5 0 0 0 cannot receive bound t o have p r o b l e m s rate and the high premium rates
mands and input message lines. characters from the remote creating a home banking ser- available from some other
To change your VTX5000 to computer while waiting for you vice, in that to be able to give Societies is available to NBS to
work with these systems, press to type in the line, so do not you a cheque book it needs links pay for the service.

112 ZX COMPUTING JUNE/JULY 1985


REVIEWS

Gumshoe is well presented


with little pictures of each of
your informants on selection of
the appropriate menu. On the
whole, Gumshoe is rather good
but should not be confused with
an adventure game, which it is
not.

John Donovan looks at some of the Megacycal Software, PO


Box 6, Birkenhead, Merseyside.

slowly emerging QL software. The Lost Kingdom


of Zkul
Zkul (pronounced 'skull') is a
standard middle earth adventure
s c e n a r i o , w i t h the usual
dwarves, a wizard and a domed
city. The adventure starts near a
river and you have instructions
from your friend Eldomir to bring
any treasures to his house in the
forest.
The game combines the two
main types of adventure game,
the old style Hack & Slay, which
had fighting and loads of
monsters, and the more modern
puzzle type, giving a strange
hybrid. Thus, such commands
as Health and a Hit point system
are included giving a status for
each character in the game that
is reduced by fighting and in-
creased by time. As well as this
the game contains a number of
very advanced puzzles which
compare w i t h any classic
adventure.
The game vocabulary is very
comprehensive allowing such
structures as 'What is XXX' and
also giving hints as to what it
understands by its responses.
Another novel addition is the
hint facility that has the program
butting into the game if you get
stuck anywhere and offering a
hint in return for a reduction in
your score, this offer does not
have to be accepted but the
hints received are usually very
useful. Like the Hobbit, action in
the game is in real time, however
unlike the Hobbit the real time
routine is run under interrupts so
you can be typing a command in
and the computer will interrupt
you to tell you that something
has happened, this can be very
annoying, but does promote
prompt responses.
Gumshoe Logic Bert is six foot tall and Fred is
one foot shorter than Bert how
degree of reliability. All of this is
t o l d to you so the game
The game is supplied on
microdrive which has the ability
tall is the Empire State building?' becomes a process of receiving to back itself up for security, and
This is not an adventure game The problems are usually slightly information, sorting it and then this allows Zkul to be loaded
but, a logical reasoning game. easier than this except on level buying more as cheaply as is very q u i c k l y . Saves and
You play the part of a Gum- five. possible. Once you have col- Restores are also done to
shoe detective in the 1930s, The first assignment is to find lected all the information and microdrive, with a notepad
time of Gangsters and molls. out what rackets each gang have satisfied yourself as to its facility. On the whole I was
Depending upon which difficul- boss is involved in and also the reliability you may present your rather disapointed by Zkul which
ty level you select the game sets name of his Moll (girlfriend). The findings to your client who will had great promise but didn't
you an assignment for which information is obtained by use of either pay you or tell you that really live up to expectations.
you will be paid on completion. informants who all require pay- you are wrong. If you have been Talent Computer Systems,
The problems take the form of ment. Each informant has a dif- sucessful you will then receive Curran Building, 101 St James
reasoning problems such as 'if ferent price and also a different another, harder assignment. Rd, Glasgow.

ZX COMPUTING JUNE/JULY 1985 113


ZX81 CAME

Apart from the enjoyment of this


game in itself, there is an in-
teresting High-Score routine
which can be easily adapted to
work within your own pro-
grams.
This is really two programs
that have been combined to pro-
duce one program. The first two
lines dimension the arrays re-
quired by the high score routine,
then there is the game itself, bet-
ween lines 10 and 2 0 0 , and
finally a high score routine
situated from line 9000 to the
end. The high score routine re-
quires about 2 ViK of memory,
and the game needs enough
memory for a full display fife, i.e.
3 VAK. Together they require just
4K of memory.
In the driving skill game a
road scrolls up the screen and
you must steer your car, an 'H',
down the road with the cursor
keys '5' and '8' avoiding the
black road edges and other cars,
symbolised by inverse 'H's,
which increase as your score in-
creases . Your car leaves a trail of
tyre marks behind as it travels.
When you crash your score is
displayed at the bottom of the
road and the program executes
the high score routine. If your
score was lower than the fifth
high score then the routine in-
forms you and prints the five
highest scores. If you gain a high
score then you are asked to
enter your initials and again the
high scores are printed. When
printing the high scores, if two
or more scores are identical then
they are given equal placings.
The high score routine could
be used with almost any other
game provided that the program
it is to be used with obeys cer-
tain rules. First, the program
must not use the arrays B or B$.
The score must be held in the
variable S, and lastly line 9230
must contain either a RETURN,
if the routine was called by a
GOSUB instruction, or a GOTO
to return it to the game, but at a
line after the arrays mentioned
above have been dimensioned.

Get into gear with P. Crighton's version


of this ever popular game, driven all
the way from Gravesend

114 ZX COMPUTING JUNE/JULY 1985


ZX81 CAME

Detailed notes about the program Lines 9600-9740


Lines 9800-9830
is a subroutine to print equal placings.
subroutine to obtain initials.

Lines 2 8-3 dimension the arrays required by the high variables used for the game
score routine.
Lines 10-60 set up the variables used by the driving skill C,D co-ordinates for road.
game. F for/next loops.
Lines 70-90 alter the position of the road. S score.
Line 120 peeks the display file at the next position of W display file peek for a crash.
the car. X,Y co-ordinates for car.
Line 130 increases the score. Z co-ordinates of previous position of car.
Line 140 prints the road and your car.
Line 1 50 prints the inverse H's to represent the other
cars. variables used for the high score
Line 1 60 jumps back to line 60 if you have not routine
crashed.
Lines 170-190 flash your car when you crash. B(x) high score x.
Line 200 prints your score at the bottom of the road. B$(x) initials x.
Lines 9000 8-9010 form a pause loop at the beginning of the F for/next loops.
high score routine. G for/next loops.
Line 9030 checks if your score is lower than the fifth I$ current initials.
high score. S current score.
Lines 9040-9070 move the high scores down one place until X for/next loops.
it reaches the point where your score is to Z$ save name.
be placed and then jumps to line 9180.
Line 91 80
Lines 9190-9200
enters the subroutine to get initials.
enter your score as a high score.
Graphics Notes
Lines 9210-9310 print the high scores. Line 1 40 2 inverse spaces, 4 graphic A's, 2 inverse
Line 9320 jumps back to the game. spaces. 1 graphic H.
Lines 9400-9470 form a subroutine to save the program and Line 150 1 inverse H.
high scores on tape. Line 1 80 1 inverse H.
Lines 9500-9530 subroutine to print lower score than the Line 9220 9 inverse spaces, inverse "HIGHEST
fifth high score. SCORES", 9 inverse spaces.

1 REM S E T U P ARRAYS •PEEK 16397)+265+Y)


2 DIM B (5) 130 LET S=S+1
3 DIM B*(5,4) 135 REM GRAPHICS IN NEXT LINE
5 REM DRIVING SKILL GAME ARE 2 INVERSE SPACES +
10 LET C=21 4 GRAPHIC KEY "A" +
20 LET D«12 2 INVERSE SPACES THEN
30 LET X«8 A GRAPHIC KEY "H"
40 LET Y»16 140 PRINT AT C F D | TAB
50 LET S=0 M
311" |AT X , Y|"H"|AT X-1 V Z| 8M H
60 LET 2-Y 150 IF RNDX.65-S/2000) THEN PR
70 LET D«D+(SGN (16—(RND*32>)> INT AT C,D+(RND»3+2>|"0"
80 IF D<0 THEN LET D*0 160 IF W<>128 AND W<>173 THEN G
90 IF D>23 THEN LET D=23 •TO 60
100 SCROLL 170 FOR F=0 TO 15
110 LET Y*Y—(INKEY$=°5") + (INKEY 160 PRINT AT X F Y;"BTJAT X F Y;"H"
••"8") I AT XF YJ" "
120 LET W*PEEK ((PEEK 16396+256 190 NEXT F •

ZX COMPUTING JUNE/JULY 1985 115


ZX81 CAME i
200 PRINT AT X F YJ"H"5AT 21,D;"S 9 3 9 9 REM SAVE ROUTINE
CORE I" j S 9 4 0 0 CLS
8 9 9 9 REM HI-SCORE ROUTINE 9 4 1 0 P R I N T "SAVE R O U T I N E " f , ? , " E N
9 0 0 0 FOR X=0 TO 100 TER PROGRAM N A M E " f f ,
9 0 1 0 NEXT X 9 4 2 0 INPUT Z *
9 0 2 0 CLS 9 4 3 0 P R I N T "PRESS ANY KEY TO SAV
9 0 2 9 REM CHECK IF SCORE IS E"
LESS THAN FIFTH 9440 IF INKEY*="" THEN GOTO 9 4 4 0
HI-SCORE
9 0 3 0 IF S<B<5) THEN GOTO 9500 9450 SAVE Z *
9 0 4 0 FOR G=1 TO 5 9460 CLS
9 0 4 9 REM FIND WHICH HI-SCORE 9470 GOTO 9 2 1 0
THE CURRENT SCORE IS 9499 REM P R I N T LOWER SCORE
9 0 5 0 IF S<B<G> THEN NEXT G THAN 5TH H I - S C O R E
9 0 6 0 IF G-5 THEN GOTO 9180 9 5 0 0 P R I N T "YOU HAVE A LOWER SCO
9 0 7 0 LET B(5)«B<4> RE THAN F I F T H " f , , , " B E T T E R LU
9 0 8 0 LET B*(5)»B*<4) CK NEXT T I M E "
9 0 9 0 IF G=4 THEN GOTO 9180 9 5 1 0 FOR F«=0 TO 6 0
9 1 0 0 LET B(4)=B(3) 9 5 2 0 NEXT F
9 1 1 0 LET B*<4>«B*<3> 9 5 3 0 GOTO 9 2 1 0
9 1 2 0 IF G~3 THEN GOTO 9180 9 5 9 9 REM P R I N T S EQUAL PLACES
9 1 3 0 LET B(3)=B<2> 9 6 0 0 P R I N T AT F * 2 + 4 , 3 ; F ; T A B 1 4 ; B
9 1 4 0 LET B*(3)=B*<2> (F+l);TAB 25;B*(F+1>
9 1 3 0 IF G-2 THEN GOTO 9180 9 6 1 0 I F F + 2 < « 5 THEN I F B ( F + 2 ) = B (
9 1 6 0 LET B(2)=B(1) F ) THEN GOTO 9 6 4 0
9 1 7 0 LET B*(2)=B*<1> 9 6 2 0 LET F « F + 1
9 1 8 0 GOSUB 9800 9 6 3 0 RETURN
9 1 9 0 LET B(G)^S 9 6 4 0 P R I N T AT F * 2 + 6 , 3 ; F ; T A B 1 4 ; B
9 2 0 0 LET B*(G)=I* (F+2)|TAB 25;B*(F+2)
9 2 0 9 REM PRINT HI-SCORES 9 6 5 0 I F F + 3 < = 5 THEN I F B ( F + 3 ) = B <
9 2 1 0 CLS F ) THEN GOTO 9 6 8 0
9 6 6 0 LET F - F + 2
9 6 7 0 RETURN .
9 2 3 0 PRINT f f " P O S I T I O N SCORE 9 6 8 0 P R I N T AT F * 2 + 8 , 3 ; F ; T A B 1 4 ; B
INITIALS" (F+3)|TAB 25;BS(F+3)
9 2 4 0 FOR F « 1 TO 5 9 6 9 0 I F F + 4 < = 5 THEN I F B ( F + 4 ) = B (
9 2 5 0 P R I N T AT F * 2 + 2 f 3 ; F ; T A B 1 4 ; B F ) THEN GOTO 9 7 2 0
(F)|TAB 25|B$(F) 9 7 0 0 LET F = F + 3
9 2 6 0 I F F < 5 THEN I F B ( F ) = B ( F + 1 ) 9 7 1 0 RETURN
THEN GOSUB 9 6 0 0 9 7 2 0 P R I N T AT F * 2 + 1 0 , 3 ; F ; T A B 1 4 ;
9 2 7 0 NEXT F B(F+4);TAB 25;B$(F+4)
9 2 8 0 P R I N T AT 1 9 , 0 ; " P R E S S S TO S 9 7 3 0 LET F = F + 4
A V E " , f " O R ANY OTHER KEY TO PLAY 9 7 4 0 RETURN
AGAIN" 9,799 REM INPUT I N I T I A L S
9 2 9 0 I F I N K E Y * « " S " THEN GOTO 9 4 0 9 8 0 0 P R I N T "YOUR P O S I T I O N I S " ; G
0 fff"INPUT YOUR I N I T I A L S "
9 3 0 0 I F I N K E Y * = " " THEN GOTO 9 2 8 0 9 8 1 0 INPUT I t
9 8 2 0 P R I N T AT 0 , 0 ; "
n
9 3 1 0 CLS
9 3 2 0 GOTO 10 9830 RETURN

a
> .l

116 ZX COMPUTING JUNE/JULY 1985


IPECTRUM REVIEWS!

QUICKSOFT
Flicking over the tape is the
spreadsheet. If you want 10
know what a spreadsheet is,
read my review in the last issue.
If you didn't buy one, serves you
right
This spreadsheet has 2 0 col-
Ciive Smith, the terror of the software umns and 3 0 rows and will per-
form most of the functions on the

scene, passes judgement on some new Spectrum. Commands are easy


as a1 + b 1 - r d = d 1 It alsohas

software the ability to carry functions


across rows and columns with
one press of a key. You can
LOAD.SAVE data and this is
where the graphics program
comes in. A f t e r saving Ihe
Space Shuttle A f t e r you have checked
through the controls you are
MINI OFFICE spreadsheet data you load the
Activision ready for launch and at T minus Database Software graphics program and then
leload the data. The graphics
Spectrum 48K 15 seconds you activate the spectrum 48K program will then produce a
£9.99 main engines At - 0 0 4 you ig-
nite the engine and wait till the
£4.95 histogram, pie chart, lino chart
or percentage information. The
hold-down bolts release and you A selection of mini business pro- data can be saved for re use
blast into space. grams on one tape. On one side back into the spreadsheet.
A simulation game based on the One of the effects I did like you get a word processor and Overall a nice little package
American space shuttle which was Ihe vibration of the screen database, and on the other, a Though limited, it will carry out
takes you from launch site to at lift off and the way the clouds Spreadsheet and graphics pro- all the basic needs of the mini
outer space and back The ob- seen through the window sud gram. user. Mini Office is available
ject is to retrieve satellites which denly disappear. As the shuttle These programs do have their from Database S o f t w a r e ,
have become unstable and takes off you have to steer it via limitations, so if you' re running a Europa House, 6 8 Chester
return them to Earth, making as the joystick on its trajectory large business I would look for Road, Hazel Grove, Stockport.
many flights as possible on a set path When at 2 1 0 miles you something a little more suitable.
amount of fuel. have to shut off the engines and However, if you run a small shop
The tape comes w i t h a very open the cargo doors to or clubhouse and have limited
comprehensive instruction dissipate heat. Through the w i n funds you may find this ideal for
manual which looks as if it's dow you see the earth below, your needs. KWIKLOAD
come directly from NASA. I which is a series of lines con The tape itself comes in a Data view
locked myself in the loo and
studied it for an hour or t w o (the
siantty moving to give a global standard cassette case w i t h an
easy t o f o l l o w , 3 1 page,
Software
effect. Using the tracking screen
book of course, not the loo I. you have to find the satellite and c a s s e t t e size i n s t r u c t i o n Spectrum 48K
" W O W " , I thought to dock w i t h it manual. Taking each program in £4.99
myself, "This really looks ex- At this point I was hoping to turn, I first looked at the word
citing", just about everything see the cargo bay and a controll processor. It's not the world's Kwikload, as the name sug-
has gone into this game. I rushed ed arm come out and retrieve the best, but it is adequate for letter gests, enables you to SAVE or
to the computer, loaded the tape satellite, but not so Once dock- writing and suchlike. It carries LOAD your programs three
and ran the demo. ed w i t h it, it just seems to leap out the same sort of functions a times faster than conventional
Well I have to admit (in aboard Now, you have to leave standard typewriter would do, methods. Not only can it be used
disagreement w i t h the Edl that I orbit and attempt re-entry. As w i t h the added bonus of being w i t h your o w n programs, but it
found the graphics rather bor- y o u onter t h e E a r t h ' s at- able to change or finish off your will also convert published pro-
ing. It's not that they are badly mosphere you start to burn, and letter before it's actually printed grams as well. They claim to cut
drawn, but the instrument panel the effect in the window as the One useful feature is that if your down loading times of The Hob-
is rather sparse and visually heat buitds up is aslounding, eyesight is not up to scratch, bit to 1 2 0 seconds and Scrabble
there is not a lot to see. you can enlarge the characters down to 136 seconds.
(the instruments go haywire as
to twice their normal size. It also ) think it's only fair to point
The top half of the screen is there is build up of ionsi.
gives you four Tab positions and out they do not condone piracy.
taken up with the window of the Once below the clouds you
the ability to count the number
shuttle and the lower half is the see the landing strip and you With the tape you get a 12
of words used as you type The
instrument panel, this consists need to go through the landing page (A121 instruction booklet.
m a x i m u m i s 3 0 , 0 0 0 whichis an
of two sliding scales, one w i t h a sequence t o bring it down. You This is easy to follow and
awful lot.
thrust indicator on it which will find your fingers are con- anyone with average
shoots up and d o w n , and stantly in use as you fire primary Moving on along the tape is k n o w l e d g e of programming
another which you control. The engines, keep the shuttle on the database. It's not bad, and should find it quite simple. The
idea is to match your indicator course as it turns On three axes I've seen worse It will hold 12 only problem I found is that you
with the thrust one in order to and go through each sequence fields per record with a max have to buy a good quality tape
achieve maximum fuel w i t h absolute precision. imum of 131 records You can as the smallest gap in the oxide
economy. Below that is a small To sum up, I thought the use numeric or strings wherever will cause it to fail.
screen which gives you data graphics a bit of a let-down but a you want and the search routine For the technical, the Spec
reports such as altitude, count hard and accurate game to play. will find part or whole strings. trum transmits at 1 5 0 0 baud
down time, fuel, position and W i t h some llight simulation This can be carried out in and Kwikload improves this to
docking. Another small screen games, after an hour of use, you separate fields if needed. One 4 5 0 0 baud. All program leaders
shows your trajectory path for really feel that you have flown a nice item is that it will multi-sort, are disposedof to improve times
take-off and docking. plane, but I didn't get the same either alphabetically or even more.
At the bottom left & right is a feeling w i t h this one. May I sug- numerically. You can of course For data protection what
front view of the shuttle which gest that if you are interested in delete/add records if needed and Could be better. In fact the
graphically shows you when this one try and see the demo LOADSAVE data if wished. An whole thing is a little bit like
your wheels are d o w n and if the ideal database for names and upgrading your C5 to 3 3.5 litre
before you buy it, but, as I said,
cargo doors are open or shut, addresses, club members etc. car.
the Editor liked it.

ZX COMPUTING JUNE JULY 1 9 8 5 117


GENERAL ARTICLE M^B

Tasword to the
serve a dual function, acting as
an extra large buffer if it is not
needed for the sort of purpose
described here and, specifically

limit
in the FX80, switch 1 4 must M
set at " o f f " to ensure availabil -
ty. The printer interface soft
ware is then loaded. Mine lias
two lines of BASIC loader: pro-
gram tines 1 and 2, followed liy

we rejoin John wase who discovered machine code which is located


in the printer buffer. Once i( is

Tasword ll in the last issue, as he loaded, it auto runs; the two


BASIC lines must then be

struggles with the Epsom UDG's.


deleted, either by editing them
out, or using MERGE for the
following program; a bit ot a fid
die, bul NEWing makes the
machine code in the printer buf-
fer unavailable. Then the BASIC
downloading program (figure 1)
is LOADedandRUN, afterwhich
the Spectrum, but not the
printer, Is reset, so that Tasword
T w o can be loaded. Line 110
Continued from part one. downloads the character set to
100 R E M P r o g r a m " n e w c h a r s "
All this was very satisfying, the prinler's RAM and line 120
105 R E M D o w n l o a d P r i n t e r ' s C h a r but I still had to find out how to selects the RAM character set
acter Set from its ROM to its RA include symbols like (X ,(3 or /A for use, Imore about this later),
M and some of the symbols used so that the new characters ate
on graphs. For this, I needed to printed out to check thai they
llO L P R I N T C H R * < 2 7 > ; " : " ; C H R * ( download and modify the Epson have been defined correctly
0 > ; C H R * ( 0 ) ; C H R J (0); character set. and whilst I was Une 130 selects character " a "
115 R E M S e l e c t RAM c h a r a c t e r s sure that this could be done, I to be modified: in its geneial
once again failed miserably w i t h form the " a a " can be changed
e t for u s e the Epson manual. So this time it to " a z " , for instance, and then
120 L P R I N T C H R * (27);"'/."; C H R * w a s E p s o n s ' t u r n t o be characters a t o z w i l l be
badgered. They were also par- m o d i f i e d ; a l t e r n a t i v e l y the
( 1 ) ; C H R * <0); ticularly helpful, and sent me a ASCII codes can be used; the
125 R E M M o d i f y c h a r a c t e r s a , b copy of some American instruc- printer will accept either, but
and u to g i v e G r e e k c h a r a c t e r s tions which were very colloquial this will involve modification of
(What g i v e s . . . It's a other parts of the program. Line
130" L P R I N T C H R * (27) }"«("; C H R f breeze. 1. but well written: 2 6 0 then transmits the data and
(0);"aa";: GO SUB 250 without it I don't think I should line 9 0 0 0 finally prints out the
131 L P R I N T C H R $ < 2 7 > ; " V ; C H R * have succeeded. From this I was character. How exactly, then is
eventually able to devise a pro- a character defined, and what
(0);"bb";: GO SUB 250 gram to download and modify on earth is the function of lines
132 L P R I N T C H R $ (27);"%:"; C H R * the character set. Let's look at 2 5 0 a n d 2 7 0 ?
how w e can change throe keys
(0);"uu";: GO SUB 250 at will within Tasword: w e will
1<?9 G O S U B 9 0 0 0 arrange things so that w e can
200 STOP a c c e s s , R and f t from keys Beta
a, b and u
250 POKE 23298,175: POKE 23299, Perhaps if I show how the data
214 The first thing to do is to en for my o w n Q w a s assembled, it
sure that the Printer's RAM is will make things clear. The first
2 6 0 > P 0 R a = l T O 12: R E A D E : L P R I available. On the Epsons it can thing to do is todraw a grid, as in
NT C H R $ (E);: N E X T a
270 POKE 23298,202; POKE 2 3 2 9 9 , My Beta Unacceptable Beta
25 r
280 RETURN 128 ( X> ( )
'v )
i *
500 DATA 139,12,18,0,34,0,34,16
64
,12,50,0,0
32 (>
CX X
550 DATA 11,7,56,64,130,16,130,
16,98,12,0,0 16
600 DATA 11,0,127,0,8,0,8,0,112 6 c) W
,8,0,0 4 w
8995 REM Print modified characte 2 003)
<)
W
rs to check accuracy
9000 L P R I N T "a": LPRINT "b": LPR
1 ()
INT "u" 0 6 98 2 12 0
9010 RETURN 1 3214414496 Will not print-
Figure 1 Down Loading piogram Figure 2 Charge ter grid

118 ZX COMPUTING JUNE;JULY 1 9 8 6


GENERAL ARTICLE M^B

figure 2 .allowing 1 T columns of is 139 will cause the top eight


overlapping dots Whilst the pins to print 1 1 c o l u m n s , CE» TO r*iMf«t riF PRIWTER CONTROL COOES
printer itself w i l l not print 1128 - 11 I; a code of 1 1 will
overlapping dots, the columns cause the bottom eight pins to
can overlap: the picture makes print similarly. Then, for each of (3r afihl i « ft-irri Func1i an
ihis clear. Make the grid 8 the following 11 columns, add Code
spaces high. But, you will say, the numbers shown on the left Vernon I
there are 12 data numbers. And of the diagram which coincide
the FX80 dot matrix is nine dots w i t h the dots in that column. is- 142 enlarged Type an.
1 IW tnJarqM Type o*l ,
tall. True, but either the topeight And there is the decimal code for J^O 141
4 t
Superscript on) Print aupDrGCrlpt * l *.
pins or the bottom eight pins are Try it and see. In this case the 1 ° no Print Mq)»rwrl|lt UJplrtcripl off.
used for printing, the latter for complete code is 139, 0, 1 . 6 , 33 140 Underline on*
lower case l e t t e r s w i t h 3 2 , 9 8 , 1 4 4 , 2 , 144. 1 2 . 9 6 , 3 I.JI Underline crff.
16 IT) Italic* w .
descenders. This is determined 0. 4 137 >1*1 f r h «<f.
by the first byte; the attribute 53 138 Enph«izs<Jflatlenr».
Now, what about lines 2 5 0 5 133 Lephaswed Mode off.
byte, which can also carry inf or and 270? Well, perhaps I had feS 157 Double Spaca ipad).
mation for proportional spacing, better explain what happened A 134 Triple Space lp«ll.
but in this case we need not be 7S H6 Subvrlpt mi.
when I first tried lo download 7 I3S Subscript off.
concerned with this. An at- some characters without these W 143 Superscript on.
tribute byte whose decimalcode POKES. Being lazy. I had a 130 KupDracript at 4.

Irti tVUHLMflTICE DEPARTMENT BE TO OOMHLCK1DED CORRECTLY 2a 14! Dr.Mii 1 ojdoo character*, (printer HrtM) , selected
7 IV) Pf liifp*r Win rliMrf't *r selected

IMl tv\l htKOl ICK UtfftKIHfcNr HE TO DtMNUIAUtU W E N IQftNs HAVE NU1 - 9 - Shifted
RPFH <WtTriMFO <*F ° r-< i ni»i on -if l4it Ml t li «4fppr^rtpt fin be Ltceful *nr
cp-tai n systems o» ret orencinq( and the tor*c>et i r» t h*
printer cod* 4vdiob the uce n< pads.
wiBwir/wifturtniwwifl Figure 4b.
Fk/ure 3

previously contacted my friends defined a ( j was certainly not


SCREEN D U M P O F P R I N T E R C O N T R O L C O O E S ( V E R S I O N 1) in the University micro-users' what I had intended and this ex-
group, who had supplied me plained the excitement the
with a download character set printer was suffering (see fig. 3).
devised by our Mathematics Incidentally, owners of inter-
*{ 1 T AtI|1V.n» &^ti-1l1•^f-
Pfiriltr
O I Iel r• bint c4
1 • 1. 9 r c.1 i ctiars
Department, w h o had spent
many long hours discussing the
faces with EPROM software
might find that it is not possible
optimum shape of a Greek letter
12S 13 "-J • S? 84 or a curly wuriy bracket. This
to switch off the tokens: do
check before buying if you are
13(5'131" 24 71 H7 0S4. 0 set was irf the form of a listing intending to use a downloaded
13* ai: .) | foL77 ¥53 •,'t) 32
suitable for the 8 * * B And
so, I had merely lifted their data
charactor sot.
134% 1331 2 a7 32 84 All went well with CK and f l . But
3 2327 B3 32 X w i t h / J l got a most curious thing
Printer Codes
139P £77 52 1 27 69 t h a t l o o k e d rather like a
distorted " K " Having less faith
14. Well, at last 1 was able to do
than I ought to have had in their
1* lil 214.
J-d i.JU,
7 83 O 4.0
data, I merely thought that some
what I sel out to do. All that re-
1*31 S3 0 of it was w rong, and devised my
mained was to modify the
printer codes once again. Line
o w n ft i n s t e a d . This w a s 120 of my program shows that
murder; on telling the printer to the decimal code for selection of
print, it printed RR, spat my A4
the RAM character set is 2 7 .
page out and printed some fun
ny dots and dashes on the rub- 3 7 , 1 , and that for selection of
ber platen. Well, eventually my the ROM set is 2 7. 3 7, 0. Once
SCREEN D U M P •F P R I N T E R C O N T R O L C O D E S (VERSION 2) friends worked out that it was again I had to make a decision:
only the high order ASCII codes graphics 2, (originally select and
which were giving trouble, and deselect condensed typeface},
subsequently after a call to was sacrificed. (My personal sel
Kempston, all was made clear. of Tasword Two decimal codes
The high order codes are used by which I use to instruct the
T H f. vi of rtwace
<i> T a s n a r< So
TiJ
d O p r i n t e r , together w i t h t h e
graphi c1933
Sinclair for his keywords, in
Printer £ ontrci s chars-: other words, they are single graphics keys on which they
have boon defined are given in
a?
30
«4 byte tokens. In order that LUST
should work correctly, the inter figures 4a, 4b, along with their
1 37
87 37f ©e
4I face driver-software contains functions.) And so I was away!
13fc B
133 I a? 27 **•• J
TO routines to interpret these As can be seen from the ex-
ample, it is possible to type less-
134.%
13-5TI 27
32 32 32 tokens so that the full keywords
are printed out. In the Kempton than-straightforward text using
137,* 32 27 SJ
32 1 interface instructions you are T a s w o r d T w o . Even com-
I 13:1 2"7
27 6-3 told the pokes to switch off plicated formulae are relatively
IdOm 13'if* 57 (S2
J. 4. U 27
4.*.
1X
these tokens — if you know simple to insert, and the whole
14 37
what is meant by tokensl The can be carried out at profes
idak 1 4- • 27 83 garbage which was getting sional speed: I really am ex-
through to the printer when t tremely s a t i s f i e d w i t h the
Figure 4 a.
system I now own.

iX COMPUTING JUNE JULY 1 9 8 5 119


GENERAL ARTICLE M ^ B

WINTER CftlBSICET FOB FflRY PW1IWI KJN CCWiLQMKD CHARACTER SET OEVTSHJ UV THE WHCTWIES OOWireM,
IMIVERSITV "J 61SMNCMM1
Poqu Start line Fink ah lire
1 1 lift • ittlltlKI IX'iairl
3 31
At
60
•to
MTill mw Utt lit Will iltffH II'.IH Utl tit
91 120
i 121 ISO M 4 d A A
6 (00 b i * B P
131
r
a
7 Ifil 210 c c » C c €
0 211 d £ A , D A
e
2*0 d 0
t 2+1 170 o w « < e 3 e
to 2tl TOO f f • F F i
9 V e
h A n
S
N
6
a
a

i i t 1 1
i H
i
J A
/ 1
Figure 5.
» t
kt J/T k.
j J J

LM
M
X Ah
*
1 4 I /
m m H» H

Some Tips same file are labelled with a, b, n


o
»
0 t •
N
ap
H
0
f. M

etc. A folder of all the first pages P •
X
f n 0R
qr
?
is also kept; in this way, that pile 1 0 9 X
A lew odd tips to help your work ol cassettes or discs can always r c n ft r>

run smoothly. There is no auto be kept under control % J V 6 j t


t t r T T T
page-numbering f e a t u r e on All that is left now is to tidy u u V U X u
n
a U
V
Tasword Two, not surprising, up some loose ends The com-
M Mr
V A
w
* V ¥

since the RAM will only hold plete Mathematical Character w K (•-
K X < X X X z
HZ
M
320 lines. Most documents on
A4 paper -fit very well with
Set is illustrated ffig 61; the data
toenable downloading has been
y r
t
»
<
V
z
r
z
t
I
double-spacing at 30 lines to Ihe made available to me by our
c c f I 3 j 11
I
i
page unless there are many Mathematics Department, to < t > i
V
f )
lines, (e.g. headings), printed in whose Dr Mike Beilby I am ex- < > > \
jt
t 1
1
1
enlarged typeface. I therefore tremely grateful. (Users requir- \ t * >
keep a cribsheet as illustrated ing copies of the data should ap- <f> r J
pasted to the printer (fig. 51; it is ply direct to me, at the Depart 0 0 i T tV
1
0 it *

2t 1
invaluable when the Tasword ment of Chemical Engineering,) 1 / /
menu asks for start and finish Help was also freely given by 2 w -

I
2

lines The first line printed out on Esther Bayer I Epson. (UK), Ltd,); 3 3<1 •
7 *
» \
page 1 of a document is always Keith Archer IKempston Micro- 9 S
4
3 a
Textfile somename; pages 1 to electronics, Ltd); Tasman Soft- b 6 * - * • •
* K •
w a r e ; Dr Andy Wright e
7 7 7 7 *
I 0 are recorded as somename, B $ * * * •
I I to 2 0 as somename 2 , and (Betasoftl; and Dr. Duncan 9 9 - - -

so on; different versions of the Banks (UBUG). _


1
^
— T / t I
1 1 t
< > > •

.
i » •*

v
4
* a i t
>
It a K eo
• t t

Figure 6.

120 ZX COMPUTING JUNE/JULY 1985


— ^ • ^ • ^ ^ ^ ^ S I N C L A I R SOLUTION

II
tm .„ « ,
™ \ v
David Nowotnik answers your questions
RAMTOP Dear Mr. Shaw,
Dear David, There are a number of joystick
I have just read your article on systems for the Spectrum, but
"First Steps in Machine Code". I Dear Greg, the two most popular are, the
was confused when you said The Spectrum's POINT routine Kempston, and Sinclair's own
that: starts at address 22 CB (hex). with their ZX Interface 2. These
The first thing the routine does is Dear Mr. Bamfield, • two are incompatible, so a game
10 POKE 1 6388,47 to pull from the calculator stack You've spotted an interesting written for one cannot work
20 POKE 1 6389,1 1 7 the x and y coordinates, and 'bug' in the Spectrum, the with the other system. Most
lowers RAMTOP on the ZX81 to place them into registers B and failure of the up and down cursor games allowing the use of
2 9 9 9 9 . Could you explain how C. In your routine, you could control characters to work with joysticks are written for use with
changing these addresses af- avoid this by placing the x and y PRINT. There are a number of Kempston joysticks, and the
fects RAMTOP? values directly into Band C, then ways of overcoming this, if you R.A.T. device has adopted this
calling 22 CB. The routine places want 'vertical strings'. For the system. So, you're unlucky not
Ken Duda, the value 1 (for ink) or 0 (for simple example you give, you to have some games which
paper) onto the calculator stack, could easily use the 'ENTER' work with R.A.T. Virtually all
Northlake, Illinois, USA from where you can retrieve it. control character (13); that is: commercially available games
are written in machine code, so
Dear Ken, the joystick 'standard' is embed-
Sorry if it wasn't dear, but this is
vertical strings +
LET a$ = "123"
"456"
+ CHR$ 13
ded in them, with little oppor-
how it works. The ZX81 stores Dear David' tunity for the average user of
some variables (system This doesn't give you much flex- changing that standard.
Before owning a Spectrum, I had
variables) which are important a Tandy Model 1. With the ibility, but you can get that with Program listings are a dif-
to its operation. One of these Tandy, it was possible to assem- the 'AT' control character (22). ferent matter. The R.A. T. is sup-
variables is the position of RAM- ble w h a t I called 'vertical If you use PRINT CHR$ 2 2 , then plied with detailed instructions,
TOP. This variable is stored in strings', e.g. the Spectrum thinks that the including how to write BASIC
two bytes, at addresses 16388 next t w o characters to be (and machine code) instructions
and 16389. The position of LET a$ = " 1 2 3 " + CHR${26) 'PRINTed' are the coordinates to 'listen' to your RAT com-
RAMTOP is calculated as the + CHR$ ( 2 4 ) + CHR$ ( 2 4 )- used with AT, for example: mands. So, you should be able
value in 16388 plus 256 times +"456" to modify listings according to
the value in 16389 (4 7 +256 x LET a$ = "123 "+ CHR$22 + those instructions.
117=29999). The position of w h e r e CHR$ ( 2 6 ) — c u r s o r CHR$8 + CHR$4 + "456",
RAMTOP is normally set by the
computer on power-up, when it
down, and CHR$ (24) = cursor
left. The command PRINT a$ then PRINT a$, and you'll get
Tick-Tock
determines how much RAM is then gives: ' 1 2 3 ' at the top left of the Dear David,
available. But, you can alter screen, and ' 4 5 6 ' starting at The internal clock on the Sinclair
RAMTOP by placing new values 123 position 8,4. QL is very useful for games in
in the addresses 16388 and 456 w h i c h t i m e is i m p o r t a n t .
16389. As I explain elsewhere
in this issue, this has to be done This doesn't appear to work
R.A.T. However, I'm not too sure how
to set it to zero. Can you help?
with care. when using the Spectrum cursor Dear David,
Fill-in codes (10 and 8) in the same
way. The command PRINT a$
I recently purchased a R.A.T.
Remote Control Transmitter for
Robin Miller,
Aylesbury, Bucks
Dear David, gives: use with my 48K Spectrum. I
I am attempting to write a am unable to get any results Dear Robin,
machine code program to fill in 456 with the games tapes I already If you are not concerned abut
shapes drawn on the screen. I have; apparently they are not the date stored by the QL's in-
am having problems because I where backspace works, but Kempston Joystick compatible. ternal dock, then the simplest
do not know where the ROM's line feed does not, so ' 1 2 3 ' is Can I overcome this? Can I use way of resetting the dock is the
POINT routine is situated. Could overwritten by ' 4 5 6 ' . Can I game programs from listings in instruction:
you please tell me where this is, assemble 'vertical strings' on ' Z X C o m p u t i n g ' w i t h this
and how to use it? the Spectrum? device? ADATE(-DATE)

Greg Woods, P. V. Bamfield J. W. Shaw, This 'zeros' the date, as well as


Bayhorse, Lancaster Brighton, East Sussex Ashurst, Southampton the time.

ZX COMPUTING JUNE/JULY 1985 121


PROGRAMMING TIPS
<

A guide to ZX81 / Spectrum program conversions


from David Nowotnik.
The versions of BASIC offered trum (see Table 1). but you will have to find some changes appear in the tables.
by the two ZX computers are There are quite a lot of com- alternative for the high resolu- A command such as POKE
so similar that many programs mands and functions on the tion and file I/O commands. USR " a " . . . . on the Spec-
for one can be used by the Spectrum which are not The command PLOT appears trum indicates User Defined
other. The ZX81 has only two available on the ZX81. A list of on both computers, but the ef- Graphics; ZX81 users don't
commands which are not pre- these appears in Table 4. The fect is quite different, so have this facility, so you'll
sent on t h e S p e c t r u m , stars indicate those commands beware! Another tip: PEEK and have to omit this and use a
SCROLL and UNPLOT, and and functions for which there POKE should be used with cau- standard character instead.
these should cause you few is no simple translation to tion. In conversion, addresses
problems when converting ZX81 BASIC. Those for colour will almost certainly have to be
ZX81 programs to the Spec- and sound can be ommitted; changed. Some of those

ZX81 Spectrum Comments

SCROLL RANDOMISE USR 3582 If the program uses random numbers, they
or could become rather predictable with the first
LET t - USR 3582 option. If so, use the second, using a variable (in this
case t) which is otherwise not used.
PLOT Y,X PRINT AT 21 - Y/2,X/2; Print the appropriate quarter square graphics
character.
UNPLOT Y,X PRINT AT 21 - Y / 2 , X / 2 ; Print a space, or the appropriate quarter square
graphics character.

Table 1 ZX81 to Spectrum conversions.

Spectrum ZX81 Comments

BIN BIN allows the represen-


eg LET y = BIN LET y = (decimal no.) tation of a number in
10010101 Conversion to decimal: binary. On the ZX81 use the
1 0 0 1 0 1 0 1 = 149 decimal equivalent, but
beware; BIN is often
128 64 32 16 8 4 2 1 used with User Defined
Add these numbers together when Graphics, which are not
a 1 appears at the appropriate available on the ZX81.
position in binary.

READ/DATA LET READ and DATA are


eg READ x,y LET X = 50 used to store a lot of
DATA 5 0 , 6 0 LET Y = 60 information in a program. Use
LET instead.

DEF FN and FN The defined function can


eg DEF a(x} = SQR x LET X$ = "SQR X " appear in a string. Use
LET t = FN a(i) LET X = I the keyword for built-in
LET T = VAL X$ functions {eg SQR). The
equivalent of FN may need 2
lines, as shown.

PLOT no equivalent

SCREEN$
eg LET a = SCREEN$ x,y LET A = PEEK(PEEK 16396 Used in interactive games
+ 256*PEEK 16397 + 1 + Y + 3 3 * X) to detect characters in the
display file. Note — this
formula only works when a
RAM pack is fitted.
Table 2 Spectrum to ZX81 conversions.

122 ZX COMPUTING JUNE/JULY 1985


PROGRAMMING TIPSI
ZX81 Spectrum Comments
1 FRAMES Both computers have a counter
POKE 1 6 4 3 6 , 2 5 5 POKE 23672,OiPOKE 2 3 6 7 3 , 0 which accurately varies by 50
POKE 1 6 4 3 7 , 2 5 5 every second. In the example,
LET t = (PEEK 2 3 6 7 2 + 2 5 6 " use the first line to start the
LET T = ( 6 5 5 3 5 - PEEK PEEK 23673J/50 'clock'. The variable T will
1 6 4 3 6 - 256*PEEK 16437) have the time in seconds after
/ 50 For times greater than 10 the start. The counter can
minutes, you can use byte only be used for 10 minutes.
2 3 6 7 4 as well.
2 Line number zero
Converts the first line of a
POKE 16510,0 POKE 2 3 7 5 6 , 0 program to line number zero.
(As the start of BASIC can which cannot be edited, and
move, eg with microdrives) so is protected.
use with caution.
3 RAMTOP
POKE 1 6 3 8 8 , X - 2 5 6 * I N T CLEAR x Creates a safe area at the
(X/256) top of RAM starting at address
POKE 16389, INT (X/256) x, for storing data, machine
Table 3 GeneraI interconversion hints. code etc.


BEEP FORMAT ATTR
BORDER *
INK BIN
BRIGHT *
INVERSE FN
CAT *
MERGE IN *


CIRCLE MOVE OVER

CLOSE OPEN POINT
DATA OUT SCREEN$
DEFFN PAPER VAL$
*
DRAW READ
ERASE *
RESTORE

FLASH VERIFY
Table 4 Spectrum functions not available on the ZX81.

System variables Conversion Table. LAST K


MARGIN
16421
16424
23560
No Equivalent
Variable ZX81/ Spectrum/ MEM 16415 23656
MEMBOTT 16477 23698
T/S 1 0 0 0 TS2068 MODE 16390 23617
NXTLIN 16425 23637
BREG 16414 23655 OLDPCC 16427 23662
CDFLAG 16443 No Equivalent PPC 16391 23621
CH ADD 16406 23645 PRBUFF 16444 23296
COORDS 16438 23677 PR CC 16440 23680
COORDS (Byte 2) 16439 23678 RAMTOP 16388 23730
DEST 16402 23629 SEED 16434 23670
DF CC 16398 23684 SPSN 16441 23688
D FILE 16396 No Equivalent S POSN (Byte 2) 16442 23689
DF SZ 16418 23659 STKBOT 16410 23651
E LINE 16404 23641 STKEND 16412 23653
ERR NR 16384 23610 STOP 16419 23660
EPPC 16294 23625 STRLEN 16430 23666
ERR SP 16386 23613 T-ADDR 16432 23668
FLAGS 16385 23611 VARS 16400 23627
FLAGX 16429 23665 VERSN 16393 No Equivalent
FRAMES 16436 23672 XPTR 16408 23647

ZX COMPUTING JUNE/JULY 1985 123


PECTRUM PROCRAMMIN

Oxo Flavoured
first. When prompted by the
message 'Your Move', the
player should make a move by
pressing the number key on the

Forth
S p e c t r u m ' s keyboard cor-
responding to the number in the
square he wishes to move into.
For example, to place an X in the
square at the centre of the grid
press key '5'. The computer will

Richard Armstrong of Ayrshire wrote


ignore keys outside the range
1-9, or keys corresponding to

this program in Abersoft Forth and we


squares that are already oc-
cupied by an X or a 0. The game

decided to print it for all addicts of this


ends when either the player or
computer has won or the grid is

language!
full. When this happens the
player will be asked if he would
like another game and should
respond by pressing Y (for Yes)
or N (for No).
The computer makes its
This program was written using is to play a game of noughts and word LOADER and the text of moves by using the following
a 48 K Spectrum and the FORTH crosses with the player trying to the program will be compiled to algorithm:
implementation created by place three X's in a row and the machine code in about 35
Abersoft. It uses around 8K of computer trying to do likewise seconds a f t e r w h i c h the • 1 Look for two O's in a row
memory but could probably be with O's. The reasonably un- message 'READY' w i l l be with a space beside them. If you
used with FORTH systems hav- complicated nature of this game displayed. When entering the find this situation then place
ing fewer than 8 screens (e.g. has enabled me to concentrate program you should note the another 0 in the space and so
Artie FORTH) if the screens in on good programming style following points: win the game.
the listing were entered and rather than on designing ungain- • 2 If you can't satisfy the
compiled one at a time. All the ly program routines to perform Screen one is used to define above requirements then look
FORTH is fairly standard except difficult tasks. graphic characters and so for two X's in a row with a space
for the graphics routines in To use the program with a should only be used with Aber- between them. If you come
screens 1 , 3 , 4 and 5 but these Spectrum running Abersoft soft FORTH. across this situation plac a 0 in
could easily be replaced with FORTH, simply type in screens the space, so preventing your
standard graphics available on 1 -9 as shown in the listing then In lines 1 , 2 , 4 and 5 of screen 3, opponent from winning the
any system. enter 9 LOAD. After the 'ok' lines 1, 2 and 3 of screen 4 and game.
The function of the program message is displayed, enter the lines 1, 2 and 3 of screen 5 the • 3 If neither of the above two
capital letters inside string steps can be carriea out then
quotes should be entered from pick a random, empty corner
graphics mode since these are (squares 1 , 3 7 and 9) and put a
the U.D.G.'s defined in screen 0 in it.
1. • 4 If no steps have been car-
ried out then search through all
Screen 9 should contain nothing the comers and put a 0 in the
but the definition for the word first empty corner you come
LOADER. across.
After the message READY is • 5 If none of steps 1-4 can be
displayed, the game can be completed then pick a random
started by entering RUN. A 3x3 square anywhere on the board
grid is then drawn and scores for and put a 0 in it if it is empty.
the player and Spectrum are • 6 If all the above steps fail
displayed. A random function is search through each square on
used to determine whether the the grid and place a 0 in the first
computer or the player moves empty one you find.

variables
UN, COL Store line and column values used when
printing an X or a 0.
BOARD An array of 9 bytes, each byte
corresponding to a square on the grid. A byte
contains 0 if the corresponding square
contains a 0, 1 if the square contains an X
and 2 if the square is empty.
BOX Used by various words to store the value of

o
a square.
CORNERS An array of 4 bytes used to store offsets to
be added to the value of BOARD to give the
address of a corner.

O
CHAR Used by words dealing with both X's and O 's
(e.g. WIN). If this variable has value 1 then
the word is dealing with an X. If the value is 0
then the word is dealing with a 0.
PLAYER, COMP Used to keep the score for the player and the
computer.

124 ZX COMPUTING JUNE/JULY 1985


PECTRUM PROGRAMMING
SCD ii 1
Forth words
PV
- DEFINE GRHhmi' U w'
1 DEFINE 3 * UDG + I- C'h' 3 + S
The words used in the program U-HP DO I C! LOOP ;
have the following effects when 2 HEX
executed: 3 3C 3C 3C 3C 3C 3C 3C- L5U O DE
DEFINE Used to produce User Defined Graphics. F INE
PICTURE Draws the grid onto the television screen, I O C ? FF FF FF FF 0 0 1 D T F I N E
prints the scores for the player and computer 5 3C 3C F> f r- r r-F 3C 3C 2 D E
and sets all bytes in the array BOARD to 2
HWT
INE
(i.e. empty). S FF FF Fr FF Fh £ 7 U3 <31 DE
j. r-4
CO-ORDS Finds the values of LIN and COL correson- •* © i C 3 E7 FF FF FF Ff-
U
DE
ding to the square whose number is on top INE
DRAWX
of the stack.
Draws an X on screen in the square whose C
8 FF 7F 3 F IF IF 3F 7 F f f DE
INE
top left hand corner is specified by the 9 FF FE FC FS re r c P E OE
values of LIN and COL. szz
INE -

CLEAN Checks to see if the square indicated by BOX 10 FF FE FC FS F0 £ 0 C0 7 DE


is empty. INE
HIGH, LOW Check tht the value of BOX is in the range 1 1 1 3 7 F I F 3 r 7F FF 3 D E F I N E
1-9. CT
12 3 0 C0 E O F 0 F 8 F C FE F F 9 D E
XIN Accepts a number from the keyboard and INE
prints an X at the corresponding square. C
13 F F ? F 3F I F 0F 07 0 L> 0 1 ft L>£
INE
DRAW-0 Draws a 0 in the square specified by BOX DECIHHI
2 ROW Checks if there are two X's or O's in a row.
CORNER Searches for an empty corner.
RANDOM Produces a random number between 0 and
the number on the stack. This word could be
CP 8
of use in other programs. £
0 t UARIHSLES )
ANYSQUARE Chooses a random, empty square. X
SYSTEMATIC Searches the entire grid to find an empty A 0 U A R I A B L E L I N
square. 0 UOL
RANDCORNR Chooses a random, empty corner. 3 0 U A R I R B L E BOARD 7 J-^LUT
LOOK Checks to see if a square is empty. 0 V A R I A B L E BOX
2INROW Checks the whole grid to find two X's or O's 1 0 URRIFLBLE CORNERS -i H L L J T
in a row. 0 2 6 3 CORNERS : -R C :
FIND-0 Finds an empty square for 0. CORNERS 2+ C
NEWGAME? Checks to see if Y or N is being pressed in CORNERS C-
response to the prompt given at the end of a 6 CORNERS C!
7 0 UFLPIRBLE CHRR
game.
0 UFLRIFLBLE PLAYER
3LINE Used to check for three X's or O's in a row.
8 0 U A R I A B L E COMP
WIN Checks to see if the player or computer has 9 0 UFLRIRBLE XUAL
won the game. 0 URRIFIBLE YURL
FULL Checks to see if there are no empty squares in 10
the grid. 11
XWINS Prints a message indicating that the player 12
has won the game. 13
OWINS Prints a message indicating that the 14
computer has won. 15
XMOVE, OMOVE Lets the player or the computer make a K
move.
TIE Indicates a draw.
XSTART, Lets the player or computer make the fist CR 3 3
move. ( SCREEN T T T.Jl
I N «J» - i :':••.« .
0 START ; A "
• • i mm • * • « • •
3 LPT 6 PIT
M

PLAY Draws the grid and then decides whether the 1 . " • P
player or computer will move first by using
the word RANDOM. 2 STRIPE S AT - 6EB6SL.F^3
BBBBB
> *

RUN Starts the game after compiling. /

3 SETUP CL.S I S 1 D O Z ;
OP 6 S T R I P E 12 s r R i P t ;
FORTH is a language which is
becoming increasingly popular
CLEAR 50000 4 NUHS 3 3 Hi 2 A
and widely used, especially in
SAVE* " M " ; 1
CODE 5 3 2 4 8 , 1 1263
Disc' ^ 11
9 e A* 4- f=
5 15 6 RTT 7 A S ft =• 1 ;
industry and schools, so I feel 6 : P I C T U R E SETUP NLfflb 9 BGUAD
that more FORTH programs The above commands result F I L L 0 16AT . SpeCtrutt: "
should be featured in the popular in the obliteration of the FORTH « C O F I P <3 m 1 8 2i 2 AT *" P l a y s ' " :
computing press. I hope that compiler from memory and so PLAYER J< #
Cr*
this program will encourage should only be used at the end of
other FORTH enthusiasts to a programming session. 9 ( PROGRAM ROUTINES:^
have more of their work publish- To reload FORTH t e x t 10 CO-ORDS
ed. screens from microdrive switch CASE 1 OF I S E N D OR
on the Spectrum and enter 11 2 OF I 12 ENDOF
As well as being able to use 3 OF I 16 ENDOF
SAVET to save screens to tape, 4- O F —?
it is also possible to save screens CLEAR 50000
12
OF c #

t
6
12
ENDOF
ENDOF
to the ZX Microdrive by using LOAD * " M " ; 1 DISC" 13 S OF —y
1G ENDOF
OF
*

the following commands from CODE 53248 —»


r 13 6 ENDOF
FORTH: NEW 14. S OF 13 12 E.NDQF
Q OF 13 I B ENDOF
MON (to re-enter BASIC) Then load the FORTH compiler 15 ENDCASE
i
NEW from tape as usual. COL ! L I N

ZX COMPUTING JUNE/JULY 1985 125


SPECTRUM PROCRAMMIN
^ C Rk C 4- 6 L O O K I F 2 5 2ROU 0 4- 2 R O W
0 ( PROGRAM ROUTINES ^UiflNL^D 13 6 7 2ROL1
OR O R I F 9 B O X * T H E N THEN
1 DRAUX C O - O R D S 14-
L I N e C-OL. 2 A T . " ® H 15
2 L I N © 1 - r C O L . (? A T t
L I N <? C O L® A T
3 L I N © 3 * CCi_ 9 h T . SCR U 7
L I N l? 4 + C O L A T 0 ( F 1 N O X N G S P A C E F O R tf;
4- 1 B O X (2 1 - B O A R D t Ci , 1 : F I N D - D 0 B O X : 45 U r i H H : 2 1
5 ( BOARD C H E C K I N G RCuTiNHi^ NROU B O X 0 = I F 1 CHAR ! 2 I N R 0 U
5 • CLEAN B O X <5 1 - B O A R D + C<? 2 THEN B O X © C = I F P A n L C-JPMR
THEN B O X& O= I F CORNER THE:N
HIGH B O X 3 V N O T; 3 B O XP 0 = IF ANY SQUARE T H L N B
LOU B O X© 1 ; N O T; O X <? 0 = I F S Y S T E M A T I C T M C N ;
8 : X I N BEGIN INKEY 4-3 - B O X * 4- . N E U G A M E ? B E G I N iNr.LV L-UP 7
uOU HIGH CLEAN A N DA N D UNTIL 3 = SUAP 8 9 - O R UNTIL INKtV J
9 B O X £ DPAWX ; 5 : 3LINE D U P C(? 2 - I F D R O P D
1© ROP DROP 0 ELSE C<? C H A R ® = ZURF
j. i C&
12 6 C H A R 9 = R O T Cff C H A R S -
1 3 AND THEN ,
14 7 : W I N3 0 D O I B O A R D D U P 3
+ D U P3 + 3LINE LOOP O R O R
O K 8 7 0 D O I BOARD + D U P 1 + D U P
I+ 3 L I N E 3 +LOOP O R O R
9 BOARD D U P 4- + D U P 4- + 3 L * N E
SCR a s B O A R D 2 + D U P 2 + D^UP 2 3 L
0 t FIND A SPACE F O R O) INE
1 D R A U - O B O X C O - O R D S 10 O R O R O R ;
L I N G? C O L Of A T . " K » - f 11 ; FULL 1 9 0 D O I BOARD t C ®
2 L I N ® 1 + C O L G? A T 2 = I F D R O P 0 T H E N LOOP ;
L I N & 2 + C O L t? A T 12 : XUINS PLAYER S 1 + P L H Y E R f
3 L I N f 3 t C C L J? A T 21 2 A T
L I N & 4 + COi_ £ A T 13 • *' Y o u U i n . A n o t h e r game *? r
4 © B O X ® 1 - B O ARC- f C : ; Y.'N) " ;
5 2ROU BOARD • C3- C H A i v 3 14.
.JAP B O A R D + C(? C H A R @ = A N D; 1 «r
6 CORNER BOARD S + C £ £ - IF
9 B O X " H E N SCR » 6
7 BOARD 6 + C ® 2 = I F 7 B O XI 0
-HEN 1 : OLt I N S 2 1 3 AT ." I U m . A n
3 BOttRu ^ -f C © £ = I F 3 B O X ! other game ( Y r i ) COi-IP ^ C O M P
-EN
v BOARD Ci? £ = I F 1 B O X I T H E N 2 XMOUE 2 0 1 0 A T . ' Your n o v
e" X I N2 0 1 0A T
a© RRMDOM £ 3 6 7 2 t? A B 3 l & e a C M 3 1 CHAR ! U I N FULL O R N O T;
O D C & * 2 5 5 X .. 4 : OMOUE F I N D - O DRAu-O 0 CHAR
11 A N Y S O U A R E S O S Q D O (3 K H N t > 0 » U I NFULL O R N O T;
H D U PBOARD + C<? 2 = I F i-r 5 : T I E2 1 2 A T ." U e D r a w . A n
12 B O X 1 L E A V E ELS E D R O P T H E N L. other game ? (Y/N)" .
6 . X - S T A R T B E G I N X N O C ' E C LiP I F
"13 ' S Y S T E M A T I C 9 0 D O I BOARD DROP OMOUE T H E N N O TUNTIL. ;
- Ct? £ = I F I 1 + B O X ! T H E N L O O P 7 : O - S T A R T B E G I N 3MOUE C <JF I F
DROP XMOUE T H E N N O TUNTiL ^
14. . R A N D C O R N R 9 9 0 D O 3 R A N D O M 8 : PLAY P I C T U R E 1 0 R A N D O M S >
CORNERS + C<? D U P B O A R D + Cfi- £ = IF X - S T A R T ELSE O - S T A R T THEN
15 I F 1 + B O X L E A U E ELSE C R O P 9 FULL I F T I ET H E N 0 CHAR UI
"HEN LOOP" N I F OUINS T H E N 1 CHAR ! U I M
10 I F X U I N S T H E N NEUGAnLY ;
C R© n s 11 RUN 0 P L A Y E R J 0 COMF BE
( BOARD S E A R C H I N G ROUJINE6J GIN PLAY 8 9 = N O T UNTIL
LOOK BOARD +• C 3 2 = J 12
; 2 I N R C J 13
0 LOOK I F 1 2 2R0W 4 3 2RoU 14-
3 S 2ROU 15
OR O R I F 1 B O X » THEN T H E N
4 1 LOOK IF O 2 2RCU 4- 7 2 R C U CP
OR IF £ B O X I THEN T H E N 0
5 2 LOOK I F 0 1 2ROU 4- B 2 R O U LOADER Cl lu . ^ hr M M
5 S PRGU IL NG" 9 1 D C LOHC LOOK
s OR O R I F 3 B O X ! T H E N THEN 10 1 2 A T , READ'
3 LOOK I F 0 6 2ROU 4- 5 2 R O U 3
OR I F 4- B O X© T H E N T H E N 4.
4 LOOK I F 0 2ROU 2 o 2 R O U 5
5 2ROU 3 5 2 R O U 6
OR O R O R IF BOX » T H E N T H E 7
'••J 8
9 5 LOOK I F 2 8 2 R O U 3 4- 9
OR I F 6 B O Xi T H E N T H E N 10
10 6 LOOK I F 0 3 2 R O U I 2 4. 2 R O U 11
7 8 2ROU 12
11 O R O R I F 7B O X ! T H E N T H E N 13
7 LOOK I F 1 4- 2 R O U 6 3 2 R O U 14-
12 O R IF 8 B O X ! T H E N T H E M 15

126 ZX COMPUTING JUNE/JULY 1985


i
CLUB NEWS

universal Club England too, though when we


form a business arrangement
Dear ZX Computing, with a British supplier the shor-
Would you be so kind as to tage of chips etc will be over-
publish this letter. come and the local repairmen
Members of our club, which will be able to do much better
is world wide, communicate via that hitherto.
tapes and letters and exchange Our address remains as
programs, programming tips before:
etc.
May I stress the fact that no CAD Garth Gregson
membership fees are involved, Hon Secretary
the only cost being the price of WA ZX Users Group
postage. All enquiries are 34 Chester St.
welcome, but must contain an South Fremantle 6162
SAE. PHONE: 335 1 6 7 1 .
Yours sincerely,
C. Shaw
Universal ZX Club Christian users
1 Swiss Walk, Batley Dear Sir,
W. Yorks. We would appreciate your men-
So many readers have been
Pen Pal helped by your good work that I
hadtowrite to you. l o w n a 4 8 K
tioning the newly formed 'Chris-
tian Micro Users Association'.
Dear ZX Computing, Spectrum with Seikosha GP We hope to link together a large
I'm fourteen years old and I 250x printer, interface 1 with number of Christian micro users
would like a pen pal. I live in microdrive, and interface 2.1 am WA ZX and also to promote the use of
micros in Church activities.
Sweden and own a 48 K ZX looking for someone to corres-
Spectrum. pond with as a pen pal, and DearZX Computing, There is not only a need to
would be grateful if anyone Since your mention of the WA discover the few individuals and
Magnus Andersson wishing to help me out would ZX Users Group back in companies producing 'Chris-
Ladamnesgatah 2 contact me. September ' 8 4 , our member- tian' software, but also to share
416 79 Goteborg ship has doubled, and a lot of the the expertise and ideas of many
Sweden Yours sincerely, credit is yours. Many new people who have sought to use
Mike de Bruyn members first read about us in micros in their church related ac-
Pen Pal 11 27 Ridge Road your magazine.
We reckon to the the best, if
tivities.
For further details and a sam-
Park T o w n , Johannesburg
Dear ZX Computing, 2193 not the biggest, Spectrum ple magazine, send a large SAE
After buying my first copy of S. Africa. Group in Australia, and though to the following address:
your excellent magazine, I based in one of the least
would like to find a pen pal from populous cities, have members Yours sincerely,
anywhere on the globe. I am Toronto all over Australia. Interstate P.A. Clark (Secretary)
fourteen years old, and I would Dear ZX Computing, members will find our $ 5 annual Christian Micro Users Associa-
like to hear from anyone who I wonder if I could use your Club subscription a bargain! tion
has written any commercial Corner to acquaint Sinclair users We are at present awaiting c/o 6 Walkley Street
software or software that they with our club. It is the Toronto the arrival of a Wafadrive for Sheffield S6 3RG
have written themselves. Timex-Sinclair Users Club. testing and demonstration, after
We meet twice a month and which it will be sold, raffled, or
Yours faithfully, used as a competition prize.
Junior Harris publish a bimonthly newsletter.
Our membership is d r a w n Tests of other such accessories Dear Mr(?) Clark,
95 Garfield Ave. will be done as they appear. On the subject of 'Christian'
Heaton, Bradford primarily from the Toronto area,
though we have members all The Spectrum could still be a software, it might be worth your
W. Yorkshire money spinner for an enterpris- while to contact Magination
across Canada. Our dues are
$20 annually. We are interested ing distributor here. Unfor- Software, 4 7 Clifton Road,
Pen Pal Strikes in exchanging newsletters with tunately the national distributor Newcastle upon Tyne, who, /
Back other clubs. is far away, and the Home Com- believe, have plans to produce
puter market is dominated by some programs along those
Dear ZX Computing, Sincerely, the most advertised product. I lines.
I am a regular reader of your George Chambers can't remember seeing one local Finally I would just like to give
magazine and find it a good Pres. Toronto Timex-Sinclair Sinclair advertisement! Natural- a plug to Don Barnard of the Na-
magazine to read, so good that I Users Club ly we look mostly to the UK for tional Timex-Sinclair Network,
make sure that I don't miss a PO Box 7274 Stn A. Toronto hardware. It is quicker and PO Box 152214, Red Bank,
single issue. Ontario, Canada M3W 1 X9 cheaper to have repairs done in Tennessee37415, USA.

ZX COMPUTING JUNE/JULY 1985 127


ZX 85

Britain's Best Magazine


For The Sinclair user

Don't be disappointed — make sure you


get every issue of ZX Computing!
Just £ 1 3.50 will ensure that the next
six issues will be lovingly wrapped and
posted to you. Just fill in the form
below, cut it out and send it with your
cheque or postal order (made payable to
ASP Ltd) to:

ZX Computing Subscriptions,
Machine
Infonet Ltd, code
2™?Pfties to
Times House, Set you
animated;
179 The Marlowes,
Hemel Hempstead,
Herts HP1 1BB,
Alternatively you can pay with your Access or
Barclaycard: simply fill in your card number, sign the Make the most of your ZX Computer with
form and send it off. Do NOT send your card! ZX Computing — bi-monthly!

r
Cut out and SEND TO: Subscription Order Form
Please commence my subscription to ZX Computing
with the very next issue.

/ am enclosing my (delete as necessary)


cheque/Postal Order/International Money
Order for £:
(made payable to ASP Ltd)
OR
Debit my Access/Barclaycard*
(*delete as necessary)
ZX Computing Subscriptions,
Infonet Ltd,
Times House,
179 The Mariowes,
Hemel Hempstead,
Please use BLOCK CAPITALS and include post codes.
Herts HP1 1BB,

••
NAME (Mr/Mrs/Miss)
£ 13.50 for six issues
ADDRESS
UK

••
£ 15.00 for six issues

Jo
SUBSCRIPTION accelerated surface post
RATES £31.00 for six issues POSTCODE
airmail Signature
(tick • as $ 19.50 for six issues
appropriate) USA accelerated surface Date . . . .
L. mail

128 ZX COMPUTING JUNE/JULY 1 9 8 5


ZX COMPUTING
Lineage: 40p per word.
Semi display: £9.00 per single column centimetre. Ring 01 - 437 0699
for information on series bookings/discounts.
Send your requirements to:
All advertisements in this section must be prepaid.
DAVID HORNE
Advertisements are accepted subject to the terms and conditions ASP Ltd., 1 Golden Square,
printed on the advertisement rate card (available on request). London W1

UTILITIES ACCESSORIES
MD1b/WD1b FOR TAPE TO DRIVE TRANSFER Impossible? No. Our RGB Output Module is the
answer to your prayers
48k Spectrum owners with Micro/Wafa/Disc drives can NOW transfer the • True TTL level outputs plus comp syncs.
MAJORITY of their programs (inc headerless, long programs. + those with LOW
• Monitor quality pictures - no dot crawl.
addresses - say 16384) with our newly IMPROVED package (inc bytes chop/split in
one go, VAL creator (reduced Tasword by 1000* bytes in 2 sees) remkill, make
visible, etc. etc).
SPECTRUM •

Suits most monitors & monitor/TV's.
No modifications or internal connections.

RGB
• Simply plugs into expansion port.
To transfer from tape you must convert the program, and then transfer the • No separate power supply required.
converted bytes. M D I b (or WD1B) has the programs giving you the tools to do the
modifications to get them running. MD1 also has extra program for easy multiple Price £34.95 — £1.00 P 4 P o r SAE for details also
many ZX & Spectrum addons & parts.
erasing, and TRUE cat. They have a new manuaf with example transfers and
exercises OUTPUT
This widely acclaimed program (see Your Spect No 9. P14) is ESSENTIAL if you
are going to transfer MOST of your programs to your drive Try it and see for
odopt electronic/
yourself - no risk!
M D I b ( W D l b for disc or Wafadhve owners) costs a mere £6.99 20 STARLING CLOSE. BUCKHURST HILL.
ESSEX. IG9 5TN. Tel. 01-504-2840
As an EXTRA option to conveniently transfer converted bytes, with integrated
header reader, option to alter program names. STOPS programs, etc, we have MT6
at £3 (for M/drive). or Wafatape at £4 (for Wafadrive) owners. REPAIRS
UPDATE SERVICE: old customers can get the latest version on any product with a
£2 reduction by sending old TAPE only, • SAE (targe).
ALL PRODUCTS CARRY OUR MONEY BACK GUARANTEE (not updates) SINCLAIR SERVICE CENTRE
OVERSEAS: add Europe, £2 others for each product. SAE for enquiries We have the spares for all repairs to: FAST SPECTRUM
LERM, DEPT ZX, 10 B R U N S W I C K
NORTHANTS.
GDNS, CORBY, Spectrum. ZX81 interface 1, microdrive
and RAM pack. You pay £10 plus parts and
and return postage All units repaired
to original standard using genuine Sin-
clair spares, by our H.N.C. qualified
BBC REPAIRS
SOFTWARE staff. Also available Spectrum memory
update 16K-48K fitted by us £28.50
AVERAGE £15
QUANTUM, 33 City Arcade. Coventry
FIRST CO. IN ALL U.K. TO
WAFA DRIVE — or phone Coventry (0203) 24632
MAGIC MESSAGE INTRODUCE WHILE-U-WAIT
MICRODRIVE SERVICE. NOW FIRST TO
Put your name in the Hall of Fame, be OFFER AN INTERNATIONAL
TRANSFER TAPE the Hero of the game Find the hidden REPAIR SERVICE.
Transfer majority of your games list of words in adventure games All S P E C T R U M S EXPERTLY
to Wata Drive or Microdrive using this is possible with Magic Message R E P A I R E D A N D FULLY • Most Spectrums repaired in 45 mins
which lets you look at and change • Please phone for appointment (irst
the 007 WD or 007 MD tapes messages in machine code games G U A R A N T E E D FOR SIX
These use the semi automatic • or phone/send Spectrum for free
Simple load Magic Message, play in MONTHS estimates, enc. £1.80 (U.K. I.O.M.
method proved to be the most main pari of game and like magic Eire, C.I.) £6.50 (Europe/Scandinavia)
successful available. Includes All units also have essential modifica-
messages will appear on your video. tions fitted and are completely over- • No hidden handling charges
transfering of headerless pro- hauled by professional computer • 24 hr turnaround
grams and programs in map area. POST £4.95 FREE engineers using only top grade com- • Every micro insured for return journey
O/Seas. Europe + 50p, others + £1.50. ponents all for £20 inclusive. • Open till 7pm. Mon - Sat.
The Wafa Drive 007 WD includes Upgrades to 48K £30
(Please order as Magic M")
system 2 greatly reduced loading "I have come across a firm that will be
M.P. Electronics, (Service Dept.),
time for multi part programs. The Laurels, Wendllng, Dereham,
more than willing to advise you as to
Longer programs can be trans- ZX G U A R A N T E E D ( Z C ) how to remedy your problem. They are
Norfolk NR19 2LZ. Tel: 036287 327. called MAN-COMP. and as well as
ferred to Wafa Drive/Microdrive 29 C h a d d e r t o n Drive, repairing faulty Spectrums, are also
using the techniques printed in quite willing to discuss your problems
Unsworth, Bury,
newsletters of Microdrive/Wafa with you. and offer reasonably cheap,
Drive Exchange. Lanes BL9 8 N L . SPECTRUM REPAIRS and (more importantly) correct cures."
Scrabble. Matchpolnt being two Phil Rogers Peek & Poke', Popular
We expertly repair Spectrums Computing Weekly, Jan 1985. (Vol IV
such. No. 1)

FUZE
007 WD or 007 MD on cassette £5.95 for £17 inclusive of parts and
007 WD on Wafa £8.95 labour and return postage.
O/Seas. Europe • 50p others + £1.50 M A N C O M P LTD.
Mlcrodrlve/Wafadrlve Exchange Club
Membership is just £6.00 for 12 issues FUZED Spectrums upgraded to 48Kfor
£34 inc. P&P All keyboard
(Dept ZX),
Printworks Lane,
DEFUZED
(£9.00 Europe. £12.00 elsewhere) faults cost only £12.
ZX Guaranteed (ZC), 29 Chad-
derton Drive, Unsworth, Bury,
R. A. Electronics,
133 London Rd, South Lowestoft,
Manchester,
Lanes BL9 8NL. Tel:061-776 5712
CONFUZED Suffolk.
Tel: (0502) 66289.
M19 3JP.
Tel: 061-224 1888.
NEM f RELEASE!!!
• Stanley and the
conFuzion C O M P U T E R REPAIRS
IN S O U T H E N D
SPECTRUM, BBC. ELECTRON,
wallbanaars * PREMIER LEAGUE CBM 64, VIC 20
48X SPECTRUM A SUPERB NEW
MANAGEMENT STRATEGY GAME
FOOTBALL MINNIE MICRO ELECTRONICS
12 Eastern Esplanade, Southend
FAST ACTION, EXCITINB. FOR THE 48K SPECTRUM Tel: 0702 62033/615809
ADDICtlVE AT LAST! A Football game for the
£5.95 INC. MP.
serious enthusiast - Using the FULL Open 7 days a week
SINCLAIR
memory of your Spectrum
8 DARWIN R0, FEATURES INCLUDE COMPUTER REPAIRS
5 » toff°A 16 2£fi Tel: 01 Training, Team Selection, Subatltutei, BBC SPECTRUM REPAIRS Alt machines dispatched within 72
304 341 f . Han-time tcoret, Full Squad detail*. * Spectrum repairs £18.50 inc. parts hours of receipt,
Named Goal acorara, Team atylet, insurance and p.p. spectrum £16.00 ZX-81 £12.00
Save Game, Financial problem*, PLUS * BBC B repairs £18 50 + parts, Spectrum 16 to 48K upgrade £27.50
Z X - 8 1 Extended Basic Level 2 MANY, MANY MO RBI (inc. parts, VAT and return postage)
insurance and p + p.
very fast, see review F e b / M a r c h , STOP SPECTATING - START Send your computer with cheque or For a fast and reliable service, send
20 Extra Statements! Example: MANAGING P.O. for £18.50 and description of fault mach'ine. brief description of fault and
Mall order only — UNBEATABLE
Read Data circle in/out. Draw VALUE at £4.75 or tend SAE lor full to: SUREDATA (ZX). cheque or postal order to the experts:
Computer service Capital Computer Services, Sinclair
payable to: R. Beniest, Linnaeusstr details to:
Dept., 44 Rich's Road, Cardiff CF4 4AA.
DEPT. C. E A J SOFTWARE 45 Wychwood Avenue, Edgeware,
16 1 2 5 2 2 GS, D E N H A A G , Mlddx. Tel: 01-951 0124 PL53 Tel: (0222) 614401
59 Stalnton Rd. Enfield, Mlddx.
HOLLAND.
ALARMS VIDEO REPAIRS
BURGLAR ALARM Equipment.
Please visit our 2,000 sq. ft.
showrooms or write or phone for
XXX VIDEO SPECTRUM REPAIRS
your free catalogue. CWAS Ltd.,
100 Rooley Avenue. Bradford BD6 Telephone (day or night)
A Better Deal from Micro-World
1DB. Telephone: (0274) 731532.
0373 - 830563 REPLACEMENT OF MIC, EAR & POWER SOCKET £8.95 ys-
FOR DETAILS KEYBOARD FAULTS: Replacement of Membrane, wl
_ _ ...
Mat & Plate (Note all three are replaced) 95 xS
Glossy list from: XXX Video NEW CASE UPPER & LOWER Inc new keyboard as above 95
Club, 2 Streatham High Rd., ALL OTHER FAULTS 16K Spectrum £17.95 48K Spectrum 95 ft!
MISC London SW16
(You must be over 18 to ask for details) POWER SUPPLIES (Spectrum - ZX81)
16-48K UPGRADES (12 months warranty)
S P E C T R U M P.I.O. 16-Bit • Prices fully inclusive of VAT & Return P8P
Programmable £9.95. Also • 48hr turn round on most machines
• 3 months warranty on repairs
S P E C T R U M A D C / D A C 8- • Send SPECTRUM ONLY suitably packed clearly stating
Channel, 8-Bit, with 240V relay
output, includes 16-bit P.I.O.
WANTED fault, your name & address, cheque or postal order to:

£24.95. Also S P E C T R U M Micro-World Computers (ZX)


JOYSTICK INTERFACE using SECOND HAND SPECTRUM 1006/1010 Manchester Rd. Linthwaite. Huddersfield HD7 5QQ
Kempston standard with any Atari- GAMES wanted - originals only TEL 0484-846117 Showroom open 9-5.30. 6 days
type controller £5.50. Cheque/PO (with inserts, etc.) Disliked/Over-
to:- R. Chandler 5 Norfolk Place, zapped/dissappointing games -
LEEDS LS7 4PT. Tel 693540 we'll buy them! Send list for offer
comprehensive instructions
included.
by return! G. Inglis, 37 Cockburn
Street, Edinburgh EH1 1 BP. TO FILL THIS SPACE
COURSES PHONE DAVE ON 01 437 0699
SERVICES
PRACTICAL COMPUTING BOOKS
A series of 1 day courses for begin-
ners: programming; business appli-
DATA DUPLICATION LIBRARIES HACKERS/Llst the unlisted. A
MG. Copies (ZX), Burntwood,
cations. £25 per day (lunch Walsall, Staffs WS7 0ES. guide for the novice, trace unlisted
included), with qualified tuition Data duplication, quality cas- Free Spectrum Software loan computer phone numbers auto-
Details from: settes, printing, flexible delivery when you join our library. Games dialfer i n f o r m a t i o n , l o g - o n ,
with competitive prices and fast educational/utilities available. Full networks, Telephone medium,
COMPUTER WORKSHOP turn around. Prices and samples
32 Sydenham Road, SE26 5QF details from Cygnet Software' 412 legal note's, £6.75. Andersons
on request. 0543-480887 or Fulbridge Road, Werrington, Computer Services, 56 Waterloo
PHONE: 778 9080 05436-75375 (24 hrs)
Peterborough PE4 6SE. Road, Freemantle Southampton.

ZX COMPUTING
CLASSIFIED ADVERTISEMENT - ORDER FORM
If you have something to sell now's your chance! Don't turn the page — turn to us!
Rates of charge: 40p per word per issue plus 15% VAT (minimum of 15 words). Please state
classification and post to: ZX COMPUTING, CLASSIFIED DEPARTMENT,
1 GOLDEN SQUARE, LONDON W1.

£5.25
£7.00
£8.75
£10.50
£12.25
£14.00
£15.75
£17.50
Please place my advert in ZX COMPUTING for issues commencing as soon as possible.
t am enclosing my Cheque/Postal Order/International Money Please use BLOCK CAPITALS and include post codes.
Order for (delete as necessary) £ (Made payable to A S P Ltd)
Name (Mr/Mrt/Mlss/Mt)
OR Debit my Access/Barclaycard wrm Addr^.^.rrT.'
WS4 (Delete as necessary)
mmmmm F—
Signature Date.
All classified advertisements must be paid for in advance. Daytime Tel. No
titer

fhfrstmuLaiiOi
i r a t e " " - * p *

Hjfne eombrn * * #i

rbHingjifapfi
; £
Libferty House,

AIJUSPTPA
222 Regent Street^
London W1R 7 D B | IPTHLORIEN
Soft ware {.rou
Telephone 01-439^666
1

48 KSPECTRUM The g a m e of the film by

a -

h
j

i
ii
j
ii

m m m LM
Quicksilva Mail Order,
P.O. Box 6, Wimbome,
Dorset BA217PY.
Telephone (0202) 891744.

Selected titles available at

's WHSMITH WOOLWORTH

F^^J^^WPWWJ and leading multiple retailers and specialist


computer stores.

You might also like