C.4.3 GPL Interface to DSRs The GPL interpreter interfaces to DSRs through the monitor. The GPL program that wants to access a DSR has to use the following GPL CALL sequence: CALL >10 DAIA 8 This will cause the monitor to start searching for a DSR with the same name as the string pointed to by CPU location 756. This scarch routine will stop comparing names at the end of the given string or at the first imbedded period, whichever comes first. On the DSR side, CPU location >56 is left pointing at the first character behind the DSR name, i.e. a period or an end of string. CPU location >54 contains the DSR name length (one word). To get the start address of the PAB in VDP RAM, the following formula has to be computed: CPU(>56) - CPU{>54) - >0A The result will point at the 1/0 OPCODE entry in the PAB. It 3s up to the DSR to check for any switches in the nama. For’ this purpose the length of the PAB name string has been given in the PAB, Comparing this length against the length given in CPU location >54 will show if the user specified more than just the OSR name. C.5 Linkage to BASIC This section describes the way the BASIC versions of the Professional Computer and the Home Computer are linked to the File Management System. This section also describes how to access PAB'c from GPL subroutines that are callable from BASIC and assume a PAB link structure has been set up by BASIC. 46 ee ee ee a ee ee ee ee oe oe ee he oe ee he ee oe