Chapter
5
ADVANCED
DISK
PROGRAMMING
This chapter provides detailed information about DOS structure and disk utility
commands. The utility commands provide the programmer with low-level func-
tions that may be used for special applications such as special disk handling
routines and random access techniques.
COMMODORE DISK OPERATING SYSTEM (DOS)
The DOS file interface controller is responsible for managing all information
between the disk controller and the IEEE-488 bus. Most disk I/O is performed
on a pipelined basis, resulting in a faster response to a requested operation.
The file system is organized by channels which are opened with the BASIC
OPEN statement. When executed with the OPEN statement, the DOS assigns a
workspace to each channel and allocates either one or two disk I/O buffer areas.
If either the workspace or the buffer is not available, a NO CHANNEL error is
generated. The DOS also uses the channel structure to search the directory, and
to delete and copy files.
41