Commodore 16 User Manual page 52

Hide thumbs Also See for Commodore 16:
Table of Contents

Advertisement

EXAMPLES
DIRECTORY
List all files on the disk.
DIRECTORY DI, U9, "WORK" Lists the file on disk drive unit 9 (8
is the default), drive 1. named
WORK
DIRECTORY "AB•"
Lists all files starting with the letters
"AB", like ABOVE. ABOARD. etc.
DIRECTORY DO, "FILE ?.BAK" The ? is a wild-card that matches
any single character in that
position: FILE 1BAK, FILE 2.BAK,
FILE 3.BAK all match the string.
NOTE: To print out the DIRECTORY of drive 0, unit 8, use the
following.
LOAD"$0",8
OPEN4,4:CMD4:LIST
PRINT#4:CLOSE4
DLOAD
DLOAD "filename" r,Ddrive#1 hUunit#1
This command loads a program from disk into current memory. (Use
LOAD to load programs on tape.) You must supply a program name.
EXAMPLES:
DLOAD "DTRUCK"
DLOAD (A$)
Searches the disk for the program
"DTRUCK" and LOADs it.
LOADs a program from disk whose
name is in the variable AS. You will get
an error if AS is empty.
100
The DLOAD command can be used within a BASIC program to find and
RUN another program on disk. This Is called chaining.
DSAVE
DSAVE "filename [,Ddrive#j LUunit01
This command stores a program on disk. (Use SAVE to store
programs on tape.) You must supply a program name.
EXAMPLES
DSAVE "DDAY"
SAVEs the program "DDAY" to disk.
DSAVE (As)
SAVEs to disk program whose name
is In the variable A$.
DSAVE "PROG 3",DO,U9
SAVES the program "PROG r to the
disk drive with a unit number of 9.
HEADER
HEADER "diskname" ,Ddrlve# Ladd/ILION Uunitifj
Before you can use a new diskette for the first time you must formal it
with the HEADER command. If you want to erase an entire diskette for
re-use you can use the HEADER command. This command divides the
disk into sections called blocks, and it creates a table of contents,
caned a directory or catalog, on the disk. The diskname can be any
name up to 16 characters long. The i.d. number is any 2 characters.
Give each disk a unique i.d. number. Be careful when you HEADER a
disk because the HEADER command erases all stored data. Giving no
i.d. number al;ows you to perform a quick header. The old i.d. number
Is used You can only use the quick header method If the disk was
previously formatted, since the quick header only clears out the
directory rather than formatting the disk.
101
I
I
I
I
1
I
I
I
I
I
1
I
I
I
I
I
I
I
I
I
1
I
I
I
I
I
1
1
I
I
I
1
I
1
I
I
I

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Commodore 16 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents