The Programmer's Guide to TRSDOS Version 6 - Tim Mann's Home ...
The Programmer's Guide to TRSDOS Version 6 - Tim Mann's Home ...
The Programmer's Guide to TRSDOS Version 6 - Tim Mann's Home ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
containing the disk's direc<strong>to</strong>ry. <strong>The</strong> system attempts <strong>to</strong> maintain the integrity of this<br />
field by using the status returned when the driver reads a system sec<strong>to</strong>r in contrast <strong>to</strong> a<br />
non-system sec<strong>to</strong>r (chapter 5 discusses the use of data address mark conventions in disk<br />
sec<strong>to</strong>rs). If the system expects <strong>to</strong> be reading a direc<strong>to</strong>ry sec<strong>to</strong>r but does not get the<br />
error code 6 ("Attempted <strong>to</strong> read system data sec<strong>to</strong>r"), it will read the BOOT sec<strong>to</strong>r and<br />
obtain the direc<strong>to</strong>ry cylinder s<strong>to</strong>rage byte located therein for a second attempt <strong>to</strong> read<br />
the direc<strong>to</strong>ry sec<strong>to</strong>r. After an unsuccessful second attempt (including whatever retries<br />
are performed per attempt by the driver), the system posts a read or write error<br />
depending on the original request. This error will eventually be classified as a GAT , HIT<br />
or DIRECTORY error if the attempt was an I/O request for the GAT, HIT or a direc<strong>to</strong>ry<br />
entry sec<strong>to</strong>r respectively. Realizing that most hard disk controllers do NOT support a<br />
data address mark convention, the hard disk driver must simulate the READ SYSTEM SECTOR<br />
error code when an @RDSEC or @VRSEC request is made <strong>to</strong> the direc<strong>to</strong>ry cylinder. Since the<br />
only indication of where the direc<strong>to</strong>ry is located is contained in this field, it is<br />
paramount <strong>to</strong> the functioning of the hard disk environment that this field be correctly<br />
maintained. <strong>The</strong> system's LOG command will always reload this field with the BOOT sec<strong>to</strong>r's<br />
direc<strong>to</strong>ry cylinder pointer. Thus, it may be necessary <strong>to</strong> highlight the function of LOG in<br />
any written information pertinent <strong>to</strong> the hard disk system user.<br />
____________________________________________________________________<br />
| | | | | | | | | | |<br />
| | VECTOR | FLAG | FLAG | CUR | MAX |H M S| G S | DIR |<br />
|C3/C9| ADDRESS | 1 | 2 | CYL | CYL |D A E| P P | CYL |<br />
|_____|______|______|______|______|______|______|S__X_C|_T__G_|______|<br />
Figure 4-1: Drive Control Table Record<br />
4-8