hi I am calling a function recursively.but it overwrite the locale variables of that function. when function returns it overwrite the values. Regards FarhanArshad
Did you declare the function using the reentrant keyword? C51 functions are not reentrant or recursive by default. Refer to the manual: http://www.keil.com/support/man/docs/c51/c51_le_reentrantfuncs.htm And to this knowledgebase article: http://www.keil.com/support/docs/1861.htm Jon