Newsgroups: comp.sys.mac.programmer
Path: utzoo!utgpu!watserv1!watmath!att!cbnewsl!cbnewsk!ech
From: ech@cbnewsk.att.com (ned.horvath)
Subject: Re: Need jGNEFilter help
Organization: AT&T Bell Laboratories
Distribution: na
Date: Thu, 29 Nov 90 20:53:11 GMT
Message-ID: <1990Nov29.205311.25013@cbnewsk.att.com>
References: <917@gagme.chi.il.us>
Lines: 29

From article <917@gagme.chi.il.us>, by essam@gagme.chi.il.us (Essam Khairullah):
...
> I called Symantec (I'm using THINK C 4.0) and they suggested I try using
> the low-memory global jGNEFilter instead of actually patching GNE.

> I must be doing something wrong, because now even worse problems occur
> than when I just patched GNE itself...
> Here's a sample of the code I'm using:
...
> asm		/* Restore saved registers */
> 	{
> 	move.L saveD0, D0;
> 	move.L saveD1, D1;
> 	move.L saveA1, A1;
> 	move.L saveA7, A7;
> 	}
> oldJGNEFilter;	/* Call original JGNEFilter */
> RestoreA4();	/* Clean things up and return */
> }


Two problems: first, oldJGNEFilter may be nil or odd, in which case you
don't want to call it(!)  Second, TechNote 85 explicitly suggests that
you set the (boolean) return code at 4(a7), which is in your local
variable space.

Hope that helps...

=Ned Horvath=
