hi DAVE

i am also getting some compile errors , that not sure why ,

using DT_INTS-18_34c for the 18F24K40 , no priority is used

Code:

  ' ---------- Set up DT_INTS-18 Routine for Instant Interupt handling   -----------
   
     INCLUDE "DT_INTS-18_K40.bas"   ; Base Interrupt System for 18FxxK40 processors  ( DT_INTS-18_3_4C.BAS)
     INCLUDE "ReEnterPBP-18.bas"    ; Include if using PBP interrupts

ASM
INT_LIST macro; IntSource,  Label     , Type, ResetFlag?
   INT_Handler TMR0_INT, _Timer0_Count,  PBP, yes      ; call Timer0_Count subroutine
   INT_Handler  IOC_INT, _Rx_mode_IOC ,  PBP, yes      ; Call Rx_mode_IOC subroutine for RF RX_mode
   INT_Handler  RX2_INT, _Term_RX     ,  PBP, yes      ; Call Term_input for terminal char buffer 
 endm
 INT_CREATE								; Creates the Interrupt Processor
ENDASM

 
--------------------------------------


 '---------- Start of Program commands ---------------
Gate_Reset:                  ' Label for a soft reset 
  Clear                      ' Clear varables    
@ INT_ENABLE TMR0_INT        ; enable Timer0 interupts and start Timer0   
@ INT_ENABLE  IOC_INT        ; Enable PortB IOC Interrupts for RX_mode  - RF_IRQ pin







following compile errors are

Code:
 problem - Symbol not previously defined (intflagbit)
 problem - Symbol not previously defined (intflagreg)

; -- macro --
INT_Source  macro  IFR, IFB, IER, IEB, IPR, IPB
    if (IflagReg == IFR) && (IflagBit == IFB)  
  list

Code:
error  "INT_ENABLE - Interrupt Source not found!"