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 ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
0-14 FILENAME/EXT:D - left justified and buffered with spaces<br />
15 Protection level (0-6)<br />
16 End of File (EOF) offset byte<br />
17 Logical Record Length (0 implies 256)<br />
18-19 Ending Record Number (ERN) of the file<br />
20-21 Space allocated for the file (in K)<br />
Free Space<br />
<strong>The</strong> SVC linkage <strong>to</strong> accomplish a retrieval of free space is as follows:<br />
Registers Affected: AF.<br />
Entry:<br />
C 255; Obtain free space information.<br />
B Should contain the logical drive (0-7) for the disk.<br />
HL A pointer <strong>to</strong> your buffer which will be passed the data.<br />
Exit:<br />
A Returns an error code if the operation encountered an error.<br />
Z Set if the SVC was successful.<br />
<strong>The</strong> <strong>to</strong>tal space allocated <strong>to</strong> files (in K) is returned in the first two bytes of<br />
the buffer while the <strong>to</strong>tal space left available (in K) is s<strong>to</strong>red in the third and<br />
fourth bytes of the buffer.<br />
7.6.66 @RDHDR SVC-48<br />
This SVC passes a function 8 <strong>to</strong> a disk driver. It is commonly used for reading sec<strong>to</strong>r<br />
header information from the next encountered sec<strong>to</strong>r ID field of a floppy disk . See<br />
chapter 4 for additional information.<br />
Registers Affected: AF [Note: DOS saves BC, IY; drivers should save any other<br />
registers they use].<br />
Entry:<br />
C Logical drive number (0-7).<br />
HL A pointer <strong>to</strong> the buffer which will receive the data transfer.<br />
Exit:<br />
A Contains an error return code, if any.<br />
Z Set if the operation was successful.<br />
7.6.67 @RDSEC SVC-49<br />
This SVC passes a function 9 <strong>to</strong> a disk driver. This is used <strong>to</strong> transfer a sec<strong>to</strong>r of data<br />
from the disk drive <strong>to</strong> your buffer. See chapter 4 for additional information.<br />
Registers Affected: AF [Note: DOS saves BC, IY; drivers should save any other<br />
registers they use].<br />
Entry:<br />
HL A pointer <strong>to</strong> the buffer <strong>to</strong> receive the sec<strong>to</strong>r of data.<br />
D Contains the logical cylinder number <strong>to</strong> read (0-255).<br />
E Contains the logical sec<strong>to</strong>r number <strong>to</strong> read (0-255).<br />
C Contains the the logical drive number.<br />
7-34