Define Interrupt Label Problem


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Define Interrupt Label Problem

    It's not in the book, because you are not supposed to use PBP subroutines for Assembly Language Interrupts.

    You should not call any PBP subroutines from ASM interrupts either.
    Any PBP commands that use system variables will corrupt the program flow and it will have unexpected results.

    If you need to run PicBasic language interrupts, you should use either ON INTERRUPT or DT_INTS
    DT

  2. #2
    Join Date
    Jun 2011
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Re: Define Interrupt Label Problem

    I really like the look of DT_INTS-18.bas but there are a few syntaxes I didn't understand.
    In the 'Elapsed_INT-18.bas' program you use 'MOVE?CT 0, T1CON,TMR1ON'
    and in 'DT_INTS-18.bas' you use 'L?GOTO _RestorePBP_H'.
    I've been looking for the '?' syntax. Where can I find it? It wasn't in the MPASM User Guide (at least not mine) or the PBP Compiler book.

    I'll probably make a lot of people feel smart by asking this but I like to understand what I'm using.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Define Interrupt Label Problem

    Those are macros from the PBP library. You won't find them in any manuals.

    You don't really need to understand the inner workings of DT_INTS to use them.
    Which is kindof the purpose, allowing people to use Interrupts without knowing all the details of using interrupts.

    After you have used them for a while, digging into the ASM code will make more sense.
    DT

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