172 User's
Handbook
to the Atari 4001800 Computers
EXAMPLE
RESTORE
100
The previous example contains a statement that moves
the
data
pointer
to
the DATA statement
at
line
100
. If line
100
is
not
a
DATA
statement, the data
pointer
is
moved to the next DATA
statement after
line
100.
RETURN
(RET.)
A
RETURN
statement
is
used to branch a program back
to
the
line
where the last
subroutine
was
called.
CONFIGURATION
RETURN
A
subroutine
is
called
with
a GOSUB
or
ON
/ GOSUB statement.
When the
subroutine
has
been
completed,
a
RETURN
statement
causes the
program
control
to
return to the statement
following
the
most recently executed GOSUB
or
ON
/ GOSUB statement.
EXAMPLE
RETURN
When
a
POP
statement
is
executed
before
a RETURN statement,
the
most recent GOSUB statement
is
ignored
, and the program
control
is
branched to the next most recent GOSUB statement.
RND
The RND
function
is
used
to
generate
random
numbers.
CONFIGURATION
X = RND(a)
The
argument
of
a RND statement
has
no
effect
on
the results,
but
it
is
necessary. The value
of
the
random
number
is
less
than 1
and greater than
or
equal
to
zero.