LED1 VAR GPIO.1 INCLUDE "DT_INTS-14.bas" INCLUDE "ReEnterPBP.bas" ;-- Place a copy of these variables in your Main program ------------------- ;-- The compiler will tell you which lines to un-comment -- ;-- Do Not un-comment these lines -- ;--------------------------------------------------------------------------- wsave VAR BYTE $20 SYSTEM ' location for W if in bank0 ;wsave VAR BYTE $70 SYSTEM ' alternate save location for W ' if using $70, comment wsave1-3 ' --- IF any of these three lines cause an error ?? ------------------------ ' Comment them out to fix the problem ---- ' -- Which variables are needed, depends on the Chip you are using -- wsave1 VAR BYTE $A0 SYSTEM ' location for W if in bank1 ;wsave2 VAR BYTE $120 SYSTEM ' location for W if in bank2 ;wsave3 VAR BYTE $1A0 SYSTEM ' location for W if in bank3 ' -------------------------------------------------------------------------- ASM INT_LIST macro INT_Handler INT_INT, _ToggleLED1, PBP, yes endm INT_CREATE ENDASM @ INT_ENABLE INT_INT Main: PAUSE 1 GOTO Main ToggleLED1: TOGGLE LED1 @ INT_RETURN