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.
@WRSEC SVC-53 Write a disk sec<strong>to</strong>r<br />
@WRSSC SVC-54 Write a disk direc<strong>to</strong>ry sec<strong>to</strong>r<br />
@WRTRK SVC-55 Write a disk track (format data)<br />
7.5.5 File Access<br />
Name Svc # Purpose<br />
@GET SVC-03 Character input from a device/file<br />
@PUT SVC-04 Send a character <strong>to</strong> a device/file<br />
@BKSP SVC-61 File record backspace<br />
@CKEOF SVC-62 Check for file's end-of-file (EOF)<br />
@LOC SVC-63 Return file's current record number<br />
@LOF SVC-64 Return file's ending record number<br />
@PEOF SVC-65 Position <strong>to</strong> the end of a file<br />
@POSN SVC-66 Position <strong>to</strong> a designated record of a file<br />
@READ SVC-67 Read a file record<br />
@REW SVC-68 Rewind a file <strong>to</strong> its beginning<br />
@RREAD SVC-69 Reread the last sec<strong>to</strong>r read<br />
@RWRIT SVC-70 Rewrite the last sec<strong>to</strong>r written<br />
@SEEKSC SVC-71 Seek a record of a file<br />
@SKIP SVC-72 Skip the next record of a file<br />
@VER SVC-73 Write then verify a file record<br />
@WEOF SVC-74 Direc<strong>to</strong>ry update a file's end-of-file<br />
@WRITE SVC-75 Write a file record<br />
7.5.6 File Control<br />
Name Svc # Purpose<br />
@RENAM SVC-56 Rename a file on disk<br />
@REMOV SVC-57 Remove a file from disk<br />
@INIT SVC-58 Open a new or existing file<br />
@OPEN SVC-59 Open an existing file<br />
@CLOSE SVC-60 Close an open disk file<br />
@LOAD SVC-76 Load a program file<br />
@RUN SVC-77 Run a program given its filespec<br />
@FSPEC SVC-78 Fetch and parse a file specification<br />
@FEXT SVC-79 Fetch a default file extension<br />
@FNAME SVC-80 Obtain filespec given DEC and drive<br />
7.5.7 System Control<br />
Name Svc # Purpose<br />
@IPL SVC-00 Reboot the system<br />
@VDCTL SVC-15 Various video control functions<br />
@PAUSE SVC-16 Delay execution for a time period<br />
@ABORT SVC-21 Abnormal program exit<br />
@EXIT SVC-22 Exit program with return code<br />
@CMNDI SVC-24 Interpret and execute a command<br />
@CMNDR SVC-25 Execute a command and return<br />
@ERROR SVC-26 Post an error message<br />
@DEBUG SVC-27 Enter system DEBUG package<br />
@HIGH$ SVC-100 Obtain or alter HIGH$/LOW$<br />
@FLAGS$ SVC-101 Obtain system flags pointer<br />
@BANK SVC-102 RAM bank switching<br />
@BREAK SVC-103 Establish vec<strong>to</strong>r<br />
7-8