EasyManua.ls Logo

Commodore 128D - Page 266

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...
DIRECTORY
DO,
"FILE
?.BAK"
The
?
is
a
wild
card
that
matches
any
single
character
in
that
position.
For
example:
FILE
1.BAK,
FILE
2.BAK,
FILE
3.BAK
all
match
the
string.
DIRECTORY
D1,U9,(A$)
LISTS
the
filename
stored
in
the
variable
A$
on
device
number
9,
drive
1.
Remember,
whenever
a
variable
is
used
as
a
filename,
put
the
variable
in
parentheses.
NOTE:
To
print
the
DIRECTORY
of
the
disk
in
drive
0,
unit
8,
use
the
following
example:
LOAD"$0",8
OPEN4,4:CMD4:LIST
PRINT#4:CLOSE4
LJ
U
i
J
S
)
u
u
\ I
DLOAD
—Load
a
BASIC
program
from
disk
DLOAD
"filename"
[,Ddrive
number][<ON
|
,>Udevice
number]
This
command
loads
a
BASIC
program
from
disk
into
memory.
(Use
LOAD
to
load
programs
from
tape.)
The
program
must
be
specified
by
a
filename
of
up
to
16
characters.
DLOAD
defaults
to
device
num
ber
8,
drive
0.
"The
DLOAD
command
can
be used
within
a
BASIC
program
to
LOAD
another
program
on
disk."
EXAMPLES:
DLOAD
"BANKRECS"
Searches
the
disk
for
the
program
"BANKRECS"
and
LOADs
it.
DLOAD
(A$)
LOADS
from
disk
a
program
whose
name
is
stored
in
the
variable
A$.
An
error
message
is
given
if
A$
is
empty.
Remember,
when
a
variable
is
used
as
a
filename,
it
must
be
enclosed
in
parentheses.
The
DLOAD
command
can
be
used
within
a
BASIC
program
to
load
another
program
on
disk.
This
is
called
chaining.
258
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals