29.12.2012 Views

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 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

the first granule in use is the second granule on the cylinder. If there are<br />

6 sec<strong>to</strong>rs per granule, sec<strong>to</strong>r 6 would start the extent. A "2" would indicate<br />

that the first granule in use is the third on the cylinder. If there are 6<br />

sec<strong>to</strong>rs per granule, then the first sec<strong>to</strong>r in use would be sec<strong>to</strong>r 12.)<br />

Bits 4-0 Contain the quantity of contiguous granules in the extent. <strong>The</strong> value is<br />

relative <strong>to</strong> 0. <strong>The</strong>refore a "0" value implies one granule, "1" implies two,<br />

and so forth. Since the field is 5 bits, it contains a maximum of X'1F' or<br />

31, which would represent 32 contiguous granules.<br />

5.4.11.2 Extent Field 2 - <br />

Structured the same as 1.<br />

5.4.11.3 Extent Field 3 - <br />

Structured the same as 1.<br />

5.4.11.4 Extent Field 4 - <br />

Structured the same as 1.<br />

5.4.12 FXDE LINK FLAG - <br />

This field is a flag noting whether or not a link exists <strong>to</strong> an extended direc<strong>to</strong>ry record.<br />

If no further direc<strong>to</strong>ry records are linked, the byte will contain X'FF'. If the value is<br />

X'FE', a link is recorded <strong>to</strong> an extended direc<strong>to</strong>ry entry.<br />

5.4.13 FXDE LINK POINTER - <br />

This is the forward link <strong>to</strong> the extended direc<strong>to</strong>ry noted by the FXDE LINK FLAG. <strong>The</strong> link<br />

pointer is the Direc<strong>to</strong>ry Entry Code (DEC) of the extended direc<strong>to</strong>ry record. <strong>The</strong> FXDE will<br />

then contain the Direc<strong>to</strong>ry Entry Code of this direc<strong>to</strong>ry entry in the FLAG field and the<br />

month sub-field of the DATE field. This other DEC becomes the backward link.<br />

Figure 5-8 represents one direc<strong>to</strong>ry entry record illustrating a file with two extents.<br />

=============================================================================<br />

| |<br />

| |- ATTRIBUTES [active direc<strong>to</strong>ry entry record] |<br />

| | |- FLAGS [Modified and not backed up] |<br />

| | | |- DATE of last modification [July 15, 1983] |<br />

| | | | |- EOF OFFSET [position <strong>to</strong> PUT next byte = 189] |<br />

| | | | | |- LRL [256] |<br />

| | | | | | |- Name [HITINFO] |<br />

| | | | | | | |- Extension [SCR] |<br />

| -- ----- -- -- ----------------------- -------- |<br />

| 10 47 7B BD 00 48 49 54 49 4E 46 4F 20 53 43 52 |<br />

| 96 42 96 42 25 00 1D 46 23 40 FF FF FF FF FF FF |<br />

| ----- ----- ----- ----- ----- ----- ----- ----- |<br />

| | | | | | | | |- FXDE link [no FXDE] |<br />

| | | | | | | |- Extent 4 [unused] |<br />

| | | | | | |- Extent 3 [unused] |<br />

| | | | | |- Extent 2 [starts cyl 35, gran 2, 1 gran] |<br />

| | | | |- Extent 1 [starts cyl 29, gran 2, 7 grans] |<br />

| | | |- ERN [ 37 sec<strong>to</strong>rs written ] |<br />

| | |- User PASSWORD [blanks] |<br />

| |- Owner PASSWORD [blanks] |<br />

| |<br />

=============================================================================<br />

Figure 5-8: Illustration of a direc<strong>to</strong>ry record entry<br />

5-13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!