[QUOTE=Jerson;77773]
A tiny warning, the PBPro compiler doesn't support the CONTEXT RESTORE command. You should also read up on Darrel Taylor's instant interrupts to get this working smoothly under PBPro. The interrupts supported by PBPro are too primitive to achieve anything time critical.
[QUOTE]

Thanks Jerson (sorry to call you Jason before), where can I read about Darrel Taylor's instant interrupts? & can you advise me of what will be the replacement code for CONTEXT RESTORE (what does it do?))

Thanks

P.S: I know that it may be too much to ask, but can someone please make important corrections to this code according to PBPro, I think I will be able to adjust the rest according to my need (atleast I hope)