
function
is
ignored
and
an
integer
result
is
returned
in
the
HL registers.
It
is
recommended
that
USRn
functions
be
replaced
by
the
CALL
statement.
s.
DIM and ERASE
The
DIM
statement
is
similar
to
the
DEFxxx
statement
in
that
it
is
scanned
rather
than
executed.
That is, DIM takes effect when its
line
is
encountered.
If the default dimension
(10) has
already been established for an array variable
and
that
variable
is
later
encountered
in
a
DL~
statement, a "Redimensioned array" error results.
There
is
no ERASE statement
in
the
compiler,
so
arrays
cannot
be
erased
and
redimensioned.
An
ERASE statement will produce a fatal error.
Also note that the values of the
subscripts
in
a
D~
statement must be integer constants;
they may
not
be
variables,
arithmetic
expessions,
or
floating point values.
For example,
DIMA1(I)
DIM A1 (3+4)
6.
END
During execution of
a
compiled
program,
an
END
statement
closes
files and returns control to the
operating system.
The
compiler
assumes
an
END
statement
at
the
end of the program, so "running
off the end" produces proper program termination.
7.
ON ERROR GOTO/RESUME <line number>
If a program contains
ON
ERROR
GOTO
and
RESUME
<line number> statements, the /E compilation switch
must be used.
If
the
RESUME
NEXT,
RESUME,
or
RESUME
0
form is used, the /X switch must also be
included.
See the BASIC Compiler User's Manual for
an explanation of these switches.
8.
REM
REM statements or remarks starting
with
a
single
quotation
mark do not take up time'or space during
execution, and so may be used as freely as desired.
STOP
The
STOP
statement.
returns to
statement
is
identical
to
the
END
Open
files
are
closed
and
control
the operating system.
Содержание Basic Interpreter Basic 80
Страница 1: ...5IA iC intc tit tcl c t ...
Страница 2: ......
Страница 6: ... ...
Страница 10: ......
Страница 26: ......
Страница 33: ...2 5 Intentially left blank ...
Страница 37: ...BASIC SO COMMANDS AND STATEMENTS 2 9 Intentially left blank ...
Страница 40: ...410 DEF FNAB X Y XA3 YA2 420 T FNAB I J Line 410 de ines the function function is called in line 420 ...
Страница 112: ......
Страница 136: ......
Страница 140: ......
Страница 160: ......
Страница 165: ......
Страница 166: ......
Страница 174: ......
Страница 176: ......
Страница 182: ......
Страница 184: ......
Страница 190: ......