Load And Dload - Commodore 2031 User Manual

Hide thumbs Also See for 2031:
Table of Contents

Advertisement

Example:
10?"THIS IS A TEST"
SAVE"0:TESTPROG",8
VERIFY"0:TESTPROG",8
The DSAVE command performs the same function as SAVE, but is valid only
with a Commodore disk system and BASIC 4.0.
The format is:
This command will save a file named "fn" on the floppy disk in drive 0. The file
name, "fn", may be any name of 16 characters or less.
A program stored on diskette may be loaded into memory using the LOAD (any
Commodore BASIC) or DLOAD (BASIC 4.0) commands.
The LOAD and DLOAD commands transfer PRG files from the specified
diskette to the computer's memory. You must specify the drive number, the
program name, and the device number. The device number will default to unit 1
which is the cassette unit.
The format for LOAD is:
Where:
The following example illustrates how a program is loaded from the diskette
into the computer memory, then executed. To do this example, first type NEW
and depress RETURN key to clear your computer's memory so that you can see
that is really works. Don't confuse the NEW command in BASIC with the NEW
disk command used to format your disk.
Example:
LOAD"0:TESTPROG",8
READY.
RUN
THIS IS A TEST
DSAVE"fn"Ddr On Udn
LOAD"dr:fn",dn
dr = the drive number from which you are loading data. It must be
0.
fn = the file name prevously specified in the SAVE command and/
or stored in the disk directory.
dn = the device number (in this case 8)
(Reading A Program From A Diskette)

LOAD and DLOAD

29

Advertisement

Table of Contents
loading

Table of Contents