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.

in this operation, an error will be returned. <strong>The</strong> Next Record Number (NRN) contained in<br />

the FCB will be changed accordingly.<br />

Registers Affected: AF.<br />

Entry:<br />

DE A pointer <strong>to</strong> the FCB for the file <strong>to</strong> skip.<br />

Exit:<br />

A Will contain an error return code if an error was encountered.<br />

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

7.6.84 @SLCT SVC-41<br />

This SVC will pass a function code 1 <strong>to</strong> a disk driver. See chapter 4 for additional<br />

information. <strong>The</strong> function will select a drive. <strong>The</strong> appropriate time delay specified in<br />

your configuration (SYSTEM (DELAY=Y/N)) should be undertaken if the drive selection<br />

requires it.<br />

Registers Affected: AF [Note: DOS saves BC, IY; drivers should save any other<br />

registers they use].<br />

Entry:<br />

C Contains the logical drive number (0-7).<br />

Exit:<br />

A Will contain an error return code if an error was encountered.<br />

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

7.6.85 @SOUND SVC-104<br />

This SVC will interface <strong>to</strong> the sound genera<strong>to</strong>r if one is provided with the computer. Note<br />

that the maskable interrupts are disabled during the duration of the <strong>to</strong>ne generation. <strong>The</strong><br />

routine should function the same regardless of FAST/SLOW. All regs except the accumula<strong>to</strong>r<br />

are left unchanged. <strong>The</strong> Z-flag is always set on exit. For those genera<strong>to</strong>rs capable of<br />

multiple sounds, the linkage is as follows:<br />

Registers Affected: AF.<br />

Entry:<br />

B Contains a function code packed as follows:<br />

Bits 0-2 <strong>to</strong>ne selection (0-7) with 0=highest & 7=lowest.<br />

Bits 3-7 Contain the <strong>to</strong>ne duration (0-31) with 0=short, 31=long. Short<br />

approx 3/32 sec, long approx 3 sec.<br />

7.6.86 @STEPI SVC-45<br />

This SVC passes a function 5 <strong>to</strong> a disk driver. It is commonly used for specifying a stepin<br />

controller command. See chapter 4 for more 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 />

7-39

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

Saved successfully!

Ooh no, something went wrong!