Basic Commands For Data Handling; Basic Commands Ascociated With Floppy Disk Drives - Commodore vic-1540 User Manual

Table of Contents

Advertisement

Chapter
4
BASIC COMMANDS
FOR DATA HANDLING
BASIC COMMANDS ASSOCIATED WITH FLOPPY DISK DRIVES
The BASIC commands described in this chapter, allow the user to communicate
with and transfer data to and from the disk drive.
These commands are available for ALL versions of Commodore BASIC:
OPENlfn, 8, sa, "dr:fn, ft, mode"
VERIFY "dr.fn", 8
CLOSElfn
PRINT#lfn
LOAD "dr:fn" 8
GET#lfn
SAVE "dr:fn", 8
INPUT#lfn
Where:
lfn=logical file number (any number between 1 and 255)
fh=file name supplied by user
dr=disk drive number 0 : (0 may be omitted)
8=device number (8 for disk, 2 for second cassette, 4 for printer)
sa=secondary address
ft=the file type. It may be SEQ (for sequential), USR (for user),
or PRG (for program)
mode=either READ(R) or WRITE(W).
All upper-case characters shown in format are essential for the proper execution
of a command and must be typed by use. These commands are entered via the
keyboard using unshifted characters only.
NOTE: The device number of the disk drive is set at 8 at the factory prior to
shipment. If you wish to change the device number to use multiple number of
VIC-1540 etc. Please consult your Commodore dealer (the device number may
be any number from 8 to 11)
25

Advertisement

Table of Contents
loading

Table of Contents