ZXComputing Dec-Jan 1983
ZXComputing Dec-Jan 1983
,-v i i7\
QoIKIPQMK]®
gram
zx spectrum, z
and ZX81
Computers
\
PLUS
3-D Graphics
Maze-Chaser on C ectrum
Education and Busin on the
Sinclair Computers
Defeat the Wall with Only a
COnPUTERGUIDES
PUBLISHED BY SINCLAIR BROWNE LIMITED
SB
The ZX Spectrum
The
ZX Spectrum
Explored
INCLUDES OVER 20 PROGRAMS
Explored , by T i m Hartnell,
INCLUDES OVER 20 PROGRAMS A Editor of ZX Computing Magazine
Forward by Clive Sinclair
TIM HARTNELL K
Foreword by
In this practical guide — with programs
Ct.lVF SINCLAIR throughout — r i m Hartnell takes his readers
from their first steps in p r o g r a m m i n g 10 how
the / . \ S p e c u u m tan be used as a tool at
home, at work and lot education. lit- looks ai
the use of sound, eoloui and .SI) graphics,
and shows how to write programs in BASIC-,
as well as how to use machine code on the
fl S i n c l a i r -
RGLHDE / X Spectrum.
The ZX Spectrum t xplored
is complete with
main programs lor education, business and —
not least — pure fun!
0 946195 00 3 approx. 220pp
Distributed by
SPECTRUM
Fearlessly battle your way up the ranks... encounter enemy fleets
survive mutiny, fever and famine... endure fog, fire and thirst, then
when you think you've done well., rush home to Port for promotion!
_ SOFTWARE
16K SPECTRUM £4 95 48K SPECTRUM £6.50
MULTI FUNCTION CASH CONTROLLER
Takes care of your Home Budgeting, Bank Account, Standing Orders
JACKPOT FRUIT MACHINE Loan and Mortgage Repayments Complete security ensured by
Featuring holds, nudges and realisftc hi res. symbols Colourful - just secret password. A budgeting bargain for only £10
like the real thing! 'SHAKEN BUT NOT STIRRED!' 48K SPECTRUM
Plus
A James Bond 007 Adventure.
SUBMARINE ATTACK Recover a stolen warheadfromthe lair of Dr. Death, butfirstfollow
Destroy them before they destroy you Fantastic fast action fun Both the trail across continents, locate his secret island, encounter the
games just £4.95,48 K SPECTRUM steel fisted giant Paws thenfindyourself in his underwater maze and
Boldly Go where no Spectrum has gone before... in hopefully find the missile... But It Doesn't End There!
SUPER SPACE MISSION Can you resist being 007? Only £6.50 48K SPECTRUM.
r
Incredibly fast machine code graphics. Dodge the swooping aliens ORDER FORM Please send me
and meteors. Fight exciting multi directional laser battlesfromyour Jackpot/Sub Attack ai £4 96
moving starship Really exceptional graphics, seven skill levels, only
Space Mission at £4 95
£4.95 for 16 or 48K SPECTRUM or 16KZX81 J
Monster Mine at £4 95 7et ~ "
MONSTER MINE 16K'Ship of the Line at £4 95
off
Escapefromthe depths of the legendary El Dorado mine by dodging 48K Ship of the Line' at £690
the monsters and collecting the golden nuggets Full machine code. 48K 'Shaken but not Surred'' ai £650
Only £4.95 for 16 or 48K SPECTRUM or 16K ZX81, 48K Multifunction Cash Controller a' £1000 By First Class Post
On Quality TDK
O R D E R BY D E C E M B E R 15th R E C E I V E D BY X M A S Cassettes
Richard Shepherd
I enclose my chetjue/Postal Order for £
payable to Richard Shepherd
Software Name
Address
FREEPOST (No stamp required),
Maidenhead. Berks SL6 5BY.
Machine K Memory
CONTENTS
Letters Mastering Machine ZX8116K Spiro-
Another chance for readers to get it all
Code On Your graph 43
off their chests and air their views. Spectrum 27 Amaze your friends (again?) with some
of these imaginative displays.
A Pair of Zippy Road Further enlightenment on the mysteries
of machine-code — from Tom Baker.
Runners 13 wage control For A
A little colour and sound can do wonders
Making Sense Of Small Firm 46
for you. Find out how with this program Bubble Sorting.. A complete business program which can
for the ZX81 and Spectrum. smooth out a multitude of problems.
Get your array's into order. Mike Biddell
Talking Turkey bravely takes on the task of explaining
the unexplainable! What's it All About
According to this program the English Michael? 52
language doesn't exist anymore, so be All in All You're Just 'What is a
adventurous and rewrite it w i t h the help
of your Z X 8 1 , it knows all the rules.
Another Brick 33 A n s w e r s the question
computer?'.
Don't bang your head against it, just try
Stretching Your and demolish it before it eats you up! One Spectrum Rules The
Spectrum 15 of t w o exciting ZX81 programs from
Adam Waring. waves 54
Not a painful form of Keep-Fit, but an Publishers are j u m p i n g o n t o the
invaluable article by Dilwyn Jones on Three Dimensional Spectrum bandwagon in increasing
how to get the best out of your ZX
Spectrum's display.
Cubes on the ZX81 37 numbers, but our intrepid reviewers will
lead you through the labyrinth.
Luc de Jaegar from Belgium shares with
For The Praise of you his discovery of how to get 3-D First Steps in
Mazogs 21 cubes on your Z X 8 1 .
Programming the
What is a Mazog, you may ask? Our Fancy A Drop Of Spectrum 58
reviewer waxes lyrical over t h e m
anyway, so .read about this highly
Bubbly 41 Take a deep breath and start reading. All
will be revealed by Martin Wren-Hilton.
entertaining new game. T w o versions of the
Life in Machine
'Lemonade Stand'
program from f
On Your Marks . . . 6 1
Code 22 Paul Holmes.
for 1 K and 1 6K.
v
^
Back to school, where learning starts to
be fun with these new educational
A program from K 8 Cusson that will programs which cover many different
impress you with its speed and results. subjects.
in 86 under The ZX
Were you the lucky winner of the ZX Scope 109
Printer? Turn to page 8 6 to find out, and
see what it took to be one of our best See what you can find up close with your
entries. ZX Computer.
ZX81
Suit
children No c o m p i l e
ZX LOADING AID for
E
coltecfwi
ages 5 - I I
so much ZX80, Z X 8 I or ZX Spectrum (Please specify] Removes guess- Si
WJO little work from adjusting volume- Plugs in between computer and tape
slrongly
recommended toy _ _ _ recorder Red & green LEDs on — Optimum Volume Set Red LED
| educational | Fifty high-quality programs to turn your ZX81 [only] on — volume too low Yellow LED on — Volume too high
•uihoritiM or Spectrum into a powerful educational tool.
And rov don't #ven need lo know prop/ommmg £11.95 [Incl. instructions, p&p & V A T ]
Tifrm cf*r inttrucnoni snd p'enfy ot llp$ Push button to reset K Cursor £1 extra
A edrica to 90 beyond drtU A praertce Earphone & SKT to monitor Voice Overs' £1.50 extra
tft* promo f strung through mitt»c lion A «tcoiwr
SPECTRUM
Includes;-
TORTOISE
A simplified
ZX81 KEYBOARD BLEEPER
version of the Provides feedback missing Irom touch sensitive keyboard cheaply
famous Turtle — easy installation All 2 1 0 characters bleep in slow & fast modes.
Creative use programme No soldering required — all connections plug-m llluslrated
graphics instructions supplied Fits inside case either under keyboard or
COQEO MISSILE
ZX81 PCB No trailing wires — also suits most full size keyboards.
Many innovative Combines the
fun of arcade £9.95 [Incl. illustrated Instructions, p&p & V A T ]
ideas
games w i t h
learning O n / O f f Switch £1.50 extra
i Fully documented
| Includes many £ 5 95 only T-SHIRTS £3.50 SWEATSHIRTS £7.50
games paperback 110 pages
plus Spectrum supplement Black with Red "SINCLAIR ZX81" or White with Black ZX
Graph-pbttef • Histogram • Simon-spelI l SkfcKhtxjwd • Times-table • Set} SPECTRUM" + Rainbow
Ser.es-quii • XY-coordinates • Count i Equations • Areas • Guess-a-Vokir* Terrific hand airbrushed multicoloured designs. "I'm a Micro
Angles • Upstairs-Downstairs • Music-notes • See saw • Wipe-out • Spefl Addict" or "Micro Computers Take You Into Another World",
EDUCARE
Temperature • Clock • Money • Snake against space scene.
Mastermind • Number shoot • +26 more T / S £4.50 S/S £9
Specify size required — 24" — 44"
[j^ ""["please send me copies Educates 5 0 |
I EDUCARE 11 enclose cheque postal order for f . . SEND SAE FOR FURTHER DETAILS
139a Sloane St , N a m e
London ... _
I FULCRUM PRODUCTS, Dept B,
1 |AddrCSS
O
SW VVI XI 9AAJMI
Y I Hillside, Steep Lane, Findon, West Sussex BN14 0UF.
Z X S 1 MACHINE C O D E ?
Z X . A S Z M I C r o m transforms ZX81 into an
A s s e m b l y L a n g u a g e programming unit
0 FULL-SCREEN EDITOR
Sixteen t h l l t k e y i take you into a w o r l d with a word p r o c t i i o r f e e l . A blink c u r s o r
m o v e * at your c o m m a n d t o c o n t r o l i n s e r t i o n , r u b o u t , line or s t r i n g d e l e t i o n , auto*
• c r o l l I, page flip up o r d o w n . Text block o p e r a t i o n * . U l t r a - f i a t e d i t i n g .
0 MULTI-FILE S Y S T E M
D e c l a r e a t m a n y fllea aa you tike, with any n a m e * you l i k e , k they a r e a u t o m a t i c a l l y
handled by the O p e r a t i n g S y a t e m , Merge t h e m , delete t h e m , p r i n t , l a v e L load t h e m ,
fc adit t h e m by n a m e . S u p e r b f l e x i b i l i t y with a a i m p l e but powerful a y a t e m ,
0 TOTAL A S S E M B L E R
F u l l z a o m n e m o n i c * , u n l i m i t e d length l a b e l * , O R G tr E Q U d i r e c t i v e ! , p r o p e r a s s e m b l y
l u t i n g s with e r r o r * flagged on s c r e e n or p r i n t e r . R e l o c a t a b l e object code h options to
f a c i l i t a t e c r o s s - a s s e m b l y . I n t e r p r e t i v e i m m e d i a t e execution a v a i l a b l e .
0 POWERFUL DEBUG
A l l the u s u a l d u m p , m o d i f y , HI) L copy c o m m a n d s , plus b r e a k p o i n t * . Single stepping,
context c o n t r o l , the c o n v e n i e n c e o t i n t e r p r e t i v e execution m o d e , fult use of the n a m e s
in your p r o g r a m . C o m m a n d M a c r o s , a u t o d u m p , and full o p e r a t i n g s y s t e m I n t e r f a c e .
The
times
the
a-chak
We've seen a number of new
computers, in the under-£1 50
price range, released in the
delays in the past few months,
orders for t h e S p e c t r u m
continue to flood into
brings its o w n problems. It is
difficult to know which
program to buy, and in this
complex world of registers and
addresses, our BASIC LIFE
program of the last issue has
past few months. Several Camberley. Clive Sinclair says issue reviewer Phil Garratt become a four-page machine
Japanese machines, including that sales of the ZX81 jumped casts his professional eye over code program, and I expand
a low-price machine which by 5 0 0 per cent when he a n u m b e r of Spectrum the material given on teaching
appears to be an Apple in all dropped the price from packages, including programs your computer to play board
but appearance and price, are £ 6 9 . 9 5 to £ 4 9 . 9 5 . with the intriguing titles of games w i t h a couple of
creating immense interest in So, whether you decide to Meteor Storm, Space Intruders programs w i t h full-screen
the marketplace, and disquiet buy a ZX81 off the shelf right and Great Britain Limited. displays.
among homegrown computer now, or stand patiently in line Nick Pearce continues to Bubble sorting is discussed
manufacturers. for a Spectrum, you'll be in delve into the ZX81 software along with the use of the
Commodore have a £ 9 9 . 9 5 good company. The large explosion, and in this issue Spectrum's ATTR function.
colour machine on the way, number of machines on the looks at Byteman, Namtir There's much more, as
the £49.95 Binatone market, a strong national users Raiders and Space Mission, you'll see when you leaf
computer seems to be a club and many local clubs, and among others. You'll find, as through the pages of this
genuine project which will a large body of good software, well, a review of a program issue, so I suggest you start
spring fully formed into means the country seems which already seems to have the serious business right now
Woolies stores shortly, and the almost purpose-built to ensure attained the status of a ZX81 of making the most of your
Jupiter Ace, the Forth- that buyers of ZX micros will 'classic', the unique MAZOGS micro with ZX Computing.
speaking machine from the be helped from every direction from Bug-Byte. We look at
t w o key men in the project to to make the most of their hardware add-ons, as well, TIM HARTNELL
build the Spectrum, is building machines. with an interface to allow your
up a sizeable following. ZX Computing is, of course, ZX81 to be connected to an
But despite this competition, part of the life support system ordinary printer being (Tim Hartnell, the editor of ZX
and despite the inevitable fact which has evolved around the highlighted. Computing, is author of a
that the computer marketplace Sinclair computers and in this In the last issue, we started number of books, and is co-
is fragmenting, the Sinclair issue we have much to interest several topics w h i c h are ordinator of the National ZX
computers seem to have a hold you, no matter which Sinclair continued and expanded in this Users' Club, 4 4 - 4 6 Earls Court
on the imagination which no machine you have. issue. Toni Baker's series on Road, London W 8 6EJ, which
other machine has acquired. The 'large body of good mastering machine code on acts as an umbrella club to
Despite immense delivery software' I mentioned earlier the Spectrum gets into the local clubs.)
PROGRAMMING YOUR
ZX SPECTRUM
Tim Hartnell and Dilwyn Jones
THE SPECTRUM
SOFTWARE LIBRARY
6 0 G A M E S A N D APPLICATIONS FOR THE
Z X SPECTRUM I
By David Harwood
Interface,
Dept. ZC
44-46 Earls Court Road, London, W 8 6EJ
Please send m e :
I ) P R O G R A M M I N G YOUR ZX S P E C T R U M - £ 6 . 9 5
Name
Address
13
ZX COMPUTING DEC 1982/JAN 1983 12
SOFTWARE
TALKING
320 LET X—C-37
330 NEXT I
34-0 IF INKEV $ = THEN GOTO 34-0
345 CL5
350 GOTO 265
TURKEY
A poetry' version of the program:
3 R E M " P O E T RY UERSION
10 DIM '. 2 6 . 2 3 )
23 LfrT (1) ="TNIR5HMGSCDFJKLI;
.V : q t U - f X Y Z "
This program
£5 LET AS ( > = " E A O I U '
30 LET PS (3) = " E T f i O I S H U
35 LET A S <4 ) = R S ( 3 )
although the
59 L E T A * ( 7 ) =' E A O I S H U
TO L E T R S (8) =A $ (2 )
80 L E T R S ( ? ) = " T E C N ' R S H .3 £<F J K L
English language
r'GUUUXYZ
9© L E T RS
100 LET R£ i 11) =AS (2 )
Stretching your
Spectrum
Dilwyn Jones, who has written several articles on
making the most of the ZX81, now turns his
attention to the Spectrum. This article will show
you how to get the best out of your Spectrum.
Screen tricks You may have noticed that
some INKs and PAPERs come
mon problem. Problem? No!
Just specify INK 9. You can now
Enter and run this program. out the same after the random read everything.
What does it do? printing in line 20. This is a com-
10 DIM i $ fTed )
2C PRINT PiT RND*20 R' iD * JL,, C H R $
IR NDI££3 T 3 2 ) 10 DIM i$£704>
30 PRINT AT 0 . 0 ; OUER 1 . I N U E f t
I S FOR i =1 TO 50
SE 1; i$ 20 PRINT PT R N O f 2 0 , R N D J 3 1 ; INK
GO T O 20 RND i 7 j PRPER R N D * 7 ; BRIGHT RND;
FLAS H RND;CHR$ CRND*223f32)
25 NEXT i
About t w i c e a second within a string of spaces, so it o0 PRINT P.T 0 , 0 ; OUER 1 . PAPER
something is printed on the can provide a true screen inver- 8.: I N K CI.; B R I G H T ' S,' FLASH S. i $
screen, then the entire screen is sion very quickly. This works
inverted. Who needs machine well in black and white, but it is
code? Actually it's done by prin- easy to modify for colour by ad-
ting a screenful of spaces OVER ding local PAPER, INK, FLASH We can do the same to the in this colour on the screen may
the entire screen in INVERSE and BRIGHT controls with an 8 PAPER. By specifying the paper appear to vanish as, say, green
which has the effect of causing parameter each (to prevent colour, and leaving all other at- text on green paper is not all that
everything that was white on global colour parameters etc. to tributes the same, the entire easy to read! This example
the screen to turn black and play havoc under some cir- b a c k g r o u n d colour can be draws random characters with
everything that was black to cumstances). All this does is en- changed w i t h o u t disturbing random attributes, then sets the
turn white: normally you would sure that the same attributes are anything on the screen or using entire background to yellow.
expect OVER to use its EXOR maintained, but that INVERSE 1 CLS. Note that anything written
action to erase some parts, but is effected.
there isn't anything to EXOR
(RN 10 DIM i $ (704.)
15 FOR i =1 TO 30
10 DIM i|ii704:i 20 PRINT A T RND * 2 0 ,RND # 3 1 ; INK
15 FOR i = 1 T O 50 R N D •* 7 ; P A P E R R N D f ? ; ' B R I G H T ' R N D ;
SO P R I N T R T R N O * 20 RND* 3: . ; I N K FLASH RND;CHR$ (RND*223+32.*
RND*7; PAPER RND* 7 FL&5.H RND.; C 25 NEXT i
HR$ l RND 2 3 +32 J 30 PRINT AT 0,0.; OUER l y PAPER
2 5 NEXT i S; INK S ; BRIGHT 3 ; FLASH B ; i $
30 PRINT INVERSE h T 0..: D U E
R 1.; P A P E R INK 3 ; B R I G H T B ; F
L R 5 H 3 , i i You get an interesting effect or FLASH 1 (ie. extra bright or
with any yellow area that has a flashing) to highlight them, then
BRIGHT attribute of 1 with the after they had been acted upon
The same idea can be used to r a n d o m c h a r a c t e r s on t h e above program. If you had pro- you wished to cancel them; et
turn all text and graphics on the screen in random INK and vided user prompts in BRIGHT 1 voila. . .
screen a particular colour by PAPER colours, for demonstra-
omitting the INVERSE 1 state- tion, then changes all characters
ment (or specifying INVERSE 0) to black and while keeping
and specifying an INK colour brightness, flashing and paper
rather than leaving it INK 8. For attributes the same:
instance, this program writes
10 DIM i $ ( 7 D 4 )
1 5 F O R i =1 TO 50
20 PRINT RT R N D * 2 0 , RNI>.+3J XMK
RND*7; PAPER RND*7, BRIGHT RNP;
FLASH RND;CHR$ f RNlDif.223
2 5 NEXT i
3 0 RP I N T AT C A i ; O^LK l ; KAPER
S; INK 3 ; BRIGHT 3 , FLASH 0 ; i *
Note that in all the above ex- slow, first draw it the normal X
amples, the "screen tricks" are way in the same INK colour as
all accomplished in one line! the PAPER colour so that its in-
Remember: The answer to the visible, then use the above
ultimate question of life, the technique to change the shape's
universe and everything is a str- colour so that it instantaneously
ing of 704 spaces printed OVER (well, a fraction of a second)
1 overtheentirescreenwithcol- becomes visible. Try this pro-
our 8's! gram which draws 4 concentric 1 2
This technique opens up an circles in magenta on a yellow
interesting possibility — if you background. The drawing pro-
want to draw a complex shape cess takes about four seconds.
which would normally be very Y
- INK 3 . P^SRER m M
10 DIM i 5 (7G4)
CO
15 FOR i =10 T O 70 S T E P 20
CIKU LE 12-3 . ,.
OC; MCyj ,
This is only the bare bones of an Variable 2 3 6 5 8 has BIT 3 set to BIT 7 6 5 4 3 2 1 0
idea: using an overprinted string indicate CAPS LOCK ON, a sim-
of spaces to control the display ple POKE 2 3 6 5 8 , 8 will switch
attributes without affecting the
picture is a powerful, fast pro-
on CAPS LOCK and POKE
2 3 6 5 8 , 0 will turn it off again.
* BORDER
COLOUR
gramming tool. Care is necessary when POKE- LOWER
FLASH ALSO LOWER
ing into this system variable SCREEN INK
To allow the spec- since it controls other facilities LOWER SCREEN
trum to switch as well, e.g. BIT 6 controls SCREEN PAPER
OVER. For fun, plug in your prin-
o f f / o n the caps tr and enter this; LOWER
lock SCREEN Here is a diagram to show the
function of each bit of this system
Since the FLAGS2 System POKE 2 3 6 5 8 , 2 BRIGHT variable, called BORDCR.
>u want By pokeing various values into above line is easy: just type 1 0 Try deleting it by typing in its line doing this as it is not intended to
this system variable you could followed by ENTER and the line number; try using EDIT. Quite be done. You could place all this
,8 achieve, say, a flashing black has been deleted in the normal secure isn't it? To delete it you into any part of a program and, if
nyi t and white lower screen or a way. What is needed is a will have to go through all that you're keen enough, you could
white lower screen that stands method of inserting lines into a POKEing again. But if you think place a bright, flashing, coloured
" N "
out brighter than the rest of the listing which are very difficult if about it you've got a problem — copyright statement onto each
white screen for INPUTS etc. Try not impossible to delete. Part y o u c a n ' t use the s y s t e m page of a listing so it stands out
these two with a white screen one of the answer is that if you variable NXTLIN because line 0 whichever part of a listing is
(PAPER 7:CLS) manage to get a line numbered is now the first program line — viewed. If you aim to use it a lot,
0 into a listing it cannot be any other lines entered are you could put the t w o lines on
POKE 23624.BIN 1 0 1 1 1 0 0 0 deleted in any of the normal sorted as entered into numerical tape and use MERGE to add it to
J normally (1 841 ways since line number 0 is order and will all go after line 0 . y o u r p r o g r a m . If s t a r t i n g
it may be POKE 23624.BIN 0 1 1 1 1 0 0 0 normally associated with direct NXTLIN will not give the right programs from scratch, save the
fre using (120) c o m m a n d s (eg. e n t e r t h e address unless used in the line t w o lines on tape using
m and on- command PRINT without a line b e f o r e - t o u g h l u c k . For
set BIT 3. You cannot normally get this ef- number: you should get report security (!) I'll leave you to work
0,0). If you attempted to enter out how to delete line 0. There SAVE " ( N A M E ) " LINE
fect with INPUT statements, as
colour controls etc. only affect are several ways of doing this,
the prompt string. Changing 0 REM (C) Fred Bloggs 1982 but they might not be very This will automatically create
BORDER colour affects this: for obvious, or verv "roundabout" line 0 when reloaded, leaving
instance lower screen INK (be- you would be rewarded with ways. There are no prizes for only the task of deleting line 1.
ing "automatically" 9) would the cheery message
revert to either white or black to NONSENSE IN BASIC w i t h
report C. So that's out. What
ensure maximum contrast so
that anything typed in the lower we have to do is enter a linq Press any key to displaying a list of instructions
screen can be read easily. w i t h a normal line number (eg continue then ask the operator to press
10) then change this number to A common requirement is to any key to c o n t i n u e after
zero. Difficult? Not a bit (no pun suspend execution of a program f i n i s h i n g reading t h e
Pause and intended). We could do this by pending an instruction from the instructions. This part of the
FOR/NEXT loops looking through the program for operator. An example would be program may well look like this:
There is normally no problem the line number, followed by a
with using PAUSE on the Spec- REM then POKE away until we i 1 5 t r L' t i C< - J
trum. But where a fixed delay is get what we want.
required, PAUSE may cause pro- However, this would be too I
blems. PAUSE is cut short by a slow and messy. A better way 1 0 0 0 PR I N T " P i e i i = r- f.ty t o n
is to use the system variable t 1 n u = . "
keypress so if you held your 1^10 I F I N K E Y M " " THEN 3 0 TO 101
finger on a key all PAUSES NXTLIN contained in
a
would never occur. This pro- 2 3 6 3 7 / 8 which contains the
blem can be alleviated by the use address of the start of the next
of FOR/NEXT loops as delay program line (NOTE: LINE not ires t f p r c - 3 ' 3 &>
loops. To achieve a delay of 1 STATEMENT). The Spectrum
second (approximatly) use manual tells us that each BASIC
program line starts off with a This is fine, but if you press other people will remark " w h a t
line number stored in t w o bytes CAPS SHIFT or SYMBOL SHIFT a stupid program". There are
FOR A = 1 TO 220:NEXT A
in the order More significant the program will ignore you and some ways out of this:
Non-deletable Byte (MSB) followed by less
Significant Byte (LBS).
program lines Therefore, line 1 would be 0 , 1 1S0O PRINT ••Pr-di V 1.* l• • •
SJ , , »
->' - C.3
.1 J*
-1 o t
W K V
RUN the program. Now LIST although subsequent lines will COn
the program. Note the zero line 1000 PRINT "Press any Key
go in the right place. Line 1 is no •-inue" _
number where there used to be longer needed — delete it as 101O IF I N K E Y f f i = " " RND I N S5H78=2
a 2, and note also how the lines normal to prevent others using S S R N D I N 3 2 7 5 6 = 2 5 3 " H E N GO To 1
1 are not sorted into the correct it to correct what you've done. 0 1 0
INK order; sorting only takes place You should now have:
when lines are entered; once
they're in they stay in order The keyboard is located in what MIC and EAR sockets, the
0 REM (C) Fred Bloggs 1 9 8 2 is called I/O space, meaning internal loudspeaker, the
INPUT/OUTPUT. These are k e y b o a r d , the printer and
w the methods of getting information microdrives and the RS232
\is system 0>REH © Fred B l o g g s 1932 in and out of the computer from interfaces are all examples of I/O
and to the outside world. The in action. The most significant
You should hear a clicking noise RUN the program again and Diagram of I/O ports associated
same colour as the border). The with the keyboard, and which bit
from t h e Spectrum's every time you press a key,
border reverts to the colour of of the ports are associated with
l o u d s p e a k e r a n d see t h e subtract the number written
the lower screen when you type each key. Note how bit O is
s c r e e n ' s border c o l o u r go under the keyboard keys in the
something. If you understand always on the outside and bit 4 on
haywire! The colour changes so diagram from 2 5 5 , eg. if you're the inside.
anything about Binary, this
rapidly, you may be able to see pressing 0 subtract 1 from 2 5 5 ,
diagram of the eight bits of
several border colours at once! giving 2 5 4 . If you're pressing 8, diagram are the symbols DO to
PORT 2 5 4 may help to explain
Note that whilst this program is subtract 4 from 2 5 5 , giving D4 again — these represent
how the port manages to do
running, the lower t w o lines of 2 5 1 and so on. You should get individual bits of the I/O port. In
more than one thing at a time.
the screen do not change colour the same number as that the this application only bits 0 to 4
Like a memory location I/O ports
(they would normally be the program writes on the screen. are used for the keyboard, as
are eight-bit bytes.
This may not make much there are only five keys to be
sense at the m o m e n t , but checked per port. Let us have
persevere and hopefully all will s o m e s i m p l e e x a m p l e s to
128 6 4 32 168 1 VALUE become clear in due course. demonstrate a simple use of IN
Written above the keys in the to scan the keyboard:
D7 D6 D5 D4 D3 D2 D1 D0 BIT
to check if (he R key is pressed
DRIVES THE
SPECTRUM
LOUDSPEAKER
-J f CONTROLS
BORDER
COLOUR
IF IN 6 4 5 1 0 = ( 2 5 5 - 6 )
"R i s p r e s s e d "
CONTROLS
D
THE MIC IF I N 5*734-2= ( 2 5 5 - 1 6 / THEN RINT
SOCKET "Y i5 p f f i i S e d "
Q LEFT T Y RIGHT P
CAPS
However, there are advantages. DOWN SPACE
SHIFT
You can check if either SHIFT
key is pressed for example,
which you couldn't do with So pressing any of the keys and l e f t . The p r o g r a m t o
INKEYS, eg. on the top row of the keyboard demonstrate the routine is a
causes movement upwards; very simple sketcher program
IF IN 6 5 2 7 5 = 2 5 4 OR I N 32755=253 pressing any of the keys on the which draws in the direction
THEN P R I N T "SHIFT PffiSSed" bottom row of the keyboard you're "steering" it. If you're
causes movement downwards. not pressing any keys you stay
|'!KEY$ also d i f f e r e n t i a t e s key is pressed, irrespective of Pressing keys on the left half of still, as you'd expect. Do not
oetween upper and lower case whether CAPS LOCK or CAPS the middle rows of the keyboard expect this to be the best
letters so that IF INKEY$ = " k " SHIFT is on. Using IN to scan the makes y o u m o v e l e f t and sketcher ever — it crashes if you
THEN . . . is not the same as IF keyboard also allows us to pressing keys on the right half of go off the edge of the screen.
INKEY$ = " K " T H E N . . . . check if more than one, or the middle rows of the keyboard Refer back to the diagram
whereas IF IN 4 9 1 5 0 = 251 combination? of, keys are being makes you move right. Pressing showing the I/O ports
THEN. . . just checks if the k pressed, eg. different groups of keys have a associated with the keyboard
combined effect, eg. if you when examining lines 3 0 and
IF IN 49150^ (255-2-4-t THEN PRINT pressed the 3 key and the W key 4 0 which do all the keyboard
"K ~r»d l r^essid" you would move diagonally up scanning.
10 LET X = 120
One application for this would keys are pressed to enable 20 LET V =90
be in games where the cursor movement both left and down, 3 0 L E T X =X + IIN 49150< >255 OR I
control keys are used to control ie. diagonally t o w a r d s the N 5734-2 < >255) - ( I N 5 4 5 1 0 <>255 OR
movement on the screen in the bottom left of the screen so that IN 5 5 0 2 2 < > 2 5 5 ) _T
direction of the arrows. Most movement control could be 40 L E T Y =Y - ( I N 55276 < >255 U.R I
games only allow you to move more like that of a joystick. Try N 3 2 7 6 6 < > 2 5 5 ) + (IN 63486 C>255 OR
left, down, up, or right, never this program to draw a line going IN 614-3-3 < >255
diagonally. Using IN we could up and right from the bottom left 5 0 PLOT X.. Y
check to see if both the 5 and 6 corner towards the top right 6 0 GO TO 30
10 LET x=©
20 LET V=0
30 PLOT X,Y
40 LET ft=IN 614-33
50 L E T X =X + (fl=251 OR H
50 LET Y=Y+(R=247 OR 3)
70 GO T O 3 0
'^M SPECTRUM
tttHXXflAMATORY TEXT
Mr H E L P L I N E - the man
who answers your Z X
queries in his column in
Z X SPECTRUM £5.95
by Andrew Hew son and John Hardman.
Sindair User, the author of Section A: Three chapters explaining what you need to know about
H I N T S & TIPS FOR T H E Z 8 0 machine code on the Spectrum.
Z X 8 0 and H I N T S & TIPS * H o w t o load a n d save m a c h i n e c o d e .
FOR T H E Z X 8 1 now * How to use the system variables.
presents: * How memory is organised.
* 20 original programs for * How program lines are stored.
you to load into your * How to use the stack, the display, the attribute files.
Spectrum. * How to call R O M routines - where they are and what they do.
* The structure of Z80 code - plus a valuable glossary.
* 2 0 interesting programs
for you to enjoy and learn Section 8 : 40 routines including,
from, * Scroll — up, down, side to side by pixel or by character.
* 20 great programs to * Search and replace, token swap, string search.
teach you about fixed and * Rotate character, invert character - horizontally and vertically.
. NETT variable length records, * Line remember — including GOSUBs, GOTOs, R U N etc.
wMpE^S * t "'.PR ICE binary searches, bubble All routines are relocatable (exoept 'line remember')
VJP ' £ 5 . 9 5 sorts, graphic displays
A Wllfttll H
.LNWOH •• '
This book teaches the beginner all he needs to know in a simple,
much, much more . . .
easy-to-learn form and its an invaluable reference work for the
Program titles include:
expert too!
Machine Code Editor — Write, modify, extend and load machine
code using this all-basic program. No need to use an Assembler
when you have this program. N I G H T F L I T E FOR ZX SPECTRUM £5.95
Index File - Learn about fixed length records, save numeric and
string information, add to, sort, modify, delete and print your
records. Ideal as a computer based filing system. i
-^ V• • -
Duckshoot — Learn how to manipulate the attributes file and have
fun at the same time.
Graphix — Construct up to 2 1 0 graphics characters with the full A M m/H A OF C X LA U* I
on-screen editing facilities, enhance and modify them and recall CUD
them later to build a detailed display to save on cassette.
cr:
Rife
run.
Spiromania — A program to stretch your artistic talents, imagination
a
and ingenuity. Draws a limitless variety of curves and spirals. Md
THE PROGRAMS
The programs advertised here are My Access B»citycMNo.ii ... .. .. ...... ... ..
available from computer bookshops with
Signed
a software stand, and many independent
Post to H E W S O N C O N S U L T A N T S . D E P T S U 6 0 A St M A R Y ' S STREET. W A L L I N G F O R O . O X O N OXIOOEL
micro-computer shops. TIL 10491) 36307
13
ZX COMPUTING DEC 1982/JAN 1983 20
SOFTWARE
For the
Mazogs in action:
praise
off Mazog
Reviewer Nick Pearce says he
remembered seeing something
rather blurred on a television
screen on the Bug-Byte stand
at a recent computer show —
and it didn't look very exciting,
so he passed it by. Now that
he's had a good look at
MAZOCS, Nick realises how
wrong his first impression was.
It's a pity I didn't take the time detail, as that might take away
to study MAZOGS at that some of the fun. However, to
show. Since that first glimpse, whet your apetite, a very large
I've seen mentions of the and complex maze is involved.
program everywhere, and now There are prisoners locked in
that I've played it I know what the maze whose eyes blink,
a marvellous game it is. and who can guide you. There
is treasure to find, swords for
A new concept your protection, and — of
course — battles to be fought
MAZOGS is really a great new w i t h those nasty creatures,
concept in computer games for the Mazogs.
the Sinclair, and in my opinion The instructions lack clarity,
ranks alongside other such but it doesn't really matter.
superb programs as J K You'll have great fun learning
Greye's MONSTER MAZE and the game by trying to play it.
Psion's FLIGHT SIMULATION.
It really does show what some Becoming an
imagination, and a fair bit of
hard work, can come up with
addict
for the trusty old ZX81. The game should perhaps
Innovation, perhaps, is the carry a warning. For once, the
key word. The majority of description 'addictive' is an
software houses are very accurate one, and you will not
clever at w r i t i n g ZX81 feel much like relinquishing the
adaptations of t r a d i t i o n a l television set to such things as
games, or producing ZX81 BBC and ITV after you've had
versions of programs that a taste of MZG. User-friendly
were originally devised for its aspects have not been
more expensive relations, but overlooked in the program, and
they rarely demonstrate real there is none of that frustrating
innovation. This, of course, is blank screen wait while the
not to denigrate the very good computer is ' t h i n k i n g ' or
and indeed necessary work setting up the game.
that continues to be done by All in all, my conclusion
program authors. But it is must be that this is one of the
software like MAZOGS that is tiny minority of programs
going to help change the which every Z X 8 1 owner
attitude of that quite large should possess, even if only to
body of people who see the amaze those who are sceptical
ZX81 as just a toy, albeit a of the Z X 8 1 ' s computing
quite clever toy. power.
MAZOGS is just the sort of MAZOGS, for the 16K
program to impress your Z X 8 1 , is available from Bug-
friends, and maybe convert a Byte, 1 0 0 The Albany, Old
few sceptics into the bargain. Hall Street, Liverpool 3, for
I will not explain the game in £10.00.
Most computer enthusiasts will generations per second using loading routine can be used. edited or an initial colony loaded.
have either played or heard of the whole screen.
the game of LIFE. Its one of Facilities Loading The Pro-
those classic games w h i c h The Rules 1) A variable delay of 0 to 64 gram
refuses to die out. Part of its Life is supposed to simulate the seconds can be set between The machine code section is
lasting appeal lies in the fact that growth, survival or death of a generations to allow more time 4 3 5 bytes long and is stored in a
it is a creative game, as opposed (rather stylised) colony of living to study interesting REM statement at line 1. Before
to destructive games in the cells. Each character position on developments. entering the code it is necessary
Space Invaders category. the screen can be occupied by a 2) The game can be halted in- to set up this REM statement
U n f o r t u n a t e l y , most ver- single cell (represented by 0) or definitely between generations with 4 3 5 dummy characters.
sions of LIFE are written in be vacant. If a living cell has less then restarted when desired. The machine code loader pro-
BASIC, which makes them very than t w o , or more than three, 3) The game can be stopped gram commencing at line 9 0 0 0
s l o w - r u n n i n g , and d e t r a c t s neighbouring cells it will die in and a colony pattern edited should then be entered and
greatly from their interest. In an the next generation. If a vacant manually, then restarted. started up using GOTO 9 0 0 0 .
attempt to overcome this, a space is surrounded by exactly 4) Six strings are available for The program wilt prompt you
reduced screen area is often us- three live neighbours a new live the storage of patterns. These with a request for a starting ad-
ed, which also detracts from the cell will be created there next are numbered 1 to 6 and can be dress, and you shold then input
game. The version presented generation. loaded with a current pattern at the opcodes in groups of five. At
here uses a c e n t r a l 0 . 5 K To start things off an initial any stage as desired. In addition t h e e n d of e a c h g r o u p a
machine code routine, and is colony pattern is loaded by string no. 6 is automatically CHECKSUM will appear on the
capable of running at t w o hand, or alternatively a random loaded whenever the display is screen, and this should be com-
THi 16S04 6 12 1
i -Tjr
1 —• r— ;. w
* e
w •'
9170 IF EG-.: * M" ANI 11
i;nTi* o
d> j . n - v.' 16309
— . «
2 1 205 157 (315)
CODE PROGRAMS
16814 124 165 254 255 40 (835) 95 DIM Z$(1)
16319 247 63 77 33 254 (679) 96 RETURN
16824 239 167 237 66 200 (909) 100 REM S
16«2° 33 251 247 167 237 f. 5 3 5 ) 1 0 2 P R I N T RT L,C; T
16834 66 40 25 33 251 >419) 104 I F -;B$=CHR$ 1 1 4 ) UR iB$=CHfi
$ 115) OR (B$=CHR$ 113) OR ( B $ =C
16839 223 167 237 66 40 (733) HR$ 112) THEN P R I N T RT L,C; "O"
16344 14 33 251 239 167 (704 ) 106 IF < B $ = " 5 " OR B $ = C H R $ 1 1 4 )
16849 237 66 32 214 175 (724) RND C > 0 T H E N L E T C=C-1
16854- 50 130 54 193 201 (63©) 108 XF ( B $ = " 3 " OR B $ = C H R $ 115)
16855 62 1 50 130 64 (307) RND C < 3 1 T H E N L E T C =C + 1
110 IF ( 3 $ = " 6 " OR B $ = C H R $ 113)
16364 193 201 62 2 50 £503) R N D L < 2 1 T H E N L E T L =L + 1
16869 130 64 193 201 235 (823) 112 I F f S $ = " 7 " OR 5 $ = C H R $ 112)
16574 1 35 0 9 6 (51) R N D L>0 T H E N L E T L =L-1
16879 24 157 6 32 126 114 T rr _«=:!»—• ' G 1 OfTi
(355) THEM GO*
16884 18 35 15 16 250 (338) 116 PRINT RT .,C; i
113 RETURN
16385 35 35 19 153 16 (296 J 120 LET F=1
16894 241 201 237 51 16 (786) 122 RETURN
16859 54 33 6 0 25 ( 125 ) 150 REM
152 C L S
16904 235 42 12 64 35 (386)
16909 201 205 0 66 205 (677) 154 P R I N T RT 0 14; L I ^ E
1S6 P R I N T RT 2 , 0 ; " P L E A S E INPUT
16914 133 64 201 205 0 (603) THE TIME DELRY BETWEEN GENES
16915 66 205 133 54 205 £673 i RTIONS. THIS CRN BEANY UfiLUE PRC
16524 0 66 205 30 65 (366) M 0 TO 64 SEC."
16925 237 75 131 64 3 (510) 158 INPUT T*
16534 205 134 65 24 234 (662) 160 I F T $ ="" T H E N GOTO 136
162 FOR C = 1 TO L E N T$
16535 205 0 66 205 233 (705) 164 IF ( T $ (C) > " 9 " OR T S i C ) ( " O " )
16944 55 24 232 28 28 (377) RND T $ ( C ) <>'•." T H E N G O T O 166
166 NEXT C
168 I F U R L T $ < 0 OR U R L T $ > 6 4 TH
E N GOTO 136
r '0 L SL0FVRL T $
M-INT FT/255)
*t j
4 i -4-
i» •c-r-
L = INTt IT-256ITH)
176 POKE 16515,TL
1
78 POKE 15515,1M
1S0 PRINT RT 13.0;"TIME D E L R '
The program itseH: CCEPTED"
132 PAUSE 25
40 REM 134 RETURN
41 LET C 136 PRINT RT 1 3 . 0 ; " T R Y RGRIN
42 RETURN
43 LET C$ :U$ 183 G O T O 153 <
C
44 RETURN 199 5RUE " LI F§"
46 LET C$ 200 CLS
47 RETURN 205 PRINT
49 LET C $ = x $ 21G PRINT i
50 RETURN
52 LET C S =Y$ 220 PRINT Hi 4. O ; " K E Y T SET I
53 RETURN T E R - G E N E R A T I O N T IMEKEY A RANDC
55 LET C$ LV LOAD D2SPLRY KEY M MA HURL-
56 RETURN L Y L O A D D I S P L.HV EY 3 LORE H
60 DIM U$ ( 3 6 4 : . 5RUED STRING'
61 LET U$ = C $
62 RETURN s&asMnaireg MB"
63 DIM U$ (334 ) 24G PRINT AT 12 J E; "PRE — • O ANY K z
64 LET = U$ Y TO HALT"
65 RETURN 250 PRINT RT 14 .. 0 ; "KEY c TO CO
66 DIM u g , t 334,5 NTINUE"
67 LET US = C $ 260 PRINT RT 1 5 . 0 , "KEY T SET I
68 RETURN NTER-GENERRTION TIMEKEY K
r•
R t < U P
65 DIM (384) N TO THIS PAGE
70 LET X$ = C $ 270 PRINT RT 1 7,0- " K E Y E TO ED
RETURN- IT THE DISPLAY (USE KEY 5
*i
DIM V $ (584 I AS FOR MANUAL L O R D )
LET Y$ 300 LET B$=INKEY$
74- RETURN 310 IF £ $=' lHEN GOTO 3 0 0
75 DIM 2$ (584) 320 IF E$="R" THEN GOTO 7 0 0
76 LET Z $ =C-$ 330 IF B $ = " T ' T H E N GOTO 4 0 0
77 RETURN 340 IF 6 $ = " S " T H E N GOTO 3 0 0
PQl DIM U$ ( l i 350 IF B $ = " M " T H E M GOTO 410
o l RETURN 360 GOTO 300
83 DIM (1) 40G G O S U S 150
84 RETURN 405 G O T O 200
36 DIM ( 1) 4 1 0 REM A A N U R L LOR
57 RETURN 420 CLS
89 D I M X$ ( 1 ) 430 PRINT RT (3,14,
90 RETURN 4 4 0 P R I N T R T 2 , 0 ; " U S E KEY'S 5,6,
92 DIM Y $ ( 1 ) 7 RND 6 T O M O V E T H E C U R S O R AND T r
93 RETURN E SAME KEYS UITH S H I F T TO LORT
1060 I F X = 4 0 T H E N P R I N T R T 1 3 . . 0.-
o o
" S T R I N G E R R Z E D OK
o o O 3
1 0 7 0 GOTO 3 S Q
0 1500 o o o o
1 5 1 0 RRND U S R o o
0 16910
1520 DIM Z 5 ( 8 0 4 )
1530 LET o o
0 Z$=C$
1 5 4 0 RRND U S R 16917 o o o o
1550 o o o o
00 IF PEEK 1 6 5 1 4 = 0 T H E N GOTO £ o n
1560
00 IF PEEK 16514=2 T H E N GOTO 5
oo oo
1570 no
5 , 6 J 1 5 3 0 GOSUB 150 oo
iHD T H 1590 CLS
i LOR3 1600 RRND USR 16939
GOTO 1550
JAN 1983 ZX COMPUTING DEC 1982/JAN 1983
AUTOMATIC TAPE CONTROLLER
FOR THE SINCLAIR ZX81
• D A T A PROCESSING
The ZX99 gives you software control of up to four tape drives
NOW ONLY
£49.95
(two for reading, two for writing} allowing merging of data
files. This is achieved by using the remote sockets of the tape
drives, controlled by USR statements or commands.
PLUS
• RS232C INTERFACE £2.95 p i p
The ZX99 has an RS232C output allowing connection with
any such printer using the full ASCI I character code (you can
now print on plain paper in upper or lower case, and up to
132 characters per line! at a variable baud rate up to 9,600
• SPECIAL FEATURES
There are so many special features it is difficult to list them
alt, for example:
AUTOMATIC TAPE COPY: You can copy a data file regardless
of your memory capacity as it is processed through the Sinclair
block by block.
TAPE BLOCK SKIP: Without destroying the contents of RAM
DIAGNOSTIC INFORMATION: To assist in achieving the
best recording settings. * ZX99 SOFTWARE
The ZX99 contains a 2K ROM which acts as an extension to We now have available "Editor 99", a quality word processing
the firmware in the Sinclair ROM. The ZX99's ROM contains program including mail-merge, supplied on cassette for £9.95.
the tape drive operating system and the conversion to ASCII Also following soon:
fnr the RS232C output. * Stock Control (October)
There is an extension board on the rear to plug in your RAM * Sales Ledger (November) * Debtors Ledger
pack (larger than 16K if required). The unit is supplied with * Business Accounts * Tax Accounting
one special tape drive lead, more are available at £1 each. Dept. ZX2 Data - Assette, 44 Shroton Street,
London NW1 6UG. 01-258 0409
• STAR DP8480
RS232C (SERIAL) £285 plus £6
Securicor delivery
CENTRONICS (PARALLEL) £265
plus £6 Securicor delivery
This professional printer works with almost any
computer with very good upper and lower case
typeface. • 2,000 SHEETS OF
• Bi-directional • 8 0 column width ( 1 0 " paper! PRINTER PAPER
• Switchable — Tractor or Friction Feed
• 8 0 chrs. per second £19.50 plus £3.50 p&p.
E690 REVOLVING CASSETTE RACK
Single £ 2 . 9 9 (holds 32 tapes or 2 0 in cases)
Double £ 5 . 9 9 (holds 64 lapes or 4 0 in cases)
Treble - £ 8 . 9 9 (holds 9 6 tapes or 6 0 in cases)
Quad - £ 1 1 . 9 9 (holds 128 tapes or 8 0 in cases!
• BBC CASSETTE LEAD
All plus £1 p&p
7 pin plug to two 3 . 5 m m plugs and one 2 . 5 m m plug.
Only £ 2 inc. P & P .
Other leads available — please telephone. l O R D E R FORM Dept. ZX3 Data - Assette, 44 Shroton Strwt,
London NW1 6UG. 01-258 0409
SJ COMPUTER CASSETTES
E I Code 1 T<MTI No. Price P&P Total
J
Signed _ Name
Address
13
ZX COMPUTING DEC 1982/JAN 1983 26
MACHINE CODE
Mastering machine
coae on your spectrum
part 2 used as follows.
0000-3FFF are already filled
w i t h various numbers, and in
fact form a machine code
o v e r w r i t t e n by something
called an 'interrupt routine'
which I shall talk about in the
next article.
program. You cannot change SP is a two-byte machine code
any of these addresses even if register which I shall dwell on a
in the last issue of ZX you want to for instance the bit more further on.
Computing, Toni Baker, author machine code instruction LD
(02D4),A will simply not be
SP to (5CB2) is something
called the MACHINE STACK
of 'Mastering Machine Code on carried out (although it will
take the same amount of time
which I shall explain in greater
detail further on.
Your ZX8T, opened up the to execute as LD I42D4),A (5CB2) + 1 to ( 5 C 7 B J - 1 is
topic of machine code on the which would work). These
addresses are called ROM.
spare and can be used in
machine code.
Spectrum. Here, she continues 4 0 0 0 - 5 C B 6 are addresses (5C7B) to (5CB4) - 1 are used
the discussion, concluding her which all have a fixed purpose.
For instance, ( 4 0 0 0 ) stores
by the ROM to store each of
the user defined graphics.
venture into the realms of the first eight pixels on the TV (5CB4) to 7FFF if you have
registers, addresses and other screen, and (5C8D) stores
current colours (as used by
16K
or FFFF if you have 48K are all
mysteries. PRINT statements in BASIC),
and so on.
spare addresses and can be
used by us.
Depending upon the
context, something like
Storing numbers
In this issue, I'll attempt to pieces of paper and stored in IABCD) can mean one of t w o If you have only 16K then
take your level of machine matchboxes or jam-jars. A different things. Either addresses 8 0 0 0 to FFFF do
code knowledge up to a point more logical approach (i) The contents of address not exist.
where at least you know what assumes a knowledge of ABCD ( e x a c t l y as y o u ' d Enough of all that boring
it is and how to make programming at least in expect). drivel. Let's turn our attentions
programs out of it. In the next BASIC and so this is the or (ti) It can also mean (ABCD) to something constructive.
article I shall leave the approach I shall use. + 1 0 0 * (ABCE) define as in (i). Firstly, here are all the different
mechanics of programming You are familiar, I take it, To make this clear, suppose ways of storing numbers on
alone, and start to concentrate w i t h the BASIC concept of an that address ABCD stores the the Spectrum.
on the ideas behind sticking array. Imagine then the effect byte F3 and that address Instructions like LD C,42
instructions together in the of the statement DIM M{ 100). ABCE stores the byte 4A you already know about, so
right order without getting This then gives you a series of Then by writing (ABCD) we let's see what else we can do.
lost. different variables called M(1), could mean either the number I'll use some abbreviations
M(2>. M(3), and so on up to F3, or the number 4 A F 3 . here: the small letters m, n, p,
Machine Code M(100). Machine code Exactly which of the t w o and q to represent single
memory is organised a little f o r m s w e mean can be bytes, and combinations mn
The brain of the ZX-Spectrum like this. A dimension deduced fairly easily from the and pq to represent byte pairs.
is a little black chip called a statement is not needed (and context. For instance 'LD A,
Z80A this is the device does not exist) because the (ABCD)' must mean 'LD A, F3' LD A,(pq) Only the A register
which carries out machine m e m o r y a r r a n g e m e n t is since the A register can only may be used in this way.
code programs. Contrary to already set up in advance, but hold one byte, whereas 'LD LD ( p q ) , A T h e reverse
popular belief, NO part of the the set up is as follows. HL.(ABCD)' must mean 'LD operation. Again only the A
Spectrum will carry out BASIC Memory is a series of one-byte HL,4AF3' since the HL register register may be used like this.
programs. There is a chip variables, (that is to say pair must hold t w o bytes. LD BC,(pq) Only register pairs
(called the ROM) w h i c h variables which can each store 5CB7 to (5C65>-1 are alt BC, DE and HL may be used in
effectively " i s " Spectrum any number between 0 0 and addresses which are used by this way.
BASIC, but the ROM itself is FF) which are called ( 0 0 0 0 ) , the ROM for varying purposes. LD (pq), BCDitto.
not a brain — the ROM is a (0001), ( 0 0 0 2 ) , and so on up Note here that (5C65J-1 The following combinations
very big m a c h i n e c o d e to (FFFF). Notice I've written means ( 5 C 6 5 K 1 0 0 * ( 5 C 6 6 ) can NOT be made:
program — and no more. them in brackets because they - 1. The absolute value of this LD (qp),m
To be a little more precise, are like elements of an array, address will vary from time to LD (pq),mn
the Z80A chip mentioned but without any preceeding time. LD (pq),(mn)
19 above is actually a brain letter — this is because the
(5C65) to SP-1 are spare
without a memory, and the array has no name - it doesn't The stack
addresses not used by the
memory of the Spectrum has need one because there is only
ROM. You can use these for
to come on separate chips, one such array in existance in
any purpose you choose — eg The S t a c k , or "machine
l e t ' s take a closer look at machine code.
'LD ( 7 0 0 0 ) , A ' is generally s t a c k " as it is sometimes
memory, and how it affects Because memory is set up in quite sensible. Note though referred to, is a highly useful
machine code. advance, much of it is already that: piece of memory organisation.
used by the computer. This (i) the bytes at the start of It does not have a BASIC
Using memory has absolutely nothing to do this region will are likely to be equivalent. Imagine, if you
w i t h the Z 8 0 A , it is simply a continually overwritten by the would, a stack of cardboard
There are many ways to think result of the way that the ROM. boxes. We may only alter this
of memory. Some people memory is wired up. (This (ii) the bytes at the end of stack in t w o ways — we can
rJ relate it to numbers written on makes it Sinclair's fault). It is this region will definitely be place more boxes on top, or
13
ZX COMPUTING DEC 1982/JAN 1983 28
MACHINE CODE
BIT l . r CB48 CB49 CB4A CB4B CB4C CB4D CB4E CB4F DDCBdd4E FDCBdd4E —
BIT 2,r CB50 CB51 CB52 CB53 CB54 CB55 CB56 CB57 DDC8dd56 FDCBdd56 —
BIT 3,r CB58 CB59 C85A CB5B CB5C CB5D CB5E CB5F DDCBdd5E FDCBdd5E —
BIT 4,r CB60 CBS 1 CB62 CB63 CB64 CB65 CB66 CB67 DDCBdd66 FDCBdd66 —
BIT 5,r CB68 CB69 CB6A CB6B CB6C CB6D CB6E CB6F DDCBdd6E FDCBdd6E
BIT 6,r CB70 CB71 CB72 CB73 CB74 CB75 CB76 CB77 DDCBdd76 FDCBdd76 —
BIT 7,r CB78 CB79 CB7A CB7B CB7C CB7D CB7E CB7F DDCBdd7E FDCBdd7E —
BC
CP r B8 B9 BA BB BC BD BE BF DDBEdd FDBFdd FEnn
DEC r 05 OD 15 ID 25 20 35 3D DD35dd FD35dd —
r> i
RL r
RES O.r CB80 C881 CB82 CB84CB83 CB85 CB86 CB87 DDCBdd86 FDCBdd86
RES 1 ,r CB88 CB89 CB8A CB8CCB8B CB8D CB8E CB8F DDCBdd8E FDCBdd8E —
RES 2,r CB90 CB91 CB92 CB94CB93 CB95 CB96 CB97 DDCBdd96 FDCBdd96 —
RES 3,r CB98 CB99 CB9A CB9CCB9B CB9D CB9E CB9F DDCBdd9E FDCBdd9E —
RES 4,r CBAO CBA1 CBA2 CBA4CBA3 CBA5 CBA6 CBA7 DDCBddA6 FDCBddA6 —
RES 5,r CBA8 CBA9 CBAA CABCCBAB CBAD CBAE CBAF DDCBddAE FDCBddAE —
RFS 6,r CBBO CBB1 CBB2 CBB4CBB3 CBB5 CBB6 CBB7 DDCBddB6 FDCBddB6 —
RFS 7,r CBB8 CBB9 CBBA CBBCCBBB CBBD CBBE CBBF DDCBddBE FDCBddBE —
RLC r CBOO CB01 CB02 CB04CB03 CB05 CB06 CB07 DDCBdd06 FDBdd06 —
RRC r CB08 CB09 CBOA CBOCCBOB CBOD CBOE CBOF DDCBddOE FDCBddOE —
SET O.r CBCO CBC1 CBC2 CBC4CBC3 CBC5 CBC6 CBC7 DDCBddC6 FDCBddC6 —
SET 1 ,r CBC8 CBC9 CBCA CBCCC8CB CBCD CBCE CBCF DDCBddCE FDCBddCE —
SET 2,r CBDO CBD1 CBD2 CBD4CBD3 CBD5 CBD6 CBD7 DDCBddD6 FDCBddD6 —
SET 3,r CBD8 CBD9 CBDA CBDCCBDB CBDD CBDE CBDF DDCBddDe FDCBddDE —
SET 4,r CBEO CBE1 CBE2 CBE4CBE3 CBEB CBE6 CBE7 DDCBddE6 FDCBddE6 —
SET 5.r CBE8 CBE9 CBEA CBECCBEB CBED CBEE CBEF DDCBddEE FDCBddEE —
' exist in SET 6.r CBFO CBF1 CBF2 CBF4CBF3 CBFB CBF6 CBF7 DDCBddF6 FDCBddF6 —
e shall see SET 7,r CBF8 CBF9 CBFA CBFCCBFB CBFD CBFE CBFF DDCBddFE FDCBddFE —
d begin to SRA r CB28 CB29 CB2A CB2B CB2C CB2D CB2E CB2F DDCBdd2E FDCBdd2E —
may be SRL r CB38 CB39 CB3A CB3B CB3C CB3D CB3E CB3F DDCBdd3E FDCBdd3E —
itructions,
an't know
A DC
ADD
HL.s
HL.s
ED4A
09
ED5A
19
ED6A
29
ED7A
39 — — PART 3
OF THIS ARTICLE
ADO IX.s DD09 DDI 9 DD39 D029 —
FD29
les are ADO IY.S FD09 F019 - FD39 —
WILL BE
DEC s OB IB 2B 3B 0D2B F02B
ny book
INC • 03 13 23 33 OD23 FD23
NE CODE
- please
LD s.mn
LD s.lpqi
0 1 nnmm
ED4Bqqpp
11 nnmm
ED5Bqqpp
2 1 nnmm
2Aqqpp
3 1 rvnmm
£D7&qqpp
0D21rmmm
002Aq<tpp
F 0 2 1 rwvnm
F02Aqqpp CARRIED OVER TO
Dugh you
I them all
LD <pq! s
POP s
E043qqpp
CI
E053qqpp
D1
22oqpy
EI
EiJ 73qqpp
—
DD22qqpp
DDE1
F022qqpp
FOE 1 NEXT MONTH
ill not be PUSH % C5 05 £5 - DDE5 FOES
SBC HL.s ED42 ED52 ED62 ED72 - —
TECHNIQUE
MAKING SENSE OF
column on the left is the intial
mixed array to be ordered and on
the right is the column which
BUBBLE SORTING
changes as the sort progresses
The computer marks each pair
t o be swapped w i t h black
squares. I t ' s fascinating to
watch the computer at work in
slow motion. (I sat mesmerised,
Many programmers
running this program, for about
Q t w e n t y m i n u t e s ) . But the
method of operation really sank
C o
o
O,
sort subroutines to
completed, the computer in-
f o r m s y o u and produces a
display similar to that shown in
<xo
an array into order. understanding by allowing the
record of each swap to be retain-
Tamworth, Stafford-
observation here, is that the
number of swaps logged is
always approximately equal to
SP 48 SP 80
GOBBLE Y O U I YOUR O N L Y
AIDES ARE FOUR "POWEn
PILLS" WHICH MAKE THE
MEANIES EDIBLE. BUT 32K Memory extension 64K Memory extension
N O T FOR L O N G ! (gwng total of 48K Upgradeabie to SP80J (giving massive 80KJ
•
•
•
M A C H I N E C O D E D FOR FAST A C T I O N
E X T R A " G O B B L E R " F O R 10,000 P O I N T S
ON SCREEN SCORING
£50
Both the SP*8 and the SP80 fit inside the Spectrum case are fully compatible w i t h a l
• H I G H SCORE W I T H " E N T E R N A M E " F A C I L I T Y Stficlair add-ons (ZX Printer RS?3? Microdrive etc J are very low m power consumption
• UP T O 4 P L A Y E R S fpqutre no soldering, are easy to fit and remove and carry our fu* guarantee
T H I S G A M E IS J U S T A S B A D ! - A N D O N L Y £5.95
A N O F F E R F O R R E A L M A S O C H I S T S - B O T H T A P E S F O R £9.95|
P«P 45
MAIL ORDER ONLY-PLEASE MAKE CHEQUE/PO PAYABLE T(
I m c b v chttjuWPO [wyatw to F.iu London Rotioncs for TOTAL f
T H E S O F T W A R E F A R M OEPT A
Njrrc MrMfS/Mrti Address
' CRAIGO FARM. BOTANY BAY. T I N T E R N , G W E N T '
• • mmuu
• • ^•li !
• la
WALL LISTING
2 0 GOSUB 2O00 690 NEXT F
GO RRND 7 0 0 GOTO 330
4-0 L E T P=PEEK 16396+PEEK 16397 9 0 0 REM ** SCORE BORRD **
* - 2 5 6 •f-2 £O L E T X $ ^1 5 C O P E = 0 0 0 0 E;
50 LET U=P+765 I - S aag^BSEaEta
50 L E T H = 0 9 3 0 FOR X = 1 TO 31
7 0 D I M A $ 1*7 - 3 2 ) 94 O POKE P + X + 7 5 3 . C O D E X$(X)
8 0 GOSUB 900 9 5 0 NEXT X
90 LET 5=0 960 RETURN
1 1 0 FOR X = l l TO 21 1 0 0 0 REM ** S P L R T **
120 P R I N T R T X.. 1 1013 LET Hj(ij m , m
H ^
130 NEXT X 1020 LET ( 2 > =•• * * g ^ m m m m m u
153
160
REM **
SGROLL
PRINT UALL ** WuSSm
1030 LET R
~m A W
( 3 ) =•• m m m s * m m m s&
170 PRINT
1040 LET m (4 > = " W H m
180 F O R X =0 TO 30 ffiUffi&i
m SSMi"
190 IF PEEK (p+x:« < > 0 T H E N GOTO 1053 LET
1000 ( 5 u ; - w ® m m m m m
200 NEXT X 1060 LET
is
2 4 0 REM MR I N L O O P
2 5 0 FOR X = 1 TO 5
**
1070
m
R
»( 7 ) mm~- m
=•• as?
mim m mmsm m
260 F O R Y = 0 T O 3©
230 POKE P+Y.59 1100 FOR X=1 TO 7
2 9 0 P O K E P 4-Y — 1 . 0 1110 SCROLL
300 I F I N K E Y * < > " " T H E N GOTO 500 1120 PRINT R$iX)
310 NEXT Y
320 POKE P+Y-1..0 1130 NEXT X
330 NEXT X 1140 F O R X =1 TO
3 4 3 GOTO 150 1150 SCROLL
500 REM ** F I R E ** 1160 PRINT
520 LET C =- 1
530 LET D = iNT (RND +1 1170 NEXT X
54-0 F O R F = 0 T O 2 0 S T E P 2 1 1 3 0 P R I N T RT 9 , 1 ; " Y O U HflUE BEEN
550 IF PEEK (P+Y+F#33)<>0 THEN CRUSHED TO P I E C E S BY T H E URLL.
L E T C =C + 1 B I T S OF Y O U A R E A L L O U E R THE
560 POKE P+Y+F # 3 3 , 5 3 PLRCE,"
570 IF PEEK ( P + V + ( F + 1 ; x 3 3 J <>& T 1190 P R I N T RT 1 2 , 1 ; " Y O U DEMOLISH
HEN L E T C-C+l ED " ; 5 ; " BRICKS."
5 8 0 P O K E P +Y+ i F + 1} # 3 3 . 0 1200 PRINT RT 14,1;
590 POKE P+Y+F * 3 3 , 0 1210 IF 3<300 THEN PRINT "YOU fiR
t>00 I F C > =D T H E N G O T O »620 E PRTHETIC. HINT. TRY OPENIN
610 NEXT F
620 G YOUR E Y E S NEXT TIME."
LET S=S+C 1220 I F S > = 3 0 0 RND 3 < 5 0 0 T H E N PR
O30 L E T Z=S IN
* •T " I SUGGEST YOU T A K E UP GOLF.
640 LET Z =Z/1000
6 5 0 F O R F =0 T O 3 1230 I F S > = 5 0 0 AND 5 < 1 0 0 0 T H E N P
660 P O K E U' + F , I N T Z + 1 5 6 RINT "NOT B A D , B U T YOU C O U L D DO
670 LET Z = Z — INT Z UITH SOME PRACTISE."
630 LET Z=Z*10 1240 I F S > = 1 0 0 0 AND S < 3 0 0 0 THEN
13
ZX COMPUTING DEC 1982/JAN 1983 34
16K ZX81 GAMES
PRINT " Y O U R S C O R E IS AVERAGE." 1510 GOTO 90
1250 I F S > = 3 0 0 0 RND 5 < 5 0 0 0 THEN 1600 REM ** L O A D HND GO **
PRINT " P R E T T Y G O O D . YOU UONT 1610 SAVE "UftLB"
DO S O U E L L N E X T TIME." 1620 RUN
1260 I F 5 > = 5 0 0 0 R N D S < 3 0 0 0 THEN 2000 REM ** INSTRUCTIONS **
PRINT " I D O N T D E L I U E MY E Y E S . HO 2050 PRINT "THE U ALL"
U CRN S U C H R C R E T I N DO S O G O O D ' ! 2060 PRINT " "
2070 PRINT
1270 I F S > - 9 0 0 0 T H E N P R I N T "YOU 2030 PRINT " D E M O L I S H T H E WALL BE
FLRE THF REST PLAYER I HAUE BERT F O R E IT"
EN. Y O U U I L L E-E R E M E M B E R E D FOR 2090 PRINT "DEMOLISHES YOU."
YEARS T O C O M E . 2100 PRINT "YOUR ""V"" IS MOVED
1300 R E M * * H I - S C O R E ** RAPIDLY ACROSS"
1320 I F S < H T H E N G O T O 1450 SI10 PRINT "THE S C R E E N FROM LEFT
1330 L E T H=S T O R I G H T . "
1340 P R I N T R T 17.8.' *CONGRATULAT 2120 PRINT "THE UALL MOVES SLOUL
IONS*" Y TOWARDS"
1350 P R I N T " /OU HRUE D E T A I N E D * 2130 PRINT "YOU FROM T H L BOTTOM
HE H I - S C O R E . " OF THE"
1360 L E T Z=H i214-0 P R I N T "SCREEN. WHEN I T REAC
1370 L E T Z=Z/1000 HES THE TOP"
1380 F O R F = 0 T O 3 2150 PRINT " L I N E Y O U C E A S E T O E>"
1390 P O K E P + F + 7 8 6 . I N T Z + 156 IST. YOUR"
1400 L E T Z = Z - I N T Z 2160 PRINT "SOLE DEFENCE IS TO H
1410 L E T Z=Z*10 URL YOURSELF"
1420 N E X T F 2170 PRINT " A G A I N S T T H E WALL IN
1450 P R I N T AT 20,5; jiuaPM*i THE HOPE TO"
2180 PRINT "KNOCK SOME B R I C K S OU
1460 I F INKEY $ = "N" THEN STOP T. PRESS ANY"
1470 I F INKEY $ < >"Y" T H E N GOTO 14 2 1 9 0 P R I N T " K E Y T O DO THIS."
60 2200 PRINT "PRESS »"S"" TO START
it
1430 F O R X = 0 T O 21
1490 P R I N T A T X . 1.; " 2210 IF I N K E Y * < > " S " T H E N GOTO 22
10
2220 CLS
1500 NEXT X 2230 RETURN
O U = 2 + + -v
+ 250 LET
260 L E T A $=INKEY $
+ 270 IF A$x"5" OR A $ > " 6 " T H E N LE
•f T A$=B$
+ 2 3 0 L E T A=A + ( A $ = " B " ) - < A $ = " 5 " ) + C
CR$="6") - ( A $ = " 7 " ) ) *33
+ 290 IF PEEK ( P + B ) <>0 T H E N GOTO
1500
300 POKE P+B.136
310 IF PEEK ( P + R ) <>0 T H E N GOTO
1000
320 POKE P+A.128
3 9 0 GOTO 200
530 LET B=B-C
54-0 L E T C = 3 3
550 IF PEEK (B+P+1)=0 THEN LET
C =1
56© I F PEEK <B+P-1>=0 T H E N LET
C = - l
570 IF PEEK (B+P-33)=0 THEN LET
+ + • + • + + +LISTING
SURROUND + + + + + + + + + + -• + -* + -»•-»•-»- + + + + + -•-*
C = — 33
530 LET B=B+C
590 RETURN
10 C L S 1050 CLS
20 L E T Z=0 1060 PRINT "THE ZX81 UINS YET R G
30 L E T Y=Z A IN "
50 L E T A $ = " 5 "* 1070 LET Z=Z+1
60 L E T A =350 1075 PAUSE 4E4
70 L E T P=PEEK 1 6 3 9 6 +Pti£ 1080 I F Z < 5 T H E N GOTO 40
•256+1 1090 PRINT " A N O T H E R ROUND T O ME"
30 L E T E- = 3 3 4 1 1 0 0 GOTO 1600
1550 CLS
120 FOR C = 0 TO 20 1560 PRINT "YOU UON, WHAT R R R R E
1 3 0 P R I N T R T C , 3 1 ; " + + *• OCCRSION"
140 N E X T C 1 5 7 0 L E T Y =Y + 1
150 F O R C = 0 T O 3 1 1575 PAUSE 4E4
160 P R I N T HT 0 , C . " 1 5 3 0 I F Y < 5 T H E N GOTO 40
170 P R I N T AT 2 1 , C j " + " 1590 PRINT " A R O U N D T O Y O U - RMR
ISO N E X T C ZING"
185 L E T C = 1 1600 PRINT "ZX81=";Z ,"YOU = " j Y
1 9 0 P R I N T A7 0 , 3 ; " 2 X 8 1 = " 1610 PRINT " A N O T H E R ROUND (Y OR
24; "YOU = " ; V N) "
210 L E T B=B+C 1620 L E T A$ = I N K E Y $
2 2 0 I F PEEK (P+B><>0 T H E N GOSUB 1630 I F A $ = " Y " T H E N RUN
500 1640 I F AS < >"N" T H E N GOTO 1620
A I R L I N E — £5
Can you compete With British Airways? You m m t decide on the numbei o(
aircraft to operate, whether to buy or c h a f e r , whether to enter into a loan or a 16K-byte EXPANDABLE RAM for ZX81
fuel contract and the levels of staffing and maintenance. Problems
encountered are tax demands, strikes, cancelled fiighrs, hijacks and aircrafi • 16384 bytes of extra random access memory
crashes.
(16K)
A U T O C H E F — £5 • Expandable to 32K with easily fitted internal plug-in
As M D of a Catering Company you must negotiate for leases, decide on menu module
prices, level of wages, advertising and dividends. Each year you must predict
the inflation rate You are also given options on consignments of wines and • Simply plugs into rear expansion port of the 2X81
food and loan contracts You will be made to resign if you are not successful computer
There are 3 levels of difficulty.
• No additional power supply required
P R I N T S H O P — £5 • LED power indicator
You o w n a small printing company and are required to decide on la> the • Attractive black custom made case contoured'for
number and type of siatf you employ and when to increase or reduce staff (b)
the amount and type of paper you stock (c> the week in which work is
stability
scheduled Id) the quotation for each job (e> cash requirements from the Cash Compact size (76 x 91 * 28mm approx.)
Flow Statement Are you an entrepreneur? Test your business acumen to the
hrmt! There are 3 levels of difficulty Compatible with most expansion systems
Full 1 year parts & labour guarantee
MODELLER X — £8 Exceptionally low fully inclusive prices
Tins is a userfriendlybusiness modeiwr which provxJes Managers with a tool to plan me
strategic tJeosons or a business The model show> Ihe prof sens<!rvily and the inter-
action ol the pert'nent marketing and production factors ol a business A user manual r5 ZX Panda 16K Expandable Ram Pack £27.50
included m the pnce ol the program ZX Pands 16K Expandable Ram Module .... £19.95
ALL PROGRAMS INCLUDE DETAILED INSTRUCTIONS ANO NEED 16K.
rr
DISCOUNT £ 1 . 5 0 f o r t w o . £ 3 f o r t h r e e a n d £ 5 for f o u r . O R The two together 32K Giant Panda Ram Pack
Oept Z £44.00
CASES COMPUTER SIMULATIONS • Finally the Really Big One 64K Ram Pack £65.00
14 L a n g t o n W a y
L o n d o n SE3 7TL.
KEYBOARDS TYPE A £30.00 Inc.
Keyboard & case — houses
sf
c
No soldering,
f
£25.95
<ncip4p&VAI
THE ZON X-81
Cheques/PO please to
The ZON X-81 SOUND UNIT is completely self-contained ond
especially designed lot use with the ZX-81 It iust plugs In
no dismantling or soldering
AFDEC ELECTRONICS LTD,
No power pack barter ies leods or othet extras Kempshott Lane, Basingstoke,
Manual Volume Control on panel - ample volume from built in
loudspeaker
Hants RG22 5LT
* Standard ZX-81 - I6K Rompock or printer can be plugged into P L E A S E S U P P L Y (AH p r i c e s i n c l u d e V A T & P & P ) O T Y
•• ZON X-81 Souna unit withoul affecting normal ZX-81 operation 16K E X P A N D A B L E R A M £27.50
j
» Huge ronge of possible sounds for games or Music, 16K E X P A N S I O N M O D U L E tor above.. £ 1 9 . 9 5
Helicopters Sd-R. Space invaders Explosions Gun-shors 32K G I A N T P A N D A £44.00
Drums Planes Lasers. Organs. Bells. Tunes Chords elc or
64K T H E BIG O N E £65.00
whatever you devise1
KEYBOARD TYPE A £30.00
* Uses 3-channel sound chip givmg programme control of pitch
rri KEYBOARD TYPE B £26.50
volume of tones and noise all with envelope control
* Easily added to existing games or programmes using a few
PLEASE PRINT CLEARLY
simple BASIC lines
NAME
FULL instructions with many examples of how to obtain effects and the
programmes supplied Fully Guaranteed
ADDRESS
13
ZX COMPUTING DEC 1982/JAN 1983 36
ZX81 SOFTWARE
THREE-DIMENSIONAL
CUBES ON THE ZX81
Luc De Jaeger, from Slotendries,
Belgium, has discovered a way
to get representations of three-D
cubes on the ZX81. He explains his
method, which uses a 'selfmade
television screen worksheet'.
71
Here's the way my program will 'run out of the screen'. A
« j works. All you need is a 16K height of about 10 to 25 is
•• Ij ZX81, a worksheet like the one recommended. Of course, it all
a 1k. I've shown here, and a little pa- depends upon the position of the
/ & tience. Although it takes a while chosen c o o r d i n a t e s of the
to type the program into your angular points.
J i
i
• ZX81, the results seem pretty
good t o m e .
Lines 85 to 1 8 0 print the first
! )1 ,IJ1
'horizontal' edge (see the se-
cond example) of the upper sur-
€ 1
How It Runs face of the cube. In the first ex-
1
1/ /
Lines 5 to 65 ask for the four ample the first line of the upper
coordinates of the angular surface at the left will be primed.
6 - f points of the upper surface of Lines 185 to 2 8 0 print the
V
the cube. You only have to input second 'horizontal' edge.
the first co-ordinate of the first Lines 2 8 5 to 3 4 0 print the
angular point (E;F), then press four vertical edges of the cube.
NEWLINE (of course), and then Lines 3 4 5 to 4 4 0 will print
input the second coordinate, i.e. the first horizontal edge of the
F Mind the right order of base (see example two) or the
This is what it looks like in practice: the angular points!! Look first of first line in example one.
all at the television screen Lines 4 4 5 to 5 4 0 do the
w o r k s h e e t to k n o w w h e r e same as lines 3 4 5 to 4 4 0 . Then
( E . F U G . H M W M K . L ) are the second line will be printed.
situated, and don't change the Lines 545 to 7 0 0 print the
order. four oblique lines of the cube.
Line 7 0 asks you to give the As you can see the program
height of the cube. Don't make is rather easy to understand
M too high otherwise the cube because it's all BASIC.
PROGRAM LISTING
And here is the program listing:
Z X 8 1 & 16K V f f i V
THE TOMB OF , W
HORSE RACING
DRACULA! W N
ZX81
16K This programme analyses 17 separate inputs of information
SID HORROR ADVKMTURC GAME!
Ml these titles are available now from your local Bookstore or Computershop. In Please send me the following programs
case of difficulty, send cost of tape plus 25p postalje per tape with the coupon
to: Software Masters Ltd.. 30 Uncoln Road, Olton, E Birmingham B27 6PA. Trade Code Title Cost
enquiries welcome!
SM2015 Breakout 16K 5.96
SM2011 Computacalc 16K 7.9S
SM2022 Constellation 16K 8.00
SM2023 Football Manager 16K 7.96
SM2003 Labyrinth 16K 595
SM2025 Magnus 16K 9.95
SM2021 . . Magogs 16K 10.00
SM2017 MuQ$y 16K 5.95 E
SM2018 Murgatroyds 16K 5.95
SM2019 Murgatroyds Revenge 16K Postage>_
5.95
SM2005 Nightmare Park/Music 16K 6.95 I enclose Postal Order/Cheque for Total £
SM2027 PE.P 16K 5.96
SM2012 Personal Banking System 16K 9.95 Name
SM2024 Pilot 16K 5.95
SM2020 Prog merge 16K 5.95 Address,
SM2026 Puckman 16K 5.95
SM2008 Space Intrijders 16K 5.95
SM20U Space Invaders/Space Rescue 16K 695 zxc
SM2013 Star Trek/30 Os 4 Xs 16K 6.95
SM2007
SM2001
SW2016
ZX 81 Chess
Bumper 7
1K Games Pack
16K
IK
6.90
595 Software masters Ltd.
IK 6.00
SM2002 1K Super Trio IK 7.95
30 Lincoln Road, Olton, Birmingham B27 6PA,
Prices include VAT England. Telephone: 021-707 7544.
FANCY A DROP OF
BUBBLY?
Paul Holmes has written two great
versions of the program LEMONADE
STAND. One fits within 1K, and the
other version, which has many more
features, demands extra RAM.
Firstly we'll look at the 1K ver-
sion.
In this program, the object is
to make as much money as you
can, by selling lemonade on a
lemonade stand. You are given a
report (such as "RAINY" or
'ROAD WORKS NEARBY"),
and the price per cup the
lemonade will cost you. Based
on that information, you decide
how many cups you will make
for thp rtav anrl at what nrine
you will sell them. If you sell at
too high a price, then people will
be more reluctant to buy. You
will have to judge from ex-
perience how many cups you
will make, but you can't make
more cups than you can afford
with the cash available.
First you have to initialise the
different reports and their
characteristics, using the first
program listed.
RUN this, and then enter the
following information, pressing
NEWLINE/ENTER after each
item:
ROADWORKS NEARBY, 1 0 , 4 0
BAD WEATHER,5,25
FAIR WEATHER,70,75
GOOD WEATHER,90,1 10
HEATWAVE, 1 5 0 , 1 5 0
STORMY,5,5
Once you have done this,
enter the second program,
which will delete the first, but
leave the data intact. If you save
the program as it is, the data will
be saved along with the pro-
gram. However, you will lose
the data if you press RUN or
CLEAR, so start by entering
GOTO 10. Once you have
entered your values, the pro-
gram will give you a sales report.
There will be a brief pause, and a
new day will dawn.
1K PROGRAM LISTING 1
95
00
INPUT L
I F L>£00 THEN GOTO_k5_
1 0 DIM RS(6,13) 1 05 PRINT RT 5 , 0 ;
2 0 FOR Z=1 T O 6 _ " L ; TAB 1©; " P f
30 INPUT <Z) 1 10 PRINT per 8 , 3 ; %%
4 0 INPUT R
50 INPUT B
60 LET R J ( 2 , 17) = C H R $ A
70 LET A$(Z , I S ) =CHR$ B 1 2 0 PR , 3 ; PRESS R KEV T
GO P R I N T R i tZ/J O OPEN STALL
9 0 NEXT Z 125 I F INKEY$=" THEN GOTO 1 2 5
130 C L S
135 P R I N j ^ ^ ^ 1 . 9 ; " ; RT
10 L E T P =£ 1 4 0 ' PRINTS e r r
3 0 LET M = 1000 R T 4 .. 7 ; " 1
30 LET L =INT (RNDJ6+1) 1 4 5 P R IN"
35 LET D= INT iRND *6 + l J j RT 6 , 7 ; " •
40 PRINT "REPORT: " ;A$tD> « TO 1S0 PRINT RT 1 , 1 ; " T I M E "
1 6 ) 160 PRINT RT 2,3.;"-.00"
50 PRINT "LEMONADE: ";P;"C" 170 LET T = 9
60 P R I N T " C A S H : $";M/100 180 PRINT RT 2 , l ; T ; " : D O "
70 PRINT "CUPS?" 190 LET T=T +1
3 0 INPUT C 200 I F T = 1 3 T H E N L E TT = 1
9 0 I F C * P >M T H E N G O T O 8 0 210 I F T c > © T H E N GOTO 1 © 0
100 P R I N T " P R I C E - ? " 220 PRINT RT 1 ; " |
110 INPUT L 2 3 0 FOR 1 = 1 TO" 1 0 0
ISO L E T N =R N D * C O D E ( R i ( D f l ? ) )+R 235 NEXT I
ND*CODE CR $ < D , 1 8 ) > 240 C L S
130 L E T R —I N T ( N - ( 1 / 1 0 - ( L - P ) .* * N 2 5 0 L E TN=RND*CODE < f t * * D , 1 7 ) > «-R
\ ND*CODE ( R S t D . l S ) )
140 I F R>C T H E N L E T A=C 2 6 0 L E TA = I N T ( N - < 1 s < 1 0 - < L - P ) ) >
150 C L S *N)
160 P R I N T R ; " C U P S S O L D " 270 I F R > C T H E N L E T ft=C
170 PRINT "COST YOU: ";C*P
180 P R I N T " C A S H T A K E N : " ; A*L
1 9 0 PRINT "PROFIT/ 290 PRINT
£00 L E T M =M + < A * L - C * P ) 300
3 1 0
PRINT
PRINT
£ 1 0 FOR G = 1 T O £ 0 0
£15 NEXT G "; (ft*L)
320 PRINT
£ £ 0 CLS ; (C*P) / 1 0 0
£30 IF RND > . 7 T H E N L E T P = P + 1 32J5 PRINT
350 GOTO 3 0 330 PRINT
340 PRINT tLfcft-C*P-
R ) / 1 0 0
3 5 0 L E TH=M t ft * L —C * P - R )
Now here is the 2K version. creates a picture of t h e 360 PRINT RTT 1 0 . , 0 ; " P R E S S ft K E Y
The extended memory ver- lemonade stand. The words in TO CONTINUE"
sion, as you can see, looks much inverse graphics are: 370 I F I N K E Y T H E N GOTO 3 7 0
more attractive, and even 375 C L S
380 I F RND>.7 THEN LET P=P+1
390 I F RND>.7 THEN LET R=R+5
4 0 REPORT 2 8 0 SALES REPORT 4 0 0 GOTO 3 0
5 0 LEMONADE . . PER CUP 3 0 0 CUPS SOLD
6 0 MONEY 3 1 0 MONEY IN THE TILL
85 CUPS MADE FOR TODAY 3 2 0 WHOLESALERS BILL
105 TO BE SOLD AT PER CUP 325 RENT
145 "LEMONADE* 3 4 0 PROFIT
2 2 0 CLOSED
SALE PRICE t
2K PROGRAM LISTING
1© L E T P = 2
20 L E T H=1000 TIME
25 L E T R=50 5 : OO
30 L E T D= I N T iRND*6jfcl>_
35 P R I N T MlW 11
" ; ft* t D ,
; P ; « T 2.. HLE5 PF
; M/100.; T
£ 5 . 4 5
~PRINT RT 6,3,'"HOU NftNY CUPS
TO B E MADE 7 "
75 INPUT C
TRB 5
-TV rjfrBBXfwl J • J J I ^ g p ^ g ' ^ ^ ^ S f f l l i l J ^ J ^ B i m i«
9C P R I N T ^ ^ ^ ^ S f t ^ T R I C E T PRESS R KEY T O CONTINUE
\ IQ
X = (A-B) COS I + H COS ((A-B) f
IB] 3 LET H 0
6 LETH H + 2
Y = (A-B) SIN I - H SIN ((A-B) l/B)
EXTERIOR EPICYCLOID: i There is also the 'extended inter
X = (A •+ 8) COS I - H COS rial pattern' which is achieved by
((A + BI l/B)
Y = IA + BI SIN l - H SIN {(A + B»
IB)
/ adding the following to the
general program:
3 LET F - 1 0
where A is the radius of the large 8 FOR H 2 TO 8 STEP 2
circle {circle A), B is the radius of
9 LET F F + 6
the small circle (circle Bl and H is a
4 0 PLOT F + X, 22 + Y
point on the circumference of the
6 0 NEXTH
small circle.
<
curve tends to be more floral, or A 4 5 6 7 8 9
organic in shape. The general pro- a B 131313131313
a
gram for the interior epicycloid is: % - H 101010101010
-t
M
1 INPUT A B And for these use FOR I 0 TO
B & 2 6 * PI
2 INPUT B
3 INPUT H . 1
w » A 4 7 8
10 FOR I = 0 TO 2 'PI STEP
B
PI/10 5 B 9 9 9
V C 8 8 8
20 LET X = (A-B) * COS l + H
•C0S«A-B>* l/B)
** i V *
v>_
30 LET Y = (A-B) * SIN I H ' S I N For these use FOR I = 0 TO 18 * PI
((A-B)* l/B
v
40 PLOT 30 + X. 22 + Y A 4 6 8
50 NEXT I B 111111
H 9 9 9
Drawing patterns i
2
INPUT A
INPUT B
And for these we suggest FOR
t 0 TO 2 2 ' P I
3 INPUT H
The basic shapes of the hexagon, 4. FOR J=© TO 3 * P I
pentagon, square, triangle and 1 0 FOR 1=0 TO 2IPI •TE= FI/30
Some of these have an almost
ellipse can easily be entered into 20 LET X=(R-B) • C O ' j RM-FCCS < CA mandala-like quality.
this program. Anything higher -B) B+.J) The following can be used in
than a hexagon tends to become 30 LET V = I A - R 1 I r H * 5 I N ( Cf=! the exterior equations:
indistinct. Todraw other patterns, -8 J * I / B + U ?
the value for I has to be changed. 4-0 PLOT 30+ X A 4 5 6
It varies, on the ZX81, from t w o 50 NEXT I B 7 7 7
to 26 times PI. 50 NEXT U H 6 6 6
A 4 5
B 9 9
H 6 7
FOR I = 0 T O 1 8 ' P I
Experiments
Another direction for experimen-
tation is based on the moving
point H, program one. Put the H
loop into the I loop. This will draw
the points of H first (FOR H OTO
6).
And finally, a w a y of showing
the smaller circle moving inside
the larger circle, by using ihe rota-
tion program, is as follows. Put
the J loop inside the I loop. This
will draw just six circles. Use FOR
I 0 T O 2 ' P I STEP P I / 1 0 and
FOR J O T O 2 " PI STEP P I / 1 0 .
.. u o » _
H
ItlJu u
a « H lu
u U
H u M u II
N U
II t> u
/
N h u
u It
It 11
,>
u
r
tl I* IJ H
CALPAC COMPUTER SOFTWARE For this sizable and. we hope, complete collection of information,
send E2.50 (overseas C3 sterling) to:
108 Hermitage Woods Crescent, St Johns,
Woking, Surrey G U 2 1 1UF. MICROSCENE
Overseas orders: £6.50 ($11.60) per cassette; 6 Battenhall Road, Birmingham B17 9UD
includes AIRMAIL postage
menoiccn Explores the
Excellence of your ZXBl
fecru Bi'[ii|(ito nowt
Pmw Oiina
tOB«M nitoi
fJTd V T / y ~ r r ^ T L y j T ^ Y £ T T v r r v \
/\f\«>7\ / jp /\ /"»',' ft I U' ' I ' V C T V\"
m\
/'A.VW'I- / \ / o r /\ / T T l \ I Qm 1/1 H , " ' / \ J \ A K'\ ' \ V
A / " Z a < %• i \ i c i\ I v i/i n \/\ M v \ " '\/\
VI
firm
Insurance. It also provides
running annual totals.
The Payslips are deliberately
comprehensive and the annual
totals on them are copied by
hand on to the Form P1 1, (the
Deductions Working
Sheet),which has to be filled in
and kept. Columns 4 and 5 on
this form are not available, but
From Abingdon, Alan
t h e y are o n l y there f o r Beadle sent us this
calculating the essential
figures and I leave them blank. program which has bee
A list of variables is given in used in a small hardware
Fig. 1. Where possible I try to
give one variable the initials of shop owned by Alan and
the function it represents: e.g.
NEA is National Insurance rate
his two brothers
for employee Table A , method used to align columns week three,
The program is saved and and print zeros after the but MUST be
run by lines 9 0 0 0 to 9 0 2 0 . If decimal point. The way it removed for
successful then Fig. 2 will works can be seen if the subsequent years.
appear. At the start of a new program is run in SLOW. Remove the lines
year the program will have to Dates are complicated, in by INPUTting S when Fig.
be STOPped at this point, and that the Financial Year begins 2 is on the screen, deleting involved w i t h it and the
the data in lines 1 3 0 0 to 1 4 0 0 on April 6th, and each ensuing the lines, and GOing to 2 0 0 0 , program as here already takes
checked. D in line 1 3 2 0 is the month on the 6th of that when Fig, 2 will re- appear. three and a half minutes to
date of the first payday in the month. The date calculations Only 32 columns on the load or save. The program line
year. RUN is now used for the are in lines 4 5 0 0 to 4 6 8 0 . P is printer is somewhat restrictive numbers have been
only time. Fig. 2 again shows a marker used to decide and it is this, in fact, which deliberately spread to allow for
and E is used to input 1st whether the month's totals are limits the number of such extras. 3 3 0 0 to 3 5 0 0
week's data as requested. Fig. to be printed. If they are to be employees to 9. There is not and 4 0 0 0 to 4 5 0 0 are
3 should be a result. When all then lines 4 6 9 0 to 4 7 4 0 set sufficient room to print names available.
employees' d a t a is i n , up the next month. They and all the data necessary for The only instruction not
NEWLINE will print the first extract the number of days in the Wages Book on one line. shown on screen is the use of
payslip. If all is satisfactory, it the month from M$ and also The names are therefore listed Z to copy to the printer, but
then can be transferred to the check for a leap year. w i t h their numbers (Fig. 4), one does not want this to
printer by inputting Z (the and this used as a reference in appear on each Payslip.
COPY key). NEWLINE or Z are
now used until the week's run
Calculating taxes Fig. 5. Even an employee Finally, at the end of the
number of 1 0 in Fig. 5 would Financial Year, an extra
is c o m p l e t e d . A f u r t h e r New Tax Tables came into require 3 3 columns. Using NEWLINE will print the total
NEWLINE gives the choice of force for the 4 t h week of letters instead of numbers as National Insurance paid
continuing for another week or 1 9 8 2 - 1 9 8 3 tax year. The first cross-reference would allow (including t h e Employer's
saving. three weeks are calculated in for up to 2 6 employees. portion) for each employee.
COPY rather than LPRINT lines 5 0 5 0 to 5 0 9 0 . These No entry of overtime is put in This is needed for end-of-year
has to be used because of the lines can be removed after the programme. We do not get Tax Returns.
variables
M$ Days in months TR Tax rate
N$ Firm's name TT Tax threshold
R$ Firm's Tax reference number NEA Employee's Nat. Ins. rate (Table A)
W$ "WAGES" NEB Employee's Nat. Ins. rate (Table B)
P$ ".00" NR Employee's Nat. Ins. rate
YY Year
A$() Employee's name MA Calendar month
B$<) Employee's Tax Code (including letter) MF Financial month
C$0 Employee's Insurance number W Week
D Payday
AO Employee's pay per week P Next Week's Payday
BO Employee's Tax number (B$() less its letter) WP/WT/WN Weekly totals of Nett Pay/Tax due/Nat. Ins.
CO Employee plus employer Nat. Ins. per week due
DO Employee's Nat. Ins. per week MP/MT/MN Monthly totals of Nett Pay/Tax/Nat. Ins. due
E() Employee's total pay for year YP/YT/YN Yearly totals of Nett Pay/Tax/Nat. Ins. due
FO Employee plus employer Nat Ins total for year M Number of days in current month.
GO Employee's Nat. Ins. total for year
xo Employee's total tax due to date Other letters used as temporaries are B E F G L S T V
YO Employee's total tax paid up to last week
zo Employee's tax due this week (ZO minus YO)
13
ZX COMPUTING DEC 1982/JAN 1983 46
BUSINESS
Table J: Important line numbers
I
2080 PRINT " T FOR T R X OR N . I . C H
1300 Year RNGE "
1310 2 0 8 5 P R I N T '' U F O R E M P L O Y E E DflTfi
Days in Months CHANGE"
1320 First Pay Day 2090 I F U>0 T H E N P R I N T " E FOR N E
1360 Tax Rate U EMPLOYEE '
1370 Employee Ins. Rate (standard) 2095 IF U=0 THEN P R I N T "E FOR D P
1375 Employee Ins. Rate (reduced) TR FOR NEXT YERR"
1380 Employer Ins. Rate 2 X 0 0 P R I N T " S T O S T O P "
1390 Tax Thresh-hold 110 PRINT REM Z UHEN DRTR
2000 prepare for next week SHOUING T O PRINTOUT"
2500 change employee's pay or code 2140 INPUT Q *
3000 change Tax or Insurance Rates 2150 IF Q$="S" THEN STOP
3500 data for new employee 2160 I F Q $ = " U " T H E N GOTO 2500
4500 increment by 1 week 2170 IF Q $ ="E" THEN GOTO 3500
5000 calculate figures for week 217S IF Q$="T" THEN GOTO 30O0
5350 2180 I F Q$ = " " T H E N GOTO 4000
7000
print Payslip
print names and tax codes and employee
2 1 9 0 GOTO 2000
2500 CLS
number 2510 PRINT EMPLOYEE NUMBER?
7080 print totals for Wage Book 2520 I N P U T <J
8520 print extra figures needed at end of year 2S30 PRINT U
8890 SAVE routine 2540 PRINT
2550 PRINT "URGE A ( J ) CO
DE '; B $ ( J)
2560 PRINT
2570 PRINT "NEU URGE?
20 REM R$()=NRME 6 $ ()=TRX CODE 2580 I N P U T R (U)
2600 P R I N T R (U)
30 REM C%()=NRT INS. NUMBER
4 0 REM R C) = P R Y / U E E K 2910 PRINT
C O =IJEEK INS . (BOTH J 2920 PRINT " N E U CODE'?
D O =IJEEK I N S . (EMPLOYEE} 2930 INPUT B$(J)
E (U) = T O T R L URGE (YERR) 2950 PRINT B $ (U)
F O =TOTRL I N S . (BOTH) 2960 P R I N T
G O =TOTRL INS. (EMPLOYE) 2970 PRINT "NEULINE TO CONTINUE'
50 REM 2980 INPUT
he
TR=TRX RRTE 2 9 9 0 GOTO 2000
NE=NRT INS RRTE(EMPLOYEE) 3000 CLS
es NR=NfiT INS RRTE(EMPLOYER) 3110 PRINT "TRX RRTE TR
to TT=TRX THRESHHOLD 3120 PRINT "NEU RRTE?
le 6 0 REM 3130 INPUT TR
in 100 LET N$=s"f 3140 PRINT TR
or 110 LET U $ = " r.i o c - E S 3150 PRINT
>0 120 LET R$="OX3 547/B62" 3160 PRINT
*'.; N E
INS RRTE (EMPLOYEE)
re 130 LET P$ = " . 0 0 "
200 D I M R * (9 12) 3170 PRINT "NEU RRTE?
ot 210 D I M B * (9 5 ) 3180
3190 PRINT
I N P U T NE
of 220 D I M C $ (9 1 3 )
3200 PRINT
NE
ut 300 D I M R (9)
310 DIM B ( 9 ) 3210 PRINT INS RRTE (EMPLOYER)
to
320 D I M C (9) " : NR
330 D I M D (9) 3220 PRINT "NEU RRTE?
ie 340 D I M E (9) 3230 I N P U T NR
ra 350 D I M F (9) 3240 PRINT NR
;al 360 D I M G (9) 3 2 5 0 GOTO 2 9 6 0
id 370 D I M X (9) 3500 CLS
's 380 D I M Y (9) 3505 IF U=0 T H E N P R I N T "NEXT R U f l
e. 390 DIM Z (9) ILRBLE EMPLOYEE N O . " ; J + , ,
ar 1300 LET YY = 1982 3510 PRINT "EMPLOYEE NUMBER? "
1310 LET M$="3031303131303130313 3520 INPUT U
1283 1 " 3530 PRINT J
1320 LET D=9 3540 IF CODE R$CU)=0 THEN GOTO
1330 LET U =0 530
1340 LET MF =1 3SS0 PRINT
1350 LET M R = 4 3560 PRINT RLRERDY USED R S ( U
1360 L E T TR =. 3 )
1370 LET NEfl=8.75 3570 INPUT Q$
1380 LET NEB = 3 . 2 3 5 8 0 GOTO 3500
1390 LET NR = 1 3 . 7 3630 PRINT
1400 L E T T T =30 3640 I F U>0 THEN PRINT DflTfl FRO
1410 L E T V P =0 M FORM P 3 5 UEEK ;U
1420 L E T Y T =0 3660 PRINT
1430 L E T Y N =0 3670 PRINT "NRME?
14.4.0 LET J=0 3680 INPUT R$ (J)
2000 CLS 3690 PRINT R $ (U)
2010 P R I N T T R B 8 ; N$ 3700 PRINT
2020 PRINT 3710 PRINT "TRX CODE?
£030 P R I N T T R B 8.; U $ 3720 INPUT B$ (J)
2040 PRINT 3730 PRINT B$ (J)
2050 PRINT 3740 PRINT
T R B 4.; " N E X T UEEK ";U +
1 3750 PRINT "NAT . I N S . N O . ?
2060 PRINT 3760 I N P U T C $ (U)
2070 PRINT TO RUN" 3770 PRINT CS ( J )
SPECTRUM SPECTACULAR
(50 Programs for the Sinclair Spectrum)
COMPLETE YOUR
SPECTRUM NOW!!
J O Y S T I C K KITS f 3 95 + V A T
To complement our exciting new ADD-ON' lor the SPECTRUM we
are offering low-cost Joystick Kits. Each one contains a
potentiometer-joystick. a lire-button and a suitable connector.
o
C A B M A N (Machine Code) £3.95 - V A T
You are the owner of a fleet of yellow taxis. A rival firm competes
with you, trying to steal your fares and run you off the road, if they
We stock the BIG NAMES
can. Ten skill levels determine the number of opposing taxis, the
in Computers including
Q speed at which they drive and the amount you earn per completed
ATARI 400/800
lOurney. MAXIMISE your earnings before you lose your entire fleet.
This program is FIRST CLASS.
ATTENTION M A C H I N E CODE PROGRAMMERS!
SINCLAIR zx si
W e can now offer SPECTRUM versions of the ASSEMBLER and
DISASSEMBLER programs from ACS Software The 2X81 versions
have proved extremely popular.
ZX SPECTRUM
ULTRAVIOLET (Assembler) £6.95 + VAT
B BOOKS
VIC-64
SPECTRUM
Over the Spectrum £6.95
Cambridge Colour Collection _ _ _ £6.95 BBC,
I DRAGON
• DRAGON MICRO
2X81
Mastering Machine Code on your ZX81
NOT ONLY 30 Programs
£7.50
£6 95 I & ACORN
Getting Acquainted with your ZX81 £5 95
DEALERS and a wide range of
o
49 Explosive Games for the ZX81 £5 95
Making the-most of your ZX81 £5.95
Bytemg Deeper into your 2X81 _ £4 96 independent
SOFTWARE
The Explorer's Guide to the ZX81 £4.95
50
See all our products at the ZX Microfair on Saturday 18 December!
Do your programs load from tape first time, every time?
If not, you need . . .
(1) THE MICROCOMPUTER USER'S BOOK OF S P E C T R U M S O F T W A R E (48K)
ATAPE RECORDING by Hilderbay Ltd.
PAYROLL £25
(50 employees, an tax codes, pay levels Ni contributions. Hourly, weekfy
CONTENTS monthly. Pay slips. Summary Ql payments, Vory easy to ueo. Amondirwnlt to
PART I (tc« everybody Ihi? how to pari! PAH 1 ll (more lor eninustasis tie why part) employee delails very easy nght up to the last minute Can also compute
1 How your system should work 9 Mow a tape recorder wor»s
gross pay & deductions from net pay)
2 Choosmg a tape 'eeorcwi 10 Computer casseite interlace waveforms
3 Testing and ad|utling your lape recorder 11 Stereo heads azimuth angle error
* Keeping youl recorder m good condition 12 Miscellaneous lape problems STOCK CONTROL £25
5 The selection and care 01 laws (Typically 1500 stock lines, prmls list of all items, or lines with given codes, or
6 Making rotable recordings understocked imes, locato-by-name ' a d d ' d e l e t e stock line iri under iwo
7 Loading difficult tapes seconds prints values ot stock Program loads in one minute, data in less
6 useful accessories than three)
Price £3 15 incl postage. £ 2 9 0 from bookshops O ask tor it at your library
GOLD £8
Our best-selling adventure game, now available on the Spectrum'
(2) TEST AND ALIGNMENT CASSETTE: £4.90
An these programs are available from stock we have interesting
A precision accessory which enables y o u to set up the azimuth angle of yout
professional Spectrum software under development, but we won't advertise
cassette recorCer Head accurately using only a small screwdriver 1 Azimuth
it until we c a n supply if
error is one of Ihe c o m m o n e s t c a u s e s of tape troubles With full instructions
(3) LOADING AID: £5.95 ZX81 S O F T W A R E ( 1 6 - 4 8 K )
if your recorder is basically OK, but you have IroutNe getting the playback B E A M S C A N Computes bending moment a n d shear force diagrams for a
level right with tapes from ditlereni sources, you n e e d our Loading Aid' Also Simply supported b e a m with 1 - 9 9 point, uniform, a n d uniformly tapered
salable for c h e c k i n g the quality of tapes, delecting a n d (sometimes) loads £25
compensating tor dropouts, etc Witn full instructions a n d hints o n tape use
T I M E L E D G E R tor u p t o t / e m p l o y e e s . 200ctients A great lime-saver 1 £15
(4) TAPE RECORDER £22 + £2 postage O P T I M A X A powerful linear optimisation program Up t o 75 variables
Aligned a n d tested (or computer use A simple but satisfactory machine constraints. £40
P A Y R O L L Similar t o the Spectrum version, bui 30 employees £25
SPECIAL TAPE OFFER! S T O C K C O N T R O L About 400 stock line m 16K 2000 m 48K £25
Book + alignment cassetle + loading aid tor £11.90' C R I T t C A L P A T H A N A L Y S I S Enter & solve 50C icl . ty nelwork in 16K
Edit durations & costs. & repeal £15
All pnees include VAT Everything post free unless stated oiherwise C O D
orders £ 2 extra A c c e s s orders a c c e p t e d by telephone B U D G E T Keeps track of expenses 4 c o m p a r e s t h e m >vth budgel 5 0
headings 1 2 m o n t h s (I) or 12 categories ill) £ 1 5 ' o r budget i & (together)
HILDERBAY LTD F I N A N C I A L PACK I Contains three programs Mortgage Loan. VAT £8
Professional Software, G O L D A tantalising adventure game 1 £6
8/10 Parkway. Regents Park. London NW1 7AA Free G O L D ( Z X 8 1 or Spectrum) with all orders ot £22 or over
Tel: 01-485 1059 Telex: 22870 postmarked before 1 December!
Floppy discs
The other main group of MSDs
is the disc family. These range
from the Sinclair Microdrives,
through conventional floppy
discs, up to hard discs. Floppy
discs are flexible discs coated
with magnetic material. They
are permanently sealed in
square envelopes within which
they are free to rotate. They
are used in conjunction w i t h
'floppy disc drives', which
contain magnetic heads whiph
can d e t e c t and create
magnetic patterns on the
discs. Hard discs can hold
more information than can
floppies, are much faster, and
much more expensive. A
typical f l o p p y c a n h o l d
CONTROL
between 100K and 8 0 0 K .
Hard discs can hold hundreds
of thousands of kilobytes of
information.
Programs must cater for the
MSDs land other peripherals) INPUT ALU OUTPUT
that they use. This can be a
problem, due to the vast
number of different devices
around. A program designed
for tape operation will not give
its best (if it will work at alt)
when used with discs. A disc
program will usually not work
with tape. Disc systems by
different manufacturers may
require different commands. MEMORY
Memory
Reading from, and writing to
disc, while vastly faster than
tape h a n d l i n g , can be
exasperatingly s l o w . As
memory becomes cheaper, an
a l t e r n a t i v e is b e c o m i n g This diagram shows the five makes decisions. The CONTROL like screen. The CONTROL UNIT
available. The computer can be basic parts of every computer. UNIT simply controls the flow of and the ARITHMETIC LOGICAL
fitted with a great deal of On the left we have the INPUT to information throughout the UNIT together make up what is
the computer, a keyboard, or a computer. The MEMORY called the CPU. the CENTRAL
random a c c e s s memory contains not only the PROCESSING UNIT Many
microphone, so you can speak
(remember RAM?). For directly to the computer or the intermediate and final result of modem microchips are a
technical reasons, most small computer can read the contents any calculations being performed complete CPU. and input and
computers cannot normally from a magnetic disc, magnetic but also the information the output devices are added onto
use more than 64K of memory tape or punched card. The heart computer needs to carry out the this chip, plus memory to turn
at a time (including the of the computer is marked ALU task you have given it. such as the CPU into a microcomputer.
memory in which the BASIC here This stands for adding two numbers. The (Caption and diagram are
interpreter is stored, and all ARITHMETIC LOGICAL UNIT OUTPUT device can be any one reproduced, with permission,
The ALU carries out the of a number of things such as from Tim Hartnell's book 'The
user memory). printed paper or the use of a TV- Personal Computer Guide'.
arithmetic computation and
It is possible to get around published by Virgin Books J
rules the
in r e a d a b i l i t y and i n t e r e s t We were, however, a little dis-
as it continues, almost as concerted to read in the intro-
though the authors were learn- duction Mr Sinclair thanking
ing about the machine as they Ctive's PR people for 'the loan ol
waves
wrote the book, and by about a Spectrum' which suggests
page 3 0 were really starting to that the author had little time to
enjoy it. build up real expertise on the
When you're next in a book- machine before writing the
store, turn to page 11 7, where a book.
blurred screen photo fails to do Have a look at the 'Roll Your
justice to a particularly fine Own' chapter (from page 69).
graphics demonstration pro- ' G r a p h i c s ' (page 8 1 ) and
Every publisher in the UK gram, described as 'another of-
fering of winsome beauty'. Cltve
'Sound Sense' (page 105) to
see how well, and clearly, the
seems to have Sinclair should buy the rights to
this program, so he can run it
author covers his material.
Tim Hartnell, the editor of
discovered the every time a critic mouths 'But
it's not true high resolution'.
this magazine, has been very in-
dustrious, and produced (wo
Spectrum, so there is The book includes 2 6 com-
plete programs (described as
books for the Spectrum already.
Although he is editor, he told
sure to be a bumper crop 'prepackaged'), each of which
will amply repay the time taken
us when presenting the books
for review, 'be rude if you have
of reading matter for to enter them. In conclusion,
'Easy Programming..." is a book
to'.
And we've tried very hard to
Spectrum owners in the which will take you a long way
into the mysteries of the Spec-
bel
coming months.
The t w o books are 'Program-
trum; is written with a consis- m i n g Your ZX Spectrum";
tent, and humourous hand; and published by Interface, and 'The
shares the affection the authors ZX S p e c t r u m Explored',
feel for the computer. published by a company which
The book goes through all the Uncle C part owns, Sinclair-
Our review panel have been
looking at a selection of the aspects of the Spectrum you're For the Spectrum Browne. Clive has written the in
Spectrum books and finds that likely to need in the first few Ian Sinclair's (no relation) book, troduction to 'Explored'.
the standard is uniformly high months, generally explaining 'The ZX Spectrum and how to 'Programming Your ZX Spec-
(both in terms of content and them well and clearly. The dem- get the most from it' is, in some trum' is the thickest of the four
presentation), with each book onstration programs include ways a lighter book. books reviewed in this section,
representing value for money in some remarkable demonstra- To fill a third of a page with a and also the most expensive. As
its own way. tion graphics, ones which are diagram of how to wire up a a comparison, the Shiva book
ideal for impressing your family three-pin plug hardly suggests has 140 pages, Ian Sinclair's
Starting from and friends. Our only reser-
vations about the book, and
that the book is going to contain has 130, 'The ZX Spectrum Ex-
scratch these reservations should not
much meat, but after this rather
odd beginning, Mr Sinclair gets
plored' has 2 1 8 and 'Program-
ming Your ZX Spectrum', 230.
d i s t r a c t y o u f r o m w h a t is into his stride. Unlike the Shiva The books each cost £ 5 . 9 5 , ex-
Three titles seem to be aimed at
generally a very fine product, are book, which for some reason cept for 'Programming Your...'
common ground; the first-time
the first t w o chapters. plumped to reset all programs, which is £ 6 . 9 5 .
user, who knows little (if any
BASIC) and certainly knows lit- Mr Sinclair uses them direct Now for the rude bit.
tle about the Spectrum. These Bewildering from the ZX printer. Tim, and his co-author Dilwyn
are 'Easy Programming for the A somewhat obscure program is The first 1 8 pages are used up Jones include many, many pro-
ZX Spectrum' (Shiva — Ian 'explained' in the first chapter, telling you how to connect up a grams Cover 100 programs and
Stewart and Robin Jones); 'The in a way which — unless you're television, and get a clear pic- routines' the publicity material
ZX Spectrum and how to get the a very careful or patient reader ture. Necessary information per- says), but we felt many of them
most out of it' (Granada — Ian — may leave you more bewil- haps, but surely not worth that were introduced a little too early
Sinclair); and 'Programming dered than in the light. much of the book. in the text, without adequate ex-
Your ZX Spectrum' (Interface - Like the Shiva authors, Mr planation. At the end, the tech-
We have noticed that authors
— Tim Hartnell and Dilwyn Sinclair leaps straight into arith- niques will be completely clear,
from academic backgrounds
Jones). Of course, they all tread metic, but drops this after a page but some readers will have to ex-
(like the man who wrote the
similar ground, but attack the or so and starts his first real sec- ercise patience and enter the
manual for the Dragon 32)
problem in quite different ways. tion, on using TAB and PRINT programs on trust, knowing that
always believe that manipu-
We feel that many inexperi- AT. the reasons for all the lines will
lating arithmetic on the com-
enced users will benefit from puter is the very first thing you There are only seven pro- become clear eventually.
buying t w o (or even all three) of need to master. Most of us start grams in this book which are Despite this, the book unfolds
the books, as what is unclear in by playing games. The exponen- more than a few lines long, and in a fairly logical way, and con-
one can be illuminated by the se- tion function we can live with- only one of them (ANIMALS) are tains an easy-to-follow course
cond or third. The funniest of the out for a while. Despite this, you likely to run more than a few on BASIC, and on programming,
three is certainly Jones and Stewart and Jones plunge into times. as well as on 'making the most
S t e w a r t s ' 'Easy Programm- of your Spectrum'. The program
ing...' which follows on the style
algebra, and the hierarchy of
operations on pages eight and
Civing ideas examples are, on the whole,
of the highly successful 'PEEK, nine, when we imagine many Against this is the fact that good, with several 'major' pro-
POKE, BYTE and RAM' title for readers really want to zap a few many of the sections in the book grams including Reversi (Oth-
the ZX81, and is enlivened by a aliens. give a tremendous source of ello), Final Circuit and Life (with,
batch of weedy cartoons. ideas for producing your own forsome reason, twocompletely
Fortunately, things improve
There is no doubt, if you want from this point, and chapter programs, and the chapter 'Roll different versions). A slight bug
your learning leavened w i t h three's tour of the keyboard is Your Own', which explains how we found in Reversi has, we are
humour, that this is the title to the clearest of the three books the idea of a program can be assured, now been corrected in
start with. we're considering. refined and built up, and then a reprint. The graphics chapter is
I
Using the Spectrum in Business;
Using the Spectrum in Educa-
dar'.
Andrew Hewson (who
Publishing Ltd.
tion; Playing Games with your answers reader's problems in This book is in many ways a se-
Spectrum; Three-dimensional Sinclair User) has ' 2 0 Best Pro- quel to lan Stewart and Robin
graphics; I n t r o d u c t i o n t o grams for the ZX Spectrum' for Jone s book 'PEEK, POKE,
Machine Code; and A guide to £ 7 . 9 5 . The 'best programs' in- BYTE, & RAM' which enjoyed
Better P r o g r a m m i n g . T h e clude 'Machine code editor', so much popularity as a begin-
appendix includes a potted 'his- 'Index File' and 'Duckshoot'. ner's guide to the ZX81. Here
tory of the computer' which Shiva has the cheapest book, then is the what to do next, or
OTHER K A Y D E H A R D W A R E / S O F T W A R E
ZX81 4K GRAPHICS BOARD 16K GRAPHICS SOFTWARE
Th* KA YO£ Graphics Board a probably our best K C H S W V yet II fit*
neatly inside your 2X81 It corr** complete with a pre programmed 4K PECKMAN - The only true ZX version of the
Graphic* flOW Tha mil give nearly 450 ektra graphic* and wth the
iiverM makes a total ot nearly nine hindiad.
popular arcade game.
Tha KA YDC Graphic* Board has tac-Mie* lor either 2K ot RAM I tor u w
SPACE INVADERS - The best version available
definable graphic*) 4K o< ROM or our 4K Tool Kit Chip* that wtl be anywhere.
available shortly Alt the graphic* are completely software controlled
therefor* Ihev can be written into your
CENTIPEDE - "In all / think this is the best
progammes Here «re * lew t u f f l p m presented moving
A full sat of space Invaders - graphic programme
Puck man - Bullet*. Bombs RAMPACKS . . . With a difference I've yet seen" —
Tank* - Laser Base* and
Allan Ship* Kayde Rampacks are exceptionally stable. They Phil Garratt
NO EXTRA POWER NEEDED don't over-heat, lose memory, wobble or cause you
INTERFACE
£19.95 to lose your program. They are fully compatible with
all accessories and need no extra power, and £5.95 each
Graphic Software can only
therefore will run efficiently on existing Sinclair be used with a Graphics
power supply. Simply plug them straight into the board
Overseas please add £2.50 p & p for all hardware and 75p for all software. All hardware comes fully built and
tested and complete with a 14 day money back option, PRICES INCLUDE V A T
TO: KAYDE ELECTRONIC SYSTEMS LTD, DON'T FORGET YOUR CAN ALWAYS ORDER ON
THE TELEPHONE WITH YOUR CREDIT CARD
DEPT.2X12 THE CONGE, GREAT YARMOUTH,
NORFOLK NR301PJ E3 DEALERS WELCOME.
PLEASE PRINT 6 •I enclose a cheque'postal order payable to KAVOt electron*: Systems Ltd. lor
Oty Item Item price Total T 'Please charge to my Access/ Berelayeatd.' Trustcard account no
f
r
I N I I i n
Srgnature • •
Name Mr .'Mr*/Mi** I I I I I I I I I I I I I I I I I I I II
I I I I I I I I I I I I I I I I I I I
Please allow CI SO P&P for all Hardware SOo for all software I I M I I i I I I I I I I I I I I I I I
First steps in
programming — on
the Spectrum
Martin wren-Hilton and Tim Hartnell outline a
couple of exercises in programming, if you've
never touched a computer before you bought
your Spectrum.
Despite what you may have gram is made up from many
read in Spectrum's manual, this "lines" — each line consisting
computer from Sinclair is actual- of a line number and an instruc-
ly quite easy to program. We tion (or instructions) for the
have the feeling that the manual computer to store and execute
was written by a computer ex- one by one when the whole pro-
pert for other computer experts gram is ready to RUN.
to read, what w i t h all that
rhubarb a b o u t Procrustean writing a Program
assignments and calculator Make sure that your Spec-
stacks, it certainly seems com- trum has nothing at all in its
plicated. But it is not all that dif- memory by pulling the power
ficult at all, as we shall see . . . plug out of the back of the com-
puter and re-inserting it, or get-
Setting up ting the computer in keyword
First of all, it would be best to mode, where the cursor is a " K "
have a Spectrum in front of you. and press NEW (on key AI
If you have not, then you should followed by ENTER. To start
still be able to follow the article. writing a program, we must
Make sure that everything is set begin with a line number. A line
up, as shown on page 6 of the number may be any number bei -
Introductory Manual. If you can, ween 1 and 9 9 9 9 , and most
use a colour TV, otherwise a people begin their programs at
black and white set is better line 10. So type in 10. As you
than none at all. Is everything can see, the computer is still
set up? OK, now plug the little waiting for a keyword, so press
jack into the 9V DC socket on the key L, as we want the word
the back. Did the message "(C) LET on the screen (and in the
1 9 8 2 Sinclair Research L t d " program). The cursor is now in-
come on? If not, then make sure appeared on the screen and that the end, press ENTER twice and dicating that it wants a letter, so
that the television is correctly the cursor has become an " L " . try again. You will find that the press A and you will see a little A
tuned in and that all the leads are This means that your Spectrum more often you try it, the faster appear. What we want now is
in the correct place. is now faithfully waiting for you you get. the = sign on the L key, and in
to press a letter (or to change the order to get it, we must press
Touring The cursor to a " G " , " E " or " C " ) .
Now is your opportunity to
Now Let's See The SYMBOL SHIFT and L. (If you
are not used to using shift keys
Keyboard become famous and see your Spectrum Do like those on typewriters, you
Have a good look around the name on the goggle-box: type Something useful must press SYMBOL SHIFT and
keyboard and peel off the pro- your name. If you make a whilst holding it down, press L,
tective plastic if you have not mistake, press CAPS SHIFT and At this point, it will be well then release L before releasing
done so already. Each key has 0 - this will move the cursor worth doing t w o things — (i) SYMBOL SHIFT). Finally, press
about six functions — look at back one, deleting the offending Have a look over chapters 3, 4 1, followed by ENTER. This
" Q " and you will see SIN in character. and 5 of the I n t r o d u c t o r y should appear at the top of the
green, Q and PLOT in white, and Now press ENTER. When Manual and (ii) go and get a few screen:
ASN and a funny symbol that you press ENTER, the computer sheets of paper and a pen you
means 'less than or equal to' in accepts what you have just will see what those are for later, t 10 LET a = 1
red. Press ENTER and you will typed and tries to do what you hope that after doing (i), you
see the flashing " K " cursor ap- have told it to do. Hopefully, and realise that the Spectrum can If it does not, then you can
pear. That " K " means that the probably to your disappoint- either be used directly or pro- either EDIT the line by pressing
c o m p u t e r is w a i t i n g for a ment, the computer wilt im- grammed. If you use the com- CAPS SHIFT and 1 and moving
keyword. The keywords are mediately report back to you " 2 puter directly, it does what you the cursor backwards and for-
written in white on the key (like Variable not found, 0 : 1 " . That tell it to do, there and then. If you wards using SYMBOL SHIFT
PLOT, DRAW and REM). Press little exercise was to help you progam it however, it stores a and either 5 or 8, deleting where
the key marked PRINT - it's se- get used to the keyboard. As long series of instructions one necessary by pressing SYMBOL
cond down, on the right. You another exercise, press P then after the other, ready to be ex- SHIFT and 0 or NEW the pro-
can see that the word PRINT has type in the whole alphabet. At ecuted (RUN) later. Each pro- gram as outlined above and start
0 OK , 4 0 1
LET 3 = 1 NT ( R N D f 5 0 ) t-1
LETFC.= 0
L E T
PRINT RT 3.3; INK "GUFISS
:r b " :
Masterchess
suit you best why not seek a swift overall picture of what's around for the
from us^ Simply let us know what you're iniorostod in and wo 11
send you a personal summary of what's available facts, figures, real player!
suppliers, details We'll also enclose as much manufacturers'
literature as we can and add whatever related data we think might
be worthwhile for you We'll tell you of any special offers we're
aware of. and even help with your order if you wish If we don't know
how to answer your enquiry we II try to find out if we can't we won't
take your money Try us — we re here to help you make the right
decision.
S E C O N D H A N D C O M P U T E R REGISTER
We can also help if you want to buy or sell secondhand We keep a
register of currently available used computers and peripherals and
send appropriate details from it to every interested enquirer This
advertisement appears in many computer magaz nes. which
means a lot of people will read it. So. if you re looking for second-
hand value write and ask us If you want to sell, send us full details
of whal you have loofter and we II do ihe rest, Registration costs £4
(or C3 if the total asking price is under CI 00). and will be maintained
until you've sold Each registration will oe acknowledged
£500 in PRIZES
D E P T . PR2
66 L I T T L E D E A N
24 Agar Crescent Bracknell Berks RG12 2BK
FOILKADE LTD YATE
B R I S T O L BS17 4 U O Tel: Bracknell ( 0 3 4 4 ) 2 7 3 1 7
13
ZX COMPUTING DEC 1982/JAN 1983 60
EDUCATION
On Your Marks
c a s s e t t e w h i c h (I quote)
" c o n t a i n s eight attractive,
easy-to-use programs for the 7
to 1 1 age group, including
Maths, English, Junior Science
and History. Colour graphics
ON YOUR MARKS is a suite of educational and sounds
extensively".
are used
programs for children aged six to 10. The other t w o packages ore
Written for the 16K ZX81, the programs aim both for the ZX81 and are
produced by ROSE
to make the maximum use of the graphics CASSETTES. I use the word
package intentionally, as both
capabilities of the computer. cassettes contain no less than
6 full length programs. The
t w o packages that I will look at
Probably the most usual child to press one. Any key multiplied by the one on the shortly are: JUNIOR ENGLISH
feature of this software is that pressed other than the correct gun, is equal to the target. If 1 and G.C.E. " O " level
it is a series of programs linked one has no effect. When the the correct number is pressed FRNECH.
together and loaded as one. It correct one is pressed the child and the position of the gun is As I said earlier (if you were
uses every available byte of is told how many seconds it opposite the target, a hit is listening), I would first like to
the 16K memory to do this. took them to find it. After ten recorded. look at CALPAC's JUNIOR
Why? The reason is that tn a successful attempts the times Completing the suite is a EDUCATIONAL cassette or the
classroom — where it has been achieved for each key is step-by-step guide to addition ZX Spectrum, so h e r e
well tested — the teacher displayed and the child is given in which a sum is broken d o w n goes:. . .
loads the whole suite before the choice of trying another into tens and units and the The cassette itself comes
the class arrives. It takes more batch or returning to the menu, principle of carrying over to the well packaged with a specially
than six minutes but that next c o l u m n is c a r e f u l l y prepared leaflet of teachers
doesn't matter. Once loaded
the children can jump from one
Frogs demonstrated. notes. Though they are brief,
they do give the teacher,
"game" to another at the
press of a key. Program
T w o versions of FROGS are Anagram parent or pupil for that matter,
provided to test mental a reasonably good idea of what
selection is from a menu, error arithmetic at either multi- To balance the arithmetic, side each program aims to do and
trapped so that only the plication or addition. The B of the cassette has a word hence whether they fit their
correct numbers have any program is a development of game. Anagram is played at requirements. My only
effect. one by Bob Maunder in his three levels of difficulty. The suggestion is that some hints
One of the main criticisms excellent The ZX81 more difficult, the longer the on loading could be included
heard from teachers about Companion'. The idea is that words which have their letters for the uninitiated user.
"drill" type computer every correct answer results in mixed up. Two children can
programs is that they are a man jumping over stepping play against each other. One Drawing pictures
boring. Computatutor put a lot stones towards his goal — a enters the word while the
of e m p h a s i s o n visual store of gold coins which turns other is not looking. The The first program is called
presentation. The authors do to frogs as time passes. The computer then presents it in a DRAW. The idea is simply that
not claim great originality for thrill of this game is that it is jumbled up version. you can guide a dot around the
the content since all played against a clock Alternatively the computer will s c r e e n and d r a w pretty
educational programs at this counting down. In t h e select a word from a store in p i c t u r e s w i t h i t . It is
level comprise of setting enhanced version, messages its memory. If you give up just reasonably advanced as it
q u e s t i o n s and checking are flashed on the screen to t y p e " H e l p " to get the allows you to control a number
whether the answers are right step up the pressure as time answer. of funtions listed below: INK,
or wrong. What is claimed is passes. When all the answers PAPER, FLASH, BRIGHT,
flair in presenting the material. are correctly answered the ON YOUR M A R K S . . . is
OVER, INVERSE, INVISIBLE,
user is told how well they have available from Computatutor,
ON, OFF, SLOW, FAST, COPY
3 Thalia Close. Greenwich,
Packaging done, On selecting FROGS the
child is asked if they need SET0 9NA priced £ 6 . 9 5 .
and ENOUGH. Though this
program holds very little
instructions. Since the story is educational value as such, it is
The program once loaded
begins to run automatically. It an essential part of the James Walsh, our a very good way for a
starts with animated graphics enjoyment it has to be told well pint-sized newcomer to find his or her
which are great fun to watch by the software. If required the
instructions are scrolled up the
education reviewer, way around the keyboard, and
generally feel that they are in
and then goes into a menu
selection page. Pressing key screen letter by letter in a very the terror of his control.
one takes you to the first fascinating dispay. school in The second program is
program available. You know Loughton, takes a called "HOMEOPHONES", or
you have got the right program Shoot the number look in this issue in other words, words that
because each one announces sound the same but mean
itself by name using an In a similar way, shoot the at three different things. You are given
animated nest of boxes with n u m b e r has s t e p - b y - s t e p educational a sentence with a blank space
the title appearing at the instructions to explain what is packages, for the and t w o or three alternative
centre. expected of the user. The answers. You then type in the
g a m e p r e s e n t s a t a r g e t ZX81 and answer that you think is right.
Find the key practice in which the targets Spectrum. If you are correct then a
are a set of numbers. All the graphically represented plant
The first program is FIND THE numbers are multiples of a In this edition I have been will grow and if you get to the
KEY. Its educational purpose is number which appears on the asked t o look at t h r e e end it will flower. If however
to help c h i l d r e n b e c o m e butt of a moveable revolver. educational packages for the you are wrong it makes a
familiar with the keybaord. The Pressing any number will fire ZX81 and the Spectrum, The rasberry noise and goes onto
computer randomly selects the gun but the bullets are first one that I'll look at is the next question. Though the
from either alphabetic or blanks unless the number CALPACs new Spectrum idea and application is good
numeric keys and asks the pressed is the one which, "JUNIOR EDUCATION" there is no variety, and I feel
EDUCATION
t h a t m o s t k i d s of the allows you to enter your own like about the Rose Cassettes there is a different one on each
prospective age-group would words and phrases. Again, if loading hints, was that they program. A very important
get bored w i t h the same you get the answer right a bit included approximate loading point when using a program in
questions and only one special more of the plant is drawn, and times for each program. This class is its' 'uncrashability', if
drawing at the end. Next on if you get it wrong it. . . you gives the user some idea of you would pardon the
the tape is " S U B " , which is a guessed it, makes a raspberry how many cups of coffee he or expression. In other words, it
basic subtraction program. It noise. she has got time to drink is important that the computer
deals with the subtraction of before starting work! checks every INPUT before it
larger numbers from smaller Chariots Junior English is made up of tries to digest it, This is very
numbers in a very six full 7K to 1 2K programs all well done, as it is almost
understandable way. If you get "ROMANS" is a simple impossible to crash without
of which are recorded once on
a question right then you get a question and answer program hitting the 'BREAK' key.
the cassette. It may seem a
pleasent tone and the bridge on Roman history. If you get
better bet to record them Overall, this is a very well
gets a little longer. If you get it enough questions right the
twice, but reliability is almosl thought out program and well
wrong then the program will horse will gallop away with its
100%. w o r t h the expenditure of
carefully take you through the chariot. Personally I found that
this was reasonably advanced £ 4 . 5 0 (for those studying
for a Junior school and so Meanings
right way of doing it. At the English at Junior School).
end a tank will drive across the This and various other
bridge and stop if it cannot get would be useful in Secondary
school as well. The first t w o programs are educational packages are
to the other side. A very called MEANINGS 1 and 2 available from: ROSE
thoughtful addition is the The final program on this CASSETTES, 148 Widney
cassette is called "SPELL", respectively. The idea is that a
facility to choose how the phrase or word is displayed at Lane, Solihull, West Midlands,
answer should be explained, which is quite naturally a B91 3LH.
spelling program. The the top of the screen, and
depending upon the way in underneath are three possible
which the pupil has been difference being that you type
in the words and clues so that meanings. Your job is to decide Rose cassettes:
taught so far. This is a which is the correct meaning
pupils can be tested. This way
reasonably good program, but
it gets rather boring after a a large library of words can be and then type 1,2 or 3. The Summing it up
built-up. program holds a large stock of
while. questions and answers so that Ian Marshall of Bramhope,
In all this is a good cassette. you don't get the same Leeds, sent us this program,
There may be certain programs questions on each RUN. The with the following comments:
Nature studies that you will decide not to use, only difference between 1 and " M o s t of the teaching
but this is mainly due to the 2 is that 2 is slightly harder programs for simple maths
"FLOWER" is by far the best incredible variety on this one than 1. seem to be of the type 1 3 +
program on the cassette so far. cassette. I agree with the 1 4 - 2 7 , where the calculation
It first draws an accurate maximum age of 1 1 for the The next program is called must be done mentally, (or
diagram of a typical flower and programs, except for PARTS OF SPEECH. The idea with pencil and paper), and the
all its parts. It then goes on to FLOWERS and R O M A N S , is that you fill in the blank with answer e n t e r e d in t h e
tell you what they all do and w h i c h may be useful in one of three words displayed. sequence 'tens' followed by
how. It also tells you where secondary schools. The first program on side 'units'.
they all are and test you on two is called PROVERBS. It
Overall Ratings: 7 / 1 0 for h o l d s 35 well-known "In general, this is not the
their location. This program is
Quality: 8 ' 1 0 for value. proverbs, such as: " A stitch in way a child is taught to add,
ideal for 2nd year
T h i s c a s s e t t e c a n be time saves nine". It displays and the facility to add the
science/biology pre-'O' Level
obtained for £ 5 . 5 0 from the one at a time but with a word 'units' and then the 'tens' and
course candidates, as this is a
address below: missing so that you have to enter the answer in sequence
major subject.
CALPAC C o m p u t e r c o m p l e t e the p r o v e r b . I would be desirable.
We now flip the cassette S o f t w a r e , 1 0 8 Hermitage particularly liked this program "The following program is
over and start looking at the Woods Crescent, St. Johns, because it gave a little variety very simple, but it follows
second four programs. WOKING Surrey. GU21 1 UF. what I believe is the desirable
in a subject which even with
This is d e f i n a t e l y a the best teacher in the World, f o r m a t and o f f e r s more
Tables worthwhile cassette for any most people find tedious after sophisticated possibilities."
junior school teaching using a a while.
The first program on side t w o SPECTRUM in class.
is called, quite aptly, TABLES.
You are allowed to specify a Junior English 1 Learning English
particular table from 2 to 12,
or if you prefer then a variety Junior English is one of many We now come to "SIMILES",
up to a specified table, (3 to educational packages from an aspect of English which is
121. It will then ask you 20 Rose C a s s e t t e s . These more popular (if that is the
q u e s t i o n s . If you get a cassettes come quite well right word) than most. This
question right then a bit more packaged, with loading hints time the program holds 4 0 well
The headmistress of the Carlton
of your graphic train is drawn. on the inside of the cassette known similes. The program and Netherfield Infants' and
If you get one wrong you hear insert, but with very little itself follows a very similar Nursery school in Nottingham,
another raspberry tone and the information about the format to the rest, in that you says she believes it is important
offending table is displayed. p r o g r a m s t h e m s e l v e s . In have to fill the blank with one for her pupils to familiarise
When you have finished your computer circles it is not of the three possible answers. themselves with technological
score is displayed and your always necessary to include The final program is called developments at an early age, so
train is shown driving through documentation, but for the she s taken her ZX81 along to
" A N A G R A M S " . What you school. Miss Johnson, shown in
the countryside. This program product which is not only have to do is unscramble one the photograph with Ian Preston
is very good, ideal for Junior aimed at the computer owner of 50 six-letter words. If you at work on the computer, says
school and lower secondary but also at t h e s c h o o l cannot get the answer simply the children use it for
school pupils. environment, I do feel that type 'Help' and the computer multiplication and division, and
Next we come to " C O M P " some introductory notes are will display the first letter of for spelling games.
— an English comprehension helpful. CALPAC have done the unscrambled word. "The children play number
program. A sentence is given this simply by including an A4 One particularly nice part of and spelling games, and see their
with a blank and you have to size sheet folded into an A 5 each program is the 'Jackpot' names printed on the screen. It is
leaflet w i t h a couple of important that they know there is
choose one of four words to fit game which is played every more to computers than playing
m that space. The special sentences on each program. time you answer a question. games. " (Photo courtesy of the
value of this program is that it One small touch which t did Though they are very basic. Nottingham Evening Post).
nil!!
riiftiii
U XT HOUTFTNYONE ELSE LOCK ING :
3 l l i ! l
SXVE M-7 R UGPL' UZTM L=L LETTER
"HELP" TO ?LR; THE QO^?UT£!
f* I
3
•J=UP D-DOUN
35
. i g .
;¥DUR C H O I C E IHUvTfWT " ~
;S f f l i a i & FR O35 ^ C L i T I O N
13
\ ZX COMPUTING DEC 1982/JAN 1983 63
EDUCATION
10 PRINT FOR 33000
20 PRINT
30 PRINT "TRY THE SUN THRT FOL
LOUS I N R"
35 PRINT "FEU SECONDS,-THEY/ RE
RLL SIMPLE"
40 PRINT "ADDITION SUNS - PUT
THE UNITS" •
4-5 PRINT " I N FIRST. THEN THE
TENS"
50 PRINT "OK? RUFIY YOU GO"
60 PRUSE 300
70 POKE 164.37 , 255
90 CLS
100 RRND
101 LET R=0
102 LET B - 0
103 LET C =Q
110 LET A =INT ( R N D * 1 9 J +1
120 LET B =R INT iRND*19)+1
130 LET C=A+B
200 I F R<=9 THEN PRINT RT 10.. 6,
A
( > 210 IF R>9 THEN PRINT RT 10.5;A
t * * t 320 IF B<=9 THEN PRINT RT 11,6
t ) 6
c )
{c )> 230 IF B>9 THEN PRINT RT 11,S.;E
24-0 PRINT HT 11.7;"+"
i< 250 PRINT RT 12.5;"--"
) 300 PRUSE 10E3
c 3 310 POKE 164.37,255
( ) 320 LET D$=INKEY*
t CORRECT - 29 ) 321 IF INKEY$=CHR$ 118 THEN GOT
I > D 300
c( INCORRECT - 1 ) 325 LET D =URL D$
) 330 PRINT RT 13..6,; D
counter
recorder. Nick Pearce
took the D.I.Y. approach
to the problem.
6
have this facility as standard. the cassette drive below. The cassette drive with just the
On a shoestring My simple adaptation should tube is flexible rubber, 8mm right amount of pressure - too
fit most recorders. outside diameter, 5mm inside much and friction would slow
Computer hobbyists who, like I It is basically a counter for a diameter, and must be a tube the cassette down. I did this by
have to, operate on a tape recorder which I and not solid since it must bear making the tube about 1/« inch
shoesting budget, might be purchased from 'Scoops' on the annulus which drives too long and then gluing thin
interested to read about a tape <90p) and which is adapted to the cassette and not on the rubber pads on the underside
counter I adapted to fit my old be operated by the drive of the central stationary stem. I used of the wooden block until I got
Philips cassette recorder. In cassette recorder. The only 'araldite' to connect the tube the pressure right.
common with other ZX 81 permanent modification I made to the pulley of the counter, I find this adaptation a great
users, I find that only good to the cassette recorder is a and a little care is needed to help for locating programs on
quality audio cassettes give Vi -inch diameter hole cut in the ensure that it is fixed centrally, cassette. It does not affect the
consistently good LOAD/SAVE lid. although the rubber tube will operation of the recorder;
results and in the interests of The tape counter is mounted take up small eccentricities. programs I SAVED before
economy I save ten or so on a block of wood and rests making it, LOAD successfully
programs each side which on the lid of the cassette Getting tricky with it in position. Cheap too,
makes a tape counter an recorder, A piece of rubber 90p and half an hours work
essential piece of equipment. tube fixed to the counter drive The only tricky part of the instead of buying a new
Some makes of recorder, pully passes through the hole operation is to make sure the cassette recorder with a built
including my Philips, do not in the lid to make contact with rubber makes contact with the in tape counter!
1 REM(33 characters)
10 LET X= 16514
20 LET A $ E "
30 IF A$ = " "THEN IN-
PUT AS
40 IF A$ = " S" THEN
STOP
50 POKE X,1 6*CODE
A$ +CODE
A$(2) - 476
60 LET X = X + '1
70 LET A$ = A$<3 TO)
80 GOTO 30
-Test Card
30 FOR i TO 7
40 POKE USR
50 NEXT i
60 F O R i =© T O 4 STEP 4
65 POKE USR ,BIW 110011
66 POKE USA " h "tj +1,BIN 110011
7© POKE USR " b "+i*2,BIN 110011
0 0\
71 POKE USR *3,BIN 110011
00
80 NEXT i
9 0 FOR i =0 TO S S T E P 2
1 0 0 POKE USR +i ,BIN 01010101
: P O K E USR +1,BIN 10101010
110 NEXT i
1 2 0 INK 7 ; BORDER 0 : PAPER 0; C
LS
1 3 0 FOR i = 1 T O 7
1 4 0 FOR J = 1 T O 3
150 P R I N T TAB 3; BRIGHT 0; INK
i ; " B n H " i INK 7 ; BRIGHT INT tiy4
1 6 0 N E X T J: NEXT i
These programs will keep your 1 7 0 INK 7
2 0 5 FOR i = 0 T O 3 2 S T E P 2
Spectrum happy for hours at a time, in 2 1 0 PLOT i , 8
the first one, Test Card, the coarse 2 1 2 I F i < 3 3 T H E N DRAW B R I G H T
checked pattern in line 150 should be 0 , 167
2 1 5 I F i > 3 3 T H E N DRAW B R I G H T 0;
entered as graphic b' and the fine 0, 167
checked pattern on either side is 2 2 0 NEXT i
2 3 0 FOR i = 2 2 2 TO 2 5 4 S T E P 2
graphic a', in the second program, 240 PLOT i , 3 ; DRAW B R I G H T l ; 0 , l
Graphics Alive-oh, just enter the 67
program — and stand back and watch. 2 5 0 NEXT i
2 6 0 FOR J = 8 T O 1 7 4 S T E P 2
270 PLOT 1 9 2 , i : DRAW B R I G H T 1,S
3 , 0
* .y* T1.1L* s * •t :eri~. ,-r.
» ». BOR 2 8 0 NEXT i
DER HIS 2 9 0 P R I N T A T 2 1 , 0 ; " B r t jNor jNor
^0 r-C'" * sr — s n r> T : G J 2 G |G ) B r t JL i n )Cr=-5-"
3S PLOT 121 DP.i'U • > 3 0 0 PAUSE 1 2 0 0 ; B O R D E R 7.- PAUSE
4S NEXT i 1200; BORDER O; GO T O 3 0 0
5© P A U S E 4.O0 9998 STOP
55 PAPER 3: OUER 9 9 9 9 PAPER 7; INK 1 ; BRIGHT 0; B
57 FOR J = 0 TO 1 ORDER 7
67
Don't let its size fool you. You get what vou don't pay for. Big enough for your business.
If anything NewBrain is like the NewBrain comes with 24 K ROM Although NewBrain is as easy as
Tardis. and 32K RAM, most competitors expect ABC to use {and child's-play to learn to use}
It may look small on the outside, but you to make do with 16K RAM. this doesn't mean it's a toy.
inside there's an awful tot going on. What's more you can expand all the Far from it.
It's got the kind of features you'd way up to 2 Mbytes, a figure that wouldn't It comes with ENHANCED ANSI
expect from one of the really big business look out of place on a machine costing ten BASIC, which should give you plenty to gel
micros, but at a price of £269.95 times as much. your teeth into.
including VAT it won't give you any We've also given you the choice of And it'll also take CP/M* so it speaks
sleepless nights. 256.320,512 and 640 x 250 screen the same language as all the big business
However, let the facts speak for resolution, whereas most only offer a micros, and feels perfectly at home with
NO OTHER MICRO
th«?meplvf»s max i mum of 2S6 x 19? their software.
NEWBRAIN
where to go next. NewBrain.
ft CP*Watrefeom«eairaae mafholt>d«arRcsearcfiloc Gruidy Business Systems Ltd.,Grundy House.
Somerset Road, Teddington TW118TD
ZX80 PROGRAMS
ZX80
fights
back
ZX80
fights
back
lan Turtle has
contributed two fine 40 LET A(B* 10 + C) = 2
Haslam.
170 NEXT I
180 PRINT "LAST P O S - " ; C ; " , " ; B
190 LET 0 = RND(3) - 2 + B
move to one of the eight sur- 200 LET 0 = D + (D>9) - (D<0)
Klingon capture rounding squares, or he may 210 LET E = RND(3) - 2 + C
stop still. The probabilities of 220 LET E = E + iE>9) - (E<0)
A Klingon ship is hiding behind these actions are equal. If the 230 IF A(D* 10 + E> = 1 THEN GOTO 260
one of TOO stars. You must try square it wishes to move to is 240 LET B = D
and trap the Klingon by shooting clear, then it will move there, 250 LET C = E
the eight surrounding squares, and the square it vacates will be 260 PRINT "SHOT?"
without hitting the Klingon. He shown as the 'last position' on 270 INPUT N
must be taken alive. the display. 280 INPUT M
The display tells you where If the square it wishes to 290 IF M = 8 AND N = C THEN GOTO 4 4 0
the Klingon was one move ago. move to has already been 300 LET A ( M * 1 0 + N)= 1
This may or may not be his pre- blasted away, it will remain in 310 FOR I= - 1 TO 1
sent position, as he could have the same square. 320 FOR J = - 1 TO 1
moved. When shooting, enter the 330 IF B + KO OR B + l>9 OR C + J < 0 OR C + J<9 I = 0 AND
The Klingon decides to move horizontal co-ordinate, followed J = 0 THEN GOTO 360
in one of nine ways. He may by the vertical one. 340 IF A((B + I) * 10 + C + J) = 1 THEN GOTO 360
350 GOTO 4 0 0
Klingon Capture Listing 360 NEXT J
370 NEXT I
10 DIM A(99) 380 PRINT "YOU WIN"
20 LET B = R N D ( 1 0 ) - 1 390 STOP
30 LET C = RND{ 10) - 1 400 CLS
10 LET Z = - 1
20 LET W = 0 Coif Listing
30 LET V = 2
40 LET X = 0 20 PRINT, "GOLF"
50 LET Y = 0 30 PRINT, " * * * * "
60 DIM S(1) 40 FOR 1 = 1 TO 5
70 0IMCI7) 50 PRINT
80 DIM R(1 51 60 NEXT I
90 LET Z = Z + 1 70 LET K = 0
100 IF Z>1 THEN LET Z = 0 80 LET K = K + I
110 LET B = 0 90 PRINT "YOU ARE ON HOLE";K
120 GOSUB 650 100 LET Z = RNDI5)
130 IF X - 15 THEN LET Y = 1 110 PRINT "THE BALL IS";
140 IF Y = 1 THEN GOTO 390 1 20 IF Z = 1 THEN PRINT "IN THE HOLE"
150 PRINT "REDS" 130 IF Z= 2 THEN PRINT "ON THE GREEN"
160 FOR 1= 1 TO 15 140 IF Z = 3 THEN PRINT "IN THE ROUGH"
170 PRINT I ; " - " ; 1 50 IF Z = 4 THEN PRINT "BEHIND A TREE"
180 IF R(t) = - 1 THEN GOTO 220 1 60 IF Z - 5 THEN PRINT "ON TOP OF A TREE"
190 LET R(l) = RND(10) 170 IF Z = 1 THEN LET S= 1
200 PRINT R|t| 180 IF Z = 2 THEN LET S = 2
210 GOTO 230 190 IF Z = 3 THEN L E T S - 3
220 PRINT " P " 200 IF Z = 4 THEN LET S = 4
230 NEXT I 210 IF Z = 5 THEN LET S = 5
240 PRINT "POTT?" 220 INPUT A$
250 INPUT P 230 IF A$ = " S " THEN STOP
260 IF NOT RIP) = - 1 THEN GOTO 320 240 CLS
270 PRINT "FOUL" 250 IF K = 9 THEN GOTO 270
280 LET SKZ = 1) + 1) = S((Z - 1 1 + 1 1 + 4 260 GOTO 80
290 INPUT A$ 270 PRINT "YOU HAVE FINISHED"
300 CLS 280 LET D = Sx9
310 GOTO 9 0 290 PRINT "YOU HAVE";D
320 IF RND(R(P))>2 3*<B = 0) THEN GOTO 350 300 IF D<10 THEN PRINT "SEE YOU AT GLENEAGLES"
330 PRINT "MISS" 310 IF D>20 THEN PRINT "SELL YOUR CLUBS"
340 GOTO 290 320 IF D>9 AND D<2 1 THEN PRINT "KEEP ON TRYING"
350 LET S(Z) = S(Z> + 1 330 PRINT "AGAIN?"
360 LET B = 8 + 1 340 INPUT A$
370 LET X = X + 1 350 IF A$ = "YES" THEN GOTO 10
380 LET R(P) = - 1 360 STOP
colours for foreground, background and later this year there will be Microdrives for lower-case characters.
border, together with a sound generator massive amounts of extra on-line storage,
and high-resolution graphics. plus an RS232 /network interface board. • Teletext-compatible - user software
You have the facility to support can generate 40 characters per line
separate data files. or other settings.
You have a choice of storage capa-
• High speed LOAD & SAVE-16K in 100
cities (governed by the amount of RAM).
seconds via cassette, with VERIFY &
16Kof RAM (which you can uprate later
MERGE for programs and separate
to 48K of RAM) or a massive 48K of RAM.
data files.
Yet the price of the Spectrum 16K
is an amazing £125! Even the popular • Sinclair 16K extended BASIC -
48K version costs only £175! incorporating unique 'one-touch'
You may decide to begin with the keyword entry, syntax check, and
16K version. If so, you can still return it later report codes.
for an upgrade. The cost? Around £60.
The ZX Printer- The ZX Microdrive-
available now coming soon
Designed exclusively for use with the The new Microdrives, designed
Sinclair ZX range of computers, the especially for the ZX Spectrum, are set to
printer offers ZX Spectrum owners the full change the face of personal computing.
ASCII character set -including lower-case Each Microdrive is capable of holding
characters and high-resolution graphics. up to 100K bytes using a single inter-
A special feature is COPY which changeable microfloppy.
prints out exactly what is on the whole TV The transfer rate is 16K bytes per
screen without the need for further second, with average access time of 3.5
instructions Printing speed is 50 charac- seconds. And you'll be able to connect up
ters per second, with 32 characters to 8 ZX Microdrives to your ZX Spectrum.
per line and 9 lines per vertical inch. All the BASIC commands required for
The ZX Printer connects to the rear of the Microdrives are included on the
your ZX Spectrum. A roll of paper (65ft Spectrum.
long and 4in wide) is supplied, along with A remarkable breakthrough at a
full instructions. Further supplies of paper remarkable price. The Microdrives are
are available in packs of five rolls. available later this year, for around £50.
Sinclair- I
I
I
I
I
I
I
I
I
I
I
I
I
I
I I
I I
I
I
I
I
I I
I I
I
I
I I
I I
I
I
I
I
I
I
I t
I i
I
I
I
I
I I I I
I Z XC812 I
inclair Research Ltd, Stanhope Road,
^amberiey, Surrey GU15 3PS. FREEPOST-no stamp needed. Prices apply to UK only. Export prices on application, j
M: Camberley (0276) 685311.
SOFTWARE
little bug
Entering machine code using
tedious and slow BASIC loaders
is tiresome, and you're likely to
start looking for something to
lend a hand. Here are the latest
machine code monitors for the
Spectrum.
Disassemble
Function
One thing which every editor when you're tired of
BASIC, you may turn to
needs is a disassemble option.
With this the user can check that
all the code he entered was ac-
Holmes looks at a
his original listing. All three of
the editors reviewed had this
facility, some performed it in a
5
to? ^
S >
© ( Q ) E M & 1 L I L
.^taW®^ ffl&WM<BWM
COLOUR
GRAPHICS
S s ^ S S S fp
Your, ,dd«rtad. M f HAMPTON,
CAN VIY ISLAND
To Order tend Cheque P.O. £7 95 made I faft that I had to wrrta and congratulata
piyibli to:— you on your program f to I found tha
ADDICTIVE G A M E S gama vary compelling and amciting, raal-
•«: Dept Z.X.C. P.O Bon 278 ly lutt Arte Ota raal thing — kaap up tha
CON Nl BUR ROW. good work and ttandard —
it*^MM 0
MILTON KEYNES M K 1 4 7NE N LAWRENCE. FULHAM
MASL STATE COMPUTER . OHIO!HALS CAN »t UMN ON REQUEST
has colour,
of the action. On-screen scoring "Space Intruders" is €5.95
and highest score, plus a high- from Quicksilva, 92 Northam
score table, full use of colour, Road, Southampton S02 OPB.
glitters
In their haste to get
Spectrum software on
the market, it appears
that some companies
have simply decided to
recycle their ZX81 stuff,
adding a few little
squeaks from the sound,
and an INK or PAPER or "Meteor Storm" — which can be used repeatedly).
" 9 " is thrust and " 0 " is fire,
Quicksilva
three. Phil Carratt takes The second of Quicksilva's ar-
which has no auto-repeat, so
fortunately this game also has
a close look at some of cade games for the 16K Spec-
trum is "Meteor Storm", their
the "hold" and "start" feature
on "Intruders", allowing you to
the material available, version of Asteroids. If you're
one of those who belittle the
rest your finger.
BflLRNCE ~ -7987M
i.Taxes
HERE IS R REROSOL PRINT
TsTRKE. L=LERVE.
a . I n come Tax 30M
b.corpn. Tax 58a
C . URT 15 X
'UENTURE* - ZX-GURRRNTEED
d.Tobacco Tax £ 0 . 6
e.fllCOhOl Tax £4-
f.Petrol Tax £ 0 . 6
_9-NO_MORE CHRNGES "CASSETTE 1" — to be found at the start. As you
progress through the jungle,
ENTER PREFIX of t a x t o " c h a n g e
Silicon Software unpleasant things happen at
"Elephants Graveyard" is an random — attacks by lions and
adventure-type game in which if snakes, quicksand, storms, los-
you can survive five weeks in ing the trail and such like.
*»*****RT.Hon.Fred Bloggs******* the jungle you will find yourself The game looks like another
at the legendary graveyard. You ZX81 conversion — it has no
start with 1 0 0 , 0 0 0 Kes (the user defined graphics and very
local currency) with which you little sound or colour. There are
can purchase the assistance of some minor bugs which suggest
natives, as well as supplies of it h a s n ' t been t h o r o u g h l y
food, guns and tents. Running tested.
BUDO i i .Bene fits out of supplies or money to pay Also on the c a s s e t t e is
the natives leads to an early "Sates", a marketing simulation
demise, so a careful balance has game for any number of players,
\
ZX COMPUTING DEC 1982/JAN 1983 78
1
REVIEWS
in which you are in charge of an used. This program would run as m e n t . This relentless and have been destroyed with Pro
»ce cream stall. You start with a happily on an old-fashioned repetitive game left me rather ton (sic!) torpedoes, so you can
working capital of £2 and have teletype as on a full colour bells frustrated. end up with minus 1 Klingonson
to decide how much to spend on and whistles home computer. in "Reverse", nine random the long-range scan. Perhaps
advertising and ice cream stock Both programs will run on a 1 6K digits have to be juggled into they are anti-matter Klingons! A
based on the day's wheather or 48K Spectrum. order. It appears to have been in- very limited version of the game
forecast. I usually ran into a cluded to make up the numbers, All four programs make little
severe liquidity crisis — all my "Cassette 1 " is £2.95 from and certainly isn't of commercial or no use of the extra graphics
unsold ice cream melted! Silicon Software, 24 Short quality. and sound facilities on the Spec-
Apart from the opening titles, Lane, S t a n w e l l , Middlesex "Startrek" is a version of the trum, and show signs of being
no colour, graphics or sound are TW19 7BQ classic galactic war game. The hastily put together. Serious
short range scan gives a graphic Software? — they must be jok-
Day: £ s t a l l : 1 display, but for some reason ing.
user defined graphics have not "Spectrum Games" is £6.95
Assets: £1.02 been used for the Enterprise, Kl f r o m Serious S o f t w a r e , 7
ingonsorstarbases. Phasersstill W o o d s i d e Road, Bickley,
advertising Signs cost lop each shoot at Klingons after they Bromley, Kent BR1 2ES.
Ice pops cost 4-p each. 'StartreK' - Serious Software
Press m m for a weather report. vocation
The weather forecast: - .€ f t : stairs UP
forward wall
-1 g h t corridor
enter command
to think you will be pounced on a giant rat has appeared?
vampires and by a gargoyle or vampire. The it is 3 r'eet away r'rom you
Gargoyles delay loops for the command en- :
iiaK.e a m o v e before it finds you
try have been poorly programm-
"Quest" is a non-graphics ed, so the timing of key presses
adventure game with random is critical. I found nearly all of my
locations and monsters. It is commands being ignored until I
played in real-time, so if you stop inserted an extra pause state- S>u e s t - s e r i o u s So f t wa r e
AT LAST! The answer to one of the maior problems facing personal com
putef programmers and users - POOR MAINS SUPPLIES CAUSING
HAVOC. WHILE YOU SPEND HOURS TRYING TO ENTER YOUR
CAREFULLY PREPARED PROGRAMMES.
Now Adaptors and Eliminators who have produced nearly 70% o( all ZX
Mams Adaplors. bung you BATTPACK — a rechargabie 9v Ni-Cad battery
pack and Uansien! suppressor housed in a complementary black ABScase
that simply plugs into your ZX adaptor in seconds A D A P T O R S A N D E L I M I N A T O R S LTD 14 T H A M E S ST L O U T H L I N C S
BATTPACK ensures the voltage into your ZX computer never drops below PLEASE SUPPLY. . (QTY) D a t t p a c K / «
9v. thereby eliminating the possibility of a programme crash because ot a AT£13-95each PLUS£V40p/p
spirt second mams dropout" (One cycle is alt it needs1)
I ENCLOSE CHEQUE POSTAL ORDER FOR £.
BATTPACK also suppresses transients and RFI u$mg carefully selected
capacitors Your ZX Adaptor keeps the BATTPACK al full cnarge even
when rn use — so its always ready for emergencies Even in the event of a full
power cu: BATTPACK will run you' ZX computer lor al least 30 minutes PLEASE CHARGE MY ACCESS/BARCLAYCARD/TRUSTCARD
giving you time to save your programme on a cassette or print a hard copy on
your ZX printer
ACCOUNT No M I I II i I I I I I I I I M
BATTPACK comes complete with all connecting leads and is ready for use SIGNATURE
Rival systems Crow black and white, has ZX81- that Jupiter Cantab, as the
like graphics on its keys Vickers/Altwasser company is
(which tend to follow the called, seems set to repeat
standard Sinclair layout, in anothor Sinclair characteristic
terms of the position of things — long delivery times, but this
like the question mark, colon may only be teething troubles.
and greater than signs}, and is
certain to generate a lot of
interest, especially in the
education market. It appears
• 55 •«
•55
• 55
® 5 5• •
® B» °
Oye, oric
The Japanese Tangerine have just launched
invasion un^r^TitCEVERi their new £99 computer, Oric
1, which will pose a much
A host of micros for under
^SKSBSb
greater threat to the Spectrum
€ 2 0 0 will be launched at the than does the Ace, because
British market in the next Oric's specifications compare
three months, from very favourably with the
manufacturers like Casio and Spectrum.
Sharp, and each of these
M is avaitohio i A new company, called
could significantly erode amazing newfa, * * V O U t o
Oric Products (funded by
Sinclair's impressive lead.
pm/i
British Car Auctions!), has
Sinclair, however, is not been set up to push Oric 1
sitting idle.
through mail order, and
Under the energetic hand of through the retail trade. The
Bob Denton, the company company claims, naturally
Prism Microproducts, has been enough I guess, that their
pushing the £ 4 9 . 9 5 black and computer is better than the
white ZX81 into every outlet Spectrum but think that once
it can find. Dealer ads like the Oric is seen as getting a
one illustrated are pushing the market lead, Sinclair will
Sinclair gospel hard. respond by cutting the price of
After a long period with Spectrum. The 16K Oric is
exclusive retail distribution, £99 and this will be available
Smiths now share the shop by mail only. A 48K version
floor on ZX81 's with a Bi&StiE*5F for £169 will be available
growing band of outlets. The from retail outlets. A Prestel
major ones to have the modem is planned which
machine include branches of should sell for around £60.
John Menzies and northern
chain Wigfalls. Oric 1 has a Centronics
interface for standard printers,
KH^H^^HI standard Microsoft BASIC, a
I
valid until the end of 1 984. practical 'hands-on'
One voucher may be experience".
returned w i t h e a c h further The new offer is part of a
order for a 48K Spectrum. comprehensive Sinclair
Schools may opt to use the package, covering equipment,
voucher either to obtain a £45 software, personnel and
discount from the Spectrum's technical support, which will
normal price {£1 7 5), or to pay further the development of
the full price and receive with microcomputing in primary
their order a free ZX Printer, schools.
J3
ZX COMPUTING OEC 1982/JAN 1983 83
NEWS
• Brunei Computer Club: • The Gwent Amateur • Royston H. Wallis, 22
user s clubs meets alternate Wednesdays, Computer Club: lan Ha/t:ll Mallard Crescent, Pagham,
The number of user clubs for 19.00-22.00 hrs at St (Secretary), 50 Rmgwood Hill, Bognor Regis, West Sussex.
ZX enthusiasts continue to Werburgh's Community Newport, Gwent NPT 9EB. P021 4UU. Tel: Pagham
grow. The National ZX User's Centre. Contact: Mr R. • ZX81 Datorklubb, c o 66795.
Club (44 46 Earls Court Road, Sampson, 4 The Coots, Kenneth Nilsson, Harrogate
London, W8 6EJI acts as an Stockwood. Drottninggarden 244, S-261 The Harrogate ZX Users
umbrella club, maintaining a 46 Landskrona, Sweden. Club meet at the P.H.A.B.
• Worle Computer Club:
comprehensive list of every • L. Henson, 2 Lark Down, Club in Harrogate. Details of
meets alternate Mondays,
local club it can locate. The Trowbridge, Wilts. BA147JX. the club can be got from the
19.00 22.30 at Woodsprings
club is giving away a book of (Tel: Trow 67477). Harrogate branch of W.H.
Inn Function Rooms. Contact:
20 programs (10 for the • The Aylesbury ZX Computer Smiths. You could also
S. Rabone, 18 Castle Road,
ZX81 and 10 for the Club: contact Ken Knight on contact Mr S. Atkinson at Flat
Worle, Weston-Super Mare,
Spectruml to each new Aylesbury (0296) 5181 or 3. 3 Heywood Road,
Avon. Tel:0934 513068.
member. One pound will get write to him at 22 Mount Harrogate.
you a sample copy of the club • P. Compton, 29 North Street, Aylesbury, Bucks.
magazine, plus details of the Marine Road, Scarborough. HP20 2SE. Belgium
services it offers members. North Yorks. Y012 7EY. • Harlow Micro User's Club: P. Glenisson wants to make
Local clubs include the • Alan Gunnell. 66 Nursery meetings are at Kmgsmoor his club known to as many
following: Road, Hookend, Nr House, Parringdon Road, Belgium ZX users as possible.
The North London Hobby Brentwood. Essex Harlow, from 7pm to 9.30pm The address to contact is
Computer Club has ZX80/81 every Monday night. Priester de L'Epeestraat 14,
users group meeting each • Jonathan Meyer, Vanspaen
• The 81 Club: Mike Hayes, 1200 Brussels, Belgium. Oh
Monday night from 6 9pm. It Straat 22, 6 5 2 4 H.N.
54 Oakley Place, Grangetown, yes, the name of the club is
Nymegen, Holland
is held at the North London Cardiff. Tel: Cardiff 371732. the Belgian Dutch
Polytechnic, Holloway Road, • Raymond Betx, Chemin du • New Brighton Computer Microcomputer Association.
London N7 (diagonally Moulin 38, 1 328 Ohain, Club, Merseyside: 051-639
opposite Holloway Road tube Belguim. 6712. Orpington
station). Tel:01-607 2789. • ZX Microcomputer Users • Keighley Computer Club: The Orpington Computer
Group: Paul King, 25 Fir Tree Colin Price, Red Holt, Ingron, Club meets every week on
Other local groups: Way, Hassocks, West Sussex Keighley. Tel:0535 6 0 3 1 3 3 . Fridays and claims to be open
• Roger Pyatt, 23 Arundel Tel: Hassocks 4 5 3 0 • Mid-Cheshire Computer 365 (count 'em) days of the
Drive, Orpington, Kent (66) • The Inverclyde ZX User's Club: Dave and Liz Clare, 222 year. Associate membership of
20281 Club meets fortnightly on Townfields Road, Winsford, the club is available at €8.00
• Austin Knott, 269 Mondays at Greenock in the Cheshire. per annum.
Telegraph Road, Deal CT14 halls of the Greenock Society • South Trafford Computer For further details get in
9EJ. for the Deaf, Kelly Street. Club: Contact Dave Edwards touch with Mr J.P. Gibbon,
• Christopher Moeller, Gross Robert Watt (Tel: 30067 on Manchester (061) 969 14, Avalon Road, Orpington,
Kurfurstenstasse 41a, 4 8 0 0 evenings) has full information. 3317. Kent BR6 9AX.
Bielefeld 1, Germany.
• Danmarks Nationale ZX80
og ZX81 Club, Skovmosvej 6,
4 2 0 0 Slagelse Dk. Denmark. FOOtY POOIS aways, and so on. All you Forecast and the H5 Horse
Some computer games can have to do, the suppliers tell Racing Forecast Programs are
• Steve Brumby, 38 Eastfield us, is to fill in the coupon and available, fully documented,
Road, Messingham, go cold after a while, so here
are two interesting non-games decide what to do with all that from: Holly Products,
Scunthorpe, South money! Blackthorn House, Dukes
Humberside. for the ZX81. The Z4 Football
Pools Forecast and the H5 The H5 Horse Racing Lane, Gerrards Cross, Bucks.
• David Blagden, PO Box Horse Racing Forecast are two Forecast Program works in a
1 59, Kingston upon Thames,
Surrey KT2 5YQ.
new programs for the ZX81 similar way. Once you have Expandable RAM
1 6K machine that promise to put in the merits, form,
• Anthony Quinn, offer not only endless performance of any number of A new RAM pack, called
Heckenrosenweg 6, 3170 entertainment but also a horses in any particular race, the ZX-Panda, comes with
Gifhom, W. Germany. chance to perhaps win the the options for you to back 16K on board. It can easily be
• Conrad Roe. 25 Cherry pools or bring in a big win on are displayed. Another tip upgraded to become a 32K
Tree Avenue. Walsall WS5 the horses. from Holly Products, the RAM, by the addition of an
4LH. These large and well- supplier — "Don't tell your expansion module which fits
documented packages are bookmaker, he might not pay inside the ZX-Panda case.
• lan Watt, 107 Greenwood out with all that memory
Road, Clarkeston, Glasgow. data or form processing and There are no 'mating
analysis systems that are giving you an unfair problems', because the case is
• J.Palmer, 56 Meadowfield simple and easy to use. You advantage'. contoured to the ZX81 for
Drive, Edinburgh. (031 661 simply enter the performance The man behind these stability. No wobble problem
3181). of the football teams, for complex statistical analysis here. The 1 6K unit is £25.00,
• Leeds Microcomputer Users example, and your ZX81 will programs is Professor George, with 1 6K expansion module at
Group. Meets fortnightly on analyse all your input, an expert and lecturer on £1 9.95, and the two
Thursday evening in Leeds. including an interpretation Statistics and how to make together, giving 32K, is
New members welcome. based on your own hunches or them work to provide useful £39.95.
Contact: Paul O'Higgins, 20 inside information, such as and interesting results like Details from Stonechip
Brudenell Mt., Leeds 6. 'star player has broken leg', 'What might win the 2.30 on Electronics, Unit 4, Hoskins
Tel:(0532) 742347 after and it will output its's analysis Saturday'. That's useful! Place, Watchetts Road,
6pm. of wins, draws, homes. The Z4 Football Pools Camberley, Surrey.
J3
ZX COMPUTING OEC 1982/JAN 1983 84
Britain's Biggest Magazine
For The Sinclair user
ZX Computing Subscriptions
513 London Road,
Thornton Heath, S
°Cr,
Surrey CR4 6AR
Alternatively you can pay by Access or Barclaycard
in which case simply fill in your card number, sign the
form and send it off. Do N O T send your card!
Train entries
steam in
, I
90 ZX COMPUTING DEC 1982/JAN 1983
ZX81 GAMES
ZX COMPUTING 91
ZX81 GAMES
number only if RND is less than tion to immediately ahead of the
. 2. This makes it roughly a one in position of the spaceship.
Anagrams Listing
five chance of the character be- Therefore we may find what is 1 FOR 1 = 1 T O 30
ing an inverse, non-scoring immediately in front of the 2 INPUT D$(I)
character. The statement after spaceship by means of the line 3 NEXT I
this erases the old position of the 100, which finds the CODE of 10 RRND
20 PRINT RNRGRRMS"
V before it is scrolled up the the character stored at that ( R ND*30)+1
screen by line 70. This ensures memory location by PEEKing the 30 LET R = INT
the V is not PRINTed anywhere address held in the system 4.0 LET
50 FOR 1 = 1 TO 10
other than the middle of the variables 1 6 3 9 8 and 1 6 3 9 9 . 60 IF D f < R , I ) > " THEN LET
screen. Line 8 0 checks the Line 110 checks to see if this U$+D $(R,I)
keyboard to see whether you're c h a r a c t e r a h e a d of t h e 70 NEXT I
steering to the left, right, or spaceship by means of the line 60 LET L=LEN U$
keeping it s t a t i o n a r y , and (ie. ithasoCODEof Iessthan64 90 LET S*=" " < T O L>
changes the value of X accor- rather than less than 1 2 8 as you 100 FOR 1 = 1 T O L
dingly. might expect from an inverse 110 LET R = INT (RND*L) +1
character detector. This would 120 IF S4(R)>" " THEN G O T O 110
Printing and permit CHR$ 118 NEWLINE 130
140
LET
NEXT I „ „
rushing markers that SCROLL might
push up the screen. You may like 150 PRINT "YOUR RNRGRRM I S "i3$
The V is PRINTed in its new posi- to add this line which will stop 150 FOR J = 1 TO 9
tion in line 90. You can see how the program if you hit a radia- 170 PRINT J;" ";
the effect given is that the tion-mutated piece of debris:- 180 INPUT G %
spaceship (V) remains sta- 190 PRINT G$
tionary while space seems to 200 I F G $ = U $ T H E N GOTO 280
205 PRINT " ";
rush past. The second part of 115 IF P»127 THEN STOP 210 FOR 1 = 1 TO L E N G$
line 9 0 moves the PRINT posi- 215 IF I > L T H E N GOTO 24-5
220 IF G$(I)=UI$(I) THEN P R I N T "
STORM FIGHTERS
.. . explosive machine code space action
ZX Spectrum / Z X 8 1 i fitiy t-LHiitj from deepest space An alien fleet whose skilt is matched only
by ils ruihlessness They swoop and manoeuvre within asteroid clouds
showers ot cosrrtc rubble that speii death on collision to the commander ol
FOR ONE JOYSTICK AND the tone star-ship ihat protects Earth
INTERFACE MODULE You are Ihat commander and only your responsive tw-n-tinng Laser can
save you So ride Ihe asteroid storm blast ihe aliens and put yourself on the
thrilling edge ol adventure the STORM FIGHTERS awa i
BUILT, TESTED & R E A D Y FOR USE All machine code action ... lull colour graphics ... lull sound sync
progressive difficulty. comprehensive scoring .. high value mother-
ship . runs automatically on 16K and 48K models.
* N O S O L D E R I N G , p l u g s i n t o rear e x p a n s i o n p o r t
Available on quality cassette at £4.95 (post free In U.K.).
b e t w e e n Z X a n d R a m Pack, Printer or Microdrives.
ZX81 ASTRO-INVADERS
* T W O J O Y S T I C K S c o n n e c t via o n e i n t e r f a c e m o d u l e .
ORDER FORM or
D e b i t m y Access' B a r c l a y c a r d '
("delete as necessaryl
C u t out a n d S E N D T O :
COMPUTING TODAY Subscriptions P l e a s e use B L O C K C A P I T A L S a n d i n c l u d e p o s t c o d e s .
P l e a s e c o m m e n c e m y s u b s c r i p t i o n to C o m p u t i n g
Today with the issue.
POSTCODE
SUBSCRIPTION £12.10 for 12 i s s u e s
UK
RATES £ 1 5 . 7 5 for 12 i s s u e s
Signature
(tick as Overseas Surface Date
appropriate) £35.35 for 12 i s s u e s
Overseas Air M a i l
L . .J
\ ZX COMPUTING DEC 1982/JAN 1983 93
W E CAN PUT YOUR P R O G R A M
bl t1EFIE ^
i »•• « •
/ f . ft . I t . ' Pl.t %t~M « l u • • \
/
St's
Y// ;
"
IF Y O U W R I T E S O F T W A R E T H E N R E A D O N
I S months ago we had w r i t t e n some excellent Games Software for the Z X - 8 1 . but when debugging was finally
completed we realised t h a t much of the work remained.
Who could we rely on for the effective marketing and production of our efforts?
Who would give our software the chance it deserved?
Mo company was really giving ZX Software the professional backup and production it deserved so we created
Ouickeilva t o fulfill this role.
Now Ouicksilva has developed e set of specific policies to match our beliefs about how a company of this kind should
operate.
CUSTOMERS
The highest priority must be given to customer service — "OS customer relations are the best in this field."
SOFTWARE
A high standard must be maintained for all software — "OS reputation for innovative software is firmly
established."
PRESENTATION
Should support and enhance the software — "OS policy is to use full colour reproductions of specially
commissioned artworks to match the standards of the programs.
ADVERTISING
Needs to be accurate, informative, enioyable. eye-catching and effective — See recent magazines.
PRODUCTION
Rafiable and efficient duplication of cassettes is essential — "OS cassettes are produced by The Tape
Duplicating Company Ltd., who have the expertise and equipment to do just t h a t . "
DISTRIBUTION
All avenues appropriate to the Software involved must be explored — "OS has over 2 0 0 retail outlets in this
country alone and a substantial number in all the metor overseas markets."
We now know t h a t Ouicksitva will give both of us the professional back-up and expertise our programs deserve. I t has
taken time and effort, and is very much a continually improving service; always we aim for t h a t indefinable 'quality*
that makes all the difference. We feel that now is the time to offer 'You' the same service t h a t Quicksilva gives us.
So If you ere a Software Author confronted with the same problems we had I S months ago, lot Ouicksilva solve
them for you and help you as it helped us.
Yours, Nick Lambert & John Hollis
Quicksilva is interested in quality software for the following personal computers — Spectrum — Atari — VIC 2 0 —
B.B.C. — Atom — Z X 8 1 — Electron — Dragon Ouicksilva offers you on acceptance of your program:
royalties on all sales; the very best professional quality support for your programs;
full credits in advertising, brochures end on cassette for you as the author;
the opportunities end adventagea t h a t working with the leeders in the field offers.
Please contact us immediately to discuss this opportunity a t
Reptile pressed after getting into the barding the shield with Splodgie characters in lines 70, 80, 1 50,
graphics mode). Landers. 160, 200, 2 3 0 and 250.
In this program, you must try to
grow your snake as long as You must stop the Splodgies
possible, by directing it to the
Splodgiesfrom landing and hitting the shield by Skilful d r i v i n g
pound signs which it eats. space getting your ship underneath The m i n e f i e l d i s f u l l o f
However, the C's remain on the In this second program from them. If part of the shield is hit, casualties, and you have to push
screen for only a short time, Paul, your job is to protect the then it will weaken. a wheelchair (!) around the
after which they turn into earth from marauding splodgies, If a weak spot is hit, then the minefield, avoiding the mines
poisonous dollar signs (sorry which come from the planet Ep shield will collapse, and leave and the electrified fence, collect
'bout that, Mr Reagan). The silon I V . The Terran Shield, the earth open to attack. You each casualty and bring him or
snake will also die if it hits the which protects we poor earthl- can restore a weak spot by mov- her to hospital (the flashing + ),
surrounding border, or itself. ings from such horrors as the ing your ship over to the spot Note that the wheel chair can
Once the game is over, you'll be splodgies, has developed a and pressing *F\ The shield will only carry one person at a time.
told how long you became. Note weak spot, and the Epsilonian collapse if more than nine weak What a wonderful scenario for a
that the A's in line 1 82 and 285 Mother Ship is hovering just spots are present at any one game. User-defined graphics are
are graphics A's (that is, A above the weak point. It is bom- t i m e . There are g r a p h i c s in lines 100, 160 and 500.
USERS'
Arithmetic
Verbal Reasoning
Reading and Spelling
(with special consideration for remedial problems)
Each program has been especially designed by highly qualified,
CLUB
experienced educationalists and written by professional pro-
grammers. Trials have demonstrated Ihat these programs really
stimulate children's enthusiasm and do help them to realise their
academic potential They will be of great value to parents and
teachers for normal, advanced and remedial training and also for
those preparing children for Common Entrance/Independent
School Entry examinations
For further details please write to PFL at the address below, stating
whether you are a parent or teacher, the type of computer available
and in which subjects you are interested. Make the most of your Spectrum or ZX81 by
joining the country's strongest and most
P R O G R A M S FOR L E A R N I N G , enthusiastic users' c l u b - t h e National ZX Users'
Dept. ZX, Club.
4 Stanley Road,
East Sheen,
London SW14 7DZ. W h e n y o u join us, we'll send y o u our ' n e w m e m b e r s w e l c o m e
pack' w i t h 20 programs (10 for the Z X 8 1 , 1 0 for the Spectrum),
Tel: 01-878 6498
plus the first issue of our value-packed club magazine
INTERFACE.
Number crunching
on the
IZX81I
A good deal has been written must be replaced by 16400 the Spectrum but 132 32 0 0 not allowed; but it will be no
about the problems of doing and 2 3 6 2 8 by 16401; there 0 on the ZX81. That is use to you if you need an exact
arithmetic on the ZX81. There must of course be only one because the Spectrum has a integer result. Rounding it
is the general point that statement per line and the special way of holding integers might work, but should be
computers do not hold all INPUT q u o t e s m u s t be which are smaller than 6 5 5 3 6 , checked first.
decimal numbers exactly, and replaced by PRINT quotes and leading to greater speed of Finally, try a few expres-
the further limitation of the then INPUT X$. Note that the operation and so restoring sions like 2n. I give you two
ZX81 ROM to 8 kilobytes, not assignment of a value to v has some of the advantages of the inexact ones here. 213 gives
all devoted to arithmetic. been left inside the i loop so ZX80. These small integers 1 4 2 0 0 0 6. That last 6 is the
There are also some that the program will work on will not give us any trouble error. On a ZX81 you can
programming weaknesses, the IK ZX81. anyway, so we will move on to check direct that 8192 gives
and even the occasional larger ones. 142 0 0 0 0. This is easy
outright blunder. Entering 1e5 gives 145 67 enough to check from the
It occurred to me that it 8 0 0 0 and 1e1 3 gives 172 manual a n y w a y . On the
might be useful to have a
Results 17 132 231 42. Those bytes Spectrum, 8 1 9 2 is of course a
BASIC program to show may not mean a lot to you short integer. So here is a
exactly what decimal number Run the general version in line now, but one object of longer one that can be checked
the ZX81 or Spectrum is 20 and it will give you quite a program 3 will be to show that on the Spectrum too. Enter
holding, even when it is not the lot of interesting results. For they are exactly correct. Let 226 and you will get 155 0 0
number you thought it was example, the expression Vi me state it plainly: all the 0 11. The 1 1 is the error term.
holding! This is possible gives 1 28 0 0 0 0. It is easy to powers of 10 from 1 e l to To find 2 to the 26th, you can
because a 5 byte floating point see from the manual that this 1e13 are held exactly on the exit from program 1 (press EDIT
number can be expressed is correct. But .5 gives 127 ZX81 and Spectrum. The first and then STOP) and enter the
exactly in decimal, even 127 255 255 255, one bit imprecision arises with 1e14, command PRINT 226 (or
though it may take a lot of short. This will need inves- as well shall see below. This is PRINT 8 1 9 2 * 8 1 9 2 ) . This
digits to do this. The result of tigation. Continuing for the very useful for multiple gives 67108864. Run
my efforts is Program 3. present with program 1, .1 or precision BASIC, and it is a lot program 1 again and enter
Because it is long and 1/10 gives 125 76 204 204 more t h a n t h e manual 6 7 1 0 8 8 6 4 digit by digit. Sure
complex, it seems best to 204. Those 204's seem to cry promised. Let us not miss the enough, it gives 155 0 0 0 0 ,
introduce the subject by out for rounding up, don't virtues of these machines in confirming that the 11 in the
means of two shorter pro- they? Sure enough, there is a our eagerness to catch Uncle last byte was wrong.
grams which already clarify a blunder here in the ROM, still Clive napping! But beware of The integral powers of 2 are
lot of the arithmetic. present in the Spectrum. expressions like 10n <10* *n so important that you may like
Program 1 has two versions. Another example of this on the ZX811. Even 101 is not to investigate them fully. The
Line 20 is the general version gremlin is the expression 1/3. precise. Try it and see. (t gives second version of program 1,
and line 30 is a special This gives 127 42 170 170 1 32 32 0 0 1 which you will in line 30, enables you to do
application. Line 20 shows 1 70 and you get no prize for see is one bit over what 10 that. The program can be
you exactly how any given guessing that the last 170 gave on the Z X 8 1 . For derived from line 20 by editing
number of expression is being should have been rounded up precision, 1e7, say, is always the first part of it. When run, it
held on the ZX81 or Spectrum, to 171. How about trying preferable to 10 7, You may shows clearly the 19 cases
as a 5 byte floating point some integers, I hear you ask. need to use 10n in a program between 0 and 126 in which
number. For the ZX81, 2 3 6 2 7 Well, 10 gives 0 0 1 0 0 0 on because the expression 1en is the expression 2n does not
\
ZX COMPUTING DEC 1982/JAN 1983 99
NUMBER CRUNCHING
give an exact result. Similar the first 4 powers of 2 5 6 , in that fits into the machine, decimal. You may also like to
inaccuracies occur at the multiple precision form. The 1e38, though the result may use this method of input to
corresponding negative division is done by not tell vou a lot. enter some of the numbers of
powers, as you can easily multiplication, and the result is The third type of result is the special interest revealed by
check. If you are interested in exact. This can give up to 39 longest, with up to 1 59 figures programs 1 and 2 above.
doing exact numerical work, it digits before the decimal and after the decimal, with 3 final
can be useful to know what
these 1 9 cases are, and how
up to 159 digits after it. No zeros always shown. These Machine Code
attempt is made to truncate numbers take from about 25
you can get them exactly and here. You can round off as you to 52 seconds; producing Program 4 is a machine code
easily. For example, Euler's wish; as the program stands, it those digits takes time! .5 version of Program 3. The
famous prime number, tells you the whole story. belongs to this group; it starts arithmetic has been done in
2 3 1 - 1 , can be got exactly by with .499 . . . , is wrong from binary coded decimal, and
either 2 " 2 3 0 - 1 or 2 3 2 / 2 - 1 .
Decimal Numbers about the tenth place, and has
33 figures after the decimal
most of the printing has been
done in machine code too.
Decimal Fractions Three types of result are (only one division by 2 was
needed for the exponent). At
Hence the longest number
now appears in less than a
possible: a decimal greater
the other extreme, 1e-38 second. This should greatly
Before moving on to program 3 than Yi and less than 1, a
takes 52 seconds, shows a extend the usefulness of the
it will be useful to look at a larger number and a smaller
similar scale of inaccuracy, program. There is string input
small program which enables fraction. Enter a number or an
and gives 1 57 figures after the too, (line 3 0 l so the program
those decimal fractions like .5 expression between Vi and 1,
decimal (not 1 59 because the can deal with any expression,
and .1 to be c o r r e c t l y and the program returns in
last byte is divisible by 4). function or variable, not just a
produced on the ZX81 and about 7 seconds the exact
number. There is provision for
S p e c t r u m . Program 2 is decimal equivalent of the 5
restricted to numbers which bytes which the machine holds Finally negative numbers, and for
short integers as held on the
start with a decimal point and for that number. For example,
Program 3 also provides for Spectrum. (To see the full five
c o n t a i n no e - f o r m a t . It .7 5 gives the exact result
the input of 5-byte floating byte floating after the decimal
converts such numbers to 0 . 7 5 followed by 34 zeros.
point numbers in line 25. To point, add line 3 POKE 3 0 7 2 2 ,
f l o a t i n g point form more There have to be 32 decimal
use this, add the t w o lines 27 before running. This gives
accurately than the existing places to give exact results;
15 GO TO 25 54 places after the decimal for
ROM routine, and it rounds we are working in sixes, so
62 GO TO 70 small fractions. To restore the
them up as needed too. there are 36, the last 4 always
and change line 1 8 0 to GO TO full 1 59, delete line 3 and run
Entering .5 now gives 1 2 8 0 0 zero. The program also gives
15 (to restore the program, again. For the alternative 5
0 0 as it should; .25 gives 1 27 the actual 5 bytes held by the
delete lines 15 and 62 and byte input, add line 25 GO TO
0 0 0 0, .1 25 gives 1 26 0 0 0 machine, here 129 1 9 2 0 0 0 .
change line 1 8 0 back to GO 4 0 . To return to normal input,
0, and so on. In addition .1 Note that I have left the
TO 20). Note that I am still delete line 25. Note that the
gives 125 76 2 0 4 2 0 4 2 0 5 , s e c o n d b y t e as a t r u e
using the true numerical program does not check
correctly rounded up. Entering numerical byte since all
second byte, and if you want whether your five bytes form a
.3333333333333333 numbers here are positive, but
to alter that you will need to legitimate number. After a
(sixteen 3's) gives 127 4 2 if you want to alter the
add LET m(1) - m(1) + 1 28 at break, re-enter at line 30.
1 7 0 1 7 0 1 7 1 , correctly program to subtract 128 from
rounded up. It is w o r t h it feel free to do so. Try also .8 the end of line 25 and LET To see a Spectrum bug,
mentioning here that the at this stage. This gives an m(1) = m( 1) - 1 2 8 at the enter " I N T - 6 5 5 3 6 " ; you may
reason why .1 and .5 are inexact result. You will see beginning of line 70. be surprised at the answer! In
incorrect on the ZX81 and the that it starts with .799 Perhaps the main numbers one respect this program does
Spectrum is that the division that the inaccurary begins at of interest for this second b e t t e r t h a n the unaided
routine jumps to the wrong the tenth decimal place, and method of input are the largest Spectrum. Expressions like
place in trying to get bit 34, that 3 0 decimal places are and smallest: i.e. 255 255 " - 6 5 5 3 5 1 " lor " - 6 5 0 0 0 -
and t h a t t h i s c o u l d be significant (not 32, because 2 5 5 2 5 5 2 5 5 gives the full 39 5 3 6 " etc.) give the correct
corrected by changing one the last byte is divisible by 4). digits of the integer 2 1 2 7 - answer here. On the unaided
byte in each ROM. Finally, in this range try .91 to 295, the largest integer which Spectrum they give - 1 e-38!
see a result which has 32 the ZX81 and Spectrum can
Positive Numbers significant figures after the
decimal.
hold. You might not guess Summing-up
from the manuals that this
And so we come to program 3. number is held exactly on the I hope this article goes a long
The second type of result is m a c h i n e ! At t h e other
This is a multiple precision the larger number. This takes way to dispelling any mystery
BASIC program which con- extreme, the smallest number about how numbers are held
up about 3 0 seconds for about is of course 2 - 128, entered
verts a 5-byte floating point 1e38 (or about 2 to the 1 26). on the ZX81 and Spectrum.
number exactly to decimal by 1 128 0 0 0 ; but perhaps a Although Program 3 is long
Line 1 4 0 0 has been coded to more interesting number is
form. It deals only w i t h speed the original draft up by a and complex, I believe that it is
positive numbers. Negative 2 - 127 - 2-159, entered by a mine of information (I trust
factor of about 3, but those 1 255 2 5 5 255 2 5 5 , also
numbers do not show any digits take time to produce that phrase is not copyright!)
special features here. It does taking 52 seconds, and show- and can be used far beyond the
(and the exponent takes time ing the maximum of 159
not deal with "short integers" to insert). Here you can test cases that I have looked at or
(less than 6 5 5 3 6 ) as they significant figures after the indicated here.
those powers of 10 from 1e5
occur on the Spectrum. They to 1 e1 3 and see that they are
too present no problems. It all exact. (1e13 takes 16 oroqraisi 2
could be typed into a ZX81 seconds). It is interesting to
mainly by using a new line for see that the error in 1e14 is 10 REM " 5 bytes."
each statement. I aim here to 1 6 3 8 4 . Since the exponent is 20 L E T x =0. " I N P U T "En t er a n u rr<
show you how it works. Then 2 to the 47, the 32nd bit can e r or ex p r e i i i o n " ; x $: L E T x ~'JR
you can use it for any numbers only be correct to the nearest x $ *. PR I N T X $ ; . " = " ; : F O R i =1 T
that interest you. 2 to the 1 5 i.e. 3 7 2 7 6 8 , and S : LET VsPEEK 2 3 6 2 7 + 2 5 5 * P E EK 2
this leads to an error of plus 628: PR I N T P E E K ( v + i ) ; " " ; . NEX
i : PR I NT : G O T O 20
Division 1 6 3 8 4 . Of course this is just 30 LET X=l: FOR J TO 126 : LE
as it should be, and shows the X = 2 t J : PRINT " 2 1 " ; j ; " = "; : FO
The heart of the program is in system really working. It is i = 1 TO 5 : LET v=PEEK 23627+ 256
line 50, which stores the also of interest at this point to :K 623: P R I N T PEEK Cv+i > ; "
constants needed to divide by look at the largest power of 1 0 NEXT i : PRINT : NEXT j
MICRO CHOICE I am
cheque
enclosing
Poatal
m y (delete aa
Order/International
neceaaary)
Money
ORDER FORM
Order for £
(made payable to ASP Ltd)
OR
Debit my Ace***/ Barclaycard '
Please send mv copy(ies) ot ('delete am neceamary)
Micro Cho icv
Cut out a n d SEND TO: Please use BLOCK C A P I T A L S and include post codes
Signature
Date . . .
SPECTRUM CAME
The program is easy to 01 9 0 - 0 2 1 0 : These define the CHR$ 8 in line 1 4 2 0 allows kk number of lives left
understand once YOU press user graphics, using DATA the old attributes of the paper i — to count objects eaten this
RUN. You press 'a' to move statements from lines 3 7 0 0 to show through (see your 'frame'
up, 'z' to move down {the onwards. In the listing, the manual, pages 111 and 114). b — score
tunny blob in line 3 2 0 of the graphics are shown as the Lines 1 5 5 0 to 1 6 1 0 print the dS — stores previous key
instructions is a z), 'm' to letter they are, rather than the title and scores in varying pressed
move right and 'n' to move little things you'll have flashing degrees of noticeability. Line v — loop variable
left. The reason for choosing around your screen when it 1 6 2 0 prints the amount of c$ — general input variable
three keys will become clear gets underway. man left in the middle of the q,z — loop variables
when you try the program out. board. Line 1630 sets the d — loop variable
You get 100 points for an 0 2 3 0 - 0 4 4 0 : This section of paper colour to green, the aS — stores data for board
'o' and 2 0 0 points for an the program provides background colour of the printer
explanation mark, w i t h a instructions if they are needed. insides of the maze. s — loop variable
miserable 10 for an asterisk. x,y — position of maze man
0 5 1 0 - 1 6 3 0 : These set up the k,l — position of ghost
position of the 'ghost' tn T and Variables used: ss, sd - contents of proposed
variables ' k \ and then printout the position
board. Originally, when Tudor n — high score q$ score and colour control
0 0 1 0 - 0 0 7 0 : Initialisation of first wrote this, each n$ — high score aa,bb,cc,dd — length of notes
variables and the like. POKE 'character position' of the j — code of object qa,qb — added to k and I
23692,255 cures the board had a different DATA 'underneath' ghost produce old position
Spectrum of its habit of asking element, but he found this too
'scroll?' every time you blink. slow. Tudor says that the 1 REM HRZE MRN
The subroutine at line 4 3 0 0 design of the board has been 2 REM BY T.M.CQ5TIGRM
draws the design shown at the 'extensively tested' at his 2 0 LET n=«-7573: LET £ - S T R 5 f> :
beginning of the program. school, and there have been no POKE 23532.255
complaints! You can make the 20 LET J = 3 2 . _LE;T KK = 3 : L E T i =G
elements of the lines different Ltl b =£1 . Ltl
0 0 9 0 - 0 1 8 5 : These print the 3© BORDER 5: PRPER 7
title and ask for the 'skill level', colours, puting the colours INK 2 : C
LS
with suitable error messages, d i r e c t l y i n t o the DATA
50 GO SUE I • FOS
' w w ' is used as a delay loop statements, as described in
your manual. The CHR$ 17; - 7 NT • NFXT
later in the program. 70 INK 0
S 820 DATP
150 I F C4 i " R N D C S < > " M" 8"
c $ < > " m " A N D c $ :• " M " R N D ci-:)"fi" 830 DATA nttttnnttttnttttJJttTJtttt-n-rnitii
3 Mr*
• »• VW B
t •\• "*=• •• r w
—i
r v -—-z:- TJ.:T L^T
• • * ^ • • • # • «» » « •* •
•*.• * y
tt "
1 m
-w^Cf^L?
H.MjO" t£ o n i ' - t r ' . S S i i i " GO T O 1
30 1 4 0 0 FOR d = 1 TO ly
ISO I F C $ ~"h - OP. Z = - " r t " - H E N L E
T W W =0- 1 4 1 0 R E R D e $ : F O R S = 1 TO £ 2 IF
170 IF C$= " OR C 5 = ' H " THEN LE R e $ < s : < = " « • ' OR e $ ls.1 ='•"• "'• "THEN P R P E
T <•' i<> = £ 5 7: INK 4
ISO IF C$="C" OR c $ = " E " THEN LE 1 4 1 2 I F d = 1 2 A N D S=:L1 T H E N PAPER
T WW = 5 0 4
I B S P R I N T RT 10.27,C5 1 4 - 1 5 P R I N T R T d , 8 +S ; e iS ) e • P R P E
190 RESTORE 3700 P ii _ i I. N r-K- — _ I r—. f-, — i • *. "T L J r"i r*-
. * f — . > / Wf l# I ^
2 0 0 FOR q = l TO 6 ; READ X $
2 0 5 FOR 2 = 0 TO 7; READ X: POKE
USR x $ + z . x : NEXT z 14 6 0 N E X T d
2 1 0 NEXT q 14-90 P A P E R 7 . INK £
220 IF f C O 0 T H E N GO T O 4 - 5 0 1 5 5 0 P R I N T R T 1 , 0 ; FLASH 1;"Haie
£30 PRINT ; PRINT "DO y o u ViSh man"; INUERSE 1; AT 2 , 3 , ' B y " ; If ?
instructions (Y/MJ" U E R S E 0 : A T 3 , 1 ; " T . M . C - "
24-0 IF I N K E Y $ = " " T H E N GO T O £4-0 1600 P R I N T AT 5 , 0 . IHVER3E 1;"HI
250 LET C $ = INKEV $ 5 C O R E " , A T 6 , 1 ; I N V E R S E 0 ; P APER
260 IF c $ = " n " OR C $ = " N " T H E N GO 7; n $
T O 4-50 16 1 0 P R I N T A T 8 . J . : J N U E . P S E J . 'SL
£70 IF C%< >"y" AND C $ ; > " Y " THEN ORE";AT 9 , 1 ; STR $ b
GO T O £ 4 - 0 1 6 2 0 P R I N T AT 9 / 1 9 ; S T R $ K K; C"
290 CLE 1630 PAPER 4
3 0 0 PRIfJT : PRINT BRIGHT 1; " I t - 6 0 F O R s =0 T O £ 0 0 . NE>1 £
INSTRUCTIONS " 1 7 1 0 L E T g = 1 3 . L E T x = 2 0 PRINT
310 PRINT ; .PRINT "TO move up", T u . x ;
1 7 5 0 F O R u =0 T O row NEXT u
" p r e s s ' a ; "
320 PRINT "To muve o o v n " , " p r e s s 1 7 5 5 B E E P - 0 2 , 4
1760 LET x $ = INKEY$
;30 PRINT "To m o v e r i g h t I* / t • p r e s . 1785 I F x $ a " " THEN LET x$=INKEV$
' m ' " 1 7 7 0 I F X $ < > " " THEfJ L E T d $ = " "
340 PRINT "To move l e f t " , " p r e s s 1771 P R I N T AT U , X j " '
' n 1 7 8 0 I F X $ = ' «(" OR x $ - ' H " O P d <• = '
360 PRINT : PRINT " * = 10 poin .'!>" OR d $ = " H " T H E N GO T O 1800
U " 1 7 8 2 I F x $ = " n " OR x $ = " N " OP d $ =
370 PRINT " O = 100 points" OR d | = " N " T H E N GO T O 162S
3S0 PRINT " ; = 2 0 0 points" 1784 I F x$ = "a" OR x $ = ' A " OR d * = "
430 PRINT : PRINT rLRSH 1, 3 " OR d $ = " A " T H E N GO T O 1340
n n c c c r j k in.'
H L__ w i M V / »
-t-
I « _
~ r , r. !-t~ t k u i cr
« # w w r r ^ / V w ' k . 1786 IF x$ ="Z" OR x $ = " Z " OR d * = '
4.35 I F I N K E Y $ < > ' " • T H E N GO T O 4 3 . Z " OR d $ = " Z " T H E N GO T O 1 3 6 0
1 7 8 6 GO TO 2 1 6 0
4-4-0 I F I N K E Y $ = " " T H E N GO T O 440 1800 LLT X-Nri
510 CLS : LET 1=6: LET K=19 1 8 1 0 L E T s S =CODE (SCREEN* i y ,X * >
530 RESTORE I F S S < > 3 2 T H E N GO T O 19O0
6 5 0 DRTR "tttttttttttttttttttttttttttttttttttttttttt 1 8 1 2 P R I N T AT y,X;"C"
tt" 1 8 1 5 GO T O £100
660 DRTR 1820 LET X =X-1
tt" 1830 LET S3 -CODE (SCREEN? ty.xM
6 7 0 D A T A " Tl TT S r? « tt T+^f JT J? TT IF - S < :• 3 2 THE:-' GO : G 2 9 5 0
XX" 1 6 3 £ P R I N T A T ! j . N 7 " 5""
6 8 0 D A T A "ttOtttttt** ****ttttttO 1 3 ^ 5 GG TO 2 1 0 0
tt" 1840 LET y - y - i
6 9 0 DRTR " 8 * * * * *tt stttttttttttt *tt * * * * * 1350 L L T = = -CODE *. _ : _RLE:. : = •:.:•:) ?
tt" I F SS < I H t N b U l Lt
700 DRTR » * n n a * a * * * * * * * * n * tttt tt * 1 8 5 2 P R I N T AT y,X,"tt'
TT " « » * * * * * 1 8 5 5 GO T O 210©
710 DRTR 186 0 LET '4=^+1
TT" 1870 LET &S=CODE ( SCREENS, \y , X > >
720 DRTR tttt»*»*»*tt : I F S S < > 3 2 T H E N GO T O 2050
tt" 1872 PRINT AT
1 8 7 5 GO T O £100
7 3 0 D A T A tt * * * 1900 I F s S =42 THEN L E T i =i +1; LE
«• * n
T b = b -f 1 0 : GO T O 1312
7 4 0 DR A T fAl "tttt»*tt*tt*JJ 1905 IF ss = 79 THEN LET b = b + 100
tt" BEEP -5.5. BEEP -5.7. GO T O 2812
750 D A T A 1 9 1 0 I F = = ='33 T H E N L E T t ~ b r - 2 00
tt"
R£fd •! =: BEEP 1 , 7 : GO T O 1312
7 6 0 DATA 1915 I F ~ S S = 3 5 T H E N L E T X =.X - 1 : GC
TO 1812
ttOij * H *±±ii * i±ntt±j ^ t*±**±±4-m"5 1 9 2 0 GO T O
tt"
7 7 0 DATA 1812
A lot of people must have felt a sprinkle t h e m liberally over t h e If you run Program 1, which the end of line seven is reached,
sudden cold chill after unpack- screen but t h e s c r e e n itself h a s pokes a byte of eight pixels into when a jump is made to the se-
ing their brand new Spectrums b e e n divided into t h r e e s e p a r a t e each consecutive address in the cond row of the first character in
and turning to page 1 64 of the blocks of eight lines e a c h . display file, you will see how the line zero, and so on. The process
user manual. Not only, it seems, Before finding out w h e t h e r screen is built up. is then repeated with the second
has Mr. Sinclair decided to chop things are really as b a d as t h e y Starting at the top left hand and third groups of eight lines
individual characters in the s e e m I w o u l d like to e x p o s e y o u corner, the top row of each until the screen is full.
display file into tiny pieces and t o t h e full horror of t h e situation. character square is filled in until Could it be that cunning Mr.
YOUR ZX..
"Thanks for your very good VERY N A S T Y M O U N T A I N " : M.F. Harold,
Guildford, Sy.
" N A S T Y INVADERS...VERY N A S T Y M O U N T A I N : with no loading pro-
blems at all and the literature you included, will certainly purchase from
you again": N . D . H . , Huddersfield
" I am writing to congratulate you on the excellent VERY N A S T Y M O U N -
T A I N . I am also pleased with the quick delivery": R.Messingham, Bailey,
W . Yorks.
" I like N A S T Y INVAOERS . the graphics nro oxcollont; VERY N A S T Y
M O U N T A I N is also an excellent game. These are t w o of the best games I
have for my 2 X 8 1 . " : Michael 8 McAllister. Lakenheath, Suffolk FULLER MICRO SYSTEMS ADD STYLE, POWER,
N A S T Y INVADERS: Get them before your Bosses get youl £4.95 VERSATILITY AND FULL TYPEWRITER KEYBOARD
A 2 0 minute plus Action-Pecked Game. You ere on duty in the Defence
Radar Centre. An invasion starts. Your task is to prevent the Enemy from
OPERATION TO ZX81 AND ZX SPECTRUM!
landing. But you have problems: not only do you have to stop the Invaders
making repairs to their craft, but there could be personnel trouble tool FULLER FD42 SYSTEM
Good control is rewarded, but errors are penalised The ideal Christmas Gift
Don't despair — Rank Has Its Privitegesll
forZX81 users!
N A S T Y M O U N T A I N : Solve the Clues if you want to Escapel £4 9 5 The ZX81 is easily Britain's best selling
You are leading an expedition and come to an impassable mountain range. small computer, and now costs an
incredibly low C49 95 To celebrate this
It looks like a long detour until an old goat-herd announces that there is an event, we are offering out equally popular
opening in the rocks into which the occasional animal wanders, but they FCW2 system at an even lower price than
never re-appear See if you can solve the mysteries of Nasty Mountain tv«w ^ ( i l D r / OeforeMt converts your ZX81 into a sturdy.
and continue on your travels. Whether you succeed or fail, you can "SfftftK V "" "y attractive and NOW ONLY
always try again — but somehow its not quite the same as before) wonly x tS professional unit, with £>OQ n c
ITS EVEN CHEAPER IN KIT FORM! full s u e d typewnler
FD42 Keyboard and r>o/l p. keyboard (+C2SOo4o>
VERY N A S T Y M O U N T A I N : But don't CHEAT or you will pay for itl £ 6 . 9 5 case Kit JUST £ 2 4 . 9 5 F042 rd Klt J U S T £ 1 4 . 9 5
( + 12 50 P S P) l + SOp p S PI
An advanced version of the Nasty Mountain Game with 16 Levels of Play.
Practice Makes Perfect — but the more clues you solve, the more your OR WHY NOT BUY A COMPLETE SYSTEM!
tactics ere tested! if you are not lucky enough to already own a Z X 8 i . why not buy a FD42 Sysiem.
including computer, from us. and make an even bigger saving1 2X81, FD42 Keyboard
Justify Your ZX 8 1 As A Business Expense and Case with power supply, reset switch p ^ f l n r
leads and manual-True Value£79 95 SPECIAL OFFER t O ? . 9 5 + C2 50 p 4 p )
PETTY C A S H / V A T : Know where your Money wentl £ 10.00
Enter Date, Narrative and Gross Expenditure for each Cash Purchase.
Analyses into 2 0 Sub-Headings and 1 3 Main-Headings and gives Gross. FULLER FD SYSTEM for ZX SPECTRUM
V A T , Net and Exempt Subtotals and Totals. Its so good, w e use it Now Ihe famous FULLER keyboard and case
unit has been adapted lor Britain's fastest
ourselves. selling colour computer - the amazing ZX
V A T BOOK INPUTS: Written for the Small Business & Sola Trader £ 1 2 . 0 0 S p e c t r W It has the same high standard as
the ZX8t unit, a tough plastic case encloses
As the Petty CeshyVAT Program, but with the facility to add in your Che the keyboard, Spectrum P C B and powe'
que and Standing Order Items to give Inputs Bottom Line Totals supply The Keyboard has 42 keys including all
the Spectrum grapnic characters printed on to
CHEQUES/P.O.a T O : - GILTROLE LTD.. DEPT. 2 X C , them, the full travel key switches have gold
plated contacts and guaranteed lite of 10*
P.O. BOX 5 0 , RUGBY, W A R K S . C V 2 1 4 D H operations
ITS SO EASY TO IN ST ALU You s>mply
unscrew the ZX P C B from its case, screw it to
I he FD case, and plug in the keyboard No soldering
or technical knowleogierequired KIT FORM.. £ 3 3 . 9 5 1+ C2 SO p4 Bl
ZX81 Workstation. STOP PRESS! 16K Spectrum owners-upgrade 10 48K with a Fuller Spectrum
Upgrade Pack - complete with tull assembly instructions £ 3 4 . 9 5
(Inc pip)
FULLER MEMORY EXPANSION a massive boost for your Z X 8 1 !
FD 16K Memory
mory Module F 0 1 6 K to mount £ > n > 1 r \ r-
on the back or 2X81 or Fuller Case. 1 . ^ 4 . 9 5 i + 8 0 p p 4 PI
FD 16K io fit inside Fuller Case, complete with RAM
adaptor board £ 2 9 . 9 5 i+aopp4 p
SYSTEMS FULLER M I C R O S Y S T E M S
The ZX Centre,
Sweeting Street, Liverpool 2.
_ _ T e l e p h o n e : 0 5 1 - 2 3 6 6109
TRADE ENQUIRIES WELCOME OPEN 9.30 - 12 noon 12.30 - 5.30 pm SAE BRINGS CATALOGUE
Closed Monday
Formidable software
ZX Computing has a number of 'staff reviewers',
but we welcome reviews from readers. This
review comes from Darren-John Norbury of An-
dover who looks at a ZX81 cassette from ICL, and
the Psion/Sinclair Fantasy Games' tape.
The second program on the That takes care of the five is set up representing the Sorcerers island
tape at least demands some skill games. The last program is a swamp area. The board is laid
on the part of the player. The currency conversion routine. I out in squares like a chess board. This works on the same principle
computer^sks you to choose a suppose it could be called a Represented in the swamp land as 'Perilous Swamp'. It's just
top value, 500 for instance, and business program. I must admit are the player and the Princess that the second game is on a
then it selects a number bet- that when I first ran this program who has to be rescued by the much grander scale.
ween 0 and your chosen value. I couldn't make a lot of sense out player from the clutches of an Okay, I'll let out a little
The player must then try and of it. This problem was mainly evil wizard and removed from secret. Much as I have tried I find
guess this number in as few at- due to a lack of proper explana- the island. The player moves escaping from the island an im-
tempts as possible. After each tion in the a c c o m p a n y i n g one square at a time, vertically, possible task. This game is a
guess the computer says either cassette documentation and a horizontally or diagonally, but challenge though. It's not the
too high or too low which means similar clarity, or lack of it, in the cannot go through the black sort of game you tend to give up
that, coupled with some lucky prompts within the program. It squares which are marsh, only because it's boring or it can't be
guesses, the task is not as im may well drive some budding on the fairly dry white squares. done. It can be done, I know it
possible as it may sound. currency converters to a pencil, At the beginning of the can — I think.
paper and a calculator. game the player is alloted a cer- My personal opinion of
Admittedly ICL's Super tain amount of life points. Every 'Fantasy Games' is that it's in a
Secret Message Program range were some of the move towards the Princess in-
volves a meeting with some sort
class of its own from a point of
addiction and absorption.
first cassettes of ZX81 soft-
'Secret Message' asks one user ware to appear. of ghastly being who is guarding The games are not over
to input a message. The some valuable treasure. Each quickly and, although there is a
message is then played back
when required, but upon return,
Conclusion creature has a strength rating
compatable with the player's life
great element of luck involved, it
is quite possible to spend an
is re-written in huge graphic let- I think that this range has been and so you must try to defeat evening thinking one's way off
ters which are scanned with on- left behind by some of the newer the creature by numbers and so of 'Sorcerer's Island'.
ly one or two letters on the software manufacturers who gain treasure points by depriving ICL Super Programs
screen at any one time. It is a are coming up with ways to put the monstrosities of their Cassette G3 is priced at £4.95
very slow process so it is advis- more exciting and complicated valuables. Of course, once all while Psion's Fantasy Games
ed not to try the message: games and routines on 1K the life points have been used costs £4.75.
" H a v e gone round to see machines. Maybe ICL are work- up. . . finito! No treasure, no Now, it IS possible to get off
mother — your dinner is in the ing on it as I write or maybe it is Princess, no life end of game! of this island. . . I'm sure it
oven". felt throughout the software in Incidentally, you may think I is. . . isn't it?
ire
nt
ay
an
II-
ee
is;
er
le
st
a
le
id
jl-
a
ie
|p
>e
it Alistair Lindsay
)f fromFrodsham,
a Warrington just about possible to have a
long game, but you have to be a
One t h i n g which I
discovered is that by using Tim
Conclusion
)f reviews Bridge c o m p l e t e expert to score Hartnell's method of finding out This is definitely one of the best
ir
Softwares anything on level 9. The game is
flicker-free but that is replaced
how much memory a program "Invaders" type games on the
uses, this Invaders takes up just
a "Galaxy invaders" by the fact that the aliens "shim- over 2K. In some of the adver-
market at the moment for the
ZX81. It only takes up just over
it After hearing so many good mer". This means that it is hard tisements it says that a 16K 2K of memory, so do not be put
n reports about this cassette, I on the eyes and therefore dif- RAM pack is required. Bridge off if you do not have a full 16K
ff
decided that I must see it. I sent ficult to play for longer than half Software are not the only com expansion. "Galaxy Invaders"
off on a Bank Holiday and it arriv- an hour. Apart from this fact, the pany to do this, by any means. costs £3 from Bridge Software
s ed four days later — good ser- game is very good and I can see (Tim Hartnell's method is: "Print of 36 Fernwood, Marple Bridge,
5 vice, you must admit. that much more thought has Peek 16396 + 256 * Peek Stockport, Cheshire SK6 5BE. It
s When you have loaded it, (I gone into it than into some 16397 - 1 6 5 0 9 " When this is has adequate instructions and
did it first time), it runs (most) ZX Invaders. The shapes used as a direct command, it will my percentage rating for it (with
1 automatically. You are asked of the invaders are very good, print the number of bytes which the average "invaders" scoring
it what level you want to play on, considering that they can only that particular program has us- 50%) is 70%.
between 0 and 9. On level 0 it is use the Sinclair character set. ed).
TNUADEPS
RDFIH UAPING
55s B
S C O R E = 14
EXCELLENT
PROGRAM LISTING
1 SftUE "A"
20 L E T =F
POKE B,D
50 POKE C E $
100 P R I N T AT F , R N D * G i " O ";RT S C O R E =4
• Jl
I S O * I F RND >I T H E N P R I N T AT F,RN
PROGRAM LISTING
D*G;" X ".AT F,RND*G;" * " 1 SAUE "B"
1 5 0 L E T A = A -t- «A < G A N D I N K E Y $ = " 8 " 10 L E T A=T
> - CA >F A N D I N K E Y $ = " 5 " ) 20 L E T S=G
15© I F I N K E Y $ = " © " T H E N G G S U S D 30 L E T B=A
200 I F P E E K 5 >J T H E N G O T O K 4 0 L E T h $ = " Mi Mi m m m Mi & U "
W 205 PRINT "EXCELLENTRND 3 ;•!H A •30 F O P M=H T O I
: t (r-rt ir~ nt iv .• AND 1 0 0 L E T A = A - M R < K AND INKEY$="©'
5 > = L RNC 3 < = f i ; SL-OBISH" A N D S <L ;, _ (fi Q A N D I N K E Y $ - S " ' _
A N D 5 > =Q . " P f i T H E T I _ R N D 5 •: Q 14tJ P R I N T A T G.. & > h I T . . A., $
230 INPUT H3
r *
wME
begins.
Not a magazine you need
a degree in electronics to
decipher.
Published by
Argus Specialist Publications I.id.
IHARDWARE REVIEW!
Manufacturers of accessories looking for a > ALL PRICES INCLUDE UK P(JP AND
15% VAT WHERE APPLICABLE
retailer in our area are invited to contact us. VISA OVERSEAS CUSTOMERS ADD El 50
| A* . - i CARRIAGE PER ORDER
SPECTRUM SOFTWARE/HARDWARE
AVAILABLE NOW TIMEDATA LTD Dept G 57 Swallowdale, Basildon,
Essex SS16 5JG Tel: (0268) 411125 (MON FRII
uHlEDAUii-
Hours of business:
M O N D A Y to S A T U R D A Y , 10am to 8 p m
SPECTRUM — ZX81
STARSHIP ENTERPRISE NEW! ZX81-COMPILER
Soar through the s t a r s as a starship commander in this Yes1 Now you can write machine code on your Z X 8 1 No more
exciting new space ship simulation This new advanced version messing about with assemblers and disassemblers simply type
of Startrek uses the full colour graphics and sound facilities of m the BASIC program and the machine does the rest.
modern micros Full 3 D - Klmgon attacks, graphic hyper-warp, ONLY £ 5 9 5
plus all the normal Startrek features and a whole lot more,
add up to one of the best games in the galaxy1' ZX81 ARCADE ACTION (New low prices)
4 8 K Spectrum £ 5 9 5
M U N C H E R Exciting pacman game for the Z X 8 1 £4.95
ZX SPECTRUM
SOFTWARE
7N/07
L/\U\
nn
ii
from
DEFENDER Version of the popular arcade game, J.K. GREYE SOFTWARE LTD
including, 3ix types of alien; futl vertical movement TI ir nci i rri\icOQTini\i c n r n lOQC uni tec
and two dimensional play; high score; smart bombs. i f i t i tCw OCt iCKh i IUI i Dut i mi n\i- i luuDC
Without question the finest machine code games available
MISSILE D E F E N C E Fire your intercept missiles, today::. J.N. R O W L A N D Product Manager tor W.H. S M I T H .
protecting your cities and missile bases from the O A M E S T A P E 1 (Of I K ontyflM
enemy. With on screen scoring. 10 Games mci ASTEROIDS
GUILLOTINE KALEIDESCOPE. etc
UFO. C O D E . B O M B E R
THE
lf1 had to choose /ust One programme to imp/ess an audience wifft rhe capabdmes ot
BUFFER
the ZX81, then J K Greye's 30 MONSTER MAZE would be the one without do
ZX COMPUTING "BriPant, br*ant,br*antr POPULAR COMPUTING WEEKL Y
G A M E S T A P E S tor U K . o n l y C4.M
• J O DEFENDER The Ultimate Space Game Super test
Machine Code 30 version of the Arcade favourite You have
to save you» home planet from the marauding Alien Spacecraft
This a all in 3D. your viewscreen shows you the view out
MICRO SHOP of your fighters cockpit window The backdrop moves when
you turn, or fly up or down (8 flight directions) lust as >f you
were really flying ill But then Y O U ARE' The Enemy Saucers
(NEXT TO STREATHAM STATION) win actually toom towards you m 30 and shoot you if you let themi Your display
includes Score. Shield Strength Altitude. Proximity. Forward Radar and your viewsceen,
which shows your rotating home planet backdrop Of Star*. Meteors. Explosions.
Plasma Blasts your Photon Beams, up to 4 Enemy Saucers and of course m all in
full 30!
THE OLDEST SOFTWARE SHOP EXCLUSIVELY FOR • Another 30 winner" SINCLAIR USER
S H O O T O U T £5.00 Pit your wits against the western gunfighter out to kill
Run a n d d o d g e behind the wagons a n d c a c t u s whilst shooting at this killer
Full colour graphics a n d sound
P R O G R A M S Deduct 10% off list price for three or more program tapes
ordered Send S A E lor full r a n g e d programs a n d price lists A 3 2 K memory
required unless marked *
PROFESSIONAL DESKTOP CONSOLE FOR THE ZX81.
IT RAISES AND TILTS THE TV TO MINIMISE EVE-
STRAIN. HOLDS IN PLACE THE ZX81 PRINTER. RAM
WANTED URGENTLY PACKS (AND OTHER ADD-ONS), POWER SUPPLY.
B u l k s u p p l i e r of 5 - w a y k e y b o a r d s o c k e t s a s u s e d o n Z X 8 1 a n d
Z X S P E C T R U M r e q u i r e d . P l e a s e s e n d s a m p l e s of 1 0 0 o f f , 1 0 0 0
TAPE RECORDER AND HIDES MOST OF THE WIRING.
off a n d 1 0 0 0 0 off p r i c e s or r i n g 0 9 4 6 8 6 6 2 7 (24 h o u r a n s a l o n e ) .
ACCESS CARD ORDERS ACCEPTED
PROVIDES STORAGE SPACE FOR CASSETTES,
PENCILS, ETC.
O P T I O N A L : TWO BUILT-IN ILLUMINATED POWER
SWITCHES. SIMILAR UNIT FOR THE ZX SPECTRUM
^Computer ALSO AVAILABLE WHICH HOLDSZX MICRODRIVE IN
PLACE.
To: Department OIC, George Philip Services Ltd, Console for ZX Spectrum £30 95
Arndale Road. Wick. Littlehampton. Power Switch for Tape Recorder £3.00
West Sussex BN17 7EN.
Power Switch for ZX81/ZX Spectrum £300
Please send me copy/copies of
Sub Tout
THE SPECTRUM HANDBOOK by TIM LANGDELL
at £5 45 per copy (post paid) Carnage £3.00
Tout Due
I enclose my cheque/postal order for £
(payable to George Philip)
Name C h e q u e s / P . O . m a d e p a y a b l e to:
Address COMPUTERLOCK, 2 WYCHPERRY ROAD.
HAYWARDS HEATH. WEST SUSSEX RH16 1HJ
Telephone: (0444) 451986
. Please allow 28 days for delivery. All Prices inclusive of V.A.T. Allow 28 days lor delivery.
126
MACHINE
SPECIFICATIONS
ZX80 Immediate mode
The ZX80 will function in the "calculator mode" by immed-
iately executing a statement if it is not preceded with a line
number.
Dimensions Cassette interface
Width 174mm (6.85 in) Works with most domestic cassette recorders. The transfer rate
Depth 218mm (8.58 in) is 250 baud using a unique tape recording format. Other
Height 38 mm (1. 5 in ) systems are not compatible w i t h the ZX80's. The ZX80 also
Weight 300g (10.5oz) SAVEs the variables as well as the program on cassette. There-
fore you can save the data for updating next time the program
Microprocessor/Memory is executed. The ZX80 does not support separate data files. The
Z 8 0 A 3 . 2 5 MHz clock lead supplied with the Z X 8 0 is fitted w i t h 3.5mm jack plugs.
ROM: 4K bytes containing BASIC Expansion bus
At the rear has 8 data, 16 address, 13 control lines from the
RAM: 1K bytes internal, externally expandable to 16K bytes. processor and Ov, 5v, 9-11v, 0 and internal memory control
line. These signals enable you to interface the Z X 8 0 to your
Display own electronics, PIO, CTC, SIO if you want I/O ports etc.
Power supply
Requires an ordinary domestic black and white colour TV. The The ZX80 requires approximately 400mA from 7 - 1 1 v DC. It
lead supplied connects between the Z X 8 0 and your TV's aerial has its own internal 5v regulator.
socket. The display organisation is 24 lines of 32 characters TV standard
per line showing black characters on a white screen. The ZX80
The Z X 8 0 is designed to work with UHF TVs (channel 36)and
does not connect to a printer.
is the version required for use in the United Kingdom. The
Programming
ZX80 USA is designed to work with a VHF TV(American
Programs can be entered on the keyboard or loaded from
channel 2. European channel 3) and is the version required for
cassette. The Z X 8 0 has automatic "wrap round" so lines of
the American TV system, also for countries without UHF.
program can be any length but not multi-statement lines.
Syntax check
The syntax of the entered line is checked character by char
acter. A syntax error cursor marks the first place the syntax
breaks down if there is an error. Once any errors have been
ZX81
edited out the syntax error cursor disappears. Only syntax Dimensions
error free lines of code are accepted by the ZX80. Width 167mm (6.32 in)
Graphics Depth 175mm (6.80 in)
Total of 22 graphics symbols giving 48 x 64 pixels resolution Height 40 mm (1.57 in)
consisting of 10 symbols plus space and inverses. Includes Weight 350 gms (12.15 oz)
symbols for drawing bar charts. Under control of your BASIC
program any character can be printed in reverse field. Microprocessor/Memory
Editing Z80A 3.25 MHz clock
The line edit allows you to edit any line of program or input ROM: Containing 8K BASIC interpreter
including statement numbers. The edit and cursor control RAM: 1K bytes internal, externally expandable to 16K bytes.
keys are EDIT, RUBOUT, HOME.
Arithmetic Keyboard
Arithmetic operators + , - , x , exponentiate. Relational oper- 40 key touch-sensitive membrane. Using function mode and
ators < , = , yielding 0 or - 1. Logical operators A N D OR single press key-word system, this gives the equivalent of 91
NOT yielding boolean result. Relational operators also apply to keys and also graphics mode allows an additional 20 graphical
strings. Z X 8 0 BASIC uses 16 bit two's complement and 54 inverse video characters to be entered directly.
arithmetic ( 1 32767 ). Display
Variables Requires an ordinary domestic black and white or colour TV.
Numeric variable names may be any length, must begin w i t h a The aerial lead supplied connects the ZX81 to the TV aerial
letter and consist of alphanumerics. Every character in the name socket. The display is organised as 24 lines of 32 characters
is compared thus an infinity of unique names is available. with black characters on a white background.
String variables may be assigned to or from, shortened but not Two mode speeds
concatenated. String variable names are AS - ZS. Strings do not The ZX81 can operate in two software selectable modes FAST
require a dimension statement and can be any length. and NORMAL. FAST is ideal for really high speed computing
Arrays have a maximum dimension of 255 (256 elements) each. In NORMAL mode however the ZX81 allows continuously
Array names consist of a single letter A—Z. moving, flicker-free animated displays
Control variable names in FOR. . . NEXT loops consist of a Printer
single letter A - Z .
The 8K ROM will permit instructions (LPRINT, LLIST and
Expression evaluator
COPY) to drive the Sinclair ZX Printer.
The full expression evaluator is called whenever a constant or
Programming
variable is encountered during program execution. This allows
Programs can be entered via the keyboard or loaded from cass
you to use expressions in place of constants especially useful in
ette. Programs and data can be saved onto cassette so that they
GOTOs, GOSUBs, F O R . . . NEXT etc.
ZX COMPUTING DEC 1982/JAN 1 9 8 3 127
SPECIFICATIONS
ZX SPECTRUM
Dimensions graphics characters. Also functions to yield character at a given
Width 233 mm position, attribute at a given position (colours, brightness and
Depth 1 44 mm flash) and whether a given pixel is set. Text may be written on the
Height 30 mm screen on 24 lines of 32 characters. Text and graphics may be
freely mixed.
CPU/Memory
Colours
Z80A microprocessor running at 3.5 MHz. 16K-byte ROM con-
taining BASIC interpreter and operating system. Foreground and background colours, brightness and flashing are
16K-byte RAM (plus optional 32K-byte RAM on internal expan- set by BASIC INK, PAPER, BRIGHT and FLASH commands. OVER
sion board) or 48K-byte RAM. may also be set, which performs an exclusive — or operation to
overwrite any printing or plotting that is already on the screen. IN-
Keyboard VERSE will give inverse video printing. These six commands may
be set globally to cover all further PRINT, PLOT, DRAW or CIRCLE
40-key keyboard with upper and lower case with capitals lock commands, or locally within these commands to cover only the
feature. All BASIC words obtained by single keys, plus 1 6 graphics results of that command. They may also be set locally to cover te>
characters, 22 colour control codes and 21 user-definable printed by an INPUT statement. Colour-control codes, which m
graphics characters. All keys have auto repeat. be accessed from the keyboard, may be inserted into text or pro
gram listing, and when displayed will override the globally set col-
Display ours until another control code is encountered. Brightness and
Memory-mapped display of 256 pixels x 1 92 pixels; plus one at- flashing codes may be inserted into program or text, similarly.
tributes byte per character square, defining one of eight Colour-control codes in a program listing have no effect on its ex-
foreground colours, one of eight background colours, normal or ex- ecution. Border colour is set by a BORDER command. The eight
tra brightness and flashing or steady. Screen border colour also colours available are black, blue, red, magneta, green, cyan,
settable to one of eight colours. Will drive a PAL UHF colour TV set, yellow and white. All eight colours may be present on the screen at
or black and white set (which will give a scale of grey), on channel once, with some areas flashing and others steady and any area
36. may be highlighted extra bright.
Sound Screen
Internal loudspeaker can be operated over more than 10 octaves The screen is divided into two sections. The top section — normal-
(actually 1 30 semitones) via basic BEEP command. Jack sockets ly the first 22 lines — displays the program listing or the results of
at the rear of computer allow connections to external amplifier/ program or command execution. The bottom section — normally
speaker. the last 2 lines — shows the command or program line currently be-
ing entered, or the program line currently being edited. It also
Graphics shows the report messages. Full editing facilities of cursor left,
Point, line, circle and arc drawing commands in high-resolution cursor right, insert and delete (with auto-repeat facility) are
graphics. available over this line. The bottom section will expand to accept a
16 pre-defined graphics characters plus 21 user-definable current line of up to 22 lines.
ZX COMPUTING OCT/NOV 1 9 8 2
NOW AVAILABLE FROM J.P. GIBBONS A.I.B.
16K SPECTRUM + £42.50 = 48K SPECTRUM
(Author of the Best Banking Programs in the World) We <td <t lor the ZXftl <vev '» 10* <x>ne il f»
n* ZX SPeCTflUM
A00 on memory il an imar-ny, i<ta price
T H E P B S B A N K R E C O N C I L I A T I O N IS B E L I E V E D T O BE T H E Incitune yW !6X la « maswc 48K with I he O N L Y
F I R S T S U C H P R O G R A M T O BE A V A I L A B L E FOR T H E 32K R A M BOARD
S I N C L A I R 2 X 8 1 A N D ZX S P E C T R U M Uvr>g IfrtW component) on a Ngh q^a. t>
flouts fcJetf tKWd TO give you tog lntt»tj!ic»nrttyrola 1 ancae r.mryg 4
Just look at s o m e of its f e a t u r e s : ixjrfo-mance. ***iab«ity jrwj economy ccuhplatecl n»i r a Ir.. m«
iy
ite* ivwth the o*
You car. carry an writing .vqat prog* jmrna m•e» renwdrnw NO SOLOtRINC,
• Automatically matches bank statement items with transactions recorded wcww ro MERGE » % n
e»
r raw e»Tra f3P 2* m SPECTRUM 0\L v W 50
ycu' PERSONAL BANKING SYSTEM RAM 60AR0 »rr*«s 21 days 0
• Lists an outstanding lemssuchasunciearedcheques funasre' oivedbut As reimow) m ZX Computing AuguV Stpt '82
not advised to you. bank charges — highlights ail discrepancies No more ECONO TECH 16K R A M PACK
scratching around 10 try and find out why your statement halanre 11
different to what you expected
• All item lists, searches (with totals) Can be output to your ZX Printer 64K R A M PACK
qv*'-?v di It* 1€K RAM odo* t>jt gtv^rg
i m*«jve m«m<yv 10 votai ZX01 v*t having
• Fun instructions included omeotom larger Th»n tr« 16K RAM —
ONLY £62,95 (W9.95*
• Unique atter sa;e maintenance provided As <*v>nvrtf "7 'Ytfuf Compute'' March 82
• Operates in conjunction A i h the Persons Banking System (full nput & 16K R A M PACK
correction taciiities plus automat e posting of standing orders on due Quite limply tha ba*t available pHrt FBf f Alan
dates and fully detailed statements) Anack I7K M codel on cauetle value f5 75 1111 O O
Tulv bi. ' Inted a n d g uatahleed
So banish the headaches make Me easier tor yourself, send E15 for Ihe Uus amtfcng pov.nr twgpty 600 m a i
PERSONAL BANKING SYSTEM PBS BANK RECONCILIATION CO"r<»Ill>e vvlh CH'hle*
and users manual No nobble (XObtcrni
Gala piatoa arkfa comactot fo* partaci coriact w.tri you*
rxiSlmg Clients need O't y send C5for;^'- PBS BANK RECONCILIATION 2X81
which will operate with iheir present PBS Noima'y d«rutche(] Apiih 10 day* 01 rirc ''CI yon'
THE PERSONAL BANKING SYSTEM re.'.ew -f: in Popular Com:: .tir
Weekly — tst July) is available seDarately tor E9 95 for cassette & user 0\L v £26S0'S49S5>
manual ZX81 PBS owners can order Ihe Spectrum version for just £5
it (.^v, J'v ijii ' < >-«v* III u;%
f l n: • rn
Please specify whether ZX8t <16K> or ZX Spectrum (48KI im«uuVAciA'wtii t\(Asi **&rc * , pafc.(
V gi V,' .• + •. . v,*.^L.
s *Rf aaauCAftiE ioa I'>
A AVA 4. .A'.
»o»i ncivtw
jM ' "
uo a*v*
, I ,
a
WAOI si-ii.i 'O SOrrwAat M&aArcH I DAYS »KUM NKIL' UI .0o*0MMa
GUARANTEED SOFTWARE AVAILABLE FROM
r • l —a . i - a i r / • ,
J. P. GIBBONS A.I.B. 14 AVALON ROAD, i a m t i i m m f • w J
i i • • a«— i • i am mt / i i '
ORPINGTON, KENT BR6 9AX t> wavmdc Avtwm. wowmwiw. m m x n u i j u Taiaptwwa- mmi
YOUR PBS IS NEVER OUT OF DATE!
ADVERTISEMENT
• READERS • INDEX
Reach over 70,000 ZX Enthusiasts.
Addictive G a m e s 76 Giltrole 114
Swop, sell or buy your ZX Hardware, A d a p t o r s & E l i m i n a t i o n s .... 7 9 J. K. G r e y e 125
A. G . F o s b e r r y 93 J. P. G i b b o n s 130
Software, Peripherals etc. in our Afdec Electronics 36 JHS 130
NEW C L A S S I F I E D S E C T I O N Artie Computing 131 John Wiley & Sons 2
BiPak 130 John Prince.. 93
Buffer M i c r o 125 Kayde 57
STARTING SOON IN The Butronics C o 39 Kempston 3
C.C.S 36 Memotech 45
ZX Capital Computers
Calpak Computer Software
C e n t o r y Publishing 126
51
44
Mikrogen....
Microscene
Microware..
60
44
115
124
6
Michael O r w i n
Michael L a m b
D. T. M o o d y
76
125
32
David Heartford 60 Moviedrome Video 39
Britain's Biggest Magazine Data-Asselte 26 Nimrod 98
for the Sinclair User. East L o n d o n R o b o t s 32 Picturesque 76
Educare 6 Program Power 50
Fulcrum Products 6 Protos C o m p u t e r
PHONE Fuller M i c r o Systems 114 Systems 115
BRIDGETTE ON Foilkade Ltd 60 Quicksilva 94. 132
Peter Furlong 114 Richard Shepherd 3
Games Centre 50 Silversoft 124
'I
p
»aso state Aftethcr vour order tor ZX81 0< Spectrj^ Se^a S A E 6
i>n * 9"i'o-cata og^<-
I
ARTIC COMPUTING LTD. C«eaue for tota amount enclosed
Name
I
Address
396 JAMES RECKITT AVENUE,
HULL, N. HUMBERSIDE, ZX12
"QS Produce the moat
ULTRA-MEQA- AMAZING Games in
tha entire known Universe!"
I j*!-'
7/
r v
/
Dt
/ wA *
Send order to: QUICK8ILVA, DEPT SPF , SB NORTHAM ROAD, SOUTHAMPTON, BOB OPS