USER'S QUICK REFERENCE: DISK COMMANDS
The user's quick reference guide will assist the user in becoming familiar with the
various commands used in both BASIC 3.0 and BASIC 4.0, and with the DOS
SUPPORT utility as well as with all Commodore disk units.
In order to make BASIC 4.0 easier to use, disk commands have been incorpo-
rated into the language. For example, with BASIC 4.0:
* DSAVE and DLOAD commands eliminate the need to specify
device number each time you store and retrieve disk files.
* Directory display is now a one-step procedure and no longer inter-
feres with the program in memory.
* It is no longer necessary to write a program to read the error
channel. The variable DS$ contains the error message.
* Formatting in now a one-step procedure through the use of HEADER
command.
Commands in BASIC 3.0 are upward compatible with BASIC 4.0. That is, if
you are familiar with BASIC 3.0, those commands will still work on the Series
8000 Computer furnished with BASIC 4.0. All disk commands available on the
2040 are upward compatible with both the 4040 and 8050.
UNIVERSAL
BASIC 3.0 DOS SUPPORT BASIC 4.0
SAVE “dr:fn”,8 SAVE”dr:fn”,8 DSAVE,”fn”,Ddr
(drive defaults to 0)
LOAD”dr:fn”,8 /dr:fn DLOAD”fn”,Ddr
(searches both drives) (drive defaults to 0)
LOAD”*”,8 /dr:fn DLOAD”fn”,Ddr
RUN RUN
LOAD”dr:fn”,8 * shifted RUN/STOP
RUN
LOAD”$0”,8 >$0 DIRECTORY or
LIST DI<shifted R>
destroys memory preserves memory preserves memory
10 OPEN1,8,15 > return ?DS$ or ?DS
20 INPUT#1,A,B$,C,D (DS is number of error
30 PRINT A,B$,C,D only)
82