Hi all; I am using AT89S8252 device and Keil's C-language compiler. I have a 5.7 kb long program. Whenever user presses a button connected to External int 0, the control passes to INT_0_ISR I want to allways return back from ISR to a label 'option'. While the ISR normally will return to where it was interrupted. How can I achieve this please? - arun
In pure C ? You can't and you don't want to try doing so by using assembly. Doing something like that is going to seriously mess up the run-time behavior that the compiler relies on to make the C code run properly (stack and register usage, etc) and basically amounts to begging for trouble. What do you need the described behavior for ? Maybe there is a way to achieve the same goal by using correct C.
Thank u for the reply-arun
Hi Franck, Thank u for the reply-arun