Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!munnari!moncskermit!basser!metro!ipso!runx!betz From: betz@runx.ips.oz (Andrew Betzis) Newsgroups: comp.sys.mac Subject: LSC DA's & SF Message-ID: <943@runx.ips.oz> Date: Thu, 4-Jun-87 22:50:48 EDT Article-I.D.: runx.943 Posted: Thu Jun 4 22:50:48 1987 Date-Received: Tue, 9-Jun-87 07:00:25 EDT Organization: RUNX Un*x Timeshare. Sydney, Australia. Lines: 11 Has anyone had experience with LSC's DAs and the SFGetFile filter proc. LSC, when compiling DAs, uses register A4 from global addressing, but when SFGetFile calls your filter function, then register A4 is corrupted and thus no global data is accessable. To get around this problem I have saved A4 ( using the asm{} directive) in a low memory global (saved contents of low memory global in DA's memory first). Then when the filter function is first entered, A4 is restored. Is there at neater way to do this ? Smile, andrew betzis ACSnet: betz@runx.ips.oz JANET: runx.ips.oz!betz@ukc ARPA: betz%runx.ips.oz@seismo.css.gov CSNET: betz@runx.ips.oz UUCP: {enea,hplabs,mcvax,prlb2,seismo,ubc-vision,ukc}!munnari!runx.ips.oz!betz