Re: A89: disabling interrupt 1
[Prev][Next][Index][Thread]
Re: A89: disabling interrupt 1
> If you always restore the SR to the same value (like $2000) then you can simply
> put that value in d0 before calling trap 1 again.
> trap #1 alters the sr to the value in d0 (or at least parts of it).
If that is so, then once you have altered it into $2000, you can
freely write to it (i.e. you don't need the trap #1 stuff) because
this bit (the $2000) is the supervisor mode bit.
Regards,
Zoltan
Follow-Ups:
References: