---------- > From: WF AUTOMACAO > > I'm doing some C routines for my system monitor, and o would like > to know how can i save the context, and restore the context of my > C routine, using the BYTE CRAFT C. > > In interrupts, there are macros called "Savecontext" and > "Restorecontext", may i use them for save a context in a normal > subroutine? Save and restore context in the headers files are designed for the interrupt service routines. For general purpose save and restore you may need to save the Math scratch pad locations as well in some cases. It should be noted that the save and restore context routines are different for the various Microchip family members. Walter Banks Byte Craft Limited