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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Entry:<br />

C Contains the character <strong>to</strong> print.<br />

Exit:<br />

A Will contain the error code if the SVC was unsuccessful.<br />

Z Set if the SVC was successful.<br />

7.6.64 @PUT SVC-04<br />

This SVC will output a byte <strong>to</strong> a logical device or a file.<br />

Registers Affected: AF.<br />

Entry:<br />

DE A pointer <strong>to</strong> the Device or File Control Block of the output device.<br />

C Contains the byte <strong>to</strong> output.<br />

Exit:<br />

A Will contain an error return code if the SVC was unsuccessful.<br />

Z Set if the SVC was successful.<br />

7.6.65 @RAMDIR SVC-35<br />

This SVC provides abbreviated information from the direc<strong>to</strong>ries of visible files as well<br />

as free space information for a disk. It will provide information similar <strong>to</strong> the RAMDIR<br />

vec<strong>to</strong>r on earlier Model III <strong>TRSDOS</strong> 1.3. Register C is used <strong>to</strong> pass a function code <strong>to</strong> the<br />

SVC. Linkage is as follows:<br />

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

Registers Affected: AF.<br />

Entry:<br />

C 0; Obtain direc<strong>to</strong>ry records of all visible files.<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 />

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

Registers Affected: AF.<br />

Entry:<br />

C 1-254; Obtain the direc<strong>to</strong>ry record for the file whose Direc<strong>to</strong>ry Entry Code<br />

(DEC) is equal <strong>to</strong> register C+1.<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> information passed <strong>to</strong> your buffer will consist of 22-byte records. <strong>The</strong> buffer<br />

is terminated by a plus sign ("+"). Each record is fielded as follows:<br />

7-33

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

Saved successfully!

Ooh no, something went wrong!