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.
Registers Affected: AF.<br />
Entry:<br />
DE A pointer <strong>to</strong> the DCB or FCB <strong>to</strong> control output.<br />
C Byte <strong>to</strong> output.<br />
7.6.15 @DATE SVC-18<br />
Get <strong>to</strong>day's date in display format (XX/XX/XX). <strong>The</strong> SVC can also be used <strong>to</strong> obtain the<br />
address of the binary s<strong>to</strong>rage for the system date. This may be useful for hardware clock<br />
add-ons.<br />
Registers Affected: AF, BC, DE.<br />
Entry:<br />
HL Buffer area <strong>to</strong> receive date string.<br />
Exit:<br />
DE Returns a pointer <strong>to</strong> the 5-byte binary date s<strong>to</strong>rage:<br />
DATE+0 = year in excess 1900;<br />
DATE+1 = day (1-31);<br />
DATE+2 = month (1-12);<br />
DATE+3 = bits 0-7 of the year's day;<br />
DATE+4 = holds bit-8 of the year's day in bit-0, the day of the week (1-7)<br />
in bits 1-3, and bit-7 is set for a leap year.<br />
7.6.16 @DCINIT SVC-42<br />
This SVC passes a function 2 <strong>to</strong> a disk driver. It is commonly used for disk controller<br />
initializing. See chapter 4 for additional information.<br />
Registers Affected: AF [Note: DOS saves BC, IY; drivers should save any other<br />
registers they use].<br />
Entry:<br />
C Logical drive number (0-7).<br />
Exit:<br />
A Error return code, if any.<br />
Z Set if the operation was successful.<br />
7.6.17 @DCRES SVC-43<br />
This SVC passes a function 3 <strong>to</strong> a disk driver. It is commonly used for disk controller<br />
resetting. See chapter 4 for additional information.<br />
Registers Affected: AF [Note: DOS saves BC, IY; drivers should save any other<br />
registers they use].<br />
Entry:<br />
C Logical drive number (0-7).<br />
Exit:<br />
A Error return code, if any.<br />
Z Set if the operation was successful.<br />
7-15