Or alternatively, use the -CpGPAGE option.
-CpGPAGE=0x10
When this option is used, the compiler will generate the register save code for GPAGE in all interrupt functions, but only if the GPAGE could possibly be modified.
The #pragma TRAP_PROC SAVE_ALL_REGS has the drawback that the compiler really saves all page registers, even the ones not used.
Daniel
Message Edited by CompilerGuru on 05-18-200602:38 PM