
If you
have
programs
written
in
a
BASIC
other
than
BASIC-SO,
some
minor
adjustments
may
be necessary
before
running
them
with
BASIC-SO •
.
Here
are
some
specific
things
to
look
for
when
converting
BASIC
programs.
Delete
all
statements
that
are
used
to declare
the
length
of
strings.
A
statement
such
as DIM A$(I,J),
which
dimensions
a string
array
for J
elements
of
length
I, should
be
converted
to
the
BASIC-SO
statement
DIM A$
(J) •
Some
BASICs
use
a comma
or ampersand
for
string
concatenation.
Each
of
these
must
be
changed
to a plus
sign,
which
is the
operator
for
BASIC-SO
string
concatenation.
In BASIC-SO,
the MID$,
RIGHT$,
and LEFT$
functions
substrings
of
strings.
Forms
such
as
A$(I)
character
in A$,
or A$(I,J)
to take
a substring
of
to position
J, must
be
changed
as follows:
are
used
to
take
to
access
the
Ith
A$
from
position
I
BASIC-SO
X$=MID$(A$,I,1)
X$=MID$(A$,I,J-I+1)
X$=A$ (I)
X$=A$(I,J)
If the
substring
reference
is on the
left
side
of an assignment
and
X$
is used
to replace
characters
in A$,
convert
as follows:
A$(I)=X$
A$(I,J)=X$
8K BASIC-SO
A$=LEFT$ (A$,I-1)+X$+McrO$ (A$,I+1)
A$=LEFT$(A$,I-1)iX$iMIO$(A$,J+1)
A$(I)=X$
A$(I,J)=X$
MIO$(A$,1,1)=X$
MID$(A$,I,J-I+1)=X$
Summary of Contents for Basic Interpreter Basic 80
Page 1: ...5IA iC intc tit tcl c t ...
Page 2: ......
Page 6: ... ...
Page 10: ......
Page 26: ......
Page 33: ...2 5 Intentially left blank ...
Page 37: ...BASIC SO COMMANDS AND STATEMENTS 2 9 Intentially left blank ...
Page 112: ......
Page 136: ......
Page 140: ......
Page 160: ......
Page 165: ......
Page 166: ......
Page 174: ......
Page 176: ......
Page 182: ......
Page 184: ......
Page 190: ......