>Making it general is presumably as simple as having two functions and 
>scattering those throughout the code where needed:
>
>oldstate = maskinterrupts() -- returns previous GIE value
>...
>restoreinterrupts(oldstate)   -- puts it back.
>
>var bit GIE_savestate

GIE_savestate=INTCON_GIE
INTCON_GIE=false

...
INTCON_GIE=GIE_savestate


Well, without the lib it's one line more. Is it worth the effort? Your decision.

Greets,
Kiste

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to