EasyManua.ls Logo

Commodore 128D - Page 265

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...
f
I
DIRECTORY
t
\
\
\
Integer
arrays
take
up
two-fifths
the
space
of floating-point
arrays
(e.g.,
DIM
A%
(100)
requires
209
bytes;
DIM
A
(100)
requires
512
bytes.)
NOTE:
Array
elements
are
numbered
from
zero
up
to
the
number
given
in
the
DIM
statement.
More
than
one
array
can
be
dimensioned
in
a
DIM
statement
by
sep
arating
the
array
variable
name
by
commas.
If
the
program
executes
a
DIM
statement
for
any
array
more
than
once,
the
message
"RE'DIMed
ARRAY
ERROR"
is
posted.
It
is
good
programming
prac
tice
to
place
DIM
statements
near
the
beginning
of
the
program.
EXAMPLE:
10
DIM
A$(40),B7(15),CC%(4,4,4)
Dimensions
three
arrays,
where
arrays
AH,
B7,
and
CC%
have,
respectively,
41
elements,
16
elements
and
125
elements
—Display
the
contents
of
the
disk
directory
on
the
screen
DIRECTORY
[Ddrive
number]!,<ON
|,)
Udevice][,wildcard]
The
F3
function
key
in
C128
mode
displays
the
DIRECTORY
for
device
number
8,
drive
0.
Use
CONTROL
S
or
NO
SCROLL
to
pause
the
display;
any
key
restarts
the
display
after
a
pause.
Use
the
COM
MODORE
key
to
slow
down
the
display.
The
DIRECTORY
command
cannot
be
used
to
print
a
hard
copy.
The
disk
directory
must
be
loaded
(LOAD"$",8)
destroying
the
program
currently
in
memory
in
order
to
print
a
hard
copy.
The
default
device
number
is
8,
and
the
default
drive
number
is
0.
See
also
CATALOG.
EXAMPLES:
DIRECTORY
DIRECTORY
D1,
U9,
"WORK"
DIRECTORY
"AB*"
Lists
all
files
on
the
disk
in
unit
8.
Lists
the
file
named
"work,"
on
drive
1
of
unit
9.
Lists
all
files
starting
with
the
letters
"AB"
like
ABOVE,
ABOARD,
etc.
on
all
drives
of
unit
8.
The
asterisk
specifies
a
wild
card,
where
all
files
starting
with
"AB"
are
displayed.
257
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals