I have a reentrant function as shown below...
void Move(char X, char Sen, char Flag_Case) reentrant { while(1) { if(Flag_Case == 1) { switch(X) { ....
void main() { TMOD = 0X01; IE = 0X82; while(1) { Move(4,5,6); }
how do i initialise the stack pointer for those reentrant functions???? You should not need to. The functions using a particular memory model share the appropriate simulated stack - e.g. all SMALL memory model functions share the simulated stack in idata.
Ok, now i get it. Thanks Franck.