EasyManua.ls Logo

Apple IIe - Page 43

Apple IIe
320 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Applesoft
BASIC Programming
43
The END statement identifies
the
end
of
a
program,
and instructs
BASIC
to
return
to
the
immediate
mode.
Obviously,
the
END
statement
should
be
the
last
line
in
your
program.
Actually,
Applesoft
BASIC
does
not
require
an END statement.
When
the
program's
final
statement
is
executed,
it
will
end
.
However,
it
is
good
programming
practice
to
end
a
BASIC
program
with
the
END statement.
Integer
BASIC does
require
an
END statement.
Executing a Program
A
program
is
executed
in
the
program
mode
by
entering
the
RUN
command
. This
is
shown
in
Illustration
3-1. Every
time
RUN
is
executed, the program will
be re-executed.
As
previously
discussed,
in
the
immediate
mode
, each
program
line
will
be
executed
when
the
Return key
is
pressed.
Program Lines
& Display
Lines
A
display
line
can
be
defined
as
one
row
on
the
video
display.
A
program
line
is
regarded
by
the
BASIC
interpreter
as
one
line
,
regardless
of
the
number
of
display
lines
it
occupies
on
the
screen. The
end
of
a
program
line
is
signalled
when
the
Return
key
is
pressed. Program
lines
are generally
limited
to
255
characters.
Multiple
Statement Program Lines
A
statement
can
be
defined
as
an
instruction
to
the
computer
.
The terms statement and
command
are
often
used
interchange-
ably.
Most
programs consist
of
a
large
number
of
statements.
The
following
are
examples
of
statements:
PRINT
"TIM
GREGORY"
070
DIM
A(15)
100
C=2*B

Other manuals for Apple IIe

Related product manuals