446 If Y is zero then the contents of A will determine the function to be carried out. A=0 Return, in A, the type of filing system in use. The value of A on exit has the following significance: 0 No filing system. 1 1200 baud cassette filing system. 2 300 baud cassette filing system. 3 Sideways ROM filing system. 4 Disc filing system. 5 Econet filing system. 6 Teletext filing system 7 IEEE filing system 8 Advanced Disc Filing System A=1 Return address of the rest of the command line in the zero page locations. A=&FF Ensure that all open files are up to date on the media. On exit X and Y are preserved, C, N, V and Z are undefined and D=0.
The interrupt state is preserved but interrupts may be enabled during the operation. OSFILE This routine, by itself, allows a whole file to be loaded or saved. The routine is entered at &FFDD and indirects via &212. On entry A indicates the function to be performed. X and Y point to an 18 byte control block anywhere in memory. X contains the low byte of the control block address and Y the high byte. The control block is structured as follows from the base address given by X and Y.