Functions, handle<>0
0 | Reads the sequential pointer of the open object.
|
1 | Writes the sequential pointer of the open file.
If PTR is moved past the end of an output file, the file is extended with
zeroes and zero returned in A. If PTR is moved past the end of an input
file, an error is generated. The EOF-error-flag is cleared. The PTR of an
open directory cannot be written.
|
2 | Reads the extent of the open object.
|
3 | Writes the extent of the open file. If the
length of the file is reduced, the end disappears. If the length is
increased, the file is extended as with function &01 and zero is returned
in A. The EOF-error-flag is cleared. The EXT of an open directory cannot
be written.
|
4 | Reads the space allocated to the open object.
This will be at least the current extent of the object, and determines how
many more bytes can be written to the object before the object has to be
extended or the write fails with a "Can't extend" error.
|
5 | Reads the EOF for the open file. If PTR=EXT
then &FFFFFFFF is returned, otherwise 0 is returned.
|
6 | Ensures the open file is allocated the specified
amount of space. Returns the actual amount of space allocated.
|
7 | Convert file handle to filename. The data word
points to a buffer to return the filename in.
|
8 | Inform underlying file system of new image stamp
in data word.
|
&80 | Return handle internal information.
Returns four bytes of data:
byte 0 = handle in internal format
byte 1-2 = fileserver station number
byte 3 = handle information:
b0: sequence number
b1: known to be a directory
b2: thought to be the URD
b3: thought to be the CSD
b4: thought to be the LIB
b5: current context
b6: EOF flag, next BGET will generate an error
b7: writable
&FD | Read/write context. If
handle<&80 then the context is read, if handle>&7F then the
context is written.
&08/&88: Currently Selected Directory
&09/&89: Currently Selected Library
&0A/&8A: User Root Directory
&FE | Returns the filing system
information word in the data word and the stream information for the
handle in A or R0. On 8-bit systems only the bottom 8 bits of the stream
information word will be returned.
b0
b1
b2
b3: Interactive stream
b4: Unbuffered stream that directly supports OSGBPB
b5: Object is a directory
b6: Object is readable
b7: Object is writable
b8: Object has been written to
b9: EOF flag, next BGET will generate an error
b10: Stream is unbuffered
b11: Stream is unopened, no other bits have any significance
b12: Stream is critical
b13: Data lost on this stream
b14: Image file busy
b15
&FF | Ensures any buffered data for the
open file is written to the media.
|
| Functions, handle=0
| 0 | Returns currently selected filing system number
in A.
| 1 | Returns address in I/O memory of command line
tail.
| 2 | Returns A=2 if early bug-ridden NFS or call is
unsupported. Returns A=1 for NFS 3.60+, A=0 for ANFS 4.00+.
| 3 | Returns libfs filing system number in A.
| 4 | Returns used space on the device with the
currently selected directory on.
| 5 | Returns free space on the device with the
currently selected directory on.
| &FD | Returns version number*10 in BCD in A and
filing system capability flags in the data word.
| &FE | Returns the last drive accessed in A.
| &FF | Ensures any buffered data for all open
files is written to the media.
| | | |