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.

7.6.8 @CKDRV SVC-33<br />

This routine will check a drive reference <strong>to</strong> ensure that the drive is in the system and a<br />

formatted diskette is in place. It will also "log" the disk as far as density, number of<br />

sides, and direc<strong>to</strong>ry cylinder so that the Drive Control Table information is correct.<br />

Registers Affected: AF.<br />

Entry:<br />

C Logical drive number<br />

Exit:<br />

Z If drive is ready.<br />

NZ If drive is not ready<br />

A Indeterminate and irrelevant.<br />

CF Set if disk is write protected.<br />

@CKEOF SVC-62<br />

This SVC will check for the end-of-file at the current logical record number.<br />

Registers Affected: AF.<br />

Entry:<br />

DE A pointer <strong>to</strong> the FCB for the file <strong>to</strong> check.<br />

Exit:<br />

A Error return code. If not X'1C', then some other error has been encountered.<br />

It is necessary <strong>to</strong> get NZ and A=X'1C' for the proper EOF indication.<br />

Z Set if not at the end of file and no error is encountered.<br />

7.6.9 @CKTSK SVC-28<br />

This SVC will check if the referenced task slot (0-11) is available for use. See Chapter<br />

8, the Appendix, on TASK PROCESSOR for further details.<br />

Registers Affected: AF, HL.<br />

Entry:<br />

C => <strong>The</strong> task slot number (0-11).<br />

Exit:<br />

Z Indicates that the task slot is available.<br />

NZ Indicates that the task slot is in use.<br />

7-13

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

Saved successfully!

Ooh no, something went wrong!