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 ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
7.6.22 @DIRWR SVC-88<br />
This SVC will write the system buffer, SBUFF$, back <strong>to</strong> the disk direc<strong>to</strong>ry sec<strong>to</strong>r that<br />
contains the direc<strong>to</strong>ry entry of the DEC specified in the calling linkage. See the<br />
sections on HASH INDEX TABLE and DIRECTORY RECORD FORMAT for additional information.<br />
Registers Affected: AF, HL.<br />
Entry:<br />
B Direc<strong>to</strong>ry Entry Code of the file.<br />
C Logical drive number (0-7).<br />
Exit:<br />
A Error return code, if any.<br />
Z set if no error.<br />
7.6.23 @DIV16 SVC-94<br />
This SVC will perform a division of a 16-bit unsigned integer by an 8-bit unsigned<br />
integer.<br />
Registers Affected: AF, HL.<br />
Entry:<br />
HL Should contain the dividend value.<br />
C Should contain the divisor value.<br />
Exit:<br />
HL Returns the resultant value.<br />
A Returns the remainder value.<br />
7.6.24 @DIV8 SVC-93<br />
This SVC performs an 8-bit unsigned integer divide.<br />
Registers Affected: AF, E.<br />
Entry:<br />
E Should contain the dividend value.<br />
C Should contain the divisor value.<br />
Exit:<br />
A Returns the resultant value.<br />
E Returns the remainder value.<br />
7.6.25 @DODIR SVC-34<br />
This SVC will capture selected direc<strong>to</strong>ry information for the logical drive referenced in<br />
the SVC's invocation and either pass the information <strong>to</strong> your designated buffer or display<br />
formatted information on the *DO device. A function number is passed in register B <strong>to</strong><br />
control the desired output.<br />
Registers Affected: AF.<br />
Display Filespecs<br />
Entry:<br />
B 0; Function <strong>to</strong> display the direc<strong>to</strong>ry of visible files <strong>to</strong> *DO.<br />
C <strong>The</strong> logical drive number (0-7) of the selection.<br />
7-17