[comp.sys.mac] LSC DA's & SF

betz@runx.ips.oz (Andrew Betzis) (06/05/87)

	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