Interrupt block with different exit?


Results 1 to 14 of 14

Threaded View

  1. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Interrupt block with different exit?

    Hi,

    you can return wherever you want at the end of an interrupt stubb ...

    I did it some years ago ... but Darrel did not like it at all !!! ( )

    just have a look to the asm code generated and you will understand why and how !

    the trick lies on the DEFINE INTHAND + RESUME _Label use ...

    RESUME _Label gives

    - bsf Intcon.7
    - GOTO _Label

    and _ Label is a PBP stubb ... where you want to jump to ...

    for the moment, I have to dig out the program I wrote ...

    Alain
    Last edited by Acetronics2; - 6th February 2025 at 20:55.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Exit from an IF/ENDIF loop with a GOTO
    By aratti in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 17th February 2014, 14:05
  2. Capture loop exit
    By spcw1234 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th February 2012, 21:29
  3. ASM block does not compile
    By efarook in forum mel PIC BASIC
    Replies: 2
    Last Post: - 31st May 2008, 22:42
  4. Timer Interrupt to exit a closed loop
    By duncan303 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 16th December 2007, 17:45
  5. block comment?
    By eoasap in forum General
    Replies: 5
    Last Post: - 13th October 2005, 01:32

Members who have read this thread : 11

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