Dear everyone: If non-reentrant funtion is interrupted ,will it cause error? In my non-reentrant funtion defined some local variables, if it is interrupted, non-reentrant funtion will not preserve local variables, It will cause error! How can I avoid this problem?
Use another register bank for your interrupt service routine by "using X" command. void INT1 (void) interrupt 2 using 1-2 ^^^^^ { }