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.

Direc<strong>to</strong>ry <strong>to</strong> Buffer<br />

Entry:<br />

B 1; Function <strong>to</strong> stuff your buffer with direc<strong>to</strong>ry information.<br />

C <strong>The</strong> logical drive number (0-7) of the selection.<br />

HL A pointer <strong>to</strong> your buffer. <strong>The</strong> data returned by @DODIR is the first 16-bytes<br />

of each direc<strong>to</strong>ry record followed by the ERN. <strong>The</strong> buffer will be terminated<br />

by an X'FF'.<br />

Display Filespecs Matching EXT<br />

Entry:<br />

B 2; Function <strong>to</strong> display the direc<strong>to</strong>ry of visible files <strong>to</strong> *DO. <strong>The</strong> display is<br />

limited <strong>to</strong> files matching the given extension.<br />

C <strong>The</strong> logical drive number (0-7) of the selection.<br />

HL A pointer <strong>to</strong> a 3-character file extension. <strong>The</strong> use of a dollar sign in any<br />

position represents a global match.<br />

Direc<strong>to</strong>ry Matching EXT <strong>to</strong> Buffer<br />

Entry:<br />

B 3; Function <strong>to</strong> stuff your buffer with direc<strong>to</strong>ry information. <strong>The</strong> data is<br />

limited <strong>to</strong> files matching the given extension.<br />

C <strong>The</strong> logical drive number (0-7) of the selection.<br />

HL A pointer <strong>to</strong> your buffer. This pointer is also interpreted <strong>to</strong> be a pointer<br />

<strong>to</strong> a 3-character file extension. <strong>The</strong> use of a dollar sign in any position<br />

represents a global match. Note that this function implies that the start of<br />

your buffer is stuffed with the file extension <strong>to</strong> be matched.<br />

Obtain Free Space<br />

Entry:<br />

B 4; Function <strong>to</strong> stuff your buffer with free space information. <strong>The</strong><br />

information passed will be DISK NAME and DISK DATE in positions 1-16; <strong>to</strong>tal<br />

space on the disk (in K) in positions 17-18; and FREE SPACE available (in K)<br />

in positions 19-20.<br />

C <strong>The</strong> logical drive number (0-7) of the selection.<br />

HL A pointer <strong>to</strong> your buffer.<br />

7.6.26 @DSP SVC-02<br />

This SVC will output a byte <strong>to</strong> the video display devspec *DO.<br />

Registers Affected: AF, DE.<br />

Entry:<br />

C Byte <strong>to</strong> display<br />

Exit:<br />

Z Set if no error was encountered, otherwise reset (i.e. NZ).<br />

A Contains the error code under an NZ condition.<br />

7-18

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

Saved successfully!

Ooh no, something went wrong!