[A83] Re: MirageOS user installable interrupt


[Prev][Next][Index][Thread]

[A83] Re: MirageOS user installable interrupt




Yeah, sorry about the confusion.  When you run setupint, it completely
reloads the interrupt into memory based on what bits you set in register A.
Any bits that are reset will not be loaded (or will be unloaded if you want
to think of it that way).  IE.  If you ran setupint with A=code for tasker,
and then again with A=code for APD, only the APD interrupt would be active
(you'd have to load register A with APD *and* tasker bits set, then run
setupint to get both of them)..
Basically, just load register A with the bits set for whatever you want to
be active at that moment.

Hope that makes more sense,
-Dan Englender

----- Original Message -----
From: "Henk Poley" <HPoley@DDS.nl>
To: <assembly-83@lists.ticalc.org>
Sent: Tuesday, May 22, 2001 9:23 AM
Subject: [A83] Re: MirageOS user installable interrupt


>
> When you call setupint you need to set register A accordingly to what you
> want to enable (according to the MirageOS docs). But how do you disable
> anything? Is it that if the certain bit of A is set it is switched on and
> if it's reset the feature is switched of?
>
> Your (?) docs are quite unclear about this...
>
> Henk Poley
>
> ----------
> > Van: Dan Englender <dan@calc.org>
> >
> > You don't need to remove it.  When your program quits, MirageOS will
> > automatically set the correct interrupt stuff.  If you want to remove
it,
> > you can run setupint again with the code for just tasker interrupt (or
if
> > you're in a hurry, just execute IM 1), but if you're just talking about
> when
> > you quit back to MirageOS, you don't have to worry about it.
> >
> > -Dan Englender
> >
> > ----- Original Message -----
> > From: "Henk Poley" <HPoley@DDS.nl>
> >
> > > Oh, and once I've installed the interrupt, how do I remove it again?
> > > (do I need to?)
> > >
> > > Henk Poley
>
>
>




References: