445 If A=0 on entry then a file, or all files, will be closed depending on the value of Y. Y=0 will close all files, otherwise the file whose channel number is given in Y will be closed. On exit C, N, V and Z are undefined and D=0. The interrupt state is preserved, however interrupts may be enabled during the operation. OSGBPB The operating system call to get or put a block of bytes to or from a file which has been opened with OSFIND. The routine is entered at &FFD1 and vectors via &21A. This call is not available on the cassette filing system, and is fully documented in the appropriate disc filing system user guides.
OSBPUT Writes (puts) the byte in A to the file previously opened using OSFIND. The routine is entered at &FFD4 which indirects through &218. On entry Y contains the channel number allocated by OSFIND. On exit A, X and Y are preserved, N, V and Z are undefined and D=0. The interrupt state is preserved but interrupts may be enabled during the operation. OSBGET Gets (reads) a byte from a file into A. The file must have been previously opened using OSFIND and the channel number allocated must be in Y. The routine is entered at &FFD7 which indirects via &216. On exit C=0 indicates a valid character in A.
C=1 indicates an error and A indicates the type of error, A=&FE indicating an end of file condition. X and Y are preserved, N, V and Z are undefined and D=0. The interrupt state is preserved but interrupts may be enabled during the operation. OSARGS This routine enables a file’s attributes to be read from file or written to file. The routine is entered at &FFDA and indirects via &214. On entry X must point to four locations in zero page and Y contains the channel number. if Y is non-zero then A will determine the function to be carried out on the file whose channel number is in Y. A=0 Read sequential pointer. A=1 Write sequential pointer.
A=2 Read length A=&FF Ensure that this file is up to date on the media.