C.3 Implementation As mentioned in section C.2, the DSRs should present a uniform interface between the File Management System and the peripherals. This section will give details about implementing this interface. C.3.1 Peripheral Access Block Definition All DSRs are accessed through a Peripheral Access Block (PAB). The definition for the PAB is the same for every peripheral. The only difference between peripherals, as seen by any application program, is that same peripherals will not support every upLion provided for tn the PAB. All PAB's are physically located in VDP RAM. They are created before the OPEN call and are not ta he released until the 1/0 has been closed fur that device or file. Figure C.3.1.1 shows the layout of a PAB. The PAB has a variable length, depending upon the length of the file descriptor. The meaning of the bytes and bits within the PAB is explained below, Byte Bit Meaning - 1/0 opcode Contains opcode for the current 1/0 call. A description of the valid opcodes are given in section C.3.2, - Flagbyte/status-~ All the information the system needs about file-type, mode of operation, and data-type is stored in this byte. The meaning of the bits within this flagbyte is: '-- Filetype often Mode of operation soso os en Datatype acco -~- Recordtype 37