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.
Bank Availability Test<br />
Entry:<br />
B 2; Test if bank C in use.<br />
C Bank number.<br />
Exit:<br />
NZ In use.<br />
Bank Reservation Request<br />
Entry:<br />
B 3; Set bank in C.<br />
C Bank number.<br />
Exit:<br />
NZ Already in use.<br />
What Bank is Resident<br />
Entry:<br />
B 4; Return current installed bank.<br />
Exit:<br />
A Returns the bank number (0-7) of the currrently resident bank.<br />
Note: <strong>The</strong> coding of the @BANK routine will not return an error if you try <strong>to</strong> reset<br />
a Bank Used RAM (BUR) that is "in-use" because it is not installed. <strong>The</strong> way<br />
in which bank-reset should be performed is <strong>to</strong> know which one you were using<br />
and made in-use. Note that even though @BANK permits you <strong>to</strong> reset a nonexistant<br />
bank, if you try <strong>to</strong> enable it, you will get an error since the<br />
enabling routine will not permit the selection of a bank not installed.<br />
7.6.4 @BKSP SVC-61<br />
This SVC will perform a backspace of one logical record in the referenced file.<br />
Registers Affected: AF.<br />
Entry:<br />
DE A pointer <strong>to</strong> the FCB of the file <strong>to</strong> backspace.<br />
Exit:<br />
A Error return code.<br />
Z Set if the operation was successful.<br />
7.6.5 @BREAK SVC-103<br />
This SVC is used <strong>to</strong> establish or reset a key vec<strong>to</strong>r. <strong>The</strong> condition is<br />
observed as a background interrupt task. Once activated, a will pass control <strong>to</strong><br />
your vec<strong>to</strong>red routine providing the current program counter is above the resident DOS and<br />
below HIGH$.<br />
Registers Affected: AF.<br />
Entry:<br />
HL Address of your break vec<strong>to</strong>r.<br />
HL X'0000' <strong>to</strong> res<strong>to</strong>re <strong>to</strong> system break handler.<br />
7-11