EasyManua.ls Logo

Commodore 128D - Page 250

Commodore 128D
427 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...
FOR
EXAMPLE:
10
IF
X^1
THEN
BEGIN:
PRINT
"X
=
1
IS
TRUE"
20
PRINT
"SO
THIS
PART
OF THE
STATEMENT
IS
PERFORMED"
30
PRINT
"WHEN
X
EQUALS
1"
40
BEND:
PRINT
"END
OF
BEGIN/BEND
STRUCTURE":GO
TO
60
50
PRINT
"X
DOES
NOT
EQUAL
1":PRINT
"THE
STATEMENTS
BETWEEN
BEGIN/BEND
ARE
SKIPPED"
60
PRINT
"REST
OF
PROGRAM"
If
the
conditional
(IF.THEN)
statement
in
line
10
is
true,
the
state
ments
between
the
keywords
BEGIN
and
BEND
are
performed,
including
all
the
statements
on
the
same
line
as
BEND.
If
the
(IF.THEN)
conditional
statement
in
line
10
is
FALSE,
all
statements
between
the
BEGIN
and
BEND,
including
the
ones
on
the
same
pro
gram
line
as
BEND
are
skipped,
and
the
program
resumes
with
the
first
program
line
immediately
following
the
line
containing
BEND.
The
BEGIN/BEND
essentially
treats
lines
10
through
40
as
one
long
line.
The
same
rules
are
true
if
the
ELSE:BEGIN
clause
is
specified.
If
the
condition
is
true,
all
statements
between
ELSE:BEGIN
and
BEND
are
performed,
including
all
statements
on
the
same
line
as
BEND.
If
false,
the
program
resumes
with
the
line
immediately
following
the
line
containing
BEND.
u
u
u
u
BLOAD
—Load
a
binary
file
starting
at
the
specified
memory
location
BLOAD
"filename"[,Ddrive
number][<ON
|
,)Udevice
number][,Bbank
number][,Pstart
address]
where:
filename
is
the
name
of
your
file
bank
number
lets
you
select
one
of
the
16
BASIC
banks
default
bank
is
the
bank
last
specified
in
a
bank
statement,
otherwise
it
is
bank
15.
start
address
is
the
memory
location
where
loading
begins
default
drive
is
drive
0
of
unit
8.
A
binary
file
is
a
file,
whether
a
program
or
data,
that
has
been
SAVEd
either
within
the
machine
language
monitor
or
by
the
BSAVE
command.
The
BLOAD
command
loads
the
binary
file
into
the
loca
tion
specified
by
the
start
address.
242
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals