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.
7.6.32 @FNAME SVC-80<br />
This SVC will recover the file name and extension from the direc<strong>to</strong>ry for the referenced<br />
direc<strong>to</strong>ry code and drive. It is used by the system <strong>to</strong> recover the filespec when closing a<br />
file. Although @FNAME can be used for a "direc<strong>to</strong>ry" function, @DODIR or @RAMDIR are<br />
better candidates for performing that function.<br />
Registers Affected: AF.<br />
Entry:<br />
DE Buffer <strong>to</strong> receive file name/ext<br />
B DEC of file desired<br />
C drive number of drive containing the file<br />
7.6.33 @FSPEC SVC-78<br />
This SVC will fetch a file or device specification from an input buffer. Conversion of<br />
lower case <strong>to</strong> upper case will be made.<br />
Registers Affected: AF, HL.<br />
Entry:<br />
HL A pointer <strong>to</strong> the buffer containing file specification.<br />
DE A pointer <strong>to</strong> the 32-byte File Control Block.<br />
Exit:<br />
HL Points <strong>to</strong> the terminating character found.<br />
A Will contain the terminating character.<br />
Z Set if valid file specification found.<br />
7.6.34 @GET SVC-03<br />
This SVC will fetch a byte from a logical device or a file. Note that if the DCB<br />
references the *KI device, an NZ condition with error code of 0 (A=0) will indicate that<br />
no character was available.<br />
Registers Affected: AF.<br />
Entry:<br />
DE A pointer <strong>to</strong> the DCB or FCB for the device/file.<br />
Exit:<br />
A Byte fetched or error return code.<br />
Z Set if byte was fetched without error.<br />
7.6.35 @GTDCB SVC-82<br />
This SVC will locate the address of the Device Control Block (DCB) associated with the<br />
device name passed in the invocation.<br />
Registers Affected: AF, HL.<br />
Entry:<br />
DE 2-character device name (E has 1st char, D has 2nd char). Note: If DE=0,<br />
then a pointer <strong>to</strong> the first available DCB will be returned.<br />
Exit:<br />
HL Address of the Device Control Block.<br />
Z set on no error, else error 8 (device not avail).<br />
7-24