Pretty much. Check for the Interrupt with the highest priority first.
What you can also do is alias the flags in PBP to a name of your choice, and then just check the alias in your program...
PressureHigh var INTCON3.0
PressureLow var INTCON3.1
.. ..
If PressureLow=1 then Panic
If PressureHigh=1 then ReallyPanic
Melanie
Bookmarks