[Coco] Os9 Intercept

Aaron Wolfe aawolfe at gmail.com
Tue Oct 30 04:46:31 EDT 2012


You can get the current intercept settings for a process from it's
process descriptor.  F$GPrDsc is one way, I think that works in user
mode.  There may be others, I am no OS9 expert.  In the PD your
intercept info is at +$36 but if you're using os9 defs you can use the
pretty names:

P$Signal       RMB       1                   Signal Code $36
P$SigVec       RMB       2                   Signal Intercept Vector
P$SigDat       RMB       2                   Signal Intercept Data Address

hth
-Aaron

On Tue, Oct 30, 2012 at 12:42 AM, Bill Pierce <ooogalapasooo at aol.com> wrote:
>
> Hi Guys,
> In OS9, how do you reset an Intercept back to default after a program has set it?
> I have a program that runs a function that uses a signal intercept. When the function is called, the F$Icpt is set. The program will be continuously running, but the intercept will no longer be needed until the same function is called again. The lines that set the intercept can be jumped over each time, but the intercept itself does not need to in operation unless within that function, as it interferes with the rest of the program. So, how would I go about resetting the intercept address to what it was before the change. I searched through both the "C" User's guide and the OS9 Tech Reference manual and only found reference to setting the intercept.
> So, is there some way to call before the intercept is set to get the current intercept address saved before I set the intercept?
>
> Thnx
> Bill P
>
> Music from the Tandy/Radio Shack Color Computer 2 & 3
> https://sites.google.com/site/dabarnstudio/
> Bill Pierce
> ooogalapasooo at aol.com
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco



More information about the Coco mailing list