This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with Reentrant Function's Argument List

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)
			{ .... 

I am calling the function Move() from Main()as shown below...

void main()
{
	TMOD = 0X01;
	IE = 0X82;
        while(1)
	{
		Move(4,5,6);
	}

But when i read, the variables, X, Sen and Flag_Case inside the reentrant function Move(), all the three variables show up '0'. Why is this happening? And what changes do i need to do?

Thanks in advance.

Avinash

0