syntax:
example:
REPeat
END
REPeat
repetition
short
long
comment
REPeal allows general repeat loops
to
be
constructed. REPeat should be used with
EXIT
for
maximum effect REPeal can be used
In
both long and short forms:
The REPEAT keyword and loop Identifer
are
followed
on
the same logical line by a colon
and a sequence
of
SuperBASIC statements. EXIT
will
resume normal processing
at
the
next logical
line.
syntax:
REPeal idenlifier :
statements
example:
REPeat
wait:
IF
INKEY$
<>
""
THEN
EXIT
wait
The
REPEAT keyword and the loop identifier
are
the only statements
on
the logical
line.
Subsequent lines contain a series
of
SuperBASIC
statements
terminated by
an
END
REPeal
statement.
The
statements between the REPeal and the END REPeat
are
repeatedly processed
by
SuperBASIC
REPeal
identifier
statements
END REPeat identifier
10
LET
number
= RND(1
TO
So)
11
REPeat
guess
12
INPUT IlWhat
is
your
guess?".
guess
13
IF
guess
=
number
THEN
14
PRINT
"You
have
guessed
correct
Lyll
15
EXIT
guess
16 E
LS
E
17
PRINT
"You
have
guessed
incorrectly"
18
END
IF
19
END
REPeat
guess
Normally
at
least
one statement
In
a REPeat loop
will
be
an
EXIT statement.
•
•
RESPR
is
a function which
will
reserve some
of
the resident procedure space.
(For
example
to
expand the SuperBASIC procedure
list.)
48
RESPR
Odos
syntax:
example:
space:
= numeric_expression
RESPR (space)
PRINT
RESPR(1024)
[will print the base address
of
a
1024
byte block)
FOR SERVICE MANUALS
CONTACT:
MAURITRON
TECHNICAL
SERVICES
www.mauritron.co.uk
TEL
01844.351694
Ft0<:
01844
-
352554
12/84
•
•