Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF

447 OSFILE control block The table below indicates the function performed by OSFILE for each value of A. A=0 Save a section of memory as a named file. The file’s catalogue information is also written. A=1 Write the catalogue information for the named file (disc only). A=2 Write the load address (only) for the named file (disc only). A=3 Write the execution address (only) for the named file (disc only). A=4 Write the attributes (only) for the named file (disc only). A=5 Read the named file’s catalogue information. Place the file type in A (disc only). A=6 Delete the named file (disc only).

When loading a file the byte at XY+6 (the LSB of the execution address) determines where the file will be loaded in memory. If it is zero then the file will he loaded to the address given in the control block. If non-zero then the file will be loaded to the address stored with the file when it was created. A=&FF Load the named file and read the named file’s catalogue information. The file attributes are stored in four bytes. The least significant eight bits have the following meanings (for the Econet filing system):

00 01 Address of file name, which must be terminated by &0D LSB MSB 02 03 04 05 Load address of file LSB MSB 06 07 08 09 Execution address of file LSB MSB 0A 0B 0C 0D Start address of data for write operations, or length of file for write operations LSB MSB 0E 0F 10 11 End address of data, that is byte after last byte to be written or file attributes LSB MSB