C.4 DSR Operations This section describes how a variety of DSRs should react on the different 1/0 calls. It also discusses detailed software operations descriptions such as available registers and memory. C.4.1 DSR Actions and Reactions In the Home Computer File Management System, several assumptions are made about the way tn which DSRs should react on conditions such as errors, special 1/0 modes, defaults, etc. This section is intended to explain the reactions of a DSR on these conditions. C.4.1.1 Error Conditions C.4.1.1.1. Non-existing DSRs If a non-existing DSR is called by an application program, the File Management System will automatically return with the COND bit set. In this case, no USR has actually been catled, so the error code will show no errors. The DSR search mechanism of the File Management System takes care of searching for the requested DSR. It tries to match the file descriptor to the DSR entries in the system. The matching algorithm matches the end of the descriptor, or the first period, whichever comes first. This enables the applications program to add special information for the DSR in the file descriptor, such as filename, BAUD-rate, print-width, character set, etc. C.4.1.1.2 Usk-detected -rrors DSR-detected errors (see section C.3.4) should be indicated in the flag byte of the PAB. It is the application program's responsibility to clear this flag byte before every 1/0 call, and check it after the 1/0 call. This type of error is NOT indicated with the COND bit. The DSR may provide additional information about the error type in the I/0 opcode byte, although it is good practice not to destroy the least significant four bits of this byte, since they specify the 1/0 call. At no time should the DSR use bits zero~-four of the flagbyte for error indication, since these bits might contain vital system information about the file device. 44