hc12,can i return from interrupt and jump elsewhere?



Hello from Milan ,Italy,
i'm programming a 9s12 uC in C language,with occasional assembly inserts;

the question is:

a function myfunc() is runnin,and an external events calls an interrupt
service routine,is it possible,once the interrupt did its job,to avoid to
continue with my func()
from the point where it was interruptd,and going back to main() instead?It
is not important if i have to run another couple of line in
myfunc().Important is that i can go out from it soon;

Can anyone suggest me the most elegant way?
Once more forgive my English.

Many thanks,
Diego.


.



Relevant Pages

  • Re: Why cant/wont Stern make their game code open source?
    ... interrupt handlers, etc, as was done for the assembly libraries, C ... and in the compiler tools and runtime. ... programming in assembly. ... Main game logic, making sound and light sequences, ...
    (rec.games.pinball)
  • Re: On OS reliability
    ... Neither has ever studied programming. ... I often already need a 60Hz interrupt around anyway to do something else. ... milliseconds, so might see a double-hit if sampled too fast. ... switches rarely bounce for more than a few milliseconds. ...
    (sci.electronics.design)
  • Re: Relevance of languages WAS: Re: Date Validation in COBOL
    ... computer programming to the masses was a very bad move and there ... resistance to the new thing (Cobol) most of the older programmers I ... to aid in attitude control & speed control. ... experience gained teaching interrupt driven programming ...
    (comp.lang.cobol)
  • Re: kmalloc without GFP_xxx?
    ... > No, it's just bad programming. ... tries to grab it and starts to spin. ... > GFP_ATOMIC will also be unable to allocate the memory it needs. ... called by both an interrupt and non interrupt code. ...
    (Linux-Kernel)
  • Re: Relevance of languages WAS: Re: Date Validation in COBOL
    ... programming to the masses was a very bad move and there would have ... resistance to the new thing (Cobol) most of the older programmers I ... attitude control & speed control. ... Hmmm...You are describing ONE model of interrupt driven processing and it ...
    (comp.lang.cobol)