Safely getting out of an interrupt


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    232


    Did you find this post helpful? Yes | No

    Default Re: Safely getting out of an interrupt

    richard,
    OK, so after I’ve thought about this perhaps its not my program that would have a problem but DT’s interrupt. If it acts as a special gosub then there may be some return address and flags that have to be taken care of. Is that correct? If so, how do you get out of it without using INT_RETURN?

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,641


    Did you find this post helpful? Yes | No

    Default Re: Safely getting out of an interrupt

    If so, how do you get out of it without using INT_RETURN?
    it can't be done any other way except with a reset
    Warning I'm not a teacher

  3. #3
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Safely getting out of an interrupt

    I believe you would have to POP the Stack, which is to remove the Saved Address the Interrupt was called from. Otherwise you'll eventually get Stack Overflow. If you only need that INT once after start-up, may not be an issue.

  4. #4
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    232


    Did you find this post helpful? Yes | No

    Default Re: Safely getting out of an interrupt

    thanks for all the input. I've go to chew on this a while. perhaps DT_Handler macro may give some clues as to what would be required.
    Wayne

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,641


    Did you find this post helpful? Yes | No

    Default Re: Safely getting out of an interrupt

    imagine driving down the road when ----
    "there's a Howard Johnsons! want to eat some clams?" (an interrupt occured new direction required)
    you turn the stering wheel to head towards the Howard Johnsons (the act of turning the wheel is the interrupt service) when the new direction is established you release the steering wheel car heads to the Howard Johnsons .
    your holding the steering wheel on full lock and asking how can i straighten up without letting the steering wheel return to normal
    its not goint to happen
    apologies to frank zappa (billie the mountain)
    Warning I'm not a teacher

  6. #6
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    232


    Did you find this post helpful? Yes | No

    Default Re: Safely getting out of an interrupt

    Now I’m getting hungry! No Eldorado Cadillac. Not going to New York, Neeewwww Yooorrrrk!!! Did get drafted. Frank Zappa, Studebaker Hawk, RIP wherever you are!

Similar Threads

  1. Replies: 0
    Last Post: - 27th August 2004, 07:20

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts