I have two different programs lets call A and B. I have a function in A called A1 which has local variables. this Calls a function in B named B1 which calls a different function in A called A2 which also has local variables. Both A1 and A2 use the same Xdata space but do not call each other. when A2 executes it ovrewrites A1's local variables. When A2 returns to B1 which then returns to A1 the local variables in A1 now have the same values as A2's local variables. Is there any way in uVision 6.10 that I can use to let these two functions know about each others local variables, or is there some other answer.