Re: A89: disabling interrupt 1


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

Re: A89: disabling interrupt 1




In a message dated 10/18/99 2:14:55 PM Eastern Daylight Time, 
e96nbr@efd.lth.se writes:

> Well, in user mode you're not allowed to change the SR. You have to do 
> something
>  like this instead:
>  
>   move.w #$2100,sr
>   trap #1   ;Puts old SR in d0
>  ...
>   code that saves d0 or doesn't alter it
>  ...
>   trap #1 ;Restore SR from what was stored in d0. You could also load d0 
with
>  #$2000.

so, to do this, l would have to save d0 to some other variable.  When is it, 
then that the interrupt 1 has to be restored?  

--TurboSoft

Visit the TURBOSOFT HOMEPAGE:  The most current Basic and C programs created 
by TurboSoft for the 89, and the most 89 web links.
<A HREF="http://turbosoft.ticalc.org/">http://turbosoft.ticalc.org/</A>


Follow-Ups: