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

want to go to a lable

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

Parents
  • 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.

Reply
  • 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.

Children