Showing changes from revision #2 to #3:
Added | Removed | Changed
Entry | |
---|---|
R0 | 0 |
R1 | Drive number |
R2 | Disc address to read from |
R3 | Pointer to buffer |
R4 | Length to read into buffer |
R5 | Pointer to |
R8 | Pointer to Filecore instance private word |
Exit | |
---|---|
R0 | Preserved |
R1 | Preserved |
R2 | Preserved |
R3 | Preserved |
R4 | Preserved |
R5 | Preserved |
R8 | Preserved ? |
The purpose of this call is to mount a disc, reading in the data asked for.
For a floppy disc, and for a hard disc where bit 4 of the descriptor block flags is set, this call asks the given filing system to first identify the disc’s format. The suggested density to try first is given in the disc record; if this is not successful, the filing system should then try other densities. The following order is suggested:
Once the filing system has identified the disc’s format, it fills in the ‘log2secsize’, ‘secspertrack’, ‘heads’, ‘density’, ‘lowsector’ and ‘root’ values in the disc record.
Having filled in the disc record, the filing system then reads in the data asked for.
For hard discs where bit 4 of the descriptor block flags is clear, this merely asks the given filing system to read in the data asked for. This typically necessitates it reading the boot block of the disc; if the disc doesn’t have one, the filing system generates one itself.