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.71 @REMOV SVC-57<br />
This SVC will remove a file. <strong>The</strong> FCB must be in an open condition prepared by @OPEN or<br />
@INIT. <strong>The</strong> file's direc<strong>to</strong>ry will be updated by resetting the activity bit (bit-4 of<br />
DIR+0), the corresponding Direc<strong>to</strong>ry Entry Code (DEC) in the Hash Index Table (HIT ) will<br />
be set <strong>to</strong> zero, and the space occupied by the file will be deallocated from the Granule<br />
Allocation Table (GAT). <strong>The</strong> 32-byte FCB will be set <strong>to</strong> zeroes upon successful commpletion<br />
of the file's removal. If the control block contained data appropriate <strong>to</strong> an opened<br />
device, the @REMOVE SVC will treat the request as if it were an @CLOSE request. Devices<br />
can only be removed via the RESET library command.<br />
Registers Affected: AF.<br />
Entry:<br />
DE A pointer <strong>to</strong> the open File Control Block (FCB) of the file.<br />
Exit:<br />
A Will contain an error code if an error is encountered.<br />
Z Set if no error is detected.<br />
7.6.72 @RENAM SVC-56<br />
This SVC can be used <strong>to</strong> change the filename or extension fields of a file s<strong>to</strong>red on disk.<br />
<strong>The</strong> access protection level must permit renaming for the operation <strong>to</strong> be successful.<br />
Registers Affected: AF.<br />
Entry:<br />
DE A pointer <strong>to</strong> the File Control Block (FCB) containing the filespec of the<br />
file <strong>to</strong> be renamed.<br />
HL A pointer <strong>to</strong> the FCB containing the new filename/extension.<br />
Exit:<br />
A Will contain an error code if an error is encountered.<br />
Z Set if no error is detected.<br />
7.6.73 @REW SVC-68<br />
This SVC will rewind a file <strong>to</strong> its beginning and reset the 3-byte NRN pointer <strong>to</strong> 0. <strong>The</strong><br />
next record that will be transferred for I/O with a @READ/@WRITE request will be the<br />
first record of the file.<br />
Registers Affected: AF.<br />
Entry:<br />
DE A pointer <strong>to</strong> the FCB for the file that you want <strong>to</strong> rewind.<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.74 @RMTSK SVC-30<br />
This SVC will remove an interrupt level task from the Task Control Block Vec<strong>to</strong>r Table<br />
(TCBVT). See Chapter 8, Appendix, on TASK PROCESSOR for detailed information on the use<br />
of this SVC.<br />
Registers Affected: AF, DE, HL.<br />
Entry:<br />
C Contains the task assignment slot (0-11) <strong>to</strong> remove.<br />
7-36